fastapi-rtk 0.0.117 → 0.0.118

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.
@@ -1,32 +1,32 @@
1
- (function(O,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime"),require("@mantine/core"),require("react"),require("react-router-dom"),require("zustand"),require("@tanstack/react-query"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@mantine/dates"),require("clsx"),require("@emotion/react"),require("@mantine/form"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@mantine/core","react","react-router-dom","zustand","@tanstack/react-query","@mantine/hooks","@jsonforms/react","@jsonforms/core","@mantine/dates","clsx","@emotion/react","@mantine/form","mantine-react-table"],d):(O=typeof globalThis<"u"?globalThis:O||self,d(O["fastapi-rtk"]={},O.jsxRuntime,O.core,O.React,O.reactRouterDom,O.zustand,O.reactQuery,O.hooks,O.react,O.core$1,O.dates,O.clsx,O.react$1,O.form,O.mantineReactTable))})(this,function(O,d,v,x,_f,Tf,Ln,Ze,De,ue,Gi,Pr,wf,La,yn){"use strict";var lz=Object.defineProperty;var uz=(O,d,v)=>d in O?lz(O,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):O[d]=v;var nb=(O,d,v)=>uz(O,typeof d!="symbol"?d+"":d,v);function rb(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ft=rb(x),Ba=x.createContext({path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,n)=>({}),deleteEntry:async(e,t)=>({}),download:async(e,t)=>null,upload:async(e,t)=>null,resetError:()=>null});function Ae(){const e=x.useContext(Ba);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e}const Sf=0,Cf=25,rr=250,za=",",Ef=[{value:",",label:"Comma (,)"},{value:";",label:"Semicolon (;)"},{value:"|",label:"Pipe (|)"},{value:" ",label:"Tab"},{value:" ",label:"Space"}];function Tt({path:e,method:t,body:n=void 0,queryParams:o=void 0}){const s=Object.entries(o||{}).reduce((c,[h,p])=>((Array.isArray(p)||typeof p=="object")&&(p=JSON.stringify(p)),c[h]=p,c),{}),a=new _f.createSearchParams(s);e=e+"?"+a;const u={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:n?JSON.stringify(n):null};return{fetchPath:e,options:u}}function ib(e){return e&&typeof e=="object"&&!Array.isArray(e)}const Bn=(...e)=>{const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{ib(n[o])&&o!=="ref"&&t[o]?t[o]=Bn(t[o],n[o]):t[o]=n[o]})}),t},Ua=e=>e==null?e:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>Ua(t)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e,Hi=(e,t,n=!0)=>{const o=t.split(".");let s=e;for(const a of o)Array.isArray(s)?s=s.map(u=>Hi(u,a,!1)):s=s==null?void 0:s[a];return n?Ua(s):s},ja=(e,t)=>e===void 0?t:e;function ti(e){return e!=null}const ft=(e,t)=>typeof e=="function"?e(t):e;function xf(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let s=0;s<e.length;s++){let a=e[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),s<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}let n=t.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");const o=n.split("?");return n=o.shift()+(o.length>0?"?":"")+o.join("&"),n}function it(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return xf(t)}const zo=e=>new Proxy(e,{get(t,n){return t(o=>o[n])}}),Af=(e,t)=>Object.entries(t).reduce((n,[o,s])=>typeof s=="object"&&JSON.stringify(s)===JSON.stringify(e[o])||s===e[o]?n:{...n,[o]:s},{});function Yi(e){const[t]=x.useState(()=>Tf.create(()=>({...e}))),[n]=x.useState(()=>zo(t));return x.useEffect(()=>{t.setState(o=>Af(o,e))},[e,t]),n}const Wa=x.createContext({user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null,refetch:async()=>null});function $r(){return x.useContext(Wa)}const Va=x.createContext({baseUrl:"",info:null,loading:!1,error:null});function Of(){return x.useContext(Va)}async function If(e,{username:t,password:n}){const o=new FormData;o.append("username",t),o.append("password",n);const{fetchPath:s,options:a}=Tt({path:it(e,"auth/login"),method:"POST"}),u=await fetch(s,{...a,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o)});if(!u.ok)throw u.status===400?new Error("Username or password wrong."):new Error("Failed to sign in.")}async function Pf(e){const{fetchPath:t,options:n}=Tt({path:it(e,"auth/logout"),method:"POST"});if(!(await fetch(t,n)).ok)throw new Error("Failed to sign out.")}async function $f(e,t,{email:n}){const{fetchPath:o,options:s}=Tt({path:it(e,"auth/forgot-password"),method:"POST",body:{email:n}}),a=await fetch(o,s);if(!a.ok)throw new Error("Couldn't request token to reset password");const u=await a.json(),{token:c}=u,{fetchPath:h,options:p}=Tt({path:it(e,"auth/reset-password"),method:"POST",body:{token:c,password:t}});if(!(await fetch(h,p)).ok)throw new Error("Couldn't reset password")}async function Mf(e,t,n,o){const s=it(e,"auth/login",t);if(!n){window.location.href=it(e,"auth/login",t);return}const a=500,u=500,c=window.screenLeft+window.outerWidth/2-a/2,h=window.screenTop+window.outerHeight/2-u/2,p=window.open(s+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${a}, height=${u}, top=${h}, left=${c}`),y=window.setInterval(function(){p.closed!==!1&&(window.clearInterval(y),o==null||o())},200)}async function Ff(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"info/"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function Df(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function kf(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"PUT",body:t}),s=await fetch(n,o),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}function Nf(e,t){const n=Ln.useQueryClient(),o=Ln.useQuery({queryKey:["user"],queryFn:({signal:m})=>Df(e,m),retry:!1,...t}),[s,a]=x.useState(null),u=x.useCallback(({username:m,password:_})=>{a(null),If(e,{username:m,password:_}).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(C=>a(C))},[e,n]),c=x.useCallback(()=>{a(null),Pf(e).then(()=>n.resetQueries({queryKey:["user"]})).then(()=>n.resetQueries({queryKey:["info"]})).catch(m=>a(m))},[e,n]),h=x.useCallback(m=>{a(null),kf(e,m).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(_=>a(_))},[e,n]),p=x.useCallback(m=>{a(null),$f(e,m,o.data).catch(_=>a(_))},[e,o.data]),y=x.useCallback((m,_)=>Mf(e,m,_,()=>n.invalidateQueries({queryKey:["user"]})),[e,n]);return{user:o.isError?null:o.data,loading:o.isFetching,error:s?s.message:null,signin:u,signout:c,update:h,resetPassword:p,oauth_signin:y,refetch:o.refetch}}function Lf(e,t){const n=Ln.useQuery({queryKey:["info"],queryFn:({signal:o})=>Ff(e,o),enabled:!1});return x.useEffect(()=>{t.user&&!n.data&&n.refetch()},[t.user,n]),{baseUrl:e,info:n.data,loading:n.isFetching,error:n.error}}function ob(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:n,authQueryProps:o,children:s}={...t,...e},a=Nf(n,o),u=Yi(a),c=Lf(n,a),h=Yi(c);return d.jsx(Wa.Provider,{value:u,children:d.jsx(Va.Provider,{value:h,children:s})})}function sb(e){const[t]=x.useState(()=>new Ln.QueryClient);return d.jsx(Ln.QueryClientProvider,{client:t,children:d.jsx(ob,{...e})})}const Ga=x.createContext({bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null});function ab(){const e=x.useContext(Ga);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e}const Bf={opened:!1,setOpened:()=>{throw new Error("setOpened must be defined in a provider")},view:0,setView:()=>{throw new Error("setView must be defined in a provider")},state:void 0,setState:()=>{throw new Error("setState must be defined in a provider")},reset:()=>{throw new Error("reset must be defined in a provider")},item:void 0,itemLoading:!1,setItem:()=>{throw new Error("setItem must be defined in a provider")},setItemLoading:()=>{throw new Error("setItemLoading must be defined in a provider")}},Uo={errors:[],data:void 0},Ha=x.createContext(Bf),Ya=x.createContext(Bf);function zn(e="add"){const t=x.useContext(e==="add"?Ha:Ya);if(t===void 0)throw new Error("useForms must be used within an ApiProvider");return t}const zf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,"/"),method:"POST",body:t}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Uf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"DELETE"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},jf=async(e,t,n="",o="")=>{const{fetchPath:s,options:a}=Tt({path:it(e,"/download"),method:"GET",queryParams:{...t,label:n,export_mode:o,check_validity:!0}});if(!(await fetch(s,a)).ok)throw new Error("Download failed");const{fetchPath:c}=Tt({path:it(e,"/download"),method:"GET",queryParams:{...t,label:n,export_mode:o}}),h=document.createElement("a");h.href=c,h.download=n,h.style.display="none",document.body.appendChild(h),h.click(),document.body.removeChild(h)},Wf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:e,method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a},Vf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"GET"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Gf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:e,method:"GET",queryParams:t}),a=await fetch(o,{signal:n,...s});let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Hf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,t.toString()),method:"PUT",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Yf=async(e,t,n,o=",")=>{const s=new FormData;s.append("file",n);const{fetchPath:a,options:u}=Tt({path:it(e,"/upload"),method:"POST",queryParams:{...t,delimiter:o}}),c=await fetch(a,{...u,headers:void 0,body:s});if(!c.ok)throw new Error("Upload failed");return await c.json()},qf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,"/bulk",t),method:"POST",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},xt=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,qa=e=>{const t={};for(const n of e)switch(n.type){case"RelatedList":t[n.name]=[];break;case"Boolean":t[n.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[n.name]=void 0;break;default:t[n.name]=""}return t};var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(e){this._maxSize=e,this.clear()}Mr.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Mr.prototype.get=function(e){return this._values[e]},Mr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var lb=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Kf=/^\d+$/,ub=/^\d/,cb=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,fb=/^\s*(['"]?)(.*?)(\1)\s*$/,Ka=512,Jf=new Mr(Ka),Rf=new Mr(Ka),Zf=new Mr(Ka),Fr={Cache:Mr,split:Ra,normalizePath:Ja,setter:function(e){var t=Ja(e);return Rf.get(e)||Rf.set(e,function(o,s){for(var a=0,u=t.length,c=o;a<u-1;){var h=t[a];if(h==="__proto__"||h==="constructor"||h==="prototype")return o;c=c[t[a++]]}c[t[a]]=s})},getter:function(e,t){var n=Ja(e);return Zf.get(e)||Zf.set(e,function(s){for(var a=0,u=n.length;a<u;)if(s!=null||!t)s=s[n[a++]];else return;return s})},join:function(e){return e.reduce(function(t,n){return t+(Za(n)||Kf.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){db(Array.isArray(e)?e:Ra(e),t,n)}};function Ja(e){return Jf.get(e)||Jf.set(e,Ra(e).map(function(t){return t.replace(fb,"$2")}))}function Ra(e){return e.match(lb)||[""]}function db(e,t,n){var o=e.length,s,a,u,c;for(a=0;a<o;a++)s=e[a],s&&(gb(s)&&(s='"'+s+'"'),c=Za(s),u=!c&&/^\d+$/.test(s),t.call(n,s,c,u,a,e))}function Za(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function hb(e){return e.match(ub)&&!e.match(Kf)}function pb(e){return cb.test(e)}function gb(e){return!Za(e)&&(hb(e)||pb(e))}const mb=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,jo=e=>e.match(mb)||[],Wo=e=>e[0].toUpperCase()+e.slice(1),Xa=(e,t)=>jo(e).join(t).toLowerCase(),Xf=e=>jo(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var Qa={words:jo,upperFirst:Wo,camelCase:Xf,pascalCase:e=>Wo(Xf(e)),snakeCase:e=>Xa(e,"_"),kebabCase:e=>Xa(e,"-"),sentenceCase:e=>Wo(Xa(e," ")),titleCase:e=>jo(e).map(Wo).join(" ")},el={exports:{}};el.exports=function(e){return Qf(yb(e),e)},el.exports.array=Qf;function Qf(e,t){var n=e.length,o=new Array(n),s={},a=n,u=vb(t),c=bb(e);for(t.forEach(function(p){if(!c.has(p[0])||!c.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)s[a]||h(e[a],a,new Set);return o;function h(p,y,m){if(m.has(p)){var _;try{_=", node was:"+JSON.stringify(p)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!c.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!s[y]){s[y]=!0;var C=u.get(p)||new Set;if(C=Array.from(C),y=C.length){m.add(p);do{var E=C[--y];h(E,c.get(E),m)}while(y);m.delete(p)}o[--n]=p}}}function yb(e){for(var t=new Set,n=0,o=e.length;n<o;n++){var s=e[n];t.add(s[0]),t.add(s[1])}return Array.from(t)}function vb(e){for(var t=new Map,n=0,o=e.length;n<o;n++){var s=e[n];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function bb(e){for(var t=new Map,n=0,o=e.length;n<o;n++)t.set(e[n],n);return t}var _b=el.exports;const Tb=ir(_b),wb=Object.prototype.toString,Sb=Error.prototype.toString,Cb=RegExp.prototype.toString,Eb=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",xb=/^Symbol\((.*)\)(.*)$/;function Ab(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ed(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Ab(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Eb.call(e).replace(xb,"Symbol($1)");const o=wb.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+Sb.call(e)+"]":o==="RegExp"?Cb.call(e):null}function An(e,t){let n=ed(e,t);return n!==null?n:JSON.stringify(e,function(o,s){let a=ed(this[o],t);return a!==null?a:s},2)}function td(e){return e==null?[]:[].concat(e)}let nd,rd,id,Ob=/\$\{\s*(\w+)\s*\}/g;nd=Symbol.toStringTag;class od{constructor(t,n,o,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[nd]="Error",this.name="ValidationError",this.value=n,this.path=o,this.type=s,this.errors=[],this.inner=[],td(t).forEach(a=>{if(wt.isError(a)){this.errors.push(...a.errors);const u=a.inner.length?a.inner:[a];this.inner.push(...u)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rd=Symbol.hasInstance,id=Symbol.toStringTag;class wt extends Error{static formatError(t,n){const o=n.label||n.path||"this";return n=Object.assign({},n,{path:o,originalPath:n.path}),typeof t=="string"?t.replace(Ob,(s,a)=>An(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,o,s,a){const u=new od(t,n,o,s);if(a)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[id]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,wt)}static[rd](t){return od[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let On={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:o})=>{const s=o!=null&&o!==n?` (cast from the value \`${An(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${An(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${An(n,!0)}\``+s}},jt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},or={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},tl={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},nl={isValue:"${path} field must be ${value}"},Vo={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Go={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},sd={notType:e=>{const{path:t,value:n,spec:o}=e,s=o.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``}return wt.formatError(On.notType,e)}};var ad=Object.assign(Object.create(null),{mixed:On,string:jt,number:or,date:tl,object:Vo,array:Go,boolean:nl,tuple:sd});const Dr=e=>e&&e.__isYupSchema__;class Ho{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:s,otherwise:a}=n,u=typeof o=="function"?o:(...c)=>c.every(h=>h===o);return new Ho(t,(c,h)=>{var p;let y=u(...c)?s:a;return(p=y==null?void 0:y(h))!=null?p:h})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let o=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(o,t,n);if(s===void 0||s===t)return t;if(!Dr(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const Yo={context:"$",value:"."};function Ib(e,t){return new sr(e,t)}class sr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Yo.context,this.isValue=this.key[0]===Yo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?Yo.context:this.isValue?Yo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Fr.getter(this.path,!0),this.map=n.map}getValue(t,n,o){let s=this.isContext?o:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}sr.prototype.__isYupRef=!0;const vn=e=>e==null;function ni(e){function t({value:n,path:o="",options:s,originalValue:a,schema:u},c,h){const{name:p,test:y,params:m,message:_,skipAbsent:C}=e;let{parent:E,context:w,abortEarly:$=u.spec.abortEarly,disableStackTrace:N=u.spec.disableStackTrace}=s;function Q(U){return sr.isRef(U)?U.getValue(n,E,w):U}function H(U={}){const ne=Object.assign({value:n,originalValue:a,label:u.spec.label,path:U.path||o,spec:u.spec,disableStackTrace:U.disableStackTrace||N},m,U.params);for(const ye of Object.keys(ne))ne[ye]=Q(ne[ye]);const fe=new wt(wt.formatError(U.message||_,ne),n,ne.path,U.type||p,ne.disableStackTrace);return fe.params=ne,fe}const B=$?c:h;let D={path:o,parent:E,type:p,from:s.from,createError:H,resolve:Q,options:s,originalValue:a,schema:u};const k=U=>{wt.isError(U)?B(U):U?h(null):B(H())},G=U=>{wt.isError(U)?B(U):c(U)};if(C&&vn(n))return k(!0);let ie;try{var S;if(ie=y.call(D,n,D),typeof((S=ie)==null?void 0:S.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ie).then(k,G)}}catch(U){G(U);return}k(ie)}return t.OPTIONS=e,t}function rl(e,t,n,o=n){let s,a,u;return t?(Fr.forEach(t,(c,h,p)=>{let y=h?c.slice(1,c.length-1):c;e=e.resolve({context:o,parent:s,value:n});let m=e.type==="tuple",_=p?parseInt(y,10):0;if(e.innerType||m){if(m&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(n&&_>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[_],e=m?e.spec.types[_]:e.innerType}if(!p){if(!e.fields||!e.fields[y])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);s=n,n=n&&n[y],e=e.fields[y]}a=y,u=h?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:a}):{parent:s,parentPath:t,schema:e}}function Pb(e,t,n,o){return rl(e,t,n,o).schema}class qo extends Set{describe(){const t=[];for(const n of this.values())t.push(sr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const o of this.values())n.push(t(o));return n}clone(){return new qo(this.values())}merge(t,n){const o=this.clone();return t.forEach(s=>o.add(s)),n.forEach(s=>o.delete(s)),o}}function ri(e,t=new Map){if(Dr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let o=0;o<e.length;o++)n[o]=ri(e[o],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[o,s]of e.entries())n.set(o,ri(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const o of e)n.add(ri(o,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[o,s]of Object.entries(e))n[o]=ri(s,t)}else throw Error(`Unable to clone ${e}`);return n}class It{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new qo,this._blacklist=new qo,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(On.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ri(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=n,o}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,o=t.clone();const s=Object.assign({},n.spec,o.spec);return o.spec=s,o.internalTests=Object.assign({},n.internalTests,o.internalTests),o._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),o.tests=n.tests,o.exclusiveTests=n.exclusiveTests,o.withMutation(a=>{t.tests.forEach(u=>{a.test(u.OPTIONS)})}),o.transforms=[...n.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let o=n.conditions;n=n.clone(),n.conditions=[],n=o.reduce((s,a)=>a.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,o,s,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let o=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",a=o._cast(t,n);if(n.assert!==!1&&!o.isType(a)){if(s&&vn(a))return a;let u=An(t),c=An(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
1
+ (function(O,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react/jsx-runtime"),require("@mantine/core"),require("react"),require("react-router-dom"),require("zustand"),require("@tanstack/react-query"),require("@mantine/hooks"),require("@jsonforms/react"),require("@jsonforms/core"),require("@mantine/dates"),require("clsx"),require("@emotion/react"),require("@mantine/form"),require("mantine-react-table")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@mantine/core","react","react-router-dom","zustand","@tanstack/react-query","@mantine/hooks","@jsonforms/react","@jsonforms/core","@mantine/dates","clsx","@emotion/react","@mantine/form","mantine-react-table"],d):(O=typeof globalThis<"u"?globalThis:O||self,d(O["fastapi-rtk"]={},O.jsxRuntime,O.core,O.React,O.reactRouterDom,O.zustand,O.reactQuery,O.hooks,O.react,O.core$1,O.dates,O.clsx,O.react$1,O.form,O.mantineReactTable))})(this,function(O,d,v,x,Tf,wf,Ln,Ze,De,ue,Gi,Pr,Sf,Ba,yn){"use strict";var lz=Object.defineProperty;var uz=(O,d,v)=>d in O?lz(O,d,{enumerable:!0,configurable:!0,writable:!0,value:v}):O[d]=v;var rb=(O,d,v)=>uz(O,typeof d!="symbol"?d+"":d,v);function ib(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ft=ib(x),za=x.createContext({path:"",data:null,info:null,queryParams:null,loading:!1,error:null,streaming:null,specialKey:null,setQueryParams:e=>null,refetch:()=>null,refetchInfo:()=>null,getEntry:async e=>({}),addEntry:async(e,t)=>({}),updateEntry:async(e,t,n)=>({}),deleteEntry:async(e,t)=>({}),download:async({label:e,export_mode:t,delimiter:n})=>null,upload:async(e,{delimiter:t})=>null,resetError:()=>null});function Ae(){const e=x.useContext(za);if(e===void 0)throw new Error("useApi must be used within a ApiProvider");return e}const Cf=0,Ef=25,rr=250,Hi=",",Ua=[{value:",",label:"Comma (,)"},{value:";",label:"Semicolon (;)"},{value:"|",label:"Pipe (|)"},{value:" ",label:"Tab"},{value:" ",label:"Space"}];function Tt({path:e,method:t,body:n=void 0,queryParams:o=void 0}){const s=Object.entries(o||{}).reduce((c,[h,p])=>((Array.isArray(p)||typeof p=="object")&&(p=JSON.stringify(p)),c[h]=p,c),{}),a=new Tf.createSearchParams(s);e=e+"?"+a;const u={method:t,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:n?JSON.stringify(n):null};return{fetchPath:e,options:u}}function ob(e){return e&&typeof e=="object"&&!Array.isArray(e)}const Bn=(...e)=>{const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(o=>{ob(n[o])&&o!=="ref"&&t[o]?t[o]=Bn(t[o],n[o]):t[o]=n[o]})}),t},ja=e=>e==null?e:typeof e=="boolean"?e.toString():Array.isArray(e)?e.map(t=>ja(t)).join(", "):typeof e=="object"?e.name_||JSON.stringify(e):e,Yi=(e,t,n=!0)=>{const o=t.split(".");let s=e;for(const a of o)Array.isArray(s)?s=s.map(u=>Yi(u,a,!1)):s=s==null?void 0:s[a];return n?ja(s):s},Wa=(e,t)=>e===void 0?t:e;function ti(e){return e!=null}const ft=(e,t)=>typeof e=="function"?e(t):e;function xf(e){const t=[];if(e.length===0)return"";if(typeof e[0]!="string")throw new TypeError("Url must be a string. Received "+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(let s=0;s<e.length;s++){let a=e[s];if(typeof a!="string")throw new TypeError("Url must be a string. Received "+a);a!==""&&(s>0&&(a=a.replace(/^[\/]+/,"")),s<e.length-1?a=a.replace(/[\/]+$/,""):a=a.replace(/[\/]+$/,"/"),t.push(a))}let n=t.join("/");n=n.replace(/\/(\?|&|#[^!])/g,"$1");const o=n.split("?");return n=o.shift()+(o.length>0?"?":"")+o.join("&"),n}function it(...e){const t=Array.from(Array.isArray(e[0])?e[0]:e);return xf(t)}const Uo=e=>new Proxy(e,{get(t,n){return t(o=>o[n])}}),Af=(e,t)=>Object.entries(t).reduce((n,[o,s])=>typeof s=="object"&&JSON.stringify(s)===JSON.stringify(e[o])||s===e[o]?n:{...n,[o]:s},{});function qi(e){const[t]=x.useState(()=>wf.create(()=>({...e}))),[n]=x.useState(()=>Uo(t));return x.useEffect(()=>{t.setState(o=>Af(o,e))},[e,t]),n}const Va=x.createContext({user:null,loading:!1,error:null,signin:async(e,t)=>null,signout:async()=>null,update:async e=>null,resetPassword:async e=>null,oauth_signin:(e,t)=>null,refetch:async()=>null});function $r(){return x.useContext(Va)}const Ga=x.createContext({baseUrl:"",info:null,loading:!1,error:null});function Of(){return x.useContext(Ga)}async function If(e,{username:t,password:n}){const o=new FormData;o.append("username",t),o.append("password",n);const{fetchPath:s,options:a}=Tt({path:it(e,"auth/login"),method:"POST"}),u=await fetch(s,{...a,headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o)});if(!u.ok)throw u.status===400?new Error("Username or password wrong."):new Error("Failed to sign in.")}async function Pf(e){const{fetchPath:t,options:n}=Tt({path:it(e,"auth/logout"),method:"POST"});if(!(await fetch(t,n)).ok)throw new Error("Failed to sign out.")}async function $f(e,t,{email:n}){const{fetchPath:o,options:s}=Tt({path:it(e,"auth/forgot-password"),method:"POST",body:{email:n}}),a=await fetch(o,s);if(!a.ok)throw new Error("Couldn't request token to reset password");const u=await a.json(),{token:c}=u,{fetchPath:h,options:p}=Tt({path:it(e,"auth/reset-password"),method:"POST",body:{token:c,password:t}});if(!(await fetch(h,p)).ok)throw new Error("Couldn't reset password")}async function Mf(e,t,n,o){const s=it(e,"auth/login",t);if(!n){window.location.href=it(e,"auth/login",t);return}const a=500,u=500,c=window.screenLeft+window.outerWidth/2-a/2,h=window.screenTop+window.outerHeight/2-u/2,p=window.open(s+"?popup=true","auth",`toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${a}, height=${u}, top=${h}, left=${c}`),m=window.setInterval(function(){p.closed!==!1&&(window.clearInterval(m),o==null||o())},200)}async function Ff(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"info/"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function Df(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}async function kf(e,t){const{fetchPath:n,options:o}=Tt({path:it(e,"auth/user"),method:"PUT",body:t}),s=await fetch(n,o),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a}function Nf(e,t){const n=Ln.useQueryClient(),o=Ln.useQuery({queryKey:["user"],queryFn:({signal:y})=>Df(e,y),retry:!1,...t}),[s,a]=x.useState(null),u=x.useCallback(({username:y,password:_})=>{a(null),If(e,{username:y,password:_}).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(C=>a(C))},[e,n]),c=x.useCallback(()=>{a(null),Pf(e).then(()=>n.resetQueries({queryKey:["user"]})).then(()=>n.resetQueries({queryKey:["info"]})).catch(y=>a(y))},[e,n]),h=x.useCallback(y=>{a(null),kf(e,y).then(()=>n.invalidateQueries({queryKey:["user"]})).catch(_=>a(_))},[e,n]),p=x.useCallback(y=>{a(null),$f(e,y,o.data).catch(_=>a(_))},[e,o.data]),m=x.useCallback((y,_)=>Mf(e,y,_,()=>n.invalidateQueries({queryKey:["user"]})),[e,n]);return{user:o.isError?null:o.data,loading:o.isFetching,error:s?s.message:null,signin:u,signout:c,update:h,resetPassword:p,oauth_signin:m,refetch:o.refetch}}function Lf(e,t){const n=Ln.useQuery({queryKey:["info"],queryFn:({signal:o})=>Ff(e,o),enabled:!1});return x.useEffect(()=>{t.user&&!n.data&&n.refetch()},[t.user,n]),{baseUrl:e,info:n.data,loading:n.isFetching,error:n.error}}function sb(e){const t={baseUrl:new URL(document.baseURI).pathname+"/api/v1",inheritMantineTheme:!1},{baseUrl:n,authQueryProps:o,children:s}={...t,...e},a=Nf(n,o),u=qi(a),c=Lf(n,a),h=qi(c);return d.jsx(Va.Provider,{value:u,children:d.jsx(Ga.Provider,{value:h,children:s})})}function ab(e){const[t]=x.useState(()=>new Ln.QueryClient);return d.jsx(Ln.QueryClientProvider,{client:t,children:d.jsx(sb,{...e})})}const Ha=x.createContext({bulkActions:{selectedIds:[],setSelectedIds:()=>{}},dispatchBulkActions:async(e,t)=>{},error:null});function lb(){const e=x.useContext(Ha);if(e===void 0)throw new Error("useBulkActions must be used within a ApiProvider");return e}const Bf={opened:!1,setOpened:()=>{throw new Error("setOpened must be defined in a provider")},view:0,setView:()=>{throw new Error("setView must be defined in a provider")},state:void 0,setState:()=>{throw new Error("setState must be defined in a provider")},reset:()=>{throw new Error("reset must be defined in a provider")},item:void 0,itemLoading:!1,setItem:()=>{throw new Error("setItem must be defined in a provider")},setItemLoading:()=>{throw new Error("setItemLoading must be defined in a provider")}},jo={errors:[],data:void 0},Ya=x.createContext(Bf),qa=x.createContext(Bf);function zn(e="add"){const t=x.useContext(e==="add"?Ya:qa);if(t===void 0)throw new Error("useForms must be used within an ApiProvider");return t}const zf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,"/"),method:"POST",body:t}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Uf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"DELETE"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},jf=async(e,t,{label:n="",export_mode:o="",delimiter:s=Hi}={})=>{const a={...t,label:n,export_mode:o,delimiter:s,check_validity:!0},{fetchPath:u,options:c}=Tt({path:it(e,"/download"),method:"GET",queryParams:a});if(!(await fetch(u,c)).ok)throw new Error("Download failed");delete a.check_validity;const{fetchPath:p}=Tt({path:it(e,"/download"),method:"GET",queryParams:a}),m=document.createElement("a");m.href=p,m.download=n,m.style.display="none",document.body.appendChild(m),m.click(),document.body.removeChild(m)},Wf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:e,method:"GET"}),s=await fetch(n,{signal:t,...o}),a=await s.json();if(!s.ok){const u=typeof a.detail=="string"?a.detail:JSON.stringify(a.detail,null,2);throw new Error(u)}return a},Vf=async(e,t)=>{const{fetchPath:n,options:o}=Tt({path:it(e,t.toString()),method:"GET"}),s=await fetch(n,o);let a=null;const u=s.headers.get("content-type");if(u&&u.includes("application/json")?a=await s.json():a=await s.text(),!s.ok)throw typeof a=="object"?new Error(typeof a.detail=="string"?a.detail:JSON.stringify(a,null,2)):new Error(a);return a},Gf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:e,method:"GET",queryParams:t}),a=await fetch(o,{signal:n,...s});let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Hf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,t.toString()),method:"PUT",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},Yf=async(e,t,{delimiter:n=","}={})=>{const o=new FormData;o.append("file",t);const{fetchPath:s,options:a}=Tt({path:it(e,"/upload"),method:"POST",queryParams:{delimiter:n}}),u=await fetch(s,{...a,headers:void 0,body:o});if(!u.ok)throw new Error("Upload failed");return await u.json()},qf=async(e,t,n)=>{const{fetchPath:o,options:s}=Tt({path:it(e,"/bulk",t),method:"POST",body:n}),a=await fetch(o,s);let u=null;const c=a.headers.get("content-type");if(c&&c.includes("application/json")?u=await a.json():u=await a.text(),!a.ok)throw typeof u=="object"?new Error(typeof u.detail=="string"?u.detail:JSON.stringify(u,null,2)):new Error(u);return u},xt=e=>e&&typeof e=="object"?Array.isArray(e)?e.join(","):JSON.stringify(e):e,Ka=e=>{const t={};for(const n of e)switch(n.type){case"RelatedList":t[n.name]=[];break;case"Boolean":t[n.name]="false";break;case"Date":case"DateTime":case"Integer":case"Float":case"Geometry":case"Raw":case"Related":t[n.name]=void 0;break;default:t[n.name]=""}return t};var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mr(e){this._maxSize=e,this.clear()}Mr.prototype.clear=function(){this._size=0,this._values=Object.create(null)},Mr.prototype.get=function(e){return this._values[e]},Mr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var ub=/[^.^\]^[]+|(?=\[\]|\.\.)/g,Kf=/^\d+$/,cb=/^\d/,fb=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,db=/^\s*(['"]?)(.*?)(\1)\s*$/,Ja=512,Jf=new Mr(Ja),Rf=new Mr(Ja),Zf=new Mr(Ja),Fr={Cache:Mr,split:Za,normalizePath:Ra,setter:function(e){var t=Ra(e);return Rf.get(e)||Rf.set(e,function(o,s){for(var a=0,u=t.length,c=o;a<u-1;){var h=t[a];if(h==="__proto__"||h==="constructor"||h==="prototype")return o;c=c[t[a++]]}c[t[a]]=s})},getter:function(e,t){var n=Ra(e);return Zf.get(e)||Zf.set(e,function(s){for(var a=0,u=n.length;a<u;)if(s!=null||!t)s=s[n[a++]];else return;return s})},join:function(e){return e.reduce(function(t,n){return t+(Xa(n)||Kf.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){hb(Array.isArray(e)?e:Za(e),t,n)}};function Ra(e){return Jf.get(e)||Jf.set(e,Za(e).map(function(t){return t.replace(db,"$2")}))}function Za(e){return e.match(ub)||[""]}function hb(e,t,n){var o=e.length,s,a,u,c;for(a=0;a<o;a++)s=e[a],s&&(mb(s)&&(s='"'+s+'"'),c=Xa(s),u=!c&&/^\d+$/.test(s),t.call(n,s,c,u,a,e))}function Xa(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function pb(e){return e.match(cb)&&!e.match(Kf)}function gb(e){return fb.test(e)}function mb(e){return!Xa(e)&&(pb(e)||gb(e))}const yb=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Wo=e=>e.match(yb)||[],Vo=e=>e[0].toUpperCase()+e.slice(1),Qa=(e,t)=>Wo(e).join(t).toLowerCase(),Xf=e=>Wo(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,"");var el={words:Wo,upperFirst:Vo,camelCase:Xf,pascalCase:e=>Vo(Xf(e)),snakeCase:e=>Qa(e,"_"),kebabCase:e=>Qa(e,"-"),sentenceCase:e=>Vo(Qa(e," ")),titleCase:e=>Wo(e).map(Vo).join(" ")},tl={exports:{}};tl.exports=function(e){return Qf(vb(e),e)},tl.exports.array=Qf;function Qf(e,t){var n=e.length,o=new Array(n),s={},a=n,u=bb(t),c=_b(e);for(t.forEach(function(p){if(!c.has(p[0])||!c.has(p[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});a--;)s[a]||h(e[a],a,new Set);return o;function h(p,m,y){if(y.has(p)){var _;try{_=", node was:"+JSON.stringify(p)}catch{_=""}throw new Error("Cyclic dependency"+_)}if(!c.has(p))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(p));if(!s[m]){s[m]=!0;var C=u.get(p)||new Set;if(C=Array.from(C),m=C.length){y.add(p);do{var E=C[--m];h(E,c.get(E),y)}while(m);y.delete(p)}o[--n]=p}}}function vb(e){for(var t=new Set,n=0,o=e.length;n<o;n++){var s=e[n];t.add(s[0]),t.add(s[1])}return Array.from(t)}function bb(e){for(var t=new Map,n=0,o=e.length;n<o;n++){var s=e[n];t.has(s[0])||t.set(s[0],new Set),t.has(s[1])||t.set(s[1],new Set),t.get(s[0]).add(s[1])}return t}function _b(e){for(var t=new Map,n=0,o=e.length;n<o;n++)t.set(e[n],n);return t}var Tb=tl.exports;const wb=ir(Tb),Sb=Object.prototype.toString,Cb=Error.prototype.toString,Eb=RegExp.prototype.toString,xb=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Ab=/^Symbol\((.*)\)(.*)$/;function Ob(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function ed(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Ob(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return xb.call(e).replace(Ab,"Symbol($1)");const o=Sb.call(e).slice(8,-1);return o==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):o==="Error"||e instanceof Error?"["+Cb.call(e)+"]":o==="RegExp"?Eb.call(e):null}function An(e,t){let n=ed(e,t);return n!==null?n:JSON.stringify(e,function(o,s){let a=ed(this[o],t);return a!==null?a:s},2)}function td(e){return e==null?[]:[].concat(e)}let nd,rd,id,Ib=/\$\{\s*(\w+)\s*\}/g;nd=Symbol.toStringTag;class od{constructor(t,n,o,s){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[nd]="Error",this.name="ValidationError",this.value=n,this.path=o,this.type=s,this.errors=[],this.inner=[],td(t).forEach(a=>{if(wt.isError(a)){this.errors.push(...a.errors);const u=a.inner.length?a.inner:[a];this.inner.push(...u)}else this.errors.push(a)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}rd=Symbol.hasInstance,id=Symbol.toStringTag;class wt extends Error{static formatError(t,n){const o=n.label||n.path||"this";return n=Object.assign({},n,{path:o,originalPath:n.path}),typeof t=="string"?t.replace(Ib,(s,a)=>An(n[a])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,o,s,a){const u=new od(t,n,o,s);if(a)return u;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[id]="Error",this.name=u.name,this.message=u.message,this.type=u.type,this.value=u.value,this.path=u.path,this.errors=u.errors,this.inner=u.inner,Error.captureStackTrace&&Error.captureStackTrace(this,wt)}static[rd](t){return od[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let On={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:o})=>{const s=o!=null&&o!==n?` (cast from the value \`${An(o,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${An(n,!0)}\``+s:`${e} must match the configured type. The validated value was: \`${An(n,!0)}\``+s}},jt={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},or={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},nl={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},rl={isValue:"${path} field must be ${value}"},Go={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Ho={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},sd={notType:e=>{const{path:t,value:n,spec:o}=e,s=o.types.length;if(Array.isArray(n)){if(n.length<s)return`${t} tuple value has too few items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``;if(n.length>s)return`${t} tuple value has too many items, expected a length of ${s} but got ${n.length} for value: \`${An(n,!0)}\``}return wt.formatError(On.notType,e)}};var ad=Object.assign(Object.create(null),{mixed:On,string:jt,number:or,date:nl,object:Go,array:Ho,boolean:rl,tuple:sd});const Dr=e=>e&&e.__isYupSchema__;class Yo{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:o,then:s,otherwise:a}=n,u=typeof o=="function"?o:(...c)=>c.every(h=>h===o);return new Yo(t,(c,h)=>{var p;let m=u(...c)?s:a;return(p=m==null?void 0:m(h))!=null?p:h})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let o=this.refs.map(a=>a.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),s=this.fn(o,t,n);if(s===void 0||s===t)return t;if(!Dr(s))throw new TypeError("conditions must return a schema object");return s.resolve(n)}}const qo={context:"$",value:"."};function Pb(e,t){return new sr(e,t)}class sr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===qo.context,this.isValue=this.key[0]===qo.value,this.isSibling=!this.isContext&&!this.isValue;let o=this.isContext?qo.context:this.isValue?qo.value:"";this.path=this.key.slice(o.length),this.getter=this.path&&Fr.getter(this.path,!0),this.map=n.map}getValue(t,n,o){let s=this.isContext?o:this.isValue?t:n;return this.getter&&(s=this.getter(s||{})),this.map&&(s=this.map(s)),s}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}sr.prototype.__isYupRef=!0;const vn=e=>e==null;function ni(e){function t({value:n,path:o="",options:s,originalValue:a,schema:u},c,h){const{name:p,test:m,params:y,message:_,skipAbsent:C}=e;let{parent:E,context:w,abortEarly:$=u.spec.abortEarly,disableStackTrace:N=u.spec.disableStackTrace}=s;function Q(U){return sr.isRef(U)?U.getValue(n,E,w):U}function H(U={}){const ne=Object.assign({value:n,originalValue:a,label:u.spec.label,path:U.path||o,spec:u.spec,disableStackTrace:U.disableStackTrace||N},y,U.params);for(const ye of Object.keys(ne))ne[ye]=Q(ne[ye]);const fe=new wt(wt.formatError(U.message||_,ne),n,ne.path,U.type||p,ne.disableStackTrace);return fe.params=ne,fe}const B=$?c:h;let D={path:o,parent:E,type:p,from:s.from,createError:H,resolve:Q,options:s,originalValue:a,schema:u};const k=U=>{wt.isError(U)?B(U):U?h(null):B(H())},G=U=>{wt.isError(U)?B(U):c(U)};if(C&&vn(n))return k(!0);let ie;try{var S;if(ie=m.call(D,n,D),typeof((S=ie)==null?void 0:S.then)=="function"){if(s.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(ie).then(k,G)}}catch(U){G(U);return}k(ie)}return t.OPTIONS=e,t}function il(e,t,n,o=n){let s,a,u;return t?(Fr.forEach(t,(c,h,p)=>{let m=h?c.slice(1,c.length-1):c;e=e.resolve({context:o,parent:s,value:n});let y=e.type==="tuple",_=p?parseInt(m,10):0;if(e.innerType||y){if(y&&!p)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${u}" must contain an index to the tuple element, e.g. "${u}[0]"`);if(n&&_>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${c}, in the path: ${t}. because there is no value at that index. `);s=n,n=n&&n[_],e=y?e.spec.types[_]:e.innerType}if(!p){if(!e.fields||!e.fields[m])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${u} which is a type: "${e.type}")`);s=n,n=n&&n[m],e=e.fields[m]}a=m,u=h?"["+c+"]":"."+c}),{schema:e,parent:s,parentPath:a}):{parent:s,parentPath:t,schema:e}}function $b(e,t,n,o){return il(e,t,n,o).schema}class Ko extends Set{describe(){const t=[];for(const n of this.values())t.push(sr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const o of this.values())n.push(t(o));return n}clone(){return new Ko(this.values())}merge(t,n){const o=this.clone();return t.forEach(s=>o.add(s)),n.forEach(s=>o.delete(s)),o}}function ri(e,t=new Map){if(Dr(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let o=0;o<e.length;o++)n[o]=ri(e[o],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[o,s]of e.entries())n.set(o,ri(s,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const o of e)n.add(ri(o,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[o,s]of Object.entries(e))n[o]=ri(s,t)}else throw Error(`Unable to clone ${e}`);return n}class It{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ko,this._blacklist=new Ko,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(On.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=ri(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let o=t(this);return this._mutate=n,o}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,o=t.clone();const s=Object.assign({},n.spec,o.spec);return o.spec=s,o.internalTests=Object.assign({},n.internalTests,o.internalTests),o._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),o._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),o.tests=n.tests,o.exclusiveTests=n.exclusiveTests,o.withMutation(a=>{t.tests.forEach(u=>{a.test(u.OPTIONS)})}),o.transforms=[...n.transforms,...o.transforms],o}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let o=n.conditions;n=n.clone(),n.conditions=[],n=o.reduce((s,a)=>a.resolve(s,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,o,s,a;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(o=t.abortEarly)!=null?o:this.spec.abortEarly,recursive:(s=t.recursive)!=null?s:this.spec.recursive,disableStackTrace:(a=t.disableStackTrace)!=null?a:this.spec.disableStackTrace})}cast(t,n={}){let o=this.resolve(Object.assign({value:t},n)),s=n.assert==="ignore-optionality",a=o._cast(t,n);if(n.assert!==!1&&!o.isType(a)){if(s&&vn(a))return a;let u=An(t),c=An(a);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${o.type}".
2
2
 
3
3
  attempted value: ${u}
4
- `+(c!==u?`result of cast: ${c}`:""))}return a}_cast(t,n){let o=t===void 0?t:this.transforms.reduce((s,a)=>a.call(this,s,t,this),t);return o===void 0&&(o=this.getDefault(n)),o}_validate(t,n={},o,s){let{path:a,originalValue:u=t,strict:c=this.spec.strict}=n,h=t;c||(h=this._cast(h,Object.assign({assert:!1},n)));let p=[];for(let y of Object.values(this.internalTests))y&&p.push(y);this.runTests({path:a,value:h,originalValue:u,options:n,tests:p},o,y=>{if(y.length)return s(y,h);this.runTests({path:a,value:h,originalValue:u,options:n,tests:this.tests},o,s)})}runTests(t,n,o){let s=!1,{tests:a,value:u,originalValue:c,path:h,options:p}=t,y=w=>{s||(s=!0,n(w,u))},m=w=>{s||(s=!0,o(w,u))},_=a.length,C=[];if(!_)return m([]);let E={value:u,originalValue:c,path:h,options:p,schema:this};for(let w=0;w<a.length;w++){const $=a[w];$(E,y,function(Q){Q&&(Array.isArray(Q)?C.push(...Q):C.push(Q)),--_<=0&&m(C)})}}asNestedTest({key:t,index:n,parent:o,parentPath:s,originalParent:a,options:u}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const h=typeof c=="number";let p=o[c];const y=Object.assign({},u,{strict:!0,parent:o,value:p,originalValue:a[c],key:void 0,[h?"index":"key"]:c,path:h||c.includes(".")?`${s||""}[${h?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(m,_,C)=>this.resolve(y)._validate(p,y,_,C)}validate(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return new Promise((u,c)=>s._validate(t,n,(h,p)=>{wt.isError(h)&&(h.value=p),c(h)},(h,p)=>{h.length?c(new wt(h,p,void 0,void 0,a)):u(p)}))}validateSync(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a,u=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(c,h)=>{throw wt.isError(c)&&(c.value=h),c},(c,h)=>{if(c.length)throw new wt(c,t,void 0,void 0,u);a=h}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,o=>{if(wt.isError(o))return!1;throw o})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(o){if(wt.isError(o))return!1;throw o}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ri(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const o=this.clone({nullable:t});return o.internalTests.nullable=ni({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),o}optionality(t,n){const o=this.clone({optional:t});return o.internalTests.optionality=ni({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=On.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=On.notNull){return this.nullability(!1,t)}required(t=On.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=On.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),s=ni(n),a=n.exclusive||n.name&&o.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(o.exclusiveTests[n.name]=!!n.exclusive),o.tests=o.tests.filter(u=>!(u.OPTIONS.name===n.name&&(a||u.OPTIONS.test===s.OPTIONS.test))),o.tests.push(s),o}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let o=this.clone(),s=td(t).map(a=>new sr(a));return s.forEach(a=>{a.isSibling&&o.deps.push(a.key)}),o.conditions.push(typeof n=="function"?new Ho(s,n):Ho.fromOptions(s,n)),o}typeError(t){let n=this.clone();return n.internalTests.typeError=ni({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=On.oneOf){let o=this.clone();return t.forEach(s=>{o._whitelist.add(s),o._blacklist.delete(s)}),o.internalTests.whiteList=ni({message:n,name:"oneOf",skipAbsent:!0,test(s){let a=this.schema._whitelist,u=a.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:u}})}}),o}notOneOf(t,n=On.notOneOf){let o=this.clone();return t.forEach(s=>{o._blacklist.add(s),o._whitelist.delete(s)}),o.internalTests.blacklist=ni({message:n,name:"notOneOf",test(s){let a=this.schema._blacklist,u=a.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:Array.from(a).join(", "),resolved:u}}):!0}}),o}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:o,meta:s,optional:a,nullable:u}=n.spec;return{meta:s,label:o,optional:a,nullable:u,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(h=>({name:h.OPTIONS.name,params:h.OPTIONS.params})).filter((h,p,y)=>y.findIndex(m=>m.name===h.name)===p)}}}It.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])It.prototype[`${e}At`]=function(t,n,o={}){const{parent:s,parentPath:a,schema:u}=rl(this,t,n,o.context);return u[e](s&&s[a],Object.assign({},o,{parent:s,path:t}))};for(const e of["equals","is"])It.prototype[e]=It.prototype.oneOf;for(const e of["not","nope"])It.prototype[e]=It.prototype.notOneOf;const $b=()=>!0;function Ko(e){return new il(e)}class il extends It{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:$b},t))}}Ko.prototype=il.prototype;function ol(){return new sl}class sl extends It{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=nl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return vn(n)||n===!0}})}isFalse(t=nl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return vn(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}ol.prototype=sl.prototype;const Mb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Fb(e){const t=al(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function al(e){var t,n;const o=Mb.exec(e);return o?{year:jn(o[1]),month:jn(o[2],1)-1,day:jn(o[3],1),hour:jn(o[4]),minute:jn(o[5]),second:jn(o[6]),millisecond:o[7]?jn(o[7].substring(0,3)):0,precision:(t=(n=o[7])==null?void 0:n.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:jn(o[10]),minuteOffset:jn(o[11])}:null}function jn(e,t=0){return Number(e)||t}let Db=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kb=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Nb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Lb="^\\d{4}-\\d{2}-\\d{2}",Bb="\\d{2}:\\d{2}:\\d{2}",zb="(([+-]\\d{2}(:?\\d{2})?)|Z)",Ub=new RegExp(`${Lb}T${Bb}(\\.\\d+)?${zb}$`),jb=e=>vn(e)||e===e.trim(),Wb={}.toString();function Jo(){return new ll}class ll extends It{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Wb?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||On.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,n){let o=!1,s,a;return n&&(typeof n=="object"?{excludeEmptyString:o=!1,message:s,name:a}=n:s=n),this.test({name:a||"matches",message:s||jt.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&o||u.search(t)!==-1})}email(t=jt.email){return this.matches(Db,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(kb,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(Nb,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",o,s;return t&&(typeof t=="object"?{message:n="",allowOffset:o=!1,precision:s=void 0}=t:n=t),this.matches(Ub,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:a=>{if(!a||o)return!0;const u=al(a);return u?!!u.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:s},skipAbsent:!0,test:a=>{if(!a||s==null)return!0;const u=al(a);return u?u.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:jb})}lowercase(t=jt.lowercase){return this.transform(n=>vn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>vn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toUpperCase()})}}Jo.prototype=ll.prototype;let Vb=e=>e!=+e;function ld(){return new ul}class ul extends It{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Vb(t)}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return o.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=or.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,n=or.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,n=or.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,n=or.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=or.positive){return this.moreThan(0,t)}negative(t=or.negative){return this.lessThan(0,t)}integer(t=or.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>vn(t)?t:t|0)}round(t){var n;let o=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(s=>vn(s)?s:Math[t](s))}}ld.prototype=ul.prototype;let ud=new Date(""),Gb=e=>Object.prototype.toString.call(e)==="[object Date]";function cl(){return new ii}class ii extends It{constructor(){super({type:"date",check(t){return Gb(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=Fb(t),isNaN(t)?ii.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let o;if(sr.isRef(t))o=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);o=s}return o}min(t,n=tl.min){let o=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(o)}})}max(t,n=tl.max){let o=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(o)}})}}ii.INVALID_DATE=ud,cl.prototype=ii.prototype,cl.INVALID_DATE=ud;function Hb(e,t=[]){let n=[],o=new Set,s=new Set(t.map(([u,c])=>`${u}-${c}`));function a(u,c){let h=Fr.split(u)[0];o.add(h),s.has(`${c}-${h}`)||n.push([c,h])}for(const u of Object.keys(e)){let c=e[u];o.add(u),sr.isRef(c)&&c.isSibling?a(c.path,u):Dr(c)&&"deps"in c&&c.deps.forEach(h=>a(h,u))}return Tb.array(Array.from(o),n).reverse()}function cd(e,t){let n=1/0;return e.some((o,s)=>{var a;if((a=t.path)!=null&&a.includes(o))return n=s,!0}),n}function fd(e){return(t,n)=>cd(e,t)-cd(e,n)}const dd=(e,t,n)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch{}return n.isType(o)?o:e};function Ro(e){if("fields"in e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Ro(o);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ro(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ro)}):"optional"in e?e.optional():e}const Yb=(e,t)=>{const n=[...Fr.normalizePath(t)];if(n.length===1)return n[0]in e;let o=n.pop(),s=Fr.getter(Fr.join(n),!0)(e);return!!(s&&o in s)};let hd=e=>Object.prototype.toString.call(e)==="[object Object]";function pd(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(o=>n.indexOf(o)===-1)}const qb=fd([]);function qi(e){return new fl(e)}class fl extends It{constructor(t){super({type:"object",check(n){return hd(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=qb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var o;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let a=this.fields,u=(o=n.stripUnknown)!=null?o:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).filter(m=>!this._nodes.includes(m))),h={},p=Object.assign({},n,{parent:h,__validating:n.__validating||!1}),y=!1;for(const m of c){let _=a[m],C=m in s;if(_){let E,w=s[m];p.path=(n.path?`${n.path}.`:"")+m,_=_.resolve({value:w,context:n.context,parent:h});let $=_ instanceof It?_.spec:void 0,N=$==null?void 0:$.strict;if($!=null&&$.strip){y=y||m in s;continue}E=!n.__validating||!N?_.cast(s[m],p):s[m],E!==void 0&&(h[m]=E)}else C&&!u&&(h[m]=s[m]);(C!==m in h||h[m]!==s[m])&&(y=!0)}return y?h:s}_validate(t,n={},o,s){let{from:a=[],originalValue:u=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:u},...a],n.__validating=!0,n.originalValue=u,super._validate(t,n,o,(h,p)=>{if(!c||!hd(p)){s(h,p);return}u=u||p;let y=[];for(let m of this._nodes){let _=this.fields[m];!_||sr.isRef(_)||y.push(_.asNestedTest({options:n,key:m,parent:p,parentPath:n.path,originalParent:u}))}this.runTests({tests:y,value:p,originalValue:u,options:n},o,m=>{s(m.sort(this._sortErrors).concat(h),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),o=n.fields;for(let[s,a]of Object.entries(this.fields)){const u=o[s];o[s]=u===void 0?a:u}return n.withMutation(s=>s.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(o=>{var s;const a=this.fields[o];let u=t;(s=u)!=null&&s.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[o]})),n[o]=a&&"getDefault"in a?a.getDefault(u):void 0}),n}setFields(t,n){let o=this.clone();return o.fields=t,o._nodes=Hb(t,n),o._sortErrors=fd(Object.keys(t)),n&&(o._excludedEdges=n),o}shape(t,n=[]){return this.clone().withMutation(o=>{let s=o._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...o._excludedEdges,...n]),o.setFields(Object.assign(o.fields,t),s)})}partial(){const t={};for(const[n,o]of Object.entries(this.fields))t[n]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Ro(this)}pick(t){const n={};for(const o of t)this.fields[o]&&(n[o]=this.fields[o]);return this.setFields(n,this._excludedEdges.filter(([o,s])=>t.includes(o)&&t.includes(s)))}omit(t){const n=[];for(const o of Object.keys(this.fields))t.includes(o)||n.push(o);return this.pick(n)}from(t,n,o){let s=Fr.getter(t,!0);return this.transform(a=>{if(!a)return a;let u=a;return Yb(a,t)&&(u=Object.assign({},a),o||delete u[t],u[n]=s(a)),u})}json(){return this.transform(dd)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Vo.exact,test(n){if(n==null)return!0;const o=pd(this.schema,n);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Vo.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const a=pd(this.schema,s);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,n=Vo.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const o={};for(const s of Object.keys(n))o[t(s)]=n[s];return o})}camelCase(){return this.transformKeys(Qa.camelCase)}snakeCase(){return this.transformKeys(Qa.snakeCase)}constantCase(){return this.transformKeys(t=>Qa.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(const[a,u]of Object.entries(n.fields)){var s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),o.fields[a]=u.describe(c)}return o}}qi.prototype=fl.prototype;function dl(e){return new hl(e)}class hl extends It{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const o=super._cast(t,n);if(!this._typeCheck(o)||!this.innerType)return o;let s=!1;const a=o.map((u,c)=>{const h=this.innerType.cast(u,Object.assign({},n,{path:`${n.path||""}[${c}]`}));return h!==u&&(s=!0),h});return s?a:o}_validate(t,n={},o,s){var a;let u=this.innerType,c=(a=n.recursive)!=null?a:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,o,(h,p)=>{var y;if(!c||!u||!this._typeCheck(p)){s(h,p);return}let m=new Array(p.length);for(let C=0;C<p.length;C++){var _;m[C]=u.asNestedTest({options:n,index:C,parent:p,parentPath:n.path,originalParent:(_=n.originalValue)!=null?_:t})}this.runTests({value:p,tests:m,originalValue:(y=n.originalValue)!=null?y:t,options:n},o,C=>s(C.concat(h),p))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(dd)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Dr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+An(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=Go.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n){return n=n||Go.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n){return n=n||Go.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(o,s,a)=>!t(o,s,a):o=>!!o;return this.transform(o=>o!=null?o.filter(n):o)}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);if(n.innerType){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),o.innerType=n.innerType.describe(a)}return o}}dl.prototype=hl.prototype;function gd(e){return new pl(e)}class pl extends It{constructor(t){super({type:"tuple",spec:{types:t},check(n){const o=this.spec.types;return Array.isArray(n)&&n.length===o.length}}),this.withMutation(()=>{this.typeError(sd.notType)})}_cast(t,n){const{types:o}=this.spec,s=super._cast(t,n);if(!this._typeCheck(s))return s;let a=!1;const u=o.map((c,h)=>{const p=c.cast(s[h],Object.assign({},n,{path:`${n.path||""}[${h}]`}));return p!==s[h]&&(a=!0),p});return a?u:s}_validate(t,n={},o,s){let a=this.spec.types;super._validate(t,n,o,(u,c)=>{var h;if(!this._typeCheck(c)){s(u,c);return}let p=[];for(let[m,_]of a.entries()){var y;p[m]=_.asNestedTest({options:n,index:m,parent:c,parentPath:n.path,originalParent:(y=n.originalValue)!=null?y:t})}this.runTests({value:c,tests:p,originalValue:(h=n.originalValue)!=null?h:t,options:n},o,m=>s(m.concat(u),c))})}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=n.spec.types.map((s,a)=>{var u;let c=t;return(u=c)!=null&&u.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),s.describe(c)}),o}}gd.prototype=pl.prototype;function Kb(e){return new Zo(e)}function md(e){try{return e()}catch(t){if(wt.isError(t))return Promise.reject(t);throw t}}class Zo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(n,o={})=>{let s=this.builder(n,o);if(!Dr(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(o)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const n=new Zo(this.builder);return n.spec=Object.assign({},this.spec,t),n}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,n){return this._resolve(t,n).cast(t,n)}asNestedTest(t){let{key:n,index:o,parent:s,options:a}=t,u=s[o??n];return this._resolve(u,Object.assign({},a,{value:u,parent:s})).asNestedTest(t)}validate(t,n){return md(()=>this._resolve(t,n).validate(t,n))}validateSync(t,n){return this._resolve(t,n).validateSync(t,n)}validateAt(t,n,o){return md(()=>this._resolve(n,o).validateAt(t,n,o))}validateSyncAt(t,n,o){return this._resolve(n,o).validateSyncAt(t,n,o)}isValid(t,n){try{return this._resolve(t,n).isValid(t,n)}catch(o){if(wt.isError(o))return Promise.resolve(!1);throw o}}isValidSync(t,n){return this._resolve(t,n).isValidSync(t,n)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}}function Jb(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{ad[t][n]=e[t][n]})})}function Rb(e,t,n){if(!e||!Dr(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const yd=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:hl,BooleanSchema:sl,DateSchema:ii,LazySchema:Zo,MixedSchema:il,NumberSchema:ul,ObjectSchema:fl,Schema:It,StringSchema:ll,TupleSchema:pl,ValidationError:wt,addMethod:Rb,array:dl,bool:ol,boolean:ol,date:cl,defaultLocale:ad,getIn:rl,isSchema:Dr,lazy:Kb,mixed:Ko,number:ld,object:qi,printValue:An,reach:Pb,ref:Ib,setLocale:Jb,string:Jo,tuple:gd},Symbol.toStringTag,{value:"Module"})),gl=e=>{const t=e.reduce((n,o)=>{let{name:s,required:a,type:u}=o;switch(u){case"RelatedList":u="array";break;case"Integer":case"Float":u="number";break;case"Related":case"Geometry":case"Raw":u="mixed";break;default:u="string"}let c;try{a?c=yd[u]().typeError(`Field must be of type ${u}`).required("Field is required"):c=yd[u]().typeError(`Field must be of type ${u}`).nullable(!0)}catch(h){console.log(h)}return n[s]=c,n},{});return qi().shape(t)},vd=e=>e?{...e,add:{columns:e.add_columns,title:e.add_title,schema:gl(e.add_columns),defaultValues:qa(e.add_columns)},edit:{columns:e.edit_columns,title:e.edit_title,schema:gl(e.edit_columns),defaultValues:qa(e.edit_columns)}}:null,Zb={columns:[],filters:[],page:0,page_size:25};function Ki(e,t={}){return Object.entries(t).reduce((n,[o,s])=>s==null?(delete n[o],n):{...n,[o]:s},e||Zb)}function bd({path:e,initialQueryParams:t,relation:n,fetchInfo:o=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:u=!0,infoQueryProps:c,dataQueryProps:h,streaming:p=!1}){const[y,m]=x.useState(t?Ki(null,t):null),_=x.useRef(e),C=x.useMemo(()=>(_.current=e,n?{...y,filters:[...y.filters,{col:n.foreign_key,opr:n.type,value:xt(n.id)}]}:y),[n,y]),E=x.useCallback(Z=>m(R=>{if(typeof Z=="function"&&(Z=Z(R)),!R)return Ki(null,Z);const Y=Ki({...R},Z);if(Z&&((Z.filters||Z.order_column||Z.order_direction)&&!Z.page&&(Y.page=0),p)){if(Z.page&&Z.page!==R.page&&!Z.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(Z.page_size&&Z.page_size!==R.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return Y}),[p]),[w,$]=x.useState(null),N=x.useMemo(()=>w,[w]),Q=x.useCallback(()=>$(null),[]),{data:H,isFetching:B,refetch:D,error:k}=Ln.useQuery({queryKey:[`info-${e}`],queryFn:({signal:Z})=>Wf(it(e,"_info"),Z).then(R=>({...vd(R),path:e})),placeholderData:s?null:Ln.keepPreviousData,enabled:o,retry:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...c}),{data:G,isFetching:ae,refetch:ie,error:S}=Ln.useQuery({queryKey:[`data-${_.current}`,JSON.stringify(C)],queryFn:({signal:Z})=>C?Gf(it(_.current,"/"),C,Z).then(R=>({...R,result:R.result.map((Y,ee)=>({...Y,id:R.ids[ee]})),path:_.current})):null,placeholderData:a?null:Ln.keepPreviousData,retry:!1,...h});x.useEffect(()=>{if(k){$({message:"Couldn't fetch info",originalError:k});return}if(S){$({message:"Couldn't fetch list",originalError:S});return}Q()},[k,S,Q]);const U=x.useMemo(()=>B||ae,[B,ae]);Ze.useDidUpdate(()=>{if(!u)return;const Z=Ki(null,t);y!=null&&y.page_size&&(Z.page_size=y.page_size),E(Z)},[e]);const ne=x.useCallback(async Z=>{try{const R=await Vf(e,xt(Z));return Q(),R}catch(R){$({message:`Couldn't fetch item with id ${Z}`,originalError:R})}},[e,Q]),fe=x.useCallback(async(Z,R)=>{try{const Y=await zf(e,Z);return R||(D(),ie()),Q(),Y}catch(Y){$({message:"Couldn't add item",originalError:Y})}},[ie,D,e,Q]),ye=x.useCallback(async(Z,R,Y)=>{try{const ee=await Hf(e,xt(Z),R);return Y||(D(),ie()),Q(),ee}catch(ee){$({message:`Couldn't update item with id ${Z}`,originalError:ee})}},[ie,D,e,Q]),Me=x.useCallback(async(Z,R)=>{try{const Y=await Uf(e,xt(Z));return R||(D(),ie()),Q(),Y}catch(Y){$({message:`Couldn't delete item with id ${Z}`,originalError:Y})}},[ie,D,e,Q]),we=x.useCallback(async(Z,R)=>{try{await jf(e,C,Z,R)}catch(Y){$({message:"Couldn't download",originalError:Y})}},[e,C]),Le=x.useCallback(async(Z,R)=>{try{return await Yf(e,C,Z,R)}catch(Y){$({message:"Couldn't upload",originalError:Y})}},[e,C]),[Ie,lt]=Ze.useSetState({data:{},isEnd:!1,fetch:()=>null});x.useEffect(()=>{p&&lt({fetch:()=>E({page:0,streaming:!0})})},[E,lt,p]),x.useEffect(()=>{p&&G&&lt(Z=>{let R=Object.keys(Z.data).length;const Y={isEnd:!1};return C.page<R?(R=C.page,Y.data={[C.page]:G.result}):Y.data={...Z.data,[C.page]:G.result},G.result.length<C.page_size?(Y.isEnd=!0,Y.fetch=()=>null):Y.fetch=()=>E({page:R+1,streaming:!0}),Y})},[G,E,lt,p]);const q=x.useMemo(()=>{const Z={all:"all",actions:"actions"};return G==null||G.list_columns.forEach(R=>{Z[R]&&(Z[R]=`_${R}`)}),Z},[G==null?void 0:G.list_columns]),K=x.useCallback(()=>C?ie():E(),[ie,C,E]);return{path:e,data:G,info:H,queryParams:C,loading:U,error:N,streaming:Ie,specialKey:q,setQueryParams:E,refetch:K,refetchInfo:D,getEntry:ne,addEntry:fe,updateEntry:ye,deleteEntry:Me,download:we,upload:Le,resetError:Q}}const _d=({path:e,refetch:t})=>{const[n,o]=x.useState([]),[s,a]=x.useState(null),u=x.useCallback(async(h,p)=>{try{a(null);const y=await qf(e,h,n);return p||t(),y}catch(y){console.error(y),a({message:"Couldn't perform bulk action",originalError:y})}},[e,t,n]);return{bulkActions:x.useMemo(()=>({selectedIds:n,setSelectedIds:o}),[n,o]),dispatchBulkActions:u,error:s}},mt={NORMAL:"normal",FULL_SCREEN:"fullScreen",OVERLAY:"overlay"},ml=()=>{const[e]=x.useState(()=>Tf.create(t=>({opened:!1,setOpened:n=>t({opened:n}),view:mt.NORMAL,setView:n=>t({view:n}),state:Uo,setState:n=>t({state:n}),reset:()=>t({state:Uo}),item:void 0,itemLoading:!1,setItem:n=>t({item:n,itemLoading:!1}),setItemLoading:n=>t({itemLoading:n})})));return e};function Td({resource_name:e="",initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,children:p,streaming:y}){const{baseUrl:m}=Of(),_=bd({path:it(m,e),initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,streaming:y}),C=Yi(_),E=_d(C),w=Yi(E),$=ml(),[N]=x.useState(()=>zo($)),Q=ml(),[H]=x.useState(()=>zo(Q));return d.jsx(Ba.Provider,{value:C,children:d.jsx(Ga.Provider,{value:w,children:d.jsx(Ha.Provider,{value:N,children:d.jsx(Ya.Provider,{value:H,children:p})})})})}/**
4
+ `+(c!==u?`result of cast: ${c}`:""))}return a}_cast(t,n){let o=t===void 0?t:this.transforms.reduce((s,a)=>a.call(this,s,t,this),t);return o===void 0&&(o=this.getDefault(n)),o}_validate(t,n={},o,s){let{path:a,originalValue:u=t,strict:c=this.spec.strict}=n,h=t;c||(h=this._cast(h,Object.assign({assert:!1},n)));let p=[];for(let m of Object.values(this.internalTests))m&&p.push(m);this.runTests({path:a,value:h,originalValue:u,options:n,tests:p},o,m=>{if(m.length)return s(m,h);this.runTests({path:a,value:h,originalValue:u,options:n,tests:this.tests},o,s)})}runTests(t,n,o){let s=!1,{tests:a,value:u,originalValue:c,path:h,options:p}=t,m=w=>{s||(s=!0,n(w,u))},y=w=>{s||(s=!0,o(w,u))},_=a.length,C=[];if(!_)return y([]);let E={value:u,originalValue:c,path:h,options:p,schema:this};for(let w=0;w<a.length;w++){const $=a[w];$(E,m,function(Q){Q&&(Array.isArray(Q)?C.push(...Q):C.push(Q)),--_<=0&&y(C)})}}asNestedTest({key:t,index:n,parent:o,parentPath:s,originalParent:a,options:u}){const c=t??n;if(c==null)throw TypeError("Must include `key` or `index` for nested validations");const h=typeof c=="number";let p=o[c];const m=Object.assign({},u,{strict:!0,parent:o,value:p,originalValue:a[c],key:void 0,[h?"index":"key"]:c,path:h||c.includes(".")?`${s||""}[${h?c:`"${c}"`}]`:(s?`${s}.`:"")+t});return(y,_,C)=>this.resolve(m)._validate(p,m,_,C)}validate(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return new Promise((u,c)=>s._validate(t,n,(h,p)=>{wt.isError(h)&&(h.value=p),c(h)},(h,p)=>{h.length?c(new wt(h,p,void 0,void 0,a)):u(p)}))}validateSync(t,n){var o;let s=this.resolve(Object.assign({},n,{value:t})),a,u=(o=n==null?void 0:n.disableStackTrace)!=null?o:s.spec.disableStackTrace;return s._validate(t,Object.assign({},n,{sync:!0}),(c,h)=>{throw wt.isError(c)&&(c.value=h),c},(c,h)=>{if(c.length)throw new wt(c,t,void 0,void 0,u);a=h}),a}isValid(t,n){return this.validate(t,n).then(()=>!0,o=>{if(wt.isError(o))return!1;throw o})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(o){if(wt.isError(o))return!1;throw o}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):ri(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const o=this.clone({nullable:t});return o.internalTests.nullable=ni({message:n,name:"nullable",test(s){return s===null?this.schema.spec.nullable:!0}}),o}optionality(t,n){const o=this.clone({optional:t});return o.internalTests.optionality=ni({message:n,name:"optionality",test(s){return s===void 0?this.schema.spec.optional:!0}}),o}optional(){return this.optionality(!0)}defined(t=On.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=On.notNull){return this.nullability(!1,t)}required(t=On.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=On.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let o=this.clone(),s=ni(n),a=n.exclusive||n.name&&o.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(o.exclusiveTests[n.name]=!!n.exclusive),o.tests=o.tests.filter(u=>!(u.OPTIONS.name===n.name&&(a||u.OPTIONS.test===s.OPTIONS.test))),o.tests.push(s),o}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let o=this.clone(),s=td(t).map(a=>new sr(a));return s.forEach(a=>{a.isSibling&&o.deps.push(a.key)}),o.conditions.push(typeof n=="function"?new Yo(s,n):Yo.fromOptions(s,n)),o}typeError(t){let n=this.clone();return n.internalTests.typeError=ni({message:t,name:"typeError",skipAbsent:!0,test(o){return this.schema._typeCheck(o)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=On.oneOf){let o=this.clone();return t.forEach(s=>{o._whitelist.add(s),o._blacklist.delete(s)}),o.internalTests.whiteList=ni({message:n,name:"oneOf",skipAbsent:!0,test(s){let a=this.schema._whitelist,u=a.resolveAll(this.resolve);return u.includes(s)?!0:this.createError({params:{values:Array.from(a).join(", "),resolved:u}})}}),o}notOneOf(t,n=On.notOneOf){let o=this.clone();return t.forEach(s=>{o._blacklist.add(s),o._whitelist.delete(s)}),o.internalTests.blacklist=ni({message:n,name:"notOneOf",test(s){let a=this.schema._blacklist,u=a.resolveAll(this.resolve);return u.includes(s)?this.createError({params:{values:Array.from(a).join(", "),resolved:u}}):!0}}),o}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:o,meta:s,optional:a,nullable:u}=n.spec;return{meta:s,label:o,optional:a,nullable:u,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(h=>({name:h.OPTIONS.name,params:h.OPTIONS.params})).filter((h,p,m)=>m.findIndex(y=>y.name===h.name)===p)}}}It.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])It.prototype[`${e}At`]=function(t,n,o={}){const{parent:s,parentPath:a,schema:u}=il(this,t,n,o.context);return u[e](s&&s[a],Object.assign({},o,{parent:s,path:t}))};for(const e of["equals","is"])It.prototype[e]=It.prototype.oneOf;for(const e of["not","nope"])It.prototype[e]=It.prototype.notOneOf;const Mb=()=>!0;function Jo(e){return new ol(e)}class ol extends It{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:Mb},t))}}Jo.prototype=ol.prototype;function sl(){return new al}class al extends It{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(o.spec.coerce&&!o.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=rl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return vn(n)||n===!0}})}isFalse(t=rl.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return vn(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}sl.prototype=al.prototype;const Fb=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Db(e){const t=ll(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function ll(e){var t,n;const o=Fb.exec(e);return o?{year:jn(o[1]),month:jn(o[2],1)-1,day:jn(o[3],1),hour:jn(o[4]),minute:jn(o[5]),second:jn(o[6]),millisecond:o[7]?jn(o[7].substring(0,3)):0,precision:(t=(n=o[7])==null?void 0:n.length)!=null?t:void 0,z:o[8]||void 0,plusMinus:o[9]||void 0,hourOffset:jn(o[10]),minuteOffset:jn(o[11])}:null}function jn(e,t=0){return Number(e)||t}let kb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Nb=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Lb=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Bb="^\\d{4}-\\d{2}-\\d{2}",zb="\\d{2}:\\d{2}:\\d{2}",Ub="(([+-]\\d{2}(:?\\d{2})?)|Z)",jb=new RegExp(`${Bb}T${zb}(\\.\\d+)?${Ub}$`),Wb=e=>vn(e)||e===e.trim(),Vb={}.toString();function Ro(){return new ul}class ul extends It{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce||o.isType(t)||Array.isArray(t))return t;const s=t!=null&&t.toString?t.toString():t;return s===Vb?t:s})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||On.required,name:"required",skipAbsent:!0,test:o=>!!o.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=jt.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n=jt.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n=jt.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}matches(t,n){let o=!1,s,a;return n&&(typeof n=="object"?{excludeEmptyString:o=!1,message:s,name:a}=n:s=n),this.test({name:a||"matches",message:s||jt.matches,params:{regex:t},skipAbsent:!0,test:u=>u===""&&o||u.search(t)!==-1})}email(t=jt.email){return this.matches(kb,{name:"email",message:t,excludeEmptyString:!0})}url(t=jt.url){return this.matches(Nb,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=jt.uuid){return this.matches(Lb,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",o,s;return t&&(typeof t=="object"?{message:n="",allowOffset:o=!1,precision:s=void 0}=t:n=t),this.matches(jb,{name:"datetime",message:n||jt.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||jt.datetime_offset,params:{allowOffset:o},skipAbsent:!0,test:a=>{if(!a||o)return!0;const u=ll(a);return u?!!u.z:!1}}).test({name:"datetime_precision",message:n||jt.datetime_precision,params:{precision:s},skipAbsent:!0,test:a=>{if(!a||s==null)return!0;const u=ll(a);return u?u.precision===s:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=jt.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Wb})}lowercase(t=jt.lowercase){return this.transform(n=>vn(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toLowerCase()})}uppercase(t=jt.uppercase){return this.transform(n=>vn(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vn(n)||n===n.toUpperCase()})}}Ro.prototype=ul.prototype;let Gb=e=>e!=+e;function ld(){return new cl}class cl extends It{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Gb(t)}}),this.withMutation(()=>{this.transform((t,n,o)=>{if(!o.spec.coerce)return t;let s=t;if(typeof s=="string"){if(s=s.replace(/\s/g,""),s==="")return NaN;s=+s}return o.isType(s)||s===null?s:parseFloat(s)})})}min(t,n=or.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(t)}})}max(t,n=or.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(t)}})}lessThan(t,n=or.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(o){return o<this.resolve(t)}})}moreThan(t,n=or.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(o){return o>this.resolve(t)}})}positive(t=or.positive){return this.moreThan(0,t)}negative(t=or.negative){return this.lessThan(0,t)}integer(t=or.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>vn(t)?t:t|0)}round(t){var n;let o=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(o.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+o.join(", "));return this.transform(s=>vn(s)?s:Math[t](s))}}ld.prototype=cl.prototype;let ud=new Date(""),Hb=e=>Object.prototype.toString.call(e)==="[object Date]";function fl(){return new ii}class ii extends It{constructor(){super({type:"date",check(t){return Hb(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,o)=>!o.spec.coerce||o.isType(t)||t===null?t:(t=Db(t),isNaN(t)?ii.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let o;if(sr.isRef(t))o=t;else{let s=this.cast(t);if(!this._typeCheck(s))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);o=s}return o}min(t,n=nl.min){let o=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(s){return s>=this.resolve(o)}})}max(t,n=nl.max){let o=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(s){return s<=this.resolve(o)}})}}ii.INVALID_DATE=ud,fl.prototype=ii.prototype,fl.INVALID_DATE=ud;function Yb(e,t=[]){let n=[],o=new Set,s=new Set(t.map(([u,c])=>`${u}-${c}`));function a(u,c){let h=Fr.split(u)[0];o.add(h),s.has(`${c}-${h}`)||n.push([c,h])}for(const u of Object.keys(e)){let c=e[u];o.add(u),sr.isRef(c)&&c.isSibling?a(c.path,u):Dr(c)&&"deps"in c&&c.deps.forEach(h=>a(h,u))}return wb.array(Array.from(o),n).reverse()}function cd(e,t){let n=1/0;return e.some((o,s)=>{var a;if((a=t.path)!=null&&a.includes(o))return n=s,!0}),n}function fd(e){return(t,n)=>cd(e,t)-cd(e,n)}const dd=(e,t,n)=>{if(typeof e!="string")return e;let o=e;try{o=JSON.parse(e)}catch{}return n.isType(o)?o:e};function Zo(e){if("fields"in e){const t={};for(const[n,o]of Object.entries(e.fields))t[n]=Zo(o);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Zo(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Zo)}):"optional"in e?e.optional():e}const qb=(e,t)=>{const n=[...Fr.normalizePath(t)];if(n.length===1)return n[0]in e;let o=n.pop(),s=Fr.getter(Fr.join(n),!0)(e);return!!(s&&o in s)};let hd=e=>Object.prototype.toString.call(e)==="[object Object]";function pd(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(o=>n.indexOf(o)===-1)}const Kb=fd([]);function Ki(e){return new dl(e)}class dl extends It{constructor(t){super({type:"object",check(n){return hd(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Kb,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var o;let s=super._cast(t,n);if(s===void 0)return this.getDefault(n);if(!this._typeCheck(s))return s;let a=this.fields,u=(o=n.stripUnknown)!=null?o:this.spec.noUnknown,c=[].concat(this._nodes,Object.keys(s).filter(y=>!this._nodes.includes(y))),h={},p=Object.assign({},n,{parent:h,__validating:n.__validating||!1}),m=!1;for(const y of c){let _=a[y],C=y in s;if(_){let E,w=s[y];p.path=(n.path?`${n.path}.`:"")+y,_=_.resolve({value:w,context:n.context,parent:h});let $=_ instanceof It?_.spec:void 0,N=$==null?void 0:$.strict;if($!=null&&$.strip){m=m||y in s;continue}E=!n.__validating||!N?_.cast(s[y],p):s[y],E!==void 0&&(h[y]=E)}else C&&!u&&(h[y]=s[y]);(C!==y in h||h[y]!==s[y])&&(m=!0)}return m?h:s}_validate(t,n={},o,s){let{from:a=[],originalValue:u=t,recursive:c=this.spec.recursive}=n;n.from=[{schema:this,value:u},...a],n.__validating=!0,n.originalValue=u,super._validate(t,n,o,(h,p)=>{if(!c||!hd(p)){s(h,p);return}u=u||p;let m=[];for(let y of this._nodes){let _=this.fields[y];!_||sr.isRef(_)||m.push(_.asNestedTest({options:n,key:y,parent:p,parentPath:n.path,originalParent:u}))}this.runTests({tests:m,value:p,originalValue:u,options:n},o,y=>{s(y.sort(this._sortErrors).concat(h),p)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),o=n.fields;for(let[s,a]of Object.entries(this.fields)){const u=o[s];o[s]=u===void 0?a:u}return n.withMutation(s=>s.setFields(o,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(o=>{var s;const a=this.fields[o];let u=t;(s=u)!=null&&s.value&&(u=Object.assign({},u,{parent:u.value,value:u.value[o]})),n[o]=a&&"getDefault"in a?a.getDefault(u):void 0}),n}setFields(t,n){let o=this.clone();return o.fields=t,o._nodes=Yb(t,n),o._sortErrors=fd(Object.keys(t)),n&&(o._excludedEdges=n),o}shape(t,n=[]){return this.clone().withMutation(o=>{let s=o._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),s=[...o._excludedEdges,...n]),o.setFields(Object.assign(o.fields,t),s)})}partial(){const t={};for(const[n,o]of Object.entries(this.fields))t[n]="optional"in o&&o.optional instanceof Function?o.optional():o;return this.setFields(t)}deepPartial(){return Zo(this)}pick(t){const n={};for(const o of t)this.fields[o]&&(n[o]=this.fields[o]);return this.setFields(n,this._excludedEdges.filter(([o,s])=>t.includes(o)&&t.includes(s)))}omit(t){const n=[];for(const o of Object.keys(this.fields))t.includes(o)||n.push(o);return this.pick(n)}from(t,n,o){let s=Fr.getter(t,!0);return this.transform(a=>{if(!a)return a;let u=a;return qb(a,t)&&(u=Object.assign({},a),o||delete u[t],u[n]=s(a)),u})}json(){return this.transform(dd)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||Go.exact,test(n){if(n==null)return!0;const o=pd(this.schema,n);return o.length===0||this.createError({params:{properties:o.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=Go.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let o=this.test({name:"noUnknown",exclusive:!0,message:n,test(s){if(s==null)return!0;const a=pd(this.schema,s);return!t||a.length===0||this.createError({params:{unknown:a.join(", ")}})}});return o.spec.noUnknown=t,o}unknown(t=!0,n=Go.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const o={};for(const s of Object.keys(n))o[t(s)]=n[s];return o})}camelCase(){return this.transformKeys(el.camelCase)}snakeCase(){return this.transformKeys(el.snakeCase)}constantCase(){return this.transformKeys(t=>el.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);o.fields={};for(const[a,u]of Object.entries(n.fields)){var s;let c=t;(s=c)!=null&&s.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),o.fields[a]=u.describe(c)}return o}}Ki.prototype=dl.prototype;function hl(e){return new pl(e)}class pl extends It{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const o=super._cast(t,n);if(!this._typeCheck(o)||!this.innerType)return o;let s=!1;const a=o.map((u,c)=>{const h=this.innerType.cast(u,Object.assign({},n,{path:`${n.path||""}[${c}]`}));return h!==u&&(s=!0),h});return s?a:o}_validate(t,n={},o,s){var a;let u=this.innerType,c=(a=n.recursive)!=null?a:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,o,(h,p)=>{var m;if(!c||!u||!this._typeCheck(p)){s(h,p);return}let y=new Array(p.length);for(let C=0;C<p.length;C++){var _;y[C]=u.asNestedTest({options:n,index:C,parent:p,parentPath:n.path,originalParent:(_=n.originalValue)!=null?_:t})}this.runTests({value:p,tests:y,originalValue:(m=n.originalValue)!=null?m:t,options:n},o,C=>s(C.concat(h),p))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(dd)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Dr(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+An(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=Ho.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(o){return o.length===this.resolve(t)}})}min(t,n){return n=n||Ho.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o.length>=this.resolve(t)}})}max(t,n){return n=n||Ho.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(o,s,a)=>!t(o,s,a):o=>!!o;return this.transform(o=>o!=null?o.filter(n):o)}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);if(n.innerType){var s;let a=t;(s=a)!=null&&s.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[0]})),o.innerType=n.innerType.describe(a)}return o}}hl.prototype=pl.prototype;function gd(e){return new gl(e)}class gl extends It{constructor(t){super({type:"tuple",spec:{types:t},check(n){const o=this.spec.types;return Array.isArray(n)&&n.length===o.length}}),this.withMutation(()=>{this.typeError(sd.notType)})}_cast(t,n){const{types:o}=this.spec,s=super._cast(t,n);if(!this._typeCheck(s))return s;let a=!1;const u=o.map((c,h)=>{const p=c.cast(s[h],Object.assign({},n,{path:`${n.path||""}[${h}]`}));return p!==s[h]&&(a=!0),p});return a?u:s}_validate(t,n={},o,s){let a=this.spec.types;super._validate(t,n,o,(u,c)=>{var h;if(!this._typeCheck(c)){s(u,c);return}let p=[];for(let[y,_]of a.entries()){var m;p[y]=_.asNestedTest({options:n,index:y,parent:c,parentPath:n.path,originalParent:(m=n.originalValue)!=null?m:t})}this.runTests({value:c,tests:p,originalValue:(h=n.originalValue)!=null?h:t,options:n},o,y=>s(y.concat(u),c))})}describe(t){const n=(t?this.resolve(t):this).clone(),o=super.describe(t);return o.innerType=n.spec.types.map((s,a)=>{var u;let c=t;return(u=c)!=null&&u.value&&(c=Object.assign({},c,{parent:c.value,value:c.value[a]})),s.describe(c)}),o}}gd.prototype=gl.prototype;function Jb(e){return new Xo(e)}function md(e){try{return e()}catch(t){if(wt.isError(t))return Promise.reject(t);throw t}}class Xo{constructor(t){this.type="lazy",this.__isYupSchema__=!0,this.spec=void 0,this._resolve=(n,o={})=>{let s=this.builder(n,o);if(!Dr(s))throw new TypeError("lazy() functions must return a valid schema");return this.spec.optional&&(s=s.optional()),s.resolve(o)},this.builder=t,this.spec={meta:void 0,optional:!1}}clone(t){const n=new Xo(this.builder);return n.spec=Object.assign({},this.spec,t),n}optionality(t){return this.clone({optional:t})}optional(){return this.optionality(!0)}resolve(t){return this._resolve(t.value,t)}cast(t,n){return this._resolve(t,n).cast(t,n)}asNestedTest(t){let{key:n,index:o,parent:s,options:a}=t,u=s[o??n];return this._resolve(u,Object.assign({},a,{value:u,parent:s})).asNestedTest(t)}validate(t,n){return md(()=>this._resolve(t,n).validate(t,n))}validateSync(t,n){return this._resolve(t,n).validateSync(t,n)}validateAt(t,n,o){return md(()=>this._resolve(n,o).validateAt(t,n,o))}validateSyncAt(t,n,o){return this._resolve(n,o).validateSyncAt(t,n,o)}isValid(t,n){try{return this._resolve(t,n).isValid(t,n)}catch(o){if(wt.isError(o))return Promise.resolve(!1);throw o}}isValidSync(t,n){return this._resolve(t,n).isValidSync(t,n)}describe(t){return t?this.resolve(t).describe(t):{type:"lazy",meta:this.spec.meta,label:void 0}}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}}function Rb(e){Object.keys(e).forEach(t=>{Object.keys(e[t]).forEach(n=>{ad[t][n]=e[t][n]})})}function Zb(e,t,n){if(!e||!Dr(e.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof t!="string")throw new TypeError("A Method name must be provided");if(typeof n!="function")throw new TypeError("Method function must be provided");e.prototype[t]=n}const yd=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:pl,BooleanSchema:al,DateSchema:ii,LazySchema:Xo,MixedSchema:ol,NumberSchema:cl,ObjectSchema:dl,Schema:It,StringSchema:ul,TupleSchema:gl,ValidationError:wt,addMethod:Zb,array:hl,bool:sl,boolean:sl,date:fl,defaultLocale:ad,getIn:il,isSchema:Dr,lazy:Jb,mixed:Jo,number:ld,object:Ki,printValue:An,reach:$b,ref:Pb,setLocale:Rb,string:Ro,tuple:gd},Symbol.toStringTag,{value:"Module"})),ml=e=>{const t=e.reduce((n,o)=>{let{name:s,required:a,type:u}=o;switch(u){case"RelatedList":u="array";break;case"Integer":case"Float":u="number";break;case"Related":case"Geometry":case"Raw":u="mixed";break;default:u="string"}let c;try{a?c=yd[u]().typeError(`Field must be of type ${u}`).required("Field is required"):c=yd[u]().typeError(`Field must be of type ${u}`).nullable(!0)}catch(h){console.log(h)}return n[s]=c,n},{});return Ki().shape(t)},vd=e=>e?{...e,add:{columns:e.add_columns,title:e.add_title,schema:ml(e.add_columns),defaultValues:Ka(e.add_columns)},edit:{columns:e.edit_columns,title:e.edit_title,schema:ml(e.edit_columns),defaultValues:Ka(e.edit_columns)}}:null,Xb={columns:[],filters:[],page:0,page_size:25};function Ji(e,t={}){return Object.entries(t).reduce((n,[o,s])=>s==null?(delete n[o],n):{...n,[o]:s},e||Xb)}function bd({path:e,initialQueryParams:t,relation:n,fetchInfo:o=!0,clearInfoOnRefetch:s=!1,clearDataOnRefetch:a=!1,resetQueryParamsOnPathChange:u=!0,infoQueryProps:c,dataQueryProps:h,streaming:p=!1}){const[m,y]=x.useState(t?Ji(null,t):null),_=x.useRef(e),C=x.useMemo(()=>(_.current=e,n?{...m,filters:[...m.filters,{col:n.foreign_key,opr:n.type,value:xt(n.id)}]}:m),[n,m]),E=x.useCallback(Z=>y(R=>{if(typeof Z=="function"&&(Z=Z(R)),!R)return Ji(null,Z);const Y=Ji({...R},Z);if(Z&&((Z.filters||Z.order_column||Z.order_direction)&&!Z.page&&(Y.page=0),p)){if(Z.page&&Z.page!==R.page&&!Z.streaming)throw new Error("You cannot change page in streaming mode, use streaming.fetch() instead");if(Z.page_size&&Z.page_size!==R.page_size)throw new Error("You cannot change page size in streaming mode, use streaming.fetch() instead")}return Y}),[p]),[w,$]=x.useState(null),N=x.useMemo(()=>w,[w]),Q=x.useCallback(()=>$(null),[]),{data:H,isFetching:B,refetch:D,error:k}=Ln.useQuery({queryKey:[`info-${e}`],queryFn:({signal:Z})=>Wf(it(e,"_info"),Z).then(R=>({...vd(R),path:e})),placeholderData:s?null:Ln.keepPreviousData,enabled:o,retry:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...c}),{data:G,isFetching:ae,refetch:ie,error:S}=Ln.useQuery({queryKey:[`data-${_.current}`,JSON.stringify(C)],queryFn:({signal:Z})=>C?Gf(it(_.current,"/"),C,Z).then(R=>({...R,result:R.result.map((Y,ee)=>({...Y,id:R.ids[ee]})),path:_.current})):null,placeholderData:a?null:Ln.keepPreviousData,retry:!1,...h});x.useEffect(()=>{if(k){$({message:"Couldn't fetch info",originalError:k});return}if(S){$({message:"Couldn't fetch list",originalError:S});return}Q()},[k,S,Q]);const U=x.useMemo(()=>B||ae,[B,ae]);Ze.useDidUpdate(()=>{if(!u)return;const Z=Ji(null,t);m!=null&&m.page_size&&(Z.page_size=m.page_size),y(Z)},[e]);const ne=x.useCallback(async Z=>{try{const R=await Vf(e,xt(Z));return Q(),R}catch(R){$({message:`Couldn't fetch item with id ${Z}`,originalError:R})}},[e,Q]),fe=x.useCallback(async(Z,R)=>{try{const Y=await zf(e,Z);return R||(D(),ie()),Q(),Y}catch(Y){$({message:"Couldn't add item",originalError:Y})}},[ie,D,e,Q]),ye=x.useCallback(async(Z,R,Y)=>{try{const ee=await Hf(e,xt(Z),R);return Y||(D(),ie()),Q(),ee}catch(ee){$({message:`Couldn't update item with id ${Z}`,originalError:ee})}},[ie,D,e,Q]),Me=x.useCallback(async(Z,R)=>{try{const Y=await Uf(e,xt(Z));return R||(D(),ie()),Q(),Y}catch(Y){$({message:`Couldn't delete item with id ${Z}`,originalError:Y})}},[ie,D,e,Q]),we=x.useCallback(async({label:Z,export_mode:R,delimiter:Y})=>{try{await jf(e,C,{label:Z,export_mode:R,delimiter:Y})}catch(ee){$({message:"Couldn't download",originalError:ee})}},[e,C]),Le=x.useCallback(async(Z,{delimiter:R})=>{try{return await Yf(e,Z,{delimiter:R})}catch(Y){$({message:"Couldn't upload",originalError:Y})}},[e]),[Ie,lt]=Ze.useSetState({data:{},isEnd:!1,fetch:()=>null});x.useEffect(()=>{p&&lt({fetch:()=>E({page:0,streaming:!0})})},[E,lt,p]),x.useEffect(()=>{p&&G&&lt(Z=>{let R=Object.keys(Z.data).length;const Y={isEnd:!1};return C.page<R?(R=C.page,Y.data={[C.page]:G.result}):Y.data={...Z.data,[C.page]:G.result},G.result.length<C.page_size?(Y.isEnd=!0,Y.fetch=()=>null):Y.fetch=()=>E({page:R+1,streaming:!0}),Y})},[G,E,lt,p]);const q=x.useMemo(()=>{const Z={all:"all",actions:"actions"};return G==null||G.list_columns.forEach(R=>{Z[R]&&(Z[R]=`_${R}`)}),Z},[G==null?void 0:G.list_columns]),K=x.useCallback(()=>C?ie():E(),[ie,C,E]);return{path:e,data:G,info:H,queryParams:C,loading:U,error:N,streaming:Ie,specialKey:q,setQueryParams:E,refetch:K,refetchInfo:D,getEntry:ne,addEntry:fe,updateEntry:ye,deleteEntry:Me,download:we,upload:Le,resetError:Q}}const _d=({path:e,refetch:t})=>{const[n,o]=x.useState([]),[s,a]=x.useState(null),u=x.useCallback(async(h,p)=>{try{a(null);const m=await qf(e,h,n);return p||t(),m}catch(m){console.error(m),a({message:"Couldn't perform bulk action",originalError:m})}},[e,t,n]);return{bulkActions:x.useMemo(()=>({selectedIds:n,setSelectedIds:o}),[n,o]),dispatchBulkActions:u,error:s}},mt={NORMAL:"normal",FULL_SCREEN:"fullScreen",OVERLAY:"overlay"},yl=()=>{const[e]=x.useState(()=>wf.create(t=>({opened:!1,setOpened:n=>t({opened:n}),view:mt.NORMAL,setView:n=>t({view:n}),state:jo,setState:n=>t({state:n}),reset:()=>t({state:jo}),item:void 0,itemLoading:!1,setItem:n=>t({item:n,itemLoading:!1}),setItemLoading:n=>t({itemLoading:n})})));return e};function Td({resource_name:e="",initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,children:p,streaming:m}){const{baseUrl:y}=Of(),_=bd({path:it(y,e),initialQueryParams:t,relation:n,fetchInfo:o,clearInfoOnRefetch:s,clearDataOnRefetch:a,resetQueryParamsOnPathChange:u,infoQueryProps:c,dataQueryProps:h,streaming:m}),C=qi(_),E=_d(C),w=qi(E),$=yl(),[N]=x.useState(()=>Uo($)),Q=yl(),[H]=x.useState(()=>Uo(Q));return d.jsx(za.Provider,{value:C,children:d.jsx(Ha.Provider,{value:w,children:d.jsx(Ya.Provider,{value:N,children:d.jsx(qa.Provider,{value:H,children:p})})})})}/**
5
5
  * @license @tabler/icons-react v3.31.0 - MIT
6
6
  *
7
7
  * This source code is licensed under the MIT license.
8
8
  * See the LICENSE file in the root directory of this source tree.
9
- */var Xb={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
9
+ */var Qb={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/**
10
10
  * @license @tabler/icons-react v3.31.0 - MIT
11
11
  *
12
12
  * This source code is licensed under the MIT license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
- */const ot=(e,t,n,o)=>{const s=x.forwardRef(({color:a="currentColor",size:u=24,stroke:c=2,title:h,className:p,children:y,...m},_)=>x.createElement("svg",{ref:_,...Xb[e],width:u,height:u,className:["tabler-icon",`tabler-icon-${t}`,p].join(" "),strokeWidth:c,stroke:a,...m},[h&&x.createElement("title",{key:"svg-title"},h),...o.map(([C,E])=>x.createElement(C,E)),...Array.isArray(y)?y:[y]]));return s.displayName=`${n}`,s};/**
14
+ */const ot=(e,t,n,o)=>{const s=x.forwardRef(({color:a="currentColor",size:u=24,stroke:c=2,title:h,className:p,children:m,...y},_)=>x.createElement("svg",{ref:_,...Qb[e],width:u,height:u,className:["tabler-icon",`tabler-icon-${t}`,p].join(" "),strokeWidth:c,stroke:a,...y},[h&&x.createElement("title",{key:"svg-title"},h),...o.map(([C,E])=>x.createElement(C,E)),...Array.isArray(m)?m:[m]]));return s.displayName=`${n}`,s};/**
15
15
  * @license @tabler/icons-react v3.31.0 - MIT
16
16
  *
17
17
  * This source code is licensed under the MIT license.
18
18
  * See the LICENSE file in the root directory of this source tree.
19
- */var Qb=ot("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
19
+ */var e1=ot("outline","alert-circle","IconAlertCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]]);/**
20
20
  * @license @tabler/icons-react v3.31.0 - MIT
21
21
  *
22
22
  * This source code is licensed under the MIT license.
23
23
  * See the LICENSE file in the root directory of this source tree.
24
- */var e1=ot("outline","app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]);/**
24
+ */var t1=ot("outline","app-window","IconAppWindow",[["path",{d:"M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M6 8h.01",key:"svg-1"}],["path",{d:"M9 8h.01",key:"svg-2"}]]);/**
25
25
  * @license @tabler/icons-react v3.31.0 - MIT
26
26
  *
27
27
  * This source code is licensed under the MIT license.
28
28
  * See the LICENSE file in the root directory of this source tree.
29
- */var yl=ot("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
29
+ */var vl=ot("outline","chevron-down","IconChevronDown",[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]]);/**
30
30
  * @license @tabler/icons-react v3.31.0 - MIT
31
31
  *
32
32
  * This source code is licensed under the MIT license.
@@ -36,27 +36,27 @@ attempted value: ${u}
36
36
  *
37
37
  * This source code is licensed under the MIT license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
- */var t1=ot("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
39
+ */var n1=ot("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]]);/**
40
40
  * @license @tabler/icons-react v3.31.0 - MIT
41
41
  *
42
42
  * This source code is licensed under the MIT license.
43
43
  * See the LICENSE file in the root directory of this source tree.
44
- */var n1=ot("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
44
+ */var r1=ot("outline","exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]);/**
45
45
  * @license @tabler/icons-react v3.31.0 - MIT
46
46
  *
47
47
  * This source code is licensed under the MIT license.
48
48
  * See the LICENSE file in the root directory of this source tree.
49
- */var r1=ot("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
49
+ */var i1=ot("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);/**
50
50
  * @license @tabler/icons-react v3.31.0 - MIT
51
51
  *
52
52
  * This source code is licensed under the MIT license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */var i1=ot("outline","file-type-csv","IconFileTypeCsv",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4",key:"svg-1"}],["path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0",key:"svg-2"}],["path",{d:"M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75",key:"svg-3"}],["path",{d:"M16 15l2 6l2 -6",key:"svg-4"}]]);/**
54
+ */var o1=ot("outline","file-type-csv","IconFileTypeCsv",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4",key:"svg-1"}],["path",{d:"M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0",key:"svg-2"}],["path",{d:"M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75",key:"svg-3"}],["path",{d:"M16 15l2 6l2 -6",key:"svg-4"}]]);/**
55
55
  * @license @tabler/icons-react v3.31.0 - MIT
56
56
  *
57
57
  * This source code is licensed under the MIT license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */var o1=ot("outline","filter-cog","IconFilterCog",[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]]);/**
59
+ */var s1=ot("outline","filter-cog","IconFilterCog",[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]]);/**
60
60
  * @license @tabler/icons-react v3.31.0 - MIT
61
61
  *
62
62
  * This source code is licensed under the MIT license.
@@ -66,7 +66,7 @@ attempted value: ${u}
66
66
  *
67
67
  * This source code is licensed under the MIT license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */var s1=ot("outline","id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]);/**
69
+ */var a1=ot("outline","id-badge-2","IconIdBadge2",[["path",{d:"M7 12h3v4h-3z",key:"svg-0"}],["path",{d:"M10 6h-6a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1 -1v-12a1 1 0 0 0 -1 -1h-6",key:"svg-1"}],["path",{d:"M10 3m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v3a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M14 16h2",key:"svg-3"}],["path",{d:"M14 12h4",key:"svg-4"}]]);/**
70
70
  * @license @tabler/icons-react v3.31.0 - MIT
71
71
  *
72
72
  * This source code is licensed under the MIT license.
@@ -81,32 +81,32 @@ attempted value: ${u}
81
81
  *
82
82
  * This source code is licensed under the MIT license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */var a1=ot("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);/**
84
+ */var l1=ot("outline","logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);/**
85
85
  * @license @tabler/icons-react v3.31.0 - MIT
86
86
  *
87
87
  * This source code is licensed under the MIT license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */var l1=ot("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]);/**
89
+ */var u1=ot("outline","pencil","IconPencil",[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]]);/**
90
90
  * @license @tabler/icons-react v3.31.0 - MIT
91
91
  *
92
92
  * This source code is licensed under the MIT license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */var vl=ot("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
94
+ */var bl=ot("outline","plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]]);/**
95
95
  * @license @tabler/icons-react v3.31.0 - MIT
96
96
  *
97
97
  * This source code is licensed under the MIT license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */var u1=ot("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
99
+ */var c1=ot("outline","refresh","IconRefresh",[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]]);/**
100
100
  * @license @tabler/icons-react v3.31.0 - MIT
101
101
  *
102
102
  * This source code is licensed under the MIT license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */var c1=ot("outline","separator-vertical","IconSeparatorVertical",[["path",{d:"M12 4l0 16",key:"svg-0"}],["path",{d:"M8 8l-4 4l4 4",key:"svg-1"}],["path",{d:"M16 16l4 -4l-4 -4",key:"svg-2"}]]);/**
104
+ */var xd=ot("outline","separator-vertical","IconSeparatorVertical",[["path",{d:"M12 4l0 16",key:"svg-0"}],["path",{d:"M8 8l-4 4l4 4",key:"svg-1"}],["path",{d:"M16 16l4 -4l-4 -4",key:"svg-2"}]]);/**
105
105
  * @license @tabler/icons-react v3.31.0 - MIT
106
106
  *
107
107
  * This source code is licensed under the MIT license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
- */var xd=ot("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
109
+ */var Ad=ot("outline","trash","IconTrash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]]);/**
110
110
  * @license @tabler/icons-react v3.31.0 - MIT
111
111
  *
112
112
  * This source code is licensed under the MIT license.
@@ -121,17 +121,17 @@ attempted value: ${u}
121
121
  *
122
122
  * This source code is licensed under the MIT license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
- */var Ad=ot("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function ar(e){const t={variant:"transparent",size:"lg",c:"gray",className:"toolbarActionIcon"},n=v.useProps("ActionIcon",t,e);return x.useMemo(()=>({...n,...e}),[n,e])}function h1(e,{autoInvoke:t=!0,initialLoading:n=!1,clearDataOnRefetch:o=!1,...s}={}){const[a,u]=x.useState(null),[c,h]=x.useState(n),[p,y]=x.useState(null),m=x.useRef(null),_=x.useCallback(()=>{if(e)return o&&u(null),y(null),m.current&&m.current.abort(),m.current=new AbortController,h(!0),fetch(e,{signal:m.current.signal,...s}).then(async E=>{const w=await E.json();if(!E.ok){const $=typeof w.detail=="string"?w.detail:JSON.stringify(w.detail,null,2);throw new Error($)}return u(w),h(!1),w}).catch(E=>(E&&E.name!=="AbortError"&&(y(E),h(!1)),E))},[e]),C=x.useCallback(()=>{var E;m.current&&((E=m.current)==null||E.abort(""),h(!1))},[]);return x.useEffect(()=>(t&&_(),()=>{m.current&&m.current.abort("")}),[_,t]),{data:a,loading:c,error:p,refetch:_,abort:C}}function Od(e){const t=x.useRef(!1);return x.useMemo(()=>e&&!t.current?(t.current=!0,!0):t.current,[e])}function Id({opened:e,onClose:t,handleAccept:n,handleReject:o}){return d.jsxs(v.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(v.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(v.Button,{onClick:o,variant:"default",children:"Abbrechen"}),d.jsx(v.Button,{onClick:n,color:"red",children:"Löschen"})]})]})}function Pd({id:e,...t}){const{deleteEntry:n}=Ae(),[o,s]=x.useState(!1),a=ar({onClick:()=>s(!0),size:"sm",...t}),u=()=>{s(!1)},c=async()=>{n(e),s(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Delete",children:d.jsx(v.ActionIcon,{...a,children:d.jsx(xd,{})})}),d.jsx(Id,{opened:o,onClose:u,handleAccept:c,handleReject:u})]})}function $d({id:e,...t}){const{getEntry:n}=Ae(),{setOpened:o,setItem:s,setItemLoading:a}=zn("edit"),u=ar({onClick:()=>{a(!0),o(!0),n(e).then(c=>{c?s(c):a(!1)}).catch(()=>a(!1))},size:"sm",...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(l1,{})})})})}const Md=Object.freeze({left:0,top:0,width:16,height:16}),Xo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),bl=Object.freeze({...Md,...Xo}),_l=Object.freeze({...bl,body:"",hidden:!1});function p1(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Fd(e,t){const n=p1(e,t);for(const o in _l)o in Xo?o in e&&!(o in n)&&(n[o]=Xo[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function g1(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function a(u){if(n[u])return s[u]=[];if(!(u in s)){s[u]=null;const c=o[u]&&o[u].parent,h=c&&a(c);h&&(s[u]=[c].concat(h))}return s[u]}return Object.keys(n).concat(Object.keys(o)).forEach(a),s}function m1(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let a={};function u(c){a=Fd(o[c]||s[c],a)}return u(t),n.forEach(u),Fd(e,a)}function Dd(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=g1(e);for(const s in o){const a=o[s];a&&(t(s,m1(e,s,a)),n.push(s))}return n}const y1={provider:"",aliases:{},not_found:{},...Md};function Tl(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function kd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Tl(e,y1))return null;const n=t.icons;for(const s in n){const a=n[s];if(!s||typeof a.body!="string"||!Tl(a,_l))return null}const o=t.aliases||Object.create(null);for(const s in o){const a=o[s],u=a.parent;if(!s||typeof u!="string"||!n[u]&&!o[u]||!Tl(a,_l))return null}return t}const Nd=/^[a-z0-9]+(-[a-z0-9]+)*$/,Qo=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),h=s.pop(),p={provider:s.length>0?s[0]:o,prefix:h,name:c};return t&&!es(p)?null:p}const a=s[0],u=a.split("-");if(u.length>1){const c={provider:o,prefix:u.shift(),name:u.join("-")};return t&&!es(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:a};return t&&!es(c,n)?null:c}return null},es=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Ld=Object.create(null);function v1(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function oi(e,t){const n=Ld[e]||(Ld[e]=Object.create(null));return n[t]||(n[t]=v1(e,t))}function Bd(e,t){return kd(t)?Dd(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function b1(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ji=!1;function zd(e){return typeof e=="boolean"&&(Ji=e),Ji}function Ud(e){const t=typeof e=="string"?Qo(e,!0,Ji):e;if(t){const n=oi(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function _1(e,t){const n=Qo(e,!0,Ji);if(!n)return!1;const o=oi(n.provider,n.prefix);return t?b1(o,n.name,t):(o.missing.add(n.name),!0)}function T1(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ji&&!t&&!e.prefix){let s=!1;return kd(e)&&(e.prefix="",Dd(e,(a,u)=>{_1(a,u)&&(s=!0)})),s}const n=e.prefix;if(!es({prefix:n,name:"a"}))return!1;const o=oi(t,n);return!!Bd(o,e)}const jd=Object.freeze({width:null,height:null}),Wd=Object.freeze({...jd,...Xo}),w1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,S1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Vd(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(w1);if(o===null||!o.length)return e;const s=[];let a=o.shift(),u=S1.test(a);for(;;){if(u){const c=parseFloat(a);isNaN(c)?s.push(a):s.push(Math.ceil(c*t*n)/n)}else s.push(a);if(a=o.shift(),a===void 0)return s.join("");u=!u}}function C1(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const s=e.indexOf(">",o),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const u=e.indexOf(">",a);if(u===-1)break;n+=e.slice(s+1,a).trim(),e=e.slice(0,o).trim()+e.slice(u+1)}return{defs:n,content:e}}function E1(e,t){return e?"<defs>"+e+"</defs>"+t:t}function x1(e,t,n){const o=C1(e);return E1(o.defs,t+o.content+n)}const A1=e=>e==="unset"||e==="undefined"||e==="none";function O1(e,t){const n={...bl,...e},o={...Wd,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,o].forEach(w=>{const $=[],N=w.hFlip,Q=w.vFlip;let H=w.rotate;N?Q?H+=2:($.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),$.push("scale(-1 1)"),s.top=s.left=0):Q&&($.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),$.push("scale(1 -1)"),s.top=s.left=0);let B;switch(H<0&&(H-=Math.floor(H/4)*4),H=H%4,H){case 1:B=s.height/2+s.top,$.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:$.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:B=s.width/2+s.left,$.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}H%2===1&&(s.left!==s.top&&(B=s.left,s.left=s.top,s.top=B),s.width!==s.height&&(B=s.width,s.width=s.height,s.height=B)),$.length&&(a=x1(a,'<g transform="'+$.join(" ")+'">',"</g>"))});const u=o.width,c=o.height,h=s.width,p=s.height;let y,m;u===null?(m=c===null?"1em":c==="auto"?p:c,y=Vd(m,h/p)):(y=u==="auto"?h:u,m=c===null?Vd(y,p/h):c==="auto"?p:c);const _={},C=(w,$)=>{A1($)||(_[w]=$.toString())};C("width",y),C("height",m);const E=[s.left,s.top,h,p];return _.viewBox=E.join(" "),{attributes:_,viewBox:E,body:a}}const I1=/\sid="(\S+)"/g,P1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $1=0;function M1(e,t=P1){const n=[];let o;for(;o=I1.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const u=typeof t=="function"?t(a):t+($1++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+u+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const wl=Object.create(null);function F1(e,t){wl[e]=t}function Sl(e){return wl[e]||wl[""]}function Cl(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const El=Object.create(null),Ri=["https://api.simplesvg.com","https://api.unisvg.com"],ts=[];for(;Ri.length>0;)Ri.length===1||Math.random()>.5?ts.push(Ri.shift()):ts.push(Ri.pop());El[""]=Cl({resources:["https://api.iconify.design"].concat(ts)});function D1(e,t){const n=Cl(t);return n===null?!1:(El[e]=n,!0)}function xl(e){return El[e]}let Gd=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function k1(e,t){const n=xl(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(u=>{s=Math.max(s,u.length)});const a=t+".json?icons=";o=n.maxURL-s-n.path.length-a.length}return o}function N1(e){return e===404}const L1=(e,t,n)=>{const o=[],s=k1(e,t),a="icons";let u={type:a,provider:e,prefix:t,icons:[]},c=0;return n.forEach((h,p)=>{c+=h.length+1,c>=s&&p>0&&(o.push(u),u={type:a,provider:e,prefix:t,icons:[]},c=h.length),u.icons.push(h)}),o.push(u),o};function B1(e){if(typeof e=="string"){const t=xl(e);if(t)return t.path}return"/"}const z1={prepare:L1,send:(e,t,n)=>{if(!Gd){n("abort",424);return}let o=B1(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),h=new URLSearchParams({icons:c});o+=a+".json?"+h.toString();break}case"custom":{const a=t.uri;o+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let s=503;Gd(e+o).then(a=>{const u=a.status;if(u!==200){setTimeout(()=>{n(N1(u)?"abort":"next",u)});return}return s=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",s)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",s)})}};function U1(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,a)=>s.provider!==a.provider?s.provider.localeCompare(a.provider):s.prefix!==a.prefix?s.prefix.localeCompare(a.prefix):s.name.localeCompare(a.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const a=s.provider,u=s.prefix,c=s.name,h=n[a]||(n[a]=Object.create(null)),p=h[u]||(h[u]=oi(a,u));let y;c in p.icons?y=t.loaded:u===""||p.missing.has(c)?y=t.missing:y=t.pending;const m={provider:a,prefix:u,name:c};y.push(m)}),t}function Hd(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function j1(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(a=>{const u=a.icons,c=u.pending.length;u.pending=u.pending.filter(h=>{if(h.prefix!==s)return!0;const p=h.name;if(e.icons[p])u.loaded.push({provider:o,prefix:s,name:p});else if(e.missing.has(p))u.missing.push({provider:o,prefix:s,name:p});else return n=!0,!0;return!1}),u.pending.length!==c&&(n||Hd([e],a.id),a.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),a.abort))})}))}let W1=0;function V1(e,t,n){const o=W1++,s=Hd.bind(null,n,o);if(!t.pending.length)return s;const a={id:o,icons:t,callback:e,abort:s};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(a)}),s}function G1(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const a=typeof s=="string"?Qo(s,t,n):s;a&&o.push(a)}),o}var H1={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y1(e,t,n,o){const s=e.resources.length,a=e.random?Math.floor(Math.random()*s):e.index;let u;if(e.random){let k=e.resources.slice(0);for(u=[];k.length>1;){const G=Math.floor(Math.random()*k.length);u.push(k[G]),k=k.slice(0,G).concat(k.slice(G+1))}u=u.concat(k)}else u=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let h="pending",p=0,y,m=null,_=[],C=[];typeof o=="function"&&C.push(o);function E(){m&&(clearTimeout(m),m=null)}function w(){h==="pending"&&(h="aborted"),E(),_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function $(k,G){G&&(C=[]),typeof k=="function"&&C.push(k)}function N(){return{startTime:c,payload:t,status:h,queriesSent:p,queriesPending:_.length,subscribe:$,abort:w}}function Q(){h="failed",C.forEach(k=>{k(void 0,y)})}function H(){_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function B(k,G,ae){const ie=G!=="success";switch(_=_.filter(S=>S!==k),h){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(G==="abort"){y=ae,Q();return}if(ie){y=ae,_.length||(u.length?D():Q());return}if(E(),H(),!e.random){const S=e.resources.indexOf(k.resource);S!==-1&&S!==e.index&&(e.index=S)}h="completed",C.forEach(S=>{S(ae)})}function D(){if(h!=="pending")return;E();const k=u.shift();if(k===void 0){if(_.length){m=setTimeout(()=>{E(),h==="pending"&&(H(),Q())},e.timeout);return}Q();return}const G={status:"pending",resource:k,callback:(ae,ie)=>{B(G,ae,ie)}};_.push(G),p++,m=setTimeout(D,e.rotate),n(k,t,G.callback)}return setTimeout(D),N}function Yd(e){const t={...H1,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,h,p){const y=Y1(t,c,h,(m,_)=>{o(),p&&p(m,_)});return n.push(y),y}function a(c){return n.find(h=>c(h))||null}return{query:s,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function qd(){}const Al=Object.create(null);function q1(e){if(!Al[e]){const t=xl(e);if(!t)return;const n=Yd(t),o={config:t,redundancy:n};Al[e]=o}return Al[e]}function K1(e,t,n){let o,s;if(typeof e=="string"){const a=Sl(e);if(!a)return n(void 0,424),qd;s=a.send;const u=q1(e);u&&(o=u.redundancy)}else{const a=Cl(e);if(a){o=Yd(a);const u=e.resources?e.resources[0]:"",c=Sl(u);c&&(s=c.send)}}return!o||!s?(n(void 0,424),qd):o.query(t,s,n)().abort}function Kd(){}function J1(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,j1(e)}))}function R1(e){const t=[],n=[];return e.forEach(o=>{(o.match(Nd)?t:n).push(o)}),{valid:t,invalid:n}}function Zi(e,t,n){function o(){const s=e.pendingIcons;t.forEach(a=>{s&&s.delete(a),e.icons[a]||e.missing.add(a)})}if(n&&typeof n=="object")try{if(!Bd(e,n).length){o();return}}catch(s){console.error(s)}o(),J1(e)}function Jd(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Z1(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const a=e.loadIcon;if(e.loadIcons&&(s.length>1||!a)){Jd(e.loadIcons(s,o,n),y=>{Zi(e,s,y)});return}if(a){s.forEach(y=>{const m=a(y,o,n);Jd(m,_=>{const C=_?{prefix:o,icons:{[y]:_}}:null;Zi(e,[y],C)})});return}const{valid:u,invalid:c}=R1(s);if(c.length&&Zi(e,c,null),!u.length)return;const h=o.match(Nd)?Sl(n):null;if(!h){Zi(e,u,null);return}h.prepare(n,o,u).forEach(y=>{K1(n,y,m=>{Zi(e,y.icons,m)})})}))}const X1=(e,t)=>{const n=G1(e,!0,zd()),o=U1(n);if(!o.pending.length){let h=!0;return t&&setTimeout(()=>{h&&t(o.loaded,o.missing,o.pending,Kd)}),()=>{h=!1}}const s=Object.create(null),a=[];let u,c;return o.pending.forEach(h=>{const{provider:p,prefix:y}=h;if(y===c&&p===u)return;u=p,c=y,a.push(oi(p,y));const m=s[p]||(s[p]=Object.create(null));m[y]||(m[y]=[])}),o.pending.forEach(h=>{const{provider:p,prefix:y,name:m}=h,_=oi(p,y),C=_.pendingIcons||(_.pendingIcons=new Set);C.has(m)||(C.add(m),s[p][y].push(m))}),a.forEach(h=>{const p=s[h.provider][h.prefix];p.length&&Z1(h,p)}),t?V1(t,o,a):Kd};function Q1(e,t){const n={...e};for(const o in t){const s=t[o],a=typeof s;o in jd?(s===null||s&&(a==="string"||a==="number"))&&(n[o]=s):a===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const e_=/[\s,]+/;function t_(e,t){t.split(e_).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function n_(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/s,a%1===0?o(a):0)}}return t}function r_(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function i_(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function o_(e){return"data:image/svg+xml,"+i_(e)}function s_(e){return'url("'+o_(e)+'")'}let Xi;function a_(){try{Xi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Xi=null}}function l_(e){return Xi===void 0&&a_(),Xi?Xi.createHTML(e):e}const Rd={...Wd,inline:!1},u_={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},c_={display:"inline-block"},Ol={backgroundColor:"currentColor"},Zd={backgroundColor:"transparent"},Xd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Qd={WebkitMask:Ol,mask:Ol,background:Zd};for(const e in Qd){const t=Qd[e];for(const n in Xd)t[e+n]=Xd[n]}const f_={...Rd,inline:!0};function eh(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const d_=(e,t,n)=>{const o=t.inline?f_:Rd,s=Q1(o,t),a=t.mode||"svg",u={},c=t.style||{},h={...a==="svg"?u_:{}};if(n){const $=Qo(n,!1,!0);if($){const N=["iconify"],Q=["provider","prefix"];for(const H of Q)$[H]&&N.push("iconify--"+$[H]);h.className=N.join(" ")}}for(let $ in t){const N=t[$];if(N!==void 0)switch($){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":h.ref=N;break;case"className":h[$]=(h[$]?h[$]+" ":"")+N;break;case"inline":case"hFlip":case"vFlip":s[$]=N===!0||N==="true"||N===1;break;case"flip":typeof N=="string"&&t_(s,N);break;case"color":u.color=N;break;case"rotate":typeof N=="string"?s[$]=n_(N):typeof N=="number"&&(s[$]=N);break;case"ariaHidden":case"aria-hidden":N!==!0&&N!=="true"&&delete h["aria-hidden"];break;default:o[$]===void 0&&(h[$]=N)}}const p=O1(e,s),y=p.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),a==="svg"){h.style={...u,...c},Object.assign(h,y);let $=0,N=t.id;return typeof N=="string"&&(N=N.replace(/-/g,"_")),h.dangerouslySetInnerHTML={__html:l_(M1(p.body,N?()=>N+"ID"+$++:"iconifyReact"))},x.createElement("svg",h)}const{body:m,width:_,height:C}=e,E=a==="mask"||(a==="bg"?!1:m.indexOf("currentColor")!==-1),w=r_(m,{...y,width:_+"",height:C+""});return h.style={...u,"--svg":s_(w),width:eh(y.width),height:eh(y.height),...c_,...E?Ol:Zd,...c},x.createElement("span",h)};if(zd(!0),F1("",z1),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!T1(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;D1(n,s)||console.error(o)}catch{console.error(o)}}}}function th(e){const[t,n]=x.useState(!!e.ssr),[o,s]=x.useState({});function a(C){if(C){const E=e.icon;if(typeof E=="object")return{name:"",data:E};const w=Ud(E);if(w)return{name:E,data:w}}return{name:""}}const[u,c]=x.useState(a(!!e.ssr));function h(){const C=o.callback;C&&(C(),s({}))}function p(C){if(JSON.stringify(u)!==JSON.stringify(C))return h(),c(C),!0}function y(){var C;const E=e.icon;if(typeof E=="object"){p({name:"",data:E});return}const w=Ud(E);if(p({name:E,data:w}))if(w===void 0){const $=X1([E],y);s({callback:$})}else w&&((C=e.onLoad)===null||C===void 0||C.call(e,E))}x.useEffect(()=>(n(!0),h),[]),x.useEffect(()=>{t&&y()},[e.icon,t]);const{name:m,data:_}=u;return _?d_({...bl,..._},e,m):e.children?e.children:e.fallback?e.fallback:x.createElement("span",{})}const Il=x.forwardRef((e,t)=>th({...e,_ref:t}));x.forwardRef((e,t)=>th({inline:!0,...e,_ref:t}));function nh(e,{data:t,onChange:n}){return e?{checked:t||!1,onChange:o=>n(o.target.checked)}:{data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],value:ti(t)?String(t):null,onChange:o=>n(ti(o)?o===String(!0):void 0)}}function h_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wn=h_,p_=typeof Un=="object"&&Un&&Un.Object===Object&&Un,rh=p_,g_=rh,m_=typeof self=="object"&&self&&self.Object===Object&&self,y_=g_||m_||Function("return this")(),bn=y_,v_=bn,b_=function(){return v_.Date.now()},__=b_,T_=/\s/;function w_(e){for(var t=e.length;t--&&T_.test(e.charAt(t)););return t}var S_=w_,C_=S_,E_=/^\s+/;function x_(e){return e&&e.slice(0,C_(e)+1).replace(E_,"")}var A_=x_,O_=bn,I_=O_.Symbol,ns=I_,ih=ns,oh=Object.prototype,P_=oh.hasOwnProperty,$_=oh.toString,Qi=ih?ih.toStringTag:void 0;function M_(e){var t=P_.call(e,Qi),n=e[Qi];try{e[Qi]=void 0;var o=!0}catch{}var s=$_.call(e);return o&&(t?e[Qi]=n:delete e[Qi]),s}var F_=M_,D_=Object.prototype,k_=D_.toString;function N_(e){return k_.call(e)}var L_=N_,sh=ns,B_=F_,z_=L_,U_="[object Null]",j_="[object Undefined]",ah=sh?sh.toStringTag:void 0;function W_(e){return e==null?e===void 0?j_:U_:ah&&ah in Object(e)?B_(e):z_(e)}var si=W_;function V_(e){return e!=null&&typeof e=="object"}var ai=V_,G_=si,H_=ai,Y_="[object Symbol]";function q_(e){return typeof e=="symbol"||H_(e)&&G_(e)==Y_}var lh=q_,K_=A_,uh=Wn,J_=lh,ch=NaN,R_=/^[-+]0x[0-9a-f]+$/i,Z_=/^0b[01]+$/i,X_=/^0o[0-7]+$/i,Q_=parseInt;function eT(e){if(typeof e=="number")return e;if(J_(e))return ch;if(uh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=uh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=K_(e);var n=Z_.test(e);return n||X_.test(e)?Q_(e.slice(2),n?2:8):R_.test(e)?ch:+e}var fh=eT,tT=Wn,Pl=__,dh=fh,nT="Expected a function",rT=Math.max,iT=Math.min;function oT(e,t,n){var o,s,a,u,c,h,p=0,y=!1,m=!1,_=!0;if(typeof e!="function")throw new TypeError(nT);t=dh(t)||0,tT(n)&&(y=!!n.leading,m="maxWait"in n,a=m?rT(dh(n.maxWait)||0,t):a,_="trailing"in n?!!n.trailing:_);function C(k){var G=o,ae=s;return o=s=void 0,p=k,u=e.apply(ae,G),u}function E(k){return p=k,c=setTimeout(N,t),y?C(k):u}function w(k){var G=k-h,ae=k-p,ie=t-G;return m?iT(ie,a-ae):ie}function $(k){var G=k-h,ae=k-p;return h===void 0||G>=t||G<0||m&&ae>=a}function N(){var k=Pl();if($(k))return Q(k);c=setTimeout(N,w(k))}function Q(k){return c=void 0,_&&o?C(k):(o=s=void 0,u)}function H(){c!==void 0&&clearTimeout(c),p=0,o=h=s=c=void 0}function B(){return c===void 0?u:Q(Pl())}function D(){var k=Pl(),G=$(k);if(o=arguments,s=this,h=k,G){if(c===void 0)return E(h);if(m)return clearTimeout(c),c=setTimeout(N,t),C(h)}return c===void 0&&(c=setTimeout(N,t)),u}return D.cancel=H,D.flush=B,D}var sT=oT;const aT=ir(sT),lT=(e,t,n,o,s,a=300)=>{const[u,c]=x.useState(n??t);x.useEffect(()=>{c(n??t)},[n]);const h=x.useCallback(aT(m=>e(o,m),a),[e,o,a]),p=x.useCallback(m=>{const _=s(m);c(_??t),h(_)},[h,s]),y=x.useCallback(()=>{c(t),e(o,void 0)},[t,e,o]);return[u,p,y]};function lr(e,t){return e===t||Array.isArray(e)&&e.includes(t)}var uT=Object.prototype;function cT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uT;return e===n}var rs=cT;function fT(e,t){return function(n){return e(t(n))}}var hh=fT,dT=hh,hT=dT(Object.keys,Object),pT=hT,gT=rs,mT=pT,yT=Object.prototype,vT=yT.hasOwnProperty;function bT(e){if(!gT(e))return mT(e);var t=[];for(var n in Object(e))vT.call(e,n)&&n!="constructor"&&t.push(n);return t}var _T=bT,TT=si,wT=Wn,ST="[object AsyncFunction]",CT="[object Function]",ET="[object GeneratorFunction]",xT="[object Proxy]";function AT(e){if(!wT(e))return!1;var t=TT(e);return t==CT||t==ET||t==ST||t==xT}var $l=AT,OT=bn,IT=OT["__core-js_shared__"],PT=IT,Ml=PT,ph=function(){var e=/[^.]+$/.exec(Ml&&Ml.keys&&Ml.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $T(e){return!!ph&&ph in e}var MT=$T,FT=Function.prototype,DT=FT.toString;function kT(e){if(e!=null){try{return DT.call(e)}catch{}try{return e+""}catch{}}return""}var gh=kT,NT=$l,LT=MT,BT=Wn,zT=gh,UT=/[\\^$.*+?()[\]{}|]/g,jT=/^\[object .+?Constructor\]$/,WT=Function.prototype,VT=Object.prototype,GT=WT.toString,HT=VT.hasOwnProperty,YT=RegExp("^"+GT.call(HT).replace(UT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qT(e){if(!BT(e)||LT(e))return!1;var t=NT(e)?YT:jT;return t.test(zT(e))}var KT=qT;function JT(e,t){return e==null?void 0:e[t]}var RT=JT,ZT=KT,XT=RT;function QT(e,t){var n=XT(e,t);return ZT(n)?n:void 0}var kr=QT,ew=kr,tw=bn,nw=ew(tw,"DataView"),rw=nw,iw=kr,ow=bn,sw=iw(ow,"Map"),Fl=sw,aw=kr,lw=bn,uw=aw(lw,"Promise"),cw=uw,fw=kr,dw=bn,hw=fw(dw,"Set"),mh=hw,pw=kr,gw=bn,mw=pw(gw,"WeakMap"),yw=mw,Dl=rw,kl=Fl,Nl=cw,Ll=mh,Bl=yw,yh=si,li=gh,vh="[object Map]",vw="[object Object]",bh="[object Promise]",_h="[object Set]",Th="[object WeakMap]",wh="[object DataView]",bw=li(Dl),_w=li(kl),Tw=li(Nl),ww=li(Ll),Sw=li(Bl),Nr=yh;(Dl&&Nr(new Dl(new ArrayBuffer(1)))!=wh||kl&&Nr(new kl)!=vh||Nl&&Nr(Nl.resolve())!=bh||Ll&&Nr(new Ll)!=_h||Bl&&Nr(new Bl)!=Th)&&(Nr=function(e){var t=yh(e),n=t==vw?e.constructor:void 0,o=n?li(n):"";if(o)switch(o){case bw:return wh;case _w:return vh;case Tw:return bh;case ww:return _h;case Sw:return Th}return t});var Cw=Nr,Ew=si,xw=ai,Aw="[object Arguments]";function Ow(e){return xw(e)&&Ew(e)==Aw}var Iw=Ow,Sh=Iw,Pw=ai,Ch=Object.prototype,$w=Ch.hasOwnProperty,Mw=Ch.propertyIsEnumerable,Fw=Sh(function(){return arguments}())?Sh:function(e){return Pw(e)&&$w.call(e,"callee")&&!Mw.call(e,"callee")},is=Fw,Dw=Array.isArray,eo=Dw,kw=9007199254740991;function Nw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kw}var Eh=Nw,Lw=$l,Bw=Eh;function zw(e){return e!=null&&Bw(e.length)&&!Lw(e)}var os=zw,ss={exports:{}};function Uw(){return!1}var jw=Uw;ss.exports,function(e,t){var n=bn,o=jw,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===s,c=u?n.Buffer:void 0,h=c?c.isBuffer:void 0,p=h||o;e.exports=p}(ss,ss.exports);var zl=ss.exports,Ww=si,Vw=Eh,Gw=ai,Hw="[object Arguments]",Yw="[object Array]",qw="[object Boolean]",Kw="[object Date]",Jw="[object Error]",Rw="[object Function]",Zw="[object Map]",Xw="[object Number]",Qw="[object Object]",eS="[object RegExp]",tS="[object Set]",nS="[object String]",rS="[object WeakMap]",iS="[object ArrayBuffer]",oS="[object DataView]",sS="[object Float32Array]",aS="[object Float64Array]",lS="[object Int8Array]",uS="[object Int16Array]",cS="[object Int32Array]",fS="[object Uint8Array]",dS="[object Uint8ClampedArray]",hS="[object Uint16Array]",pS="[object Uint32Array]",Xe={};Xe[sS]=Xe[aS]=Xe[lS]=Xe[uS]=Xe[cS]=Xe[fS]=Xe[dS]=Xe[hS]=Xe[pS]=!0,Xe[Hw]=Xe[Yw]=Xe[iS]=Xe[qw]=Xe[oS]=Xe[Kw]=Xe[Jw]=Xe[Rw]=Xe[Zw]=Xe[Xw]=Xe[Qw]=Xe[eS]=Xe[tS]=Xe[nS]=Xe[rS]=!1;function gS(e){return Gw(e)&&Vw(e.length)&&!!Xe[Ww(e)]}var mS=gS;function yS(e){return function(t){return e(t)}}var vS=yS,as={exports:{}};as.exports,function(e,t){var n=rh,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a&&n.process,c=function(){try{var h=s&&s.require&&s.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();e.exports=c}(as,as.exports);var bS=as.exports,_S=mS,TS=vS,xh=bS,Ah=xh&&xh.isTypedArray,wS=Ah?TS(Ah):_S,Ul=wS,SS=_T,CS=Cw,ES=is,xS=eo,AS=os,OS=zl,IS=rs,PS=Ul,$S="[object Map]",MS="[object Set]",FS=Object.prototype,DS=FS.hasOwnProperty;function kS(e){if(e==null)return!0;if(AS(e)&&(xS(e)||typeof e=="string"||typeof e.splice=="function"||OS(e)||PS(e)||ES(e)))return!e.length;var t=CS(e);if(t==$S||t==MS)return!e.size;if(IS(e))return!SS(e).length;for(var n in e)if(DS.call(e,n))return!1;return!0}var NS=kS;const Oh=ir(NS),LS=(e,t,n,o,s,a,u)=>e.map((c,h)=>d.jsx(v.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"start"},children:d.jsx(De.JsonFormsDispatch,{uischema:c,schema:t,path:n,enabled:o,renderers:a,cells:u})},`${n}-${h}`)),BS=({elements:e,schema:t,path:n,enabled:o,direction:s,renderers:a,cells:u})=>Oh(e)?null:d.jsx(v.Grid,{spacing:s==="row"?2:0,children:LS(e,t,n,o,s,a,u)}),ls=x.memo(BS);function jl(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString()}function Ih(e){const t=new Date(e);return new Date(t.getTime()+t.getTimezoneOffset()*6e4)}function In(e={}){const t=v.useProps("__",{},{});let n=null;return lr(e.schema.type,"null")||(lr(e.schema.type,"array")?n=[]:lr(e.schema.type,"object")?n={}:lr(e.schema.type,"string")&&(n="")),{inputWrapperOrder:["label","input","description","error"],label:e.label,description:e.description,required:e.required,disabled:!e.enabled,onChange:o=>e.handleChange(e.path,o??(t.setNull?n:void 0)),error:e.errors?e.errors.split(`
125
- `).map(o=>d.jsx("span",{style:{display:"block"},children:o},o)):void 0}}function _n(e,t,n,o){const{specialKey:s}=Ae(),a=v.useProps((s==null?void 0:s.all)||"all",{},{}),u=v.useProps(e,{},{}),c=v.useProps(t,{},{}),{component:h,props:p}=x.useMemo(()=>Bn(a,u,c),[u,a,c]);return[ft(h,{componentProps:n,jsonFormsProps:o}),{...n,...ft(p,{componentProps:n,jsonFormsProps:o})}]}function us(e,t,{data:n,toggle:o,onChange:s}){const a=v.useMantineTheme(),u={valueFormat:e==="date"?"DD.MM.YYYY":t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",value:n?e==="date"||t?Ih(n):new Date(n):null,clearable:!0,onChange:c=>{c&&(e==="date"?c=jl(c).split("T")[0]:t?c=jl(c):c=c.toISOString()),s(c||void 0)}};return e!=="date"&&(u.placeholder=t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",u.rightSection=d.jsxs(v.Group,{gap:"0.25rem",wrap:"nowrap",children:[d.jsx(v.CloseButton,{variant:"transparent",size:"sm",onClick:()=>s(void 0),style:{visibility:n?void 0:"hidden"}}),d.jsx(v.CloseButton,{title:t?"UTC":"Local",variant:"subtle",size:"sm",onClick:()=>{o(),n&&s(void 0)},icon:d.jsx(Il,{icon:"tabler:timezone",color:t?a.primaryColor:"gray"})})]}),u.rightSectionWidth="3.75rem"),u}function Ph({data:e,onChange:t}){const[n,o]=x.useState(""),s=x.useMemo(()=>e?typeof e=="object"?JSON.stringify(e,null,2):e:"",[e]);return x.useEffect(()=>{o(s)},[s]),{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",formatOnBlur:!0,value:n,onBlur:()=>{if(!n){t(void 0);return}try{const a=JSON.parse(n);t(a)}catch{}},onChange:o}}function cs(e,t){return{data:x.useMemo(()=>t.oneOf?t.oneOf.map(o=>({value:o.const,label:o.title})):t.enum,[t.enum,t.oneOf]),value:e||null,searchable:!0}}function $h(e,t,{onChange:n}){const o=cs(e,t);return{...o,value:o.value||[],onChange:s=>s.length?n(s):n(void 0)}}function Mh(e,{data:t,onChange:n}){return{value:t||"",allowDecimal:e==="number",hideControls:!0,onChange:o=>n(typeof o=="string"?o||void 0:o??void 0)}}function Fh({data:e,onChange:t}){return{value:e||"",onChange:n=>t(n.target.value||void 0)}}function Wl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=x.useMemo(()=>s.format==="checkbox",[s.format]),u=nh(a,{data:o,onChange:t.onChange}),c=x.useMemo(()=>({...t,...u}),[u,t]),[h,p]=_n("Boolean",n,c,e);return h===void 0?a?d.jsx(v.Checkbox,{...p}):d.jsx(v.Select,{...p}):h}function Vl(e){const t=In(e),{path:n,data:o}=e,s=us("date",!0,{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Date",n,a,e);return u===void 0?d.jsx(Gi.DateInput,{...c}):u}function Gl(e){const t=In(e),{path:n,data:o}=e,s=us("date-time",!1,{data:o,toggle:()=>null,onChange:t.onChange}),[,{initialUTC:a}]=_n("DateTime",n,{...t,...s},e),[u,{toggle:c}]=Ze.useDisclosure(a),{initialUTC:h,...p}=us("date-time",u,{data:o,toggle:c,onChange:t.onChange}),y=x.useMemo(()=>({...t,...p}),[t,p]),[m,_]=_n("DateTime",n,y,e);return m===void 0?d.jsx(Gi.DateTimePicker,{..._}):m}function Dh(e){const t=In(e),{path:n,data:o}=e,s=$h(o,e.schema.items,{onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("EnumArray",n,a,e);return u===void 0?d.jsx(v.MultiSelect,{...c}):u}function Hl(e){const t=In(e),{path:n,data:o}=e,s=cs(o,e.schema),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Enum",n,a,e);return u===void 0?d.jsx(v.Select,{...c}):u}function kh(e){const t=In(e),{path:n,data:o}=e,s=Ph({data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Text",n,a,e);return u===void 0?d.jsx(v.JsonInput,{...c}):u}function to(e){const t=In(e),{path:n,data:o}=e,s=Mh("number",{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Number",n,a,e);return u===void 0?d.jsx(v.NumberInput,{...c}):u}var fs={exports:{}};/**
124
+ */var Od=ot("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);function ar(e){const t={variant:"transparent",size:"lg",c:"gray",className:"toolbarActionIcon"},n=v.useProps("ActionIcon",t,e);return x.useMemo(()=>({...n,...e}),[n,e])}function h1(e,{autoInvoke:t=!0,initialLoading:n=!1,clearDataOnRefetch:o=!1,...s}={}){const[a,u]=x.useState(null),[c,h]=x.useState(n),[p,m]=x.useState(null),y=x.useRef(null),_=x.useCallback(()=>{if(e)return o&&u(null),m(null),y.current&&y.current.abort(),y.current=new AbortController,h(!0),fetch(e,{signal:y.current.signal,...s}).then(async E=>{const w=await E.json();if(!E.ok){const $=typeof w.detail=="string"?w.detail:JSON.stringify(w.detail,null,2);throw new Error($)}return u(w),h(!1),w}).catch(E=>(E&&E.name!=="AbortError"&&(m(E),h(!1)),E))},[e]),C=x.useCallback(()=>{var E;y.current&&((E=y.current)==null||E.abort(""),h(!1))},[]);return x.useEffect(()=>(t&&_(),()=>{y.current&&y.current.abort("")}),[_,t]),{data:a,loading:c,error:p,refetch:_,abort:C}}function Id(e){const t=x.useRef(!1);return x.useMemo(()=>e&&!t.current?(t.current=!0,!0):t.current,[e])}function Pd({opened:e,onClose:t,handleAccept:n,handleReject:o}){return d.jsxs(v.Modal,{opened:e,onClose:t,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",title:"Item löschen?",centered:!0,children:["Sind Sie Sicher, dass Sie das Item löschen wollen?",d.jsxs(v.Group,{align:"right",mt:"xl",justify:"flex-end",children:[d.jsx(v.Button,{onClick:o,variant:"default",children:"Abbrechen"}),d.jsx(v.Button,{onClick:n,color:"red",children:"Löschen"})]})]})}function $d({id:e,...t}){const{deleteEntry:n}=Ae(),[o,s]=x.useState(!1),a=ar({onClick:()=>s(!0),size:"sm",...t}),u=()=>{s(!1)},c=async()=>{n(e),s(!1)};return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Delete",children:d.jsx(v.ActionIcon,{...a,children:d.jsx(Ad,{})})}),d.jsx(Pd,{opened:o,onClose:u,handleAccept:c,handleReject:u})]})}function Md({id:e,...t}){const{getEntry:n}=Ae(),{setOpened:o,setItem:s,setItemLoading:a}=zn("edit"),u=ar({onClick:()=>{a(!0),o(!0),n(e).then(c=>{c?s(c):a(!1)}).catch(()=>a(!1))},size:"sm",...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{label:"Edit",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(u1,{})})})})}const Fd=Object.freeze({left:0,top:0,width:16,height:16}),Qo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_l=Object.freeze({...Fd,...Qo}),Tl=Object.freeze({..._l,body:"",hidden:!1});function p1(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}function Dd(e,t){const n=p1(e,t);for(const o in Tl)o in Qo?o in e&&!(o in n)&&(n[o]=Qo[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function g1(e,t){const n=e.icons,o=e.aliases||Object.create(null),s=Object.create(null);function a(u){if(n[u])return s[u]=[];if(!(u in s)){s[u]=null;const c=o[u]&&o[u].parent,h=c&&a(c);h&&(s[u]=[c].concat(h))}return s[u]}return Object.keys(n).concat(Object.keys(o)).forEach(a),s}function m1(e,t,n){const o=e.icons,s=e.aliases||Object.create(null);let a={};function u(c){a=Dd(o[c]||s[c],a)}return u(t),n.forEach(u),Dd(e,a)}function kd(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const o=g1(e);for(const s in o){const a=o[s];a&&(t(s,m1(e,s,a)),n.push(s))}return n}const y1={provider:"",aliases:{},not_found:{},...Fd};function wl(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Nd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!wl(e,y1))return null;const n=t.icons;for(const s in n){const a=n[s];if(!s||typeof a.body!="string"||!wl(a,Tl))return null}const o=t.aliases||Object.create(null);for(const s in o){const a=o[s],u=a.parent;if(!s||typeof u!="string"||!n[u]&&!o[u]||!wl(a,Tl))return null}return t}const Ld=/^[a-z0-9]+(-[a-z0-9]+)*$/,es=(e,t,n,o="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;o=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),h=s.pop(),p={provider:s.length>0?s[0]:o,prefix:h,name:c};return t&&!ts(p)?null:p}const a=s[0],u=a.split("-");if(u.length>1){const c={provider:o,prefix:u.shift(),name:u.join("-")};return t&&!ts(c)?null:c}if(n&&o===""){const c={provider:o,prefix:"",name:a};return t&&!ts(c,n)?null:c}return null},ts=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,Bd=Object.create(null);function v1(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function oi(e,t){const n=Bd[e]||(Bd[e]=Object.create(null));return n[t]||(n[t]=v1(e,t))}function zd(e,t){return Nd(t)?kd(t,(n,o)=>{o?e.icons[n]=o:e.missing.add(n)}):[]}function b1(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Ri=!1;function Ud(e){return typeof e=="boolean"&&(Ri=e),Ri}function jd(e){const t=typeof e=="string"?es(e,!0,Ri):e;if(t){const n=oi(t.provider,t.prefix),o=t.name;return n.icons[o]||(n.missing.has(o)?null:void 0)}}function _1(e,t){const n=es(e,!0,Ri);if(!n)return!1;const o=oi(n.provider,n.prefix);return t?b1(o,n.name,t):(o.missing.add(n.name),!0)}function T1(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ri&&!t&&!e.prefix){let s=!1;return Nd(e)&&(e.prefix="",kd(e,(a,u)=>{_1(a,u)&&(s=!0)})),s}const n=e.prefix;if(!ts({prefix:n,name:"a"}))return!1;const o=oi(t,n);return!!zd(o,e)}const Wd=Object.freeze({width:null,height:null}),Vd=Object.freeze({...Wd,...Qo}),w1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,S1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Gd(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const o=e.split(w1);if(o===null||!o.length)return e;const s=[];let a=o.shift(),u=S1.test(a);for(;;){if(u){const c=parseFloat(a);isNaN(c)?s.push(a):s.push(Math.ceil(c*t*n)/n)}else s.push(a);if(a=o.shift(),a===void 0)return s.join("");u=!u}}function C1(e,t="defs"){let n="";const o=e.indexOf("<"+t);for(;o>=0;){const s=e.indexOf(">",o),a=e.indexOf("</"+t);if(s===-1||a===-1)break;const u=e.indexOf(">",a);if(u===-1)break;n+=e.slice(s+1,a).trim(),e=e.slice(0,o).trim()+e.slice(u+1)}return{defs:n,content:e}}function E1(e,t){return e?"<defs>"+e+"</defs>"+t:t}function x1(e,t,n){const o=C1(e);return E1(o.defs,t+o.content+n)}const A1=e=>e==="unset"||e==="undefined"||e==="none";function O1(e,t){const n={..._l,...e},o={...Vd,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,o].forEach(w=>{const $=[],N=w.hFlip,Q=w.vFlip;let H=w.rotate;N?Q?H+=2:($.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),$.push("scale(-1 1)"),s.top=s.left=0):Q&&($.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),$.push("scale(1 -1)"),s.top=s.left=0);let B;switch(H<0&&(H-=Math.floor(H/4)*4),H=H%4,H){case 1:B=s.height/2+s.top,$.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:$.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:B=s.width/2+s.left,$.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")");break}H%2===1&&(s.left!==s.top&&(B=s.left,s.left=s.top,s.top=B),s.width!==s.height&&(B=s.width,s.width=s.height,s.height=B)),$.length&&(a=x1(a,'<g transform="'+$.join(" ")+'">',"</g>"))});const u=o.width,c=o.height,h=s.width,p=s.height;let m,y;u===null?(y=c===null?"1em":c==="auto"?p:c,m=Gd(y,h/p)):(m=u==="auto"?h:u,y=c===null?Gd(m,p/h):c==="auto"?p:c);const _={},C=(w,$)=>{A1($)||(_[w]=$.toString())};C("width",m),C("height",y);const E=[s.left,s.top,h,p];return _.viewBox=E.join(" "),{attributes:_,viewBox:E,body:a}}const I1=/\sid="(\S+)"/g,P1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let $1=0;function M1(e,t=P1){const n=[];let o;for(;o=I1.exec(e);)n.push(o[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const u=typeof t=="function"?t(a):t+($1++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+u+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const Sl=Object.create(null);function F1(e,t){Sl[e]=t}function Cl(e){return Sl[e]||Sl[""]}function El(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const xl=Object.create(null),Zi=["https://api.simplesvg.com","https://api.unisvg.com"],ns=[];for(;Zi.length>0;)Zi.length===1||Math.random()>.5?ns.push(Zi.shift()):ns.push(Zi.pop());xl[""]=El({resources:["https://api.iconify.design"].concat(ns)});function D1(e,t){const n=El(t);return n===null?!1:(xl[e]=n,!0)}function Al(e){return xl[e]}let Hd=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function k1(e,t){const n=Al(e);if(!n)return 0;let o;if(!n.maxURL)o=0;else{let s=0;n.resources.forEach(u=>{s=Math.max(s,u.length)});const a=t+".json?icons=";o=n.maxURL-s-n.path.length-a.length}return o}function N1(e){return e===404}const L1=(e,t,n)=>{const o=[],s=k1(e,t),a="icons";let u={type:a,provider:e,prefix:t,icons:[]},c=0;return n.forEach((h,p)=>{c+=h.length+1,c>=s&&p>0&&(o.push(u),u={type:a,provider:e,prefix:t,icons:[]},c=h.length),u.icons.push(h)}),o.push(u),o};function B1(e){if(typeof e=="string"){const t=Al(e);if(t)return t.path}return"/"}const z1={prepare:L1,send:(e,t,n)=>{if(!Hd){n("abort",424);return}let o=B1(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),h=new URLSearchParams({icons:c});o+=a+".json?"+h.toString();break}case"custom":{const a=t.uri;o+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let s=503;Hd(e+o).then(a=>{const u=a.status;if(u!==200){setTimeout(()=>{n(N1(u)?"abort":"next",u)});return}return s=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",s)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",s)})}};function U1(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,a)=>s.provider!==a.provider?s.provider.localeCompare(a.provider):s.prefix!==a.prefix?s.prefix.localeCompare(a.prefix):s.name.localeCompare(a.name));let o={provider:"",prefix:"",name:""};return e.forEach(s=>{if(o.name===s.name&&o.prefix===s.prefix&&o.provider===s.provider)return;o=s;const a=s.provider,u=s.prefix,c=s.name,h=n[a]||(n[a]=Object.create(null)),p=h[u]||(h[u]=oi(a,u));let m;c in p.icons?m=t.loaded:u===""||p.missing.has(c)?m=t.missing:m=t.pending;const y={provider:a,prefix:u,name:c};m.push(y)}),t}function Yd(e,t){e.forEach(n=>{const o=n.loaderCallbacks;o&&(n.loaderCallbacks=o.filter(s=>s.id!==t))})}function j1(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,s=e.prefix;t.forEach(a=>{const u=a.icons,c=u.pending.length;u.pending=u.pending.filter(h=>{if(h.prefix!==s)return!0;const p=h.name;if(e.icons[p])u.loaded.push({provider:o,prefix:s,name:p});else if(e.missing.has(p))u.missing.push({provider:o,prefix:s,name:p});else return n=!0,!0;return!1}),u.pending.length!==c&&(n||Yd([e],a.id),a.callback(u.loaded.slice(0),u.missing.slice(0),u.pending.slice(0),a.abort))})}))}let W1=0;function V1(e,t,n){const o=W1++,s=Yd.bind(null,n,o);if(!t.pending.length)return s;const a={id:o,icons:t,callback:e,abort:s};return n.forEach(u=>{(u.loaderCallbacks||(u.loaderCallbacks=[])).push(a)}),s}function G1(e,t=!0,n=!1){const o=[];return e.forEach(s=>{const a=typeof s=="string"?es(s,t,n):s;a&&o.push(a)}),o}var H1={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Y1(e,t,n,o){const s=e.resources.length,a=e.random?Math.floor(Math.random()*s):e.index;let u;if(e.random){let k=e.resources.slice(0);for(u=[];k.length>1;){const G=Math.floor(Math.random()*k.length);u.push(k[G]),k=k.slice(0,G).concat(k.slice(G+1))}u=u.concat(k)}else u=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let h="pending",p=0,m,y=null,_=[],C=[];typeof o=="function"&&C.push(o);function E(){y&&(clearTimeout(y),y=null)}function w(){h==="pending"&&(h="aborted"),E(),_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function $(k,G){G&&(C=[]),typeof k=="function"&&C.push(k)}function N(){return{startTime:c,payload:t,status:h,queriesSent:p,queriesPending:_.length,subscribe:$,abort:w}}function Q(){h="failed",C.forEach(k=>{k(void 0,m)})}function H(){_.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),_=[]}function B(k,G,ae){const ie=G!=="success";switch(_=_.filter(S=>S!==k),h){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(G==="abort"){m=ae,Q();return}if(ie){m=ae,_.length||(u.length?D():Q());return}if(E(),H(),!e.random){const S=e.resources.indexOf(k.resource);S!==-1&&S!==e.index&&(e.index=S)}h="completed",C.forEach(S=>{S(ae)})}function D(){if(h!=="pending")return;E();const k=u.shift();if(k===void 0){if(_.length){y=setTimeout(()=>{E(),h==="pending"&&(H(),Q())},e.timeout);return}Q();return}const G={status:"pending",resource:k,callback:(ae,ie)=>{B(G,ae,ie)}};_.push(G),p++,y=setTimeout(D,e.rotate),n(k,t,G.callback)}return setTimeout(D),N}function qd(e){const t={...H1,...e};let n=[];function o(){n=n.filter(c=>c().status==="pending")}function s(c,h,p){const m=Y1(t,c,h,(y,_)=>{o(),p&&p(y,_)});return n.push(m),m}function a(c){return n.find(h=>c(h))||null}return{query:s,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:o}}function Kd(){}const Ol=Object.create(null);function q1(e){if(!Ol[e]){const t=Al(e);if(!t)return;const n=qd(t),o={config:t,redundancy:n};Ol[e]=o}return Ol[e]}function K1(e,t,n){let o,s;if(typeof e=="string"){const a=Cl(e);if(!a)return n(void 0,424),Kd;s=a.send;const u=q1(e);u&&(o=u.redundancy)}else{const a=El(e);if(a){o=qd(a);const u=e.resources?e.resources[0]:"",c=Cl(u);c&&(s=c.send)}}return!o||!s?(n(void 0,424),Kd):o.query(t,s,n)().abort}function Jd(){}function J1(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,j1(e)}))}function R1(e){const t=[],n=[];return e.forEach(o=>{(o.match(Ld)?t:n).push(o)}),{valid:t,invalid:n}}function Xi(e,t,n){function o(){const s=e.pendingIcons;t.forEach(a=>{s&&s.delete(a),e.icons[a]||e.missing.add(a)})}if(n&&typeof n=="object")try{if(!zd(e,n).length){o();return}}catch(s){console.error(s)}o(),J1(e)}function Rd(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Z1(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:o}=e,s=e.iconsToLoad;if(delete e.iconsToLoad,!s||!s.length)return;const a=e.loadIcon;if(e.loadIcons&&(s.length>1||!a)){Rd(e.loadIcons(s,o,n),m=>{Xi(e,s,m)});return}if(a){s.forEach(m=>{const y=a(m,o,n);Rd(y,_=>{const C=_?{prefix:o,icons:{[m]:_}}:null;Xi(e,[m],C)})});return}const{valid:u,invalid:c}=R1(s);if(c.length&&Xi(e,c,null),!u.length)return;const h=o.match(Ld)?Cl(n):null;if(!h){Xi(e,u,null);return}h.prepare(n,o,u).forEach(m=>{K1(n,m,y=>{Xi(e,m.icons,y)})})}))}const X1=(e,t)=>{const n=G1(e,!0,Ud()),o=U1(n);if(!o.pending.length){let h=!0;return t&&setTimeout(()=>{h&&t(o.loaded,o.missing,o.pending,Jd)}),()=>{h=!1}}const s=Object.create(null),a=[];let u,c;return o.pending.forEach(h=>{const{provider:p,prefix:m}=h;if(m===c&&p===u)return;u=p,c=m,a.push(oi(p,m));const y=s[p]||(s[p]=Object.create(null));y[m]||(y[m]=[])}),o.pending.forEach(h=>{const{provider:p,prefix:m,name:y}=h,_=oi(p,m),C=_.pendingIcons||(_.pendingIcons=new Set);C.has(y)||(C.add(y),s[p][m].push(y))}),a.forEach(h=>{const p=s[h.provider][h.prefix];p.length&&Z1(h,p)}),t?V1(t,o,a):Jd};function Q1(e,t){const n={...e};for(const o in t){const s=t[o],a=typeof s;o in Wd?(s===null||s&&(a==="string"||a==="number"))&&(n[o]=s):a===typeof n[o]&&(n[o]=o==="rotate"?s%4:s)}return n}const e_=/[\s,]+/;function t_(e,t){t.split(e_).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function n_(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:o(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/s,a%1===0?o(a):0)}}return t}function r_(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)n+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function i_(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function o_(e){return"data:image/svg+xml,"+i_(e)}function s_(e){return'url("'+o_(e)+'")'}let Qi;function a_(){try{Qi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Qi=null}}function l_(e){return Qi===void 0&&a_(),Qi?Qi.createHTML(e):e}const Zd={...Vd,inline:!1},u_={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},c_={display:"inline-block"},Il={backgroundColor:"currentColor"},Xd={backgroundColor:"transparent"},Qd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},eh={WebkitMask:Il,mask:Il,background:Xd};for(const e in eh){const t=eh[e];for(const n in Qd)t[e+n]=Qd[n]}const f_={...Zd,inline:!0};function th(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const d_=(e,t,n)=>{const o=t.inline?f_:Zd,s=Q1(o,t),a=t.mode||"svg",u={},c=t.style||{},h={...a==="svg"?u_:{}};if(n){const $=es(n,!1,!0);if($){const N=["iconify"],Q=["provider","prefix"];for(const H of Q)$[H]&&N.push("iconify--"+$[H]);h.className=N.join(" ")}}for(let $ in t){const N=t[$];if(N!==void 0)switch($){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":h.ref=N;break;case"className":h[$]=(h[$]?h[$]+" ":"")+N;break;case"inline":case"hFlip":case"vFlip":s[$]=N===!0||N==="true"||N===1;break;case"flip":typeof N=="string"&&t_(s,N);break;case"color":u.color=N;break;case"rotate":typeof N=="string"?s[$]=n_(N):typeof N=="number"&&(s[$]=N);break;case"ariaHidden":case"aria-hidden":N!==!0&&N!=="true"&&delete h["aria-hidden"];break;default:o[$]===void 0&&(h[$]=N)}}const p=O1(e,s),m=p.attributes;if(s.inline&&(u.verticalAlign="-0.125em"),a==="svg"){h.style={...u,...c},Object.assign(h,m);let $=0,N=t.id;return typeof N=="string"&&(N=N.replace(/-/g,"_")),h.dangerouslySetInnerHTML={__html:l_(M1(p.body,N?()=>N+"ID"+$++:"iconifyReact"))},x.createElement("svg",h)}const{body:y,width:_,height:C}=e,E=a==="mask"||(a==="bg"?!1:y.indexOf("currentColor")!==-1),w=r_(y,{...m,width:_+"",height:C+""});return h.style={...u,"--svg":s_(w),width:th(m.width),height:th(m.height),...c_,...E?Il:Xd,...c},x.createElement("span",h)};if(Ud(!0),F1("",z1),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!T1(o))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const o="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;D1(n,s)||console.error(o)}catch{console.error(o)}}}}function nh(e){const[t,n]=x.useState(!!e.ssr),[o,s]=x.useState({});function a(C){if(C){const E=e.icon;if(typeof E=="object")return{name:"",data:E};const w=jd(E);if(w)return{name:E,data:w}}return{name:""}}const[u,c]=x.useState(a(!!e.ssr));function h(){const C=o.callback;C&&(C(),s({}))}function p(C){if(JSON.stringify(u)!==JSON.stringify(C))return h(),c(C),!0}function m(){var C;const E=e.icon;if(typeof E=="object"){p({name:"",data:E});return}const w=jd(E);if(p({name:E,data:w}))if(w===void 0){const $=X1([E],m);s({callback:$})}else w&&((C=e.onLoad)===null||C===void 0||C.call(e,E))}x.useEffect(()=>(n(!0),h),[]),x.useEffect(()=>{t&&m()},[e.icon,t]);const{name:y,data:_}=u;return _?d_({..._l,..._},e,y):e.children?e.children:e.fallback?e.fallback:x.createElement("span",{})}const Pl=x.forwardRef((e,t)=>nh({...e,_ref:t}));x.forwardRef((e,t)=>nh({inline:!0,...e,_ref:t}));function rh(e,{data:t,onChange:n}){return e?{checked:t||!1,onChange:o=>n(o.target.checked)}:{data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],value:ti(t)?String(t):null,onChange:o=>n(ti(o)?o===String(!0):void 0)}}function h_(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wn=h_,p_=typeof Un=="object"&&Un&&Un.Object===Object&&Un,ih=p_,g_=ih,m_=typeof self=="object"&&self&&self.Object===Object&&self,y_=g_||m_||Function("return this")(),bn=y_,v_=bn,b_=function(){return v_.Date.now()},__=b_,T_=/\s/;function w_(e){for(var t=e.length;t--&&T_.test(e.charAt(t)););return t}var S_=w_,C_=S_,E_=/^\s+/;function x_(e){return e&&e.slice(0,C_(e)+1).replace(E_,"")}var A_=x_,O_=bn,I_=O_.Symbol,rs=I_,oh=rs,sh=Object.prototype,P_=sh.hasOwnProperty,$_=sh.toString,eo=oh?oh.toStringTag:void 0;function M_(e){var t=P_.call(e,eo),n=e[eo];try{e[eo]=void 0;var o=!0}catch{}var s=$_.call(e);return o&&(t?e[eo]=n:delete e[eo]),s}var F_=M_,D_=Object.prototype,k_=D_.toString;function N_(e){return k_.call(e)}var L_=N_,ah=rs,B_=F_,z_=L_,U_="[object Null]",j_="[object Undefined]",lh=ah?ah.toStringTag:void 0;function W_(e){return e==null?e===void 0?j_:U_:lh&&lh in Object(e)?B_(e):z_(e)}var si=W_;function V_(e){return e!=null&&typeof e=="object"}var ai=V_,G_=si,H_=ai,Y_="[object Symbol]";function q_(e){return typeof e=="symbol"||H_(e)&&G_(e)==Y_}var uh=q_,K_=A_,ch=Wn,J_=uh,fh=NaN,R_=/^[-+]0x[0-9a-f]+$/i,Z_=/^0b[01]+$/i,X_=/^0o[0-7]+$/i,Q_=parseInt;function eT(e){if(typeof e=="number")return e;if(J_(e))return fh;if(ch(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ch(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=K_(e);var n=Z_.test(e);return n||X_.test(e)?Q_(e.slice(2),n?2:8):R_.test(e)?fh:+e}var dh=eT,tT=Wn,$l=__,hh=dh,nT="Expected a function",rT=Math.max,iT=Math.min;function oT(e,t,n){var o,s,a,u,c,h,p=0,m=!1,y=!1,_=!0;if(typeof e!="function")throw new TypeError(nT);t=hh(t)||0,tT(n)&&(m=!!n.leading,y="maxWait"in n,a=y?rT(hh(n.maxWait)||0,t):a,_="trailing"in n?!!n.trailing:_);function C(k){var G=o,ae=s;return o=s=void 0,p=k,u=e.apply(ae,G),u}function E(k){return p=k,c=setTimeout(N,t),m?C(k):u}function w(k){var G=k-h,ae=k-p,ie=t-G;return y?iT(ie,a-ae):ie}function $(k){var G=k-h,ae=k-p;return h===void 0||G>=t||G<0||y&&ae>=a}function N(){var k=$l();if($(k))return Q(k);c=setTimeout(N,w(k))}function Q(k){return c=void 0,_&&o?C(k):(o=s=void 0,u)}function H(){c!==void 0&&clearTimeout(c),p=0,o=h=s=c=void 0}function B(){return c===void 0?u:Q($l())}function D(){var k=$l(),G=$(k);if(o=arguments,s=this,h=k,G){if(c===void 0)return E(h);if(y)return clearTimeout(c),c=setTimeout(N,t),C(h)}return c===void 0&&(c=setTimeout(N,t)),u}return D.cancel=H,D.flush=B,D}var sT=oT;const aT=ir(sT),lT=(e,t,n,o,s,a=300)=>{const[u,c]=x.useState(n??t);x.useEffect(()=>{c(n??t)},[n]);const h=x.useCallback(aT(y=>e(o,y),a),[e,o,a]),p=x.useCallback(y=>{const _=s(y);c(_??t),h(_)},[h,s]),m=x.useCallback(()=>{c(t),e(o,void 0)},[t,e,o]);return[u,p,m]};function lr(e,t){return e===t||Array.isArray(e)&&e.includes(t)}var uT=Object.prototype;function cT(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||uT;return e===n}var is=cT;function fT(e,t){return function(n){return e(t(n))}}var ph=fT,dT=ph,hT=dT(Object.keys,Object),pT=hT,gT=is,mT=pT,yT=Object.prototype,vT=yT.hasOwnProperty;function bT(e){if(!gT(e))return mT(e);var t=[];for(var n in Object(e))vT.call(e,n)&&n!="constructor"&&t.push(n);return t}var _T=bT,TT=si,wT=Wn,ST="[object AsyncFunction]",CT="[object Function]",ET="[object GeneratorFunction]",xT="[object Proxy]";function AT(e){if(!wT(e))return!1;var t=TT(e);return t==CT||t==ET||t==ST||t==xT}var Ml=AT,OT=bn,IT=OT["__core-js_shared__"],PT=IT,Fl=PT,gh=function(){var e=/[^.]+$/.exec(Fl&&Fl.keys&&Fl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $T(e){return!!gh&&gh in e}var MT=$T,FT=Function.prototype,DT=FT.toString;function kT(e){if(e!=null){try{return DT.call(e)}catch{}try{return e+""}catch{}}return""}var mh=kT,NT=Ml,LT=MT,BT=Wn,zT=mh,UT=/[\\^$.*+?()[\]{}|]/g,jT=/^\[object .+?Constructor\]$/,WT=Function.prototype,VT=Object.prototype,GT=WT.toString,HT=VT.hasOwnProperty,YT=RegExp("^"+GT.call(HT).replace(UT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function qT(e){if(!BT(e)||LT(e))return!1;var t=NT(e)?YT:jT;return t.test(zT(e))}var KT=qT;function JT(e,t){return e==null?void 0:e[t]}var RT=JT,ZT=KT,XT=RT;function QT(e,t){var n=XT(e,t);return ZT(n)?n:void 0}var kr=QT,ew=kr,tw=bn,nw=ew(tw,"DataView"),rw=nw,iw=kr,ow=bn,sw=iw(ow,"Map"),Dl=sw,aw=kr,lw=bn,uw=aw(lw,"Promise"),cw=uw,fw=kr,dw=bn,hw=fw(dw,"Set"),yh=hw,pw=kr,gw=bn,mw=pw(gw,"WeakMap"),yw=mw,kl=rw,Nl=Dl,Ll=cw,Bl=yh,zl=yw,vh=si,li=mh,bh="[object Map]",vw="[object Object]",_h="[object Promise]",Th="[object Set]",wh="[object WeakMap]",Sh="[object DataView]",bw=li(kl),_w=li(Nl),Tw=li(Ll),ww=li(Bl),Sw=li(zl),Nr=vh;(kl&&Nr(new kl(new ArrayBuffer(1)))!=Sh||Nl&&Nr(new Nl)!=bh||Ll&&Nr(Ll.resolve())!=_h||Bl&&Nr(new Bl)!=Th||zl&&Nr(new zl)!=wh)&&(Nr=function(e){var t=vh(e),n=t==vw?e.constructor:void 0,o=n?li(n):"";if(o)switch(o){case bw:return Sh;case _w:return bh;case Tw:return _h;case ww:return Th;case Sw:return wh}return t});var Cw=Nr,Ew=si,xw=ai,Aw="[object Arguments]";function Ow(e){return xw(e)&&Ew(e)==Aw}var Iw=Ow,Ch=Iw,Pw=ai,Eh=Object.prototype,$w=Eh.hasOwnProperty,Mw=Eh.propertyIsEnumerable,Fw=Ch(function(){return arguments}())?Ch:function(e){return Pw(e)&&$w.call(e,"callee")&&!Mw.call(e,"callee")},os=Fw,Dw=Array.isArray,to=Dw,kw=9007199254740991;function Nw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kw}var xh=Nw,Lw=Ml,Bw=xh;function zw(e){return e!=null&&Bw(e.length)&&!Lw(e)}var ss=zw,as={exports:{}};function Uw(){return!1}var jw=Uw;as.exports,function(e,t){var n=bn,o=jw,s=t&&!t.nodeType&&t,a=s&&!0&&e&&!e.nodeType&&e,u=a&&a.exports===s,c=u?n.Buffer:void 0,h=c?c.isBuffer:void 0,p=h||o;e.exports=p}(as,as.exports);var Ul=as.exports,Ww=si,Vw=xh,Gw=ai,Hw="[object Arguments]",Yw="[object Array]",qw="[object Boolean]",Kw="[object Date]",Jw="[object Error]",Rw="[object Function]",Zw="[object Map]",Xw="[object Number]",Qw="[object Object]",eS="[object RegExp]",tS="[object Set]",nS="[object String]",rS="[object WeakMap]",iS="[object ArrayBuffer]",oS="[object DataView]",sS="[object Float32Array]",aS="[object Float64Array]",lS="[object Int8Array]",uS="[object Int16Array]",cS="[object Int32Array]",fS="[object Uint8Array]",dS="[object Uint8ClampedArray]",hS="[object Uint16Array]",pS="[object Uint32Array]",Xe={};Xe[sS]=Xe[aS]=Xe[lS]=Xe[uS]=Xe[cS]=Xe[fS]=Xe[dS]=Xe[hS]=Xe[pS]=!0,Xe[Hw]=Xe[Yw]=Xe[iS]=Xe[qw]=Xe[oS]=Xe[Kw]=Xe[Jw]=Xe[Rw]=Xe[Zw]=Xe[Xw]=Xe[Qw]=Xe[eS]=Xe[tS]=Xe[nS]=Xe[rS]=!1;function gS(e){return Gw(e)&&Vw(e.length)&&!!Xe[Ww(e)]}var mS=gS;function yS(e){return function(t){return e(t)}}var vS=yS,ls={exports:{}};ls.exports,function(e,t){var n=ih,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a&&n.process,c=function(){try{var h=s&&s.require&&s.require("util").types;return h||u&&u.binding&&u.binding("util")}catch{}}();e.exports=c}(ls,ls.exports);var bS=ls.exports,_S=mS,TS=vS,Ah=bS,Oh=Ah&&Ah.isTypedArray,wS=Oh?TS(Oh):_S,jl=wS,SS=_T,CS=Cw,ES=os,xS=to,AS=ss,OS=Ul,IS=is,PS=jl,$S="[object Map]",MS="[object Set]",FS=Object.prototype,DS=FS.hasOwnProperty;function kS(e){if(e==null)return!0;if(AS(e)&&(xS(e)||typeof e=="string"||typeof e.splice=="function"||OS(e)||PS(e)||ES(e)))return!e.length;var t=CS(e);if(t==$S||t==MS)return!e.size;if(IS(e))return!SS(e).length;for(var n in e)if(DS.call(e,n))return!1;return!0}var NS=kS;const Ih=ir(NS),LS=(e,t,n,o,s,a,u)=>e.map((c,h)=>d.jsx(v.Grid.Col,{span:s==="row"?12/e.length:12,style:{alignContent:"start"},children:d.jsx(De.JsonFormsDispatch,{uischema:c,schema:t,path:n,enabled:o,renderers:a,cells:u})},`${n}-${h}`)),BS=({elements:e,schema:t,path:n,enabled:o,direction:s,renderers:a,cells:u})=>Ih(e)?null:d.jsx(v.Grid,{spacing:s==="row"?2:0,children:LS(e,t,n,o,s,a,u)}),us=x.memo(BS);function Wl(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString()}function Ph(e){const t=new Date(e);return new Date(t.getTime()+t.getTimezoneOffset()*6e4)}function In(e={}){const t=v.useProps("__",{},{});let n=null;return lr(e.schema.type,"null")||(lr(e.schema.type,"array")?n=[]:lr(e.schema.type,"object")?n={}:lr(e.schema.type,"string")&&(n="")),{inputWrapperOrder:["label","input","description","error"],label:e.label,description:e.description,required:e.required,disabled:!e.enabled,onChange:o=>e.handleChange(e.path,o??(t.setNull?n:void 0)),error:e.errors?e.errors.split(`
125
+ `).map(o=>d.jsx("span",{style:{display:"block"},children:o},o)):void 0}}function _n(e,t,n,o){const{specialKey:s}=Ae(),a=v.useProps((s==null?void 0:s.all)||"all",{},{}),u=v.useProps(e,{},{}),c=v.useProps(t,{},{}),{component:h,props:p}=x.useMemo(()=>Bn(a,u,c),[u,a,c]);return[ft(h,{componentProps:n,jsonFormsProps:o}),{...n,...ft(p,{componentProps:n,jsonFormsProps:o})}]}function cs(e,t,{data:n,toggle:o,onChange:s}){const a=v.useMantineTheme(),u={valueFormat:e==="date"?"DD.MM.YYYY":t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",value:n?e==="date"||t?Ph(n):new Date(n):null,clearable:!0,onChange:c=>{c&&(e==="date"?c=Wl(c).split("T")[0]:t?c=Wl(c):c=c.toISOString()),s(c||void 0)}};return e!=="date"&&(u.placeholder=t?"DD.MM.YYYY HH:mm (UTC)":"DD.MM.YYYY HH:mm",u.rightSection=d.jsxs(v.Group,{gap:"0.25rem",wrap:"nowrap",children:[d.jsx(v.CloseButton,{variant:"transparent",size:"sm",onClick:()=>s(void 0),style:{visibility:n?void 0:"hidden"}}),d.jsx(v.CloseButton,{title:t?"UTC":"Local",variant:"subtle",size:"sm",onClick:()=>{o(),n&&s(void 0)},icon:d.jsx(Pl,{icon:"tabler:timezone",color:t?a.primaryColor:"gray"})})]}),u.rightSectionWidth="3.75rem"),u}function $h({data:e,onChange:t}){const[n,o]=x.useState(""),s=x.useMemo(()=>e?typeof e=="object"?JSON.stringify(e,null,2):e:"",[e]);return x.useEffect(()=>{o(s)},[s]),{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",formatOnBlur:!0,value:n,onBlur:()=>{if(!n){t(void 0);return}try{const a=JSON.parse(n);t(a)}catch{}},onChange:o}}function fs(e,t){return{data:x.useMemo(()=>t.oneOf?t.oneOf.map(o=>({value:o.const,label:o.title})):t.enum,[t.enum,t.oneOf]),value:e||null,searchable:!0}}function Mh(e,t,{onChange:n}){const o=fs(e,t);return{...o,value:o.value||[],onChange:s=>s.length?n(s):n(void 0)}}function Fh(e,{data:t,onChange:n}){return{value:t||"",allowDecimal:e==="number",hideControls:!0,onChange:o=>n(typeof o=="string"?o||void 0:o??void 0)}}function Dh({data:e,onChange:t}){return{value:e||"",onChange:n=>t(n.target.value||void 0)}}function Vl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=x.useMemo(()=>s.format==="checkbox",[s.format]),u=rh(a,{data:o,onChange:t.onChange}),c=x.useMemo(()=>({...t,...u}),[u,t]),[h,p]=_n("Boolean",n,c,e);return h===void 0?a?d.jsx(v.Checkbox,{...p}):d.jsx(v.Select,{...p}):h}function Gl(e){const t=In(e),{path:n,data:o}=e,s=cs("date",!0,{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Date",n,a,e);return u===void 0?d.jsx(Gi.DateInput,{...c}):u}function Hl(e){const t=In(e),{path:n,data:o}=e,s=cs("date-time",!1,{data:o,toggle:()=>null,onChange:t.onChange}),[,{initialUTC:a}]=_n("DateTime",n,{...t,...s},e),[u,{toggle:c}]=Ze.useDisclosure(a),{initialUTC:h,...p}=cs("date-time",u,{data:o,toggle:c,onChange:t.onChange}),m=x.useMemo(()=>({...t,...p}),[t,p]),[y,_]=_n("DateTime",n,m,e);return y===void 0?d.jsx(Gi.DateTimePicker,{..._}):y}function kh(e){const t=In(e),{path:n,data:o}=e,s=Mh(o,e.schema.items,{onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("EnumArray",n,a,e);return u===void 0?d.jsx(v.MultiSelect,{...c}):u}function Yl(e){const t=In(e),{path:n,data:o}=e,s=fs(o,e.schema),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Enum",n,a,e);return u===void 0?d.jsx(v.Select,{...c}):u}function Nh(e){const t=In(e),{path:n,data:o}=e,s=$h({data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Text",n,a,e);return u===void 0?d.jsx(v.JsonInput,{...c}):u}function no(e){const t=In(e),{path:n,data:o}=e,s=Fh("number",{data:o,onChange:t.onChange}),a=x.useMemo(()=>({...t,...s}),[t,s]),[u,c]=_n("Number",n,a,e);return u===void 0?d.jsx(v.NumberInput,{...c}):u}var ds={exports:{}};/**
126
126
  * @license
127
127
  * Lodash <https://lodash.com/>
128
128
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
129
129
  * Released under MIT license <https://lodash.com/license>
130
130
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
131
131
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
132
- */fs.exports,function(e,t){(function(){var n,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,y="__lodash_placeholder__",m=1,_=2,C=4,E=1,w=2,$=1,N=2,Q=4,H=8,B=16,D=32,k=64,G=128,ae=256,ie=512,S=30,U="...",ne=800,fe=16,ye=1,Me=2,we=3,Le=1/0,Ie=9007199254740991,lt=17976931348623157e292,q=NaN,K=4294967295,Z=K-1,R=K>>>1,Y=[["ary",G],["bind",$],["bindKey",N],["curry",H],["curryRight",B],["flip",ie],["partial",D],["partialRight",k],["rearg",ae]],ee="[object Arguments]",oe="[object Array]",ve="[object AsyncFunction]",be="[object Boolean]",pe="[object Date]",Ce="[object DOMException]",tt="[object Error]",te="[object Function]",yt="[object GeneratorFunction]",Je="[object Map]",Lt="[object Number]",dr="[object Null]",vt="[object Object]",ke="[object Promise]",Yn="[object Proxy]",hr="[object RegExp]",Wt="[object Set]",Ur="[object String]",pr="[object Symbol]",jr="[object Undefined]",an="[object WeakMap]",gr="[object WeakSet]",mr="[object ArrayBuffer]",qn="[object DataView]",Ci="[object Float32Array]",Wr="[object Float64Array]",Ei="[object Int8Array]",yr="[object Int16Array]",vr="[object Int32Array]",Rt="[object Uint8Array]",Fn="[object Uint8ClampedArray]",Vr="[object Uint16Array]",Gr="[object Uint32Array]",ic=/\b__p \+= '';/g,xi=/\b(__p \+=) '' \+/g,Ai=/(__e\(.*?\)|\b__t\)) \+\n'';/g,js=/&(?:amp|lt|gt|quot|#39);/g,br=/[&<>"']/g,oc=RegExp(js.source),sc=RegExp(br.source),gt=/<%-([\s\S]+?)%>/g,_r=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,Vs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bo=/^\w*$/,Gs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oi=/[\\^$.*+?()[\]{}|]/g,ac=RegExp(Oi.source),Vt=/^\s+/,Ii=/\s/,Hs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ys=/\{\n\/\* \[wrapped with (.+)\] \*/,_o=/,? & /,qs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Ks=/\\(\\)?/g,Js=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,To=/\w*$/,Rs=/^[-+]0x[0-9a-f]+$/i,lc=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,X=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,St=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",Pt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",Hr="\\u20d0-\\u20ff",Ct=Pt+ln+Hr,wo="\\u2700-\\u27bf",So="a-z\\xdf-\\xf6\\xf8-\\xff",ik="\\xac\\xb1\\xd7\\xf7",ok="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sk="\\u2000-\\u206f",ak=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",D0="A-Z\\xc0-\\xd6\\xd8-\\xde",k0="\\ufe0e\\ufe0f",N0=ik+ok+sk+ak,uc="['’]",lk="["+ut+"]",L0="["+N0+"]",Zs="["+Ct+"]",B0="\\d+",uk="["+wo+"]",z0="["+So+"]",U0="[^"+ut+N0+B0+wo+So+D0+"]",cc="\\ud83c[\\udffb-\\udfff]",ck="(?:"+Zs+"|"+cc+")",j0="[^"+ut+"]",fc="(?:\\ud83c[\\udde6-\\uddff]){2}",dc="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+D0+"]",W0="\\u200d",V0="(?:"+z0+"|"+U0+")",fk="(?:"+Pi+"|"+U0+")",G0="(?:"+uc+"(?:d|ll|m|re|s|t|ve))?",H0="(?:"+uc+"(?:D|LL|M|RE|S|T|VE))?",Y0=ck+"?",q0="["+k0+"]?",dk="(?:"+W0+"(?:"+[j0,fc,dc].join("|")+")"+q0+Y0+")*",hk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",K0=q0+Y0+dk,gk="(?:"+[uk,fc,dc].join("|")+")"+K0,mk="(?:"+[j0+Zs+"?",Zs,fc,dc,lk].join("|")+")",yk=RegExp(uc,"g"),vk=RegExp(Zs,"g"),hc=RegExp(cc+"(?="+cc+")|"+mk+K0,"g"),bk=RegExp([Pi+"?"+z0+"+"+G0+"(?="+[L0,Pi,"$"].join("|")+")",fk+"+"+H0+"(?="+[L0,Pi+V0,"$"].join("|")+")",Pi+"?"+V0+"+"+G0,Pi+"+"+H0,pk,hk,B0,gk].join("|"),"g"),_k=RegExp("["+W0+ut+Ct+k0+"]"),Tk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sk=-1,Qe={};Qe[Ci]=Qe[Wr]=Qe[Ei]=Qe[yr]=Qe[vr]=Qe[Rt]=Qe[Fn]=Qe[Vr]=Qe[Gr]=!0,Qe[ee]=Qe[oe]=Qe[mr]=Qe[be]=Qe[qn]=Qe[pe]=Qe[tt]=Qe[te]=Qe[Je]=Qe[Lt]=Qe[vt]=Qe[hr]=Qe[Wt]=Qe[Ur]=Qe[an]=!1;var Re={};Re[ee]=Re[oe]=Re[mr]=Re[qn]=Re[be]=Re[pe]=Re[Ci]=Re[Wr]=Re[Ei]=Re[yr]=Re[vr]=Re[Je]=Re[Lt]=Re[vt]=Re[hr]=Re[Wt]=Re[Ur]=Re[pr]=Re[Rt]=Re[Fn]=Re[Vr]=Re[Gr]=!0,Re[tt]=Re[te]=Re[an]=!1;var Ck={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ak={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ok=parseFloat,Ik=parseInt,J0=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Pk=typeof self=="object"&&self&&self.Object===Object&&self,At=J0||Pk||Function("return this")(),pc=t&&!t.nodeType&&t,Yr=pc&&!0&&e&&!e.nodeType&&e,R0=Yr&&Yr.exports===pc,gc=R0&&J0.process,un=function(){try{var M=Yr&&Yr.require&&Yr.require("util").types;return M||gc&&gc.binding&&gc.binding("util")}catch{}}(),Z0=un&&un.isArrayBuffer,X0=un&&un.isDate,Q0=un&&un.isMap,ey=un&&un.isRegExp,ty=un&&un.isSet,ny=un&&un.isTypedArray;function Zt(M,j,L){switch(L.length){case 0:return M.call(j);case 1:return M.call(j,L[0]);case 2:return M.call(j,L[0],L[1]);case 3:return M.call(j,L[0],L[1],L[2])}return M.apply(j,L)}function $k(M,j,L,se){for(var _e=-1,Be=M==null?0:M.length;++_e<Be;){var bt=M[_e];j(se,bt,L(bt),M)}return se}function cn(M,j){for(var L=-1,se=M==null?0:M.length;++L<se&&j(M[L],L,M)!==!1;);return M}function Mk(M,j){for(var L=M==null?0:M.length;L--&&j(M[L],L,M)!==!1;);return M}function ry(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(!j(M[L],L,M))return!1;return!0}function Tr(M,j){for(var L=-1,se=M==null?0:M.length,_e=0,Be=[];++L<se;){var bt=M[L];j(bt,L,M)&&(Be[_e++]=bt)}return Be}function Xs(M,j){var L=M==null?0:M.length;return!!L&&$i(M,j,0)>-1}function mc(M,j,L){for(var se=-1,_e=M==null?0:M.length;++se<_e;)if(L(j,M[se]))return!0;return!1}function nt(M,j){for(var L=-1,se=M==null?0:M.length,_e=Array(se);++L<se;)_e[L]=j(M[L],L,M);return _e}function wr(M,j){for(var L=-1,se=j.length,_e=M.length;++L<se;)M[_e+L]=j[L];return M}function yc(M,j,L,se){var _e=-1,Be=M==null?0:M.length;for(se&&Be&&(L=M[++_e]);++_e<Be;)L=j(L,M[_e],_e,M);return L}function Fk(M,j,L,se){var _e=M==null?0:M.length;for(se&&_e&&(L=M[--_e]);_e--;)L=j(L,M[_e],_e,M);return L}function vc(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(j(M[L],L,M))return!0;return!1}var Dk=bc("length");function kk(M){return M.split("")}function Nk(M){return M.match(qs)||[]}function iy(M,j,L){var se;return L(M,function(_e,Be,bt){if(j(_e,Be,bt))return se=Be,!1}),se}function Qs(M,j,L,se){for(var _e=M.length,Be=L+(se?1:-1);se?Be--:++Be<_e;)if(j(M[Be],Be,M))return Be;return-1}function $i(M,j,L){return j===j?Kk(M,j,L):Qs(M,oy,L)}function Lk(M,j,L,se){for(var _e=L-1,Be=M.length;++_e<Be;)if(se(M[_e],j))return _e;return-1}function oy(M){return M!==M}function sy(M,j){var L=M==null?0:M.length;return L?Tc(M,j)/L:q}function bc(M){return function(j){return j==null?n:j[M]}}function _c(M){return function(j){return M==null?n:M[j]}}function ay(M,j,L,se,_e){return _e(M,function(Be,bt,Ke){L=se?(se=!1,Be):j(L,Be,bt,Ke)}),L}function Bk(M,j){var L=M.length;for(M.sort(j);L--;)M[L]=M[L].value;return M}function Tc(M,j){for(var L,se=-1,_e=M.length;++se<_e;){var Be=j(M[se]);Be!==n&&(L=L===n?Be:L+Be)}return L}function wc(M,j){for(var L=-1,se=Array(M);++L<M;)se[L]=j(L);return se}function zk(M,j){return nt(j,function(L){return[L,M[L]]})}function ly(M){return M&&M.slice(0,dy(M)+1).replace(Vt,"")}function Xt(M){return function(j){return M(j)}}function Sc(M,j){return nt(j,function(L){return M[L]})}function Co(M,j){return M.has(j)}function uy(M,j){for(var L=-1,se=M.length;++L<se&&$i(j,M[L],0)>-1;);return L}function cy(M,j){for(var L=M.length;L--&&$i(j,M[L],0)>-1;);return L}function Uk(M,j){for(var L=M.length,se=0;L--;)M[L]===j&&++se;return se}var jk=_c(Ck),Wk=_c(Ek);function Vk(M){return"\\"+Ak[M]}function Gk(M,j){return M==null?n:M[j]}function Mi(M){return _k.test(M)}function Hk(M){return Tk.test(M)}function Yk(M){for(var j,L=[];!(j=M.next()).done;)L.push(j.value);return L}function Cc(M){var j=-1,L=Array(M.size);return M.forEach(function(se,_e){L[++j]=[_e,se]}),L}function fy(M,j){return function(L){return M(j(L))}}function Sr(M,j){for(var L=-1,se=M.length,_e=0,Be=[];++L<se;){var bt=M[L];(bt===j||bt===y)&&(M[L]=y,Be[_e++]=L)}return Be}function ea(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=se}),L}function qk(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=[se,se]}),L}function Kk(M,j,L){for(var se=L-1,_e=M.length;++se<_e;)if(M[se]===j)return se;return-1}function Jk(M,j,L){for(var se=L+1;se--;)if(M[se]===j)return se;return se}function Fi(M){return Mi(M)?Zk(M):Dk(M)}function Sn(M){return Mi(M)?Xk(M):kk(M)}function dy(M){for(var j=M.length;j--&&Ii.test(M.charAt(j)););return j}var Rk=_c(xk);function Zk(M){for(var j=hc.lastIndex=0;hc.test(M);)++j;return j}function Xk(M){return M.match(hc)||[]}function Qk(M){return M.match(bk)||[]}var eN=function M(j){j=j==null?At:Di.defaults(At.Object(),j,Di.pick(At,wk));var L=j.Array,se=j.Date,_e=j.Error,Be=j.Function,bt=j.Math,Ke=j.Object,Ec=j.RegExp,tN=j.String,fn=j.TypeError,ta=L.prototype,nN=Be.prototype,ki=Ke.prototype,na=j["__core-js_shared__"],ra=nN.toString,Ve=ki.hasOwnProperty,rN=0,hy=function(){var r=/[^.]+$/.exec(na&&na.keys&&na.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ia=ki.toString,iN=ra.call(Ke),oN=At._,sN=Ec("^"+ra.call(Ve).replace(Oi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oa=R0?j.Buffer:n,Cr=j.Symbol,sa=j.Uint8Array,py=oa?oa.allocUnsafe:n,aa=fy(Ke.getPrototypeOf,Ke),gy=Ke.create,my=ki.propertyIsEnumerable,la=ta.splice,yy=Cr?Cr.isConcatSpreadable:n,Eo=Cr?Cr.iterator:n,qr=Cr?Cr.toStringTag:n,ua=function(){try{var r=Xr(Ke,"defineProperty");return r({},"",{}),r}catch{}}(),aN=j.clearTimeout!==At.clearTimeout&&j.clearTimeout,lN=se&&se.now!==At.Date.now&&se.now,uN=j.setTimeout!==At.setTimeout&&j.setTimeout,ca=bt.ceil,fa=bt.floor,xc=Ke.getOwnPropertySymbols,cN=oa?oa.isBuffer:n,vy=j.isFinite,fN=ta.join,dN=fy(Ke.keys,Ke),_t=bt.max,$t=bt.min,hN=se.now,pN=j.parseInt,by=bt.random,gN=ta.reverse,Ac=Xr(j,"DataView"),xo=Xr(j,"Map"),Oc=Xr(j,"Promise"),Ni=Xr(j,"Set"),Ao=Xr(j,"WeakMap"),Oo=Xr(Ke,"create"),da=Ao&&new Ao,Li={},mN=Qr(Ac),yN=Qr(xo),vN=Qr(Oc),bN=Qr(Ni),_N=Qr(Ao),ha=Cr?Cr.prototype:n,Io=ha?ha.valueOf:n,_y=ha?ha.toString:n;function b(r){if(ct(r)&&!Te(r)&&!(r instanceof $e)){if(r instanceof dn)return r;if(Ve.call(r,"__wrapped__"))return Tv(r)}return new dn(r)}var Bi=function(){function r(){}return function(i){if(!rt(i))return{};if(gy)return gy(i);r.prototype=i;var l=new r;return r.prototype=n,l}}();function pa(){}function dn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}b.templateSettings={escape:gt,evaluate:_r,interpolate:Ws,variable:"",imports:{_:b}},b.prototype=pa.prototype,b.prototype.constructor=b,dn.prototype=Bi(pa.prototype),dn.prototype.constructor=dn;function $e(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function TN(){var r=new $e(this.__wrapped__);return r.__actions__=Gt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Gt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Gt(this.__views__),r}function wN(){if(this.__filtered__){var r=new $e(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function SN(){var r=this.__wrapped__.value(),i=this.__dir__,l=Te(r),f=i<0,g=l?r.length:0,T=kL(0,g,this.__views__),A=T.start,I=T.end,F=I-A,W=f?I:A-1,V=this.__iteratees__,J=V.length,re=0,ce=$t(F,this.__takeCount__);if(!l||!f&&g==F&&ce==F)return Gy(r,this.__actions__);var ge=[];e:for(;F--&&re<ce;){W+=i;for(var Ee=-1,me=r[W];++Ee<J;){var Pe=V[Ee],Fe=Pe.iteratee,tn=Pe.type,Ut=Fe(me);if(tn==Me)me=Ut;else if(!Ut){if(tn==ye)continue e;break e}}ge[re++]=me}return ge}$e.prototype=Bi(pa.prototype),$e.prototype.constructor=$e;function Kr(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function CN(){this.__data__=Oo?Oo(null):{},this.size=0}function EN(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function xN(r){var i=this.__data__;if(Oo){var l=i[r];return l===h?n:l}return Ve.call(i,r)?i[r]:n}function AN(r){var i=this.__data__;return Oo?i[r]!==n:Ve.call(i,r)}function ON(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Oo&&i===n?h:i,this}Kr.prototype.clear=CN,Kr.prototype.delete=EN,Kr.prototype.get=xN,Kr.prototype.has=AN,Kr.prototype.set=ON;function Kn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function IN(){this.__data__=[],this.size=0}function PN(r){var i=this.__data__,l=ga(i,r);if(l<0)return!1;var f=i.length-1;return l==f?i.pop():la.call(i,l,1),--this.size,!0}function $N(r){var i=this.__data__,l=ga(i,r);return l<0?n:i[l][1]}function MN(r){return ga(this.__data__,r)>-1}function FN(r,i){var l=this.__data__,f=ga(l,r);return f<0?(++this.size,l.push([r,i])):l[f][1]=i,this}Kn.prototype.clear=IN,Kn.prototype.delete=PN,Kn.prototype.get=$N,Kn.prototype.has=MN,Kn.prototype.set=FN;function Jn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function DN(){this.size=0,this.__data__={hash:new Kr,map:new(xo||Kn),string:new Kr}}function kN(r){var i=Aa(this,r).delete(r);return this.size-=i?1:0,i}function NN(r){return Aa(this,r).get(r)}function LN(r){return Aa(this,r).has(r)}function BN(r,i){var l=Aa(this,r),f=l.size;return l.set(r,i),this.size+=l.size==f?0:1,this}Jn.prototype.clear=DN,Jn.prototype.delete=kN,Jn.prototype.get=NN,Jn.prototype.has=LN,Jn.prototype.set=BN;function Jr(r){var i=-1,l=r==null?0:r.length;for(this.__data__=new Jn;++i<l;)this.add(r[i])}function zN(r){return this.__data__.set(r,h),this}function UN(r){return this.__data__.has(r)}Jr.prototype.add=Jr.prototype.push=zN,Jr.prototype.has=UN;function Cn(r){var i=this.__data__=new Kn(r);this.size=i.size}function jN(){this.__data__=new Kn,this.size=0}function WN(r){var i=this.__data__,l=i.delete(r);return this.size=i.size,l}function VN(r){return this.__data__.get(r)}function GN(r){return this.__data__.has(r)}function HN(r,i){var l=this.__data__;if(l instanceof Kn){var f=l.__data__;if(!xo||f.length<s-1)return f.push([r,i]),this.size=++l.size,this;l=this.__data__=new Jn(f)}return l.set(r,i),this.size=l.size,this}Cn.prototype.clear=jN,Cn.prototype.delete=WN,Cn.prototype.get=VN,Cn.prototype.has=GN,Cn.prototype.set=HN;function Ty(r,i){var l=Te(r),f=!l&&ei(r),g=!l&&!f&&Ir(r),T=!l&&!f&&!g&&Wi(r),A=l||f||g||T,I=A?wc(r.length,tN):[],F=I.length;for(var W in r)(i||Ve.call(r,W))&&!(A&&(W=="length"||g&&(W=="offset"||W=="parent")||T&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Qn(W,F)))&&I.push(W);return I}function wy(r){var i=r.length;return i?r[zc(0,i-1)]:n}function YN(r,i){return Oa(Gt(r),Rr(i,0,r.length))}function qN(r){return Oa(Gt(r))}function Ic(r,i,l){(l!==n&&!En(r[i],l)||l===n&&!(i in r))&&Rn(r,i,l)}function Po(r,i,l){var f=r[i];(!(Ve.call(r,i)&&En(f,l))||l===n&&!(i in r))&&Rn(r,i,l)}function ga(r,i){for(var l=r.length;l--;)if(En(r[l][0],i))return l;return-1}function KN(r,i,l,f){return Er(r,function(g,T,A){i(f,g,l(g),A)}),f}function Sy(r,i){return r&&kn(i,Et(i),r)}function JN(r,i){return r&&kn(i,Yt(i),r)}function Rn(r,i,l){i=="__proto__"&&ua?ua(r,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[i]=l}function Pc(r,i){for(var l=-1,f=i.length,g=L(f),T=r==null;++l<f;)g[l]=T?n:ff(r,i[l]);return g}function Rr(r,i,l){return r===r&&(l!==n&&(r=r<=l?r:l),i!==n&&(r=r>=i?r:i)),r}function hn(r,i,l,f,g,T){var A,I=i&m,F=i&_,W=i&C;if(l&&(A=g?l(r,f,g,T):l(r)),A!==n)return A;if(!rt(r))return r;var V=Te(r);if(V){if(A=LL(r),!I)return Gt(r,A)}else{var J=Mt(r),re=J==te||J==yt;if(Ir(r))return qy(r,I);if(J==vt||J==ee||re&&!g){if(A=F||re?{}:dv(r),!I)return F?xL(r,JN(A,r)):EL(r,Sy(A,r))}else{if(!Re[J])return g?r:{};A=BL(r,J,I)}}T||(T=new Cn);var ce=T.get(r);if(ce)return ce;T.set(r,A),jv(r)?r.forEach(function(me){A.add(hn(me,i,l,me,r,T))}):zv(r)&&r.forEach(function(me,Pe){A.set(Pe,hn(me,i,l,Pe,r,T))});var ge=W?F?Rc:Jc:F?Yt:Et,Ee=V?n:ge(r);return cn(Ee||r,function(me,Pe){Ee&&(Pe=me,me=r[Pe]),Po(A,Pe,hn(me,i,l,Pe,r,T))}),A}function RN(r){var i=Et(r);return function(l){return Cy(l,r,i)}}function Cy(r,i,l){var f=l.length;if(r==null)return!f;for(r=Ke(r);f--;){var g=l[f],T=i[g],A=r[g];if(A===n&&!(g in r)||!T(A))return!1}return!0}function Ey(r,i,l){if(typeof r!="function")throw new fn(u);return Lo(function(){r.apply(n,l)},i)}function $o(r,i,l,f){var g=-1,T=Xs,A=!0,I=r.length,F=[],W=i.length;if(!I)return F;l&&(i=nt(i,Xt(l))),f?(T=mc,A=!1):i.length>=s&&(T=Co,A=!1,i=new Jr(i));e:for(;++g<I;){var V=r[g],J=l==null?V:l(V);if(V=f||V!==0?V:0,A&&J===J){for(var re=W;re--;)if(i[re]===J)continue e;F.push(V)}else T(i,J,f)||F.push(V)}return F}var Er=Xy(Dn),xy=Xy(Mc,!0);function ZN(r,i){var l=!0;return Er(r,function(f,g,T){return l=!!i(f,g,T),l}),l}function ma(r,i,l){for(var f=-1,g=r.length;++f<g;){var T=r[f],A=i(T);if(A!=null&&(I===n?A===A&&!en(A):l(A,I)))var I=A,F=T}return F}function XN(r,i,l,f){var g=r.length;for(l=Se(l),l<0&&(l=-l>g?0:g+l),f=f===n||f>g?g:Se(f),f<0&&(f+=g),f=l>f?0:Vv(f);l<f;)r[l++]=i;return r}function Ay(r,i){var l=[];return Er(r,function(f,g,T){i(f,g,T)&&l.push(f)}),l}function Ot(r,i,l,f,g){var T=-1,A=r.length;for(l||(l=UL),g||(g=[]);++T<A;){var I=r[T];i>0&&l(I)?i>1?Ot(I,i-1,l,f,g):wr(g,I):f||(g[g.length]=I)}return g}var $c=Qy(),Oy=Qy(!0);function Dn(r,i){return r&&$c(r,i,Et)}function Mc(r,i){return r&&Oy(r,i,Et)}function ya(r,i){return Tr(i,function(l){return er(r[l])})}function Zr(r,i){i=Ar(i,r);for(var l=0,f=i.length;r!=null&&l<f;)r=r[Nn(i[l++])];return l&&l==f?r:n}function Iy(r,i,l){var f=i(r);return Te(r)?f:wr(f,l(r))}function Bt(r){return r==null?r===n?jr:dr:qr&&qr in Ke(r)?DL(r):qL(r)}function Fc(r,i){return r>i}function QN(r,i){return r!=null&&Ve.call(r,i)}function eL(r,i){return r!=null&&i in Ke(r)}function tL(r,i,l){return r>=$t(i,l)&&r<_t(i,l)}function Dc(r,i,l){for(var f=l?mc:Xs,g=r[0].length,T=r.length,A=T,I=L(T),F=1/0,W=[];A--;){var V=r[A];A&&i&&(V=nt(V,Xt(i))),F=$t(V.length,F),I[A]=!l&&(i||g>=120&&V.length>=120)?new Jr(A&&V):n}V=r[0];var J=-1,re=I[0];e:for(;++J<g&&W.length<F;){var ce=V[J],ge=i?i(ce):ce;if(ce=l||ce!==0?ce:0,!(re?Co(re,ge):f(W,ge,l))){for(A=T;--A;){var Ee=I[A];if(!(Ee?Co(Ee,ge):f(r[A],ge,l)))continue e}re&&re.push(ge),W.push(ce)}}return W}function nL(r,i,l,f){return Dn(r,function(g,T,A){i(f,l(g),T,A)}),f}function Mo(r,i,l){i=Ar(i,r),r=mv(r,i);var f=r==null?r:r[Nn(gn(i))];return f==null?n:Zt(f,r,l)}function Py(r){return ct(r)&&Bt(r)==ee}function rL(r){return ct(r)&&Bt(r)==mr}function iL(r){return ct(r)&&Bt(r)==pe}function Fo(r,i,l,f,g){return r===i?!0:r==null||i==null||!ct(r)&&!ct(i)?r!==r&&i!==i:oL(r,i,l,f,Fo,g)}function oL(r,i,l,f,g,T){var A=Te(r),I=Te(i),F=A?oe:Mt(r),W=I?oe:Mt(i);F=F==ee?vt:F,W=W==ee?vt:W;var V=F==vt,J=W==vt,re=F==W;if(re&&Ir(r)){if(!Ir(i))return!1;A=!0,V=!1}if(re&&!V)return T||(T=new Cn),A||Wi(r)?uv(r,i,l,f,g,T):ML(r,i,F,l,f,g,T);if(!(l&E)){var ce=V&&Ve.call(r,"__wrapped__"),ge=J&&Ve.call(i,"__wrapped__");if(ce||ge){var Ee=ce?r.value():r,me=ge?i.value():i;return T||(T=new Cn),g(Ee,me,l,f,T)}}return re?(T||(T=new Cn),FL(r,i,l,f,g,T)):!1}function sL(r){return ct(r)&&Mt(r)==Je}function kc(r,i,l,f){var g=l.length,T=g,A=!f;if(r==null)return!T;for(r=Ke(r);g--;){var I=l[g];if(A&&I[2]?I[1]!==r[I[0]]:!(I[0]in r))return!1}for(;++g<T;){I=l[g];var F=I[0],W=r[F],V=I[1];if(A&&I[2]){if(W===n&&!(F in r))return!1}else{var J=new Cn;if(f)var re=f(W,V,F,r,i,J);if(!(re===n?Fo(V,W,E|w,f,J):re))return!1}}return!0}function $y(r){if(!rt(r)||WL(r))return!1;var i=er(r)?sN:de;return i.test(Qr(r))}function aL(r){return ct(r)&&Bt(r)==hr}function lL(r){return ct(r)&&Mt(r)==Wt}function uL(r){return ct(r)&&Da(r.length)&&!!Qe[Bt(r)]}function My(r){return typeof r=="function"?r:r==null?qt:typeof r=="object"?Te(r)?ky(r[0],r[1]):Dy(r):eb(r)}function Nc(r){if(!No(r))return dN(r);var i=[];for(var l in Ke(r))Ve.call(r,l)&&l!="constructor"&&i.push(l);return i}function cL(r){if(!rt(r))return YL(r);var i=No(r),l=[];for(var f in r)f=="constructor"&&(i||!Ve.call(r,f))||l.push(f);return l}function Lc(r,i){return r<i}function Fy(r,i){var l=-1,f=Ht(r)?L(r.length):[];return Er(r,function(g,T,A){f[++l]=i(g,T,A)}),f}function Dy(r){var i=Xc(r);return i.length==1&&i[0][2]?pv(i[0][0],i[0][1]):function(l){return l===r||kc(l,r,i)}}function ky(r,i){return ef(r)&&hv(i)?pv(Nn(r),i):function(l){var f=ff(l,r);return f===n&&f===i?df(l,r):Fo(i,f,E|w)}}function va(r,i,l,f,g){r!==i&&$c(i,function(T,A){if(g||(g=new Cn),rt(T))fL(r,i,A,l,va,f,g);else{var I=f?f(nf(r,A),T,A+"",r,i,g):n;I===n&&(I=T),Ic(r,A,I)}},Yt)}function fL(r,i,l,f,g,T,A){var I=nf(r,l),F=nf(i,l),W=A.get(F);if(W){Ic(r,l,W);return}var V=T?T(I,F,l+"",r,i,A):n,J=V===n;if(J){var re=Te(F),ce=!re&&Ir(F),ge=!re&&!ce&&Wi(F);V=F,re||ce||ge?Te(I)?V=I:ht(I)?V=Gt(I):ce?(J=!1,V=qy(F,!0)):ge?(J=!1,V=Ky(F,!0)):V=[]:Bo(F)||ei(F)?(V=I,ei(I)?V=Gv(I):(!rt(I)||er(I))&&(V=dv(F))):J=!1}J&&(A.set(F,V),g(V,F,f,T,A),A.delete(F)),Ic(r,l,V)}function Ny(r,i){var l=r.length;if(l)return i+=i<0?l:0,Qn(i,l)?r[i]:n}function Ly(r,i,l){i.length?i=nt(i,function(T){return Te(T)?function(A){return Zr(A,T.length===1?T[0]:T)}:T}):i=[qt];var f=-1;i=nt(i,Xt(he()));var g=Fy(r,function(T,A,I){var F=nt(i,function(W){return W(T)});return{criteria:F,index:++f,value:T}});return Bk(g,function(T,A){return CL(T,A,l)})}function dL(r,i){return By(r,i,function(l,f){return df(r,f)})}function By(r,i,l){for(var f=-1,g=i.length,T={};++f<g;){var A=i[f],I=Zr(r,A);l(I,A)&&Do(T,Ar(A,r),I)}return T}function hL(r){return function(i){return Zr(i,r)}}function Bc(r,i,l,f){var g=f?Lk:$i,T=-1,A=i.length,I=r;for(r===i&&(i=Gt(i)),l&&(I=nt(r,Xt(l)));++T<A;)for(var F=0,W=i[T],V=l?l(W):W;(F=g(I,V,F,f))>-1;)I!==r&&la.call(I,F,1),la.call(r,F,1);return r}function zy(r,i){for(var l=r?i.length:0,f=l-1;l--;){var g=i[l];if(l==f||g!==T){var T=g;Qn(g)?la.call(r,g,1):Wc(r,g)}}return r}function zc(r,i){return r+fa(by()*(i-r+1))}function pL(r,i,l,f){for(var g=-1,T=_t(ca((i-r)/(l||1)),0),A=L(T);T--;)A[f?T:++g]=r,r+=l;return A}function Uc(r,i){var l="";if(!r||i<1||i>Ie)return l;do i%2&&(l+=r),i=fa(i/2),i&&(r+=r);while(i);return l}function xe(r,i){return rf(gv(r,i,qt),r+"")}function gL(r){return wy(Vi(r))}function mL(r,i){var l=Vi(r);return Oa(l,Rr(i,0,l.length))}function Do(r,i,l,f){if(!rt(r))return r;i=Ar(i,r);for(var g=-1,T=i.length,A=T-1,I=r;I!=null&&++g<T;){var F=Nn(i[g]),W=l;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(g!=A){var V=I[F];W=f?f(V,F,I):n,W===n&&(W=rt(V)?V:Qn(i[g+1])?[]:{})}Po(I,F,W),I=I[F]}return r}var Uy=da?function(r,i){return da.set(r,i),r}:qt,yL=ua?function(r,i){return ua(r,"toString",{configurable:!0,enumerable:!1,value:pf(i),writable:!0})}:qt;function vL(r){return Oa(Vi(r))}function pn(r,i,l){var f=-1,g=r.length;i<0&&(i=-i>g?0:g+i),l=l>g?g:l,l<0&&(l+=g),g=i>l?0:l-i>>>0,i>>>=0;for(var T=L(g);++f<g;)T[f]=r[f+i];return T}function bL(r,i){var l;return Er(r,function(f,g,T){return l=i(f,g,T),!l}),!!l}function ba(r,i,l){var f=0,g=r==null?f:r.length;if(typeof i=="number"&&i===i&&g<=R){for(;f<g;){var T=f+g>>>1,A=r[T];A!==null&&!en(A)&&(l?A<=i:A<i)?f=T+1:g=T}return g}return jc(r,i,qt,l)}function jc(r,i,l,f){var g=0,T=r==null?0:r.length;if(T===0)return 0;i=l(i);for(var A=i!==i,I=i===null,F=en(i),W=i===n;g<T;){var V=fa((g+T)/2),J=l(r[V]),re=J!==n,ce=J===null,ge=J===J,Ee=en(J);if(A)var me=f||ge;else W?me=ge&&(f||re):I?me=ge&&re&&(f||!ce):F?me=ge&&re&&!ce&&(f||!Ee):ce||Ee?me=!1:me=f?J<=i:J<i;me?g=V+1:T=V}return $t(T,Z)}function jy(r,i){for(var l=-1,f=r.length,g=0,T=[];++l<f;){var A=r[l],I=i?i(A):A;if(!l||!En(I,F)){var F=I;T[g++]=A===0?0:A}}return T}function Wy(r){return typeof r=="number"?r:en(r)?q:+r}function Qt(r){if(typeof r=="string")return r;if(Te(r))return nt(r,Qt)+"";if(en(r))return _y?_y.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function xr(r,i,l){var f=-1,g=Xs,T=r.length,A=!0,I=[],F=I;if(l)A=!1,g=mc;else if(T>=s){var W=i?null:PL(r);if(W)return ea(W);A=!1,g=Co,F=new Jr}else F=i?[]:I;e:for(;++f<T;){var V=r[f],J=i?i(V):V;if(V=l||V!==0?V:0,A&&J===J){for(var re=F.length;re--;)if(F[re]===J)continue e;i&&F.push(J),I.push(V)}else g(F,J,l)||(F!==I&&F.push(J),I.push(V))}return I}function Wc(r,i){return i=Ar(i,r),r=mv(r,i),r==null||delete r[Nn(gn(i))]}function Vy(r,i,l,f){return Do(r,i,l(Zr(r,i)),f)}function _a(r,i,l,f){for(var g=r.length,T=f?g:-1;(f?T--:++T<g)&&i(r[T],T,r););return l?pn(r,f?0:T,f?T+1:g):pn(r,f?T+1:0,f?g:T)}function Gy(r,i){var l=r;return l instanceof $e&&(l=l.value()),yc(i,function(f,g){return g.func.apply(g.thisArg,wr([f],g.args))},l)}function Vc(r,i,l){var f=r.length;if(f<2)return f?xr(r[0]):[];for(var g=-1,T=L(f);++g<f;)for(var A=r[g],I=-1;++I<f;)I!=g&&(T[g]=$o(T[g]||A,r[I],i,l));return xr(Ot(T,1),i,l)}function Hy(r,i,l){for(var f=-1,g=r.length,T=i.length,A={};++f<g;){var I=f<T?i[f]:n;l(A,r[f],I)}return A}function Gc(r){return ht(r)?r:[]}function Hc(r){return typeof r=="function"?r:qt}function Ar(r,i){return Te(r)?r:ef(r,i)?[r]:_v(je(r))}var _L=xe;function Or(r,i,l){var f=r.length;return l=l===n?f:l,!i&&l>=f?r:pn(r,i,l)}var Yy=aN||function(r){return At.clearTimeout(r)};function qy(r,i){if(i)return r.slice();var l=r.length,f=py?py(l):new r.constructor(l);return r.copy(f),f}function Yc(r){var i=new r.constructor(r.byteLength);return new sa(i).set(new sa(r)),i}function TL(r,i){var l=i?Yc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function wL(r){var i=new r.constructor(r.source,To.exec(r));return i.lastIndex=r.lastIndex,i}function SL(r){return Io?Ke(Io.call(r)):{}}function Ky(r,i){var l=i?Yc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function Jy(r,i){if(r!==i){var l=r!==n,f=r===null,g=r===r,T=en(r),A=i!==n,I=i===null,F=i===i,W=en(i);if(!I&&!W&&!T&&r>i||T&&A&&F&&!I&&!W||f&&A&&F||!l&&F||!g)return 1;if(!f&&!T&&!W&&r<i||W&&l&&g&&!f&&!T||I&&l&&g||!A&&g||!F)return-1}return 0}function CL(r,i,l){for(var f=-1,g=r.criteria,T=i.criteria,A=g.length,I=l.length;++f<A;){var F=Jy(g[f],T[f]);if(F){if(f>=I)return F;var W=l[f];return F*(W=="desc"?-1:1)}}return r.index-i.index}function Ry(r,i,l,f){for(var g=-1,T=r.length,A=l.length,I=-1,F=i.length,W=_t(T-A,0),V=L(F+W),J=!f;++I<F;)V[I]=i[I];for(;++g<A;)(J||g<T)&&(V[l[g]]=r[g]);for(;W--;)V[I++]=r[g++];return V}function Zy(r,i,l,f){for(var g=-1,T=r.length,A=-1,I=l.length,F=-1,W=i.length,V=_t(T-I,0),J=L(V+W),re=!f;++g<V;)J[g]=r[g];for(var ce=g;++F<W;)J[ce+F]=i[F];for(;++A<I;)(re||g<T)&&(J[ce+l[A]]=r[g++]);return J}function Gt(r,i){var l=-1,f=r.length;for(i||(i=L(f));++l<f;)i[l]=r[l];return i}function kn(r,i,l,f){var g=!l;l||(l={});for(var T=-1,A=i.length;++T<A;){var I=i[T],F=f?f(l[I],r[I],I,l,r):n;F===n&&(F=r[I]),g?Rn(l,I,F):Po(l,I,F)}return l}function EL(r,i){return kn(r,Qc(r),i)}function xL(r,i){return kn(r,cv(r),i)}function Ta(r,i){return function(l,f){var g=Te(l)?$k:KN,T=i?i():{};return g(l,r,he(f,2),T)}}function zi(r){return xe(function(i,l){var f=-1,g=l.length,T=g>1?l[g-1]:n,A=g>2?l[2]:n;for(T=r.length>3&&typeof T=="function"?(g--,T):n,A&&zt(l[0],l[1],A)&&(T=g<3?n:T,g=1),i=Ke(i);++f<g;){var I=l[f];I&&r(i,I,f,T)}return i})}function Xy(r,i){return function(l,f){if(l==null)return l;if(!Ht(l))return r(l,f);for(var g=l.length,T=i?g:-1,A=Ke(l);(i?T--:++T<g)&&f(A[T],T,A)!==!1;);return l}}function Qy(r){return function(i,l,f){for(var g=-1,T=Ke(i),A=f(i),I=A.length;I--;){var F=A[r?I:++g];if(l(T[F],F,T)===!1)break}return i}}function AL(r,i,l){var f=i&$,g=ko(r);function T(){var A=this&&this!==At&&this instanceof T?g:r;return A.apply(f?l:this,arguments)}return T}function ev(r){return function(i){i=je(i);var l=Mi(i)?Sn(i):n,f=l?l[0]:i.charAt(0),g=l?Or(l,1).join(""):i.slice(1);return f[r]()+g}}function Ui(r){return function(i){return yc(Xv(Zv(i).replace(yk,"")),r,"")}}function ko(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var l=Bi(r.prototype),f=r.apply(l,i);return rt(f)?f:l}}function OL(r,i,l){var f=ko(r);function g(){for(var T=arguments.length,A=L(T),I=T,F=ji(g);I--;)A[I]=arguments[I];var W=T<3&&A[0]!==F&&A[T-1]!==F?[]:Sr(A,F);if(T-=W.length,T<l)return ov(r,i,wa,g.placeholder,n,A,W,n,n,l-T);var V=this&&this!==At&&this instanceof g?f:r;return Zt(V,this,A)}return g}function tv(r){return function(i,l,f){var g=Ke(i);if(!Ht(i)){var T=he(l,3);i=Et(i),l=function(I){return T(g[I],I,g)}}var A=r(i,l,f);return A>-1?g[T?i[A]:A]:n}}function nv(r){return Xn(function(i){var l=i.length,f=l,g=dn.prototype.thru;for(r&&i.reverse();f--;){var T=i[f];if(typeof T!="function")throw new fn(u);if(g&&!A&&xa(T)=="wrapper")var A=new dn([],!0)}for(f=A?f:l;++f<l;){T=i[f];var I=xa(T),F=I=="wrapper"?Zc(T):n;F&&tf(F[0])&&F[1]==(G|H|D|ae)&&!F[4].length&&F[9]==1?A=A[xa(F[0])].apply(A,F[3]):A=T.length==1&&tf(T)?A[I]():A.thru(T)}return function(){var W=arguments,V=W[0];if(A&&W.length==1&&Te(V))return A.plant(V).value();for(var J=0,re=l?i[J].apply(this,W):V;++J<l;)re=i[J].call(this,re);return re}})}function wa(r,i,l,f,g,T,A,I,F,W){var V=i&G,J=i&$,re=i&N,ce=i&(H|B),ge=i&ie,Ee=re?n:ko(r);function me(){for(var Pe=arguments.length,Fe=L(Pe),tn=Pe;tn--;)Fe[tn]=arguments[tn];if(ce)var Ut=ji(me),nn=Uk(Fe,Ut);if(f&&(Fe=Ry(Fe,f,g,ce)),T&&(Fe=Zy(Fe,T,A,ce)),Pe-=nn,ce&&Pe<W){var pt=Sr(Fe,Ut);return ov(r,i,wa,me.placeholder,l,Fe,pt,I,F,W-Pe)}var xn=J?l:this,nr=re?xn[r]:r;return Pe=Fe.length,I?Fe=KL(Fe,I):ge&&Pe>1&&Fe.reverse(),V&&F<Pe&&(Fe.length=F),this&&this!==At&&this instanceof me&&(nr=Ee||ko(nr)),nr.apply(xn,Fe)}return me}function rv(r,i){return function(l,f){return nL(l,r,i(f),{})}}function Sa(r,i){return function(l,f){var g;if(l===n&&f===n)return i;if(l!==n&&(g=l),f!==n){if(g===n)return f;typeof l=="string"||typeof f=="string"?(l=Qt(l),f=Qt(f)):(l=Wy(l),f=Wy(f)),g=r(l,f)}return g}}function qc(r){return Xn(function(i){return i=nt(i,Xt(he())),xe(function(l){var f=this;return r(i,function(g){return Zt(g,f,l)})})})}function Ca(r,i){i=i===n?" ":Qt(i);var l=i.length;if(l<2)return l?Uc(i,r):i;var f=Uc(i,ca(r/Fi(i)));return Mi(i)?Or(Sn(f),0,r).join(""):f.slice(0,r)}function IL(r,i,l,f){var g=i&$,T=ko(r);function A(){for(var I=-1,F=arguments.length,W=-1,V=f.length,J=L(V+F),re=this&&this!==At&&this instanceof A?T:r;++W<V;)J[W]=f[W];for(;F--;)J[W++]=arguments[++I];return Zt(re,g?l:this,J)}return A}function iv(r){return function(i,l,f){return f&&typeof f!="number"&&zt(i,l,f)&&(l=f=n),i=tr(i),l===n?(l=i,i=0):l=tr(l),f=f===n?i<l?1:-1:tr(f),pL(i,l,f,r)}}function Ea(r){return function(i,l){return typeof i=="string"&&typeof l=="string"||(i=mn(i),l=mn(l)),r(i,l)}}function ov(r,i,l,f,g,T,A,I,F,W){var V=i&H,J=V?A:n,re=V?n:A,ce=V?T:n,ge=V?n:T;i|=V?D:k,i&=~(V?k:D),i&Q||(i&=-4);var Ee=[r,i,g,ce,J,ge,re,I,F,W],me=l.apply(n,Ee);return tf(r)&&yv(me,Ee),me.placeholder=f,vv(me,r,i)}function Kc(r){var i=bt[r];return function(l,f){if(l=mn(l),f=f==null?0:$t(Se(f),292),f&&vy(l)){var g=(je(l)+"e").split("e"),T=i(g[0]+"e"+(+g[1]+f));return g=(je(T)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return i(l)}}var PL=Ni&&1/ea(new Ni([,-0]))[1]==Le?function(r){return new Ni(r)}:yf;function sv(r){return function(i){var l=Mt(i);return l==Je?Cc(i):l==Wt?qk(i):zk(i,r(i))}}function Zn(r,i,l,f,g,T,A,I){var F=i&N;if(!F&&typeof r!="function")throw new fn(u);var W=f?f.length:0;if(W||(i&=-97,f=g=n),A=A===n?A:_t(Se(A),0),I=I===n?I:Se(I),W-=g?g.length:0,i&k){var V=f,J=g;f=g=n}var re=F?n:Zc(r),ce=[r,i,l,f,g,V,J,T,A,I];if(re&&HL(ce,re),r=ce[0],i=ce[1],l=ce[2],f=ce[3],g=ce[4],I=ce[9]=ce[9]===n?F?0:r.length:_t(ce[9]-W,0),!I&&i&(H|B)&&(i&=-25),!i||i==$)var ge=AL(r,i,l);else i==H||i==B?ge=OL(r,i,I):(i==D||i==($|D))&&!g.length?ge=IL(r,i,l,f):ge=wa.apply(n,ce);var Ee=re?Uy:yv;return vv(Ee(ge,ce),r,i)}function av(r,i,l,f){return r===n||En(r,ki[l])&&!Ve.call(f,l)?i:r}function lv(r,i,l,f,g,T){return rt(r)&&rt(i)&&(T.set(i,r),va(r,i,n,lv,T),T.delete(i)),r}function $L(r){return Bo(r)?n:r}function uv(r,i,l,f,g,T){var A=l&E,I=r.length,F=i.length;if(I!=F&&!(A&&F>I))return!1;var W=T.get(r),V=T.get(i);if(W&&V)return W==i&&V==r;var J=-1,re=!0,ce=l&w?new Jr:n;for(T.set(r,i),T.set(i,r);++J<I;){var ge=r[J],Ee=i[J];if(f)var me=A?f(Ee,ge,J,i,r,T):f(ge,Ee,J,r,i,T);if(me!==n){if(me)continue;re=!1;break}if(ce){if(!vc(i,function(Pe,Fe){if(!Co(ce,Fe)&&(ge===Pe||g(ge,Pe,l,f,T)))return ce.push(Fe)})){re=!1;break}}else if(!(ge===Ee||g(ge,Ee,l,f,T))){re=!1;break}}return T.delete(r),T.delete(i),re}function ML(r,i,l,f,g,T,A){switch(l){case qn:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case mr:return!(r.byteLength!=i.byteLength||!T(new sa(r),new sa(i)));case be:case pe:case Lt:return En(+r,+i);case tt:return r.name==i.name&&r.message==i.message;case hr:case Ur:return r==i+"";case Je:var I=Cc;case Wt:var F=f&E;if(I||(I=ea),r.size!=i.size&&!F)return!1;var W=A.get(r);if(W)return W==i;f|=w,A.set(r,i);var V=uv(I(r),I(i),f,g,T,A);return A.delete(r),V;case pr:if(Io)return Io.call(r)==Io.call(i)}return!1}function FL(r,i,l,f,g,T){var A=l&E,I=Jc(r),F=I.length,W=Jc(i),V=W.length;if(F!=V&&!A)return!1;for(var J=F;J--;){var re=I[J];if(!(A?re in i:Ve.call(i,re)))return!1}var ce=T.get(r),ge=T.get(i);if(ce&&ge)return ce==i&&ge==r;var Ee=!0;T.set(r,i),T.set(i,r);for(var me=A;++J<F;){re=I[J];var Pe=r[re],Fe=i[re];if(f)var tn=A?f(Fe,Pe,re,i,r,T):f(Pe,Fe,re,r,i,T);if(!(tn===n?Pe===Fe||g(Pe,Fe,l,f,T):tn)){Ee=!1;break}me||(me=re=="constructor")}if(Ee&&!me){var Ut=r.constructor,nn=i.constructor;Ut!=nn&&"constructor"in r&&"constructor"in i&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof nn=="function"&&nn instanceof nn)&&(Ee=!1)}return T.delete(r),T.delete(i),Ee}function Xn(r){return rf(gv(r,n,Cv),r+"")}function Jc(r){return Iy(r,Et,Qc)}function Rc(r){return Iy(r,Yt,cv)}var Zc=da?function(r){return da.get(r)}:yf;function xa(r){for(var i=r.name+"",l=Li[i],f=Ve.call(Li,i)?l.length:0;f--;){var g=l[f],T=g.func;if(T==null||T==r)return g.name}return i}function ji(r){var i=Ve.call(b,"placeholder")?b:r;return i.placeholder}function he(){var r=b.iteratee||gf;return r=r===gf?My:r,arguments.length?r(arguments[0],arguments[1]):r}function Aa(r,i){var l=r.__data__;return jL(i)?l[typeof i=="string"?"string":"hash"]:l.map}function Xc(r){for(var i=Et(r),l=i.length;l--;){var f=i[l],g=r[f];i[l]=[f,g,hv(g)]}return i}function Xr(r,i){var l=Gk(r,i);return $y(l)?l:n}function DL(r){var i=Ve.call(r,qr),l=r[qr];try{r[qr]=n;var f=!0}catch{}var g=ia.call(r);return f&&(i?r[qr]=l:delete r[qr]),g}var Qc=xc?function(r){return r==null?[]:(r=Ke(r),Tr(xc(r),function(i){return my.call(r,i)}))}:vf,cv=xc?function(r){for(var i=[];r;)wr(i,Qc(r)),r=aa(r);return i}:vf,Mt=Bt;(Ac&&Mt(new Ac(new ArrayBuffer(1)))!=qn||xo&&Mt(new xo)!=Je||Oc&&Mt(Oc.resolve())!=ke||Ni&&Mt(new Ni)!=Wt||Ao&&Mt(new Ao)!=an)&&(Mt=function(r){var i=Bt(r),l=i==vt?r.constructor:n,f=l?Qr(l):"";if(f)switch(f){case mN:return qn;case yN:return Je;case vN:return ke;case bN:return Wt;case _N:return an}return i});function kL(r,i,l){for(var f=-1,g=l.length;++f<g;){var T=l[f],A=T.size;switch(T.type){case"drop":r+=A;break;case"dropRight":i-=A;break;case"take":i=$t(i,r+A);break;case"takeRight":r=_t(r,i-A);break}}return{start:r,end:i}}function NL(r){var i=r.match(Ys);return i?i[1].split(_o):[]}function fv(r,i,l){i=Ar(i,r);for(var f=-1,g=i.length,T=!1;++f<g;){var A=Nn(i[f]);if(!(T=r!=null&&l(r,A)))break;r=r[A]}return T||++f!=g?T:(g=r==null?0:r.length,!!g&&Da(g)&&Qn(A,g)&&(Te(r)||ei(r)))}function LL(r){var i=r.length,l=new r.constructor(i);return i&&typeof r[0]=="string"&&Ve.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function dv(r){return typeof r.constructor=="function"&&!No(r)?Bi(aa(r)):{}}function BL(r,i,l){var f=r.constructor;switch(i){case mr:return Yc(r);case be:case pe:return new f(+r);case qn:return TL(r,l);case Ci:case Wr:case Ei:case yr:case vr:case Rt:case Fn:case Vr:case Gr:return Ky(r,l);case Je:return new f;case Lt:case Ur:return new f(r);case hr:return wL(r);case Wt:return new f;case pr:return SL(r)}}function zL(r,i){var l=i.length;if(!l)return r;var f=l-1;return i[f]=(l>1?"& ":"")+i[f],i=i.join(l>2?", ":" "),r.replace(Hs,`{
132
+ */ds.exports,function(e,t){(function(){var n,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",p=500,m="__lodash_placeholder__",y=1,_=2,C=4,E=1,w=2,$=1,N=2,Q=4,H=8,B=16,D=32,k=64,G=128,ae=256,ie=512,S=30,U="...",ne=800,fe=16,ye=1,Me=2,we=3,Le=1/0,Ie=9007199254740991,lt=17976931348623157e292,q=NaN,K=4294967295,Z=K-1,R=K>>>1,Y=[["ary",G],["bind",$],["bindKey",N],["curry",H],["curryRight",B],["flip",ie],["partial",D],["partialRight",k],["rearg",ae]],ee="[object Arguments]",oe="[object Array]",ve="[object AsyncFunction]",be="[object Boolean]",pe="[object Date]",Ce="[object DOMException]",tt="[object Error]",te="[object Function]",yt="[object GeneratorFunction]",Je="[object Map]",Lt="[object Number]",dr="[object Null]",vt="[object Object]",ke="[object Promise]",Yn="[object Proxy]",hr="[object RegExp]",Wt="[object Set]",Ur="[object String]",pr="[object Symbol]",jr="[object Undefined]",an="[object WeakMap]",gr="[object WeakSet]",mr="[object ArrayBuffer]",qn="[object DataView]",Ci="[object Float32Array]",Wr="[object Float64Array]",Ei="[object Int8Array]",yr="[object Int16Array]",vr="[object Int32Array]",Rt="[object Uint8Array]",Fn="[object Uint8ClampedArray]",Vr="[object Uint16Array]",Gr="[object Uint32Array]",oc=/\b__p \+= '';/g,xi=/\b(__p \+=) '' \+/g,Ai=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ws=/&(?:amp|lt|gt|quot|#39);/g,br=/[&<>"']/g,sc=RegExp(Ws.source),ac=RegExp(br.source),gt=/<%-([\s\S]+?)%>/g,_r=/<%([\s\S]+?)%>/g,Vs=/<%=([\s\S]+?)%>/g,Gs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_o=/^\w*$/,Hs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oi=/[\\^$.*+?()[\]{}|]/g,lc=RegExp(Oi.source),Vt=/^\s+/,Ii=/\s/,Ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qs=/\{\n\/\* \[wrapped with (.+)\] \*/,To=/,? & /,Ks=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wn=/[()=,{}\[\]\/\s]/,Js=/\\(\\)?/g,Rs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wo=/\w*$/,Zs=/^[-+]0x[0-9a-f]+$/i,uc=/^0b[01]+$/i,de=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,X=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,We=/($^)/,St=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",Pt="\\u0300-\\u036f",ln="\\ufe20-\\ufe2f",Hr="\\u20d0-\\u20ff",Ct=Pt+ln+Hr,So="\\u2700-\\u27bf",Co="a-z\\xdf-\\xf6\\xf8-\\xff",ik="\\xac\\xb1\\xd7\\xf7",ok="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sk="\\u2000-\\u206f",ak=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",k0="A-Z\\xc0-\\xd6\\xd8-\\xde",N0="\\ufe0e\\ufe0f",L0=ik+ok+sk+ak,cc="['’]",lk="["+ut+"]",B0="["+L0+"]",Xs="["+Ct+"]",z0="\\d+",uk="["+So+"]",U0="["+Co+"]",j0="[^"+ut+L0+z0+So+Co+k0+"]",fc="\\ud83c[\\udffb-\\udfff]",ck="(?:"+Xs+"|"+fc+")",W0="[^"+ut+"]",dc="(?:\\ud83c[\\udde6-\\uddff]){2}",hc="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+k0+"]",V0="\\u200d",G0="(?:"+U0+"|"+j0+")",fk="(?:"+Pi+"|"+j0+")",H0="(?:"+cc+"(?:d|ll|m|re|s|t|ve))?",Y0="(?:"+cc+"(?:D|LL|M|RE|S|T|VE))?",q0=ck+"?",K0="["+N0+"]?",dk="(?:"+V0+"(?:"+[W0,dc,hc].join("|")+")"+K0+q0+")*",hk="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J0=K0+q0+dk,gk="(?:"+[uk,dc,hc].join("|")+")"+J0,mk="(?:"+[W0+Xs+"?",Xs,dc,hc,lk].join("|")+")",yk=RegExp(cc,"g"),vk=RegExp(Xs,"g"),pc=RegExp(fc+"(?="+fc+")|"+mk+J0,"g"),bk=RegExp([Pi+"?"+U0+"+"+H0+"(?="+[B0,Pi,"$"].join("|")+")",fk+"+"+Y0+"(?="+[B0,Pi+G0,"$"].join("|")+")",Pi+"?"+G0+"+"+H0,Pi+"+"+Y0,pk,hk,z0,gk].join("|"),"g"),_k=RegExp("["+V0+ut+Ct+N0+"]"),Tk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,wk=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sk=-1,Qe={};Qe[Ci]=Qe[Wr]=Qe[Ei]=Qe[yr]=Qe[vr]=Qe[Rt]=Qe[Fn]=Qe[Vr]=Qe[Gr]=!0,Qe[ee]=Qe[oe]=Qe[mr]=Qe[be]=Qe[qn]=Qe[pe]=Qe[tt]=Qe[te]=Qe[Je]=Qe[Lt]=Qe[vt]=Qe[hr]=Qe[Wt]=Qe[Ur]=Qe[an]=!1;var Re={};Re[ee]=Re[oe]=Re[mr]=Re[qn]=Re[be]=Re[pe]=Re[Ci]=Re[Wr]=Re[Ei]=Re[yr]=Re[vr]=Re[Je]=Re[Lt]=Re[vt]=Re[hr]=Re[Wt]=Re[Ur]=Re[pr]=Re[Rt]=Re[Fn]=Re[Vr]=Re[Gr]=!0,Re[tt]=Re[te]=Re[an]=!1;var Ck={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ek={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ak={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ok=parseFloat,Ik=parseInt,R0=typeof Un=="object"&&Un&&Un.Object===Object&&Un,Pk=typeof self=="object"&&self&&self.Object===Object&&self,At=R0||Pk||Function("return this")(),gc=t&&!t.nodeType&&t,Yr=gc&&!0&&e&&!e.nodeType&&e,Z0=Yr&&Yr.exports===gc,mc=Z0&&R0.process,un=function(){try{var M=Yr&&Yr.require&&Yr.require("util").types;return M||mc&&mc.binding&&mc.binding("util")}catch{}}(),X0=un&&un.isArrayBuffer,Q0=un&&un.isDate,ey=un&&un.isMap,ty=un&&un.isRegExp,ny=un&&un.isSet,ry=un&&un.isTypedArray;function Zt(M,j,L){switch(L.length){case 0:return M.call(j);case 1:return M.call(j,L[0]);case 2:return M.call(j,L[0],L[1]);case 3:return M.call(j,L[0],L[1],L[2])}return M.apply(j,L)}function $k(M,j,L,se){for(var _e=-1,Be=M==null?0:M.length;++_e<Be;){var bt=M[_e];j(se,bt,L(bt),M)}return se}function cn(M,j){for(var L=-1,se=M==null?0:M.length;++L<se&&j(M[L],L,M)!==!1;);return M}function Mk(M,j){for(var L=M==null?0:M.length;L--&&j(M[L],L,M)!==!1;);return M}function iy(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(!j(M[L],L,M))return!1;return!0}function Tr(M,j){for(var L=-1,se=M==null?0:M.length,_e=0,Be=[];++L<se;){var bt=M[L];j(bt,L,M)&&(Be[_e++]=bt)}return Be}function Qs(M,j){var L=M==null?0:M.length;return!!L&&$i(M,j,0)>-1}function yc(M,j,L){for(var se=-1,_e=M==null?0:M.length;++se<_e;)if(L(j,M[se]))return!0;return!1}function nt(M,j){for(var L=-1,se=M==null?0:M.length,_e=Array(se);++L<se;)_e[L]=j(M[L],L,M);return _e}function wr(M,j){for(var L=-1,se=j.length,_e=M.length;++L<se;)M[_e+L]=j[L];return M}function vc(M,j,L,se){var _e=-1,Be=M==null?0:M.length;for(se&&Be&&(L=M[++_e]);++_e<Be;)L=j(L,M[_e],_e,M);return L}function Fk(M,j,L,se){var _e=M==null?0:M.length;for(se&&_e&&(L=M[--_e]);_e--;)L=j(L,M[_e],_e,M);return L}function bc(M,j){for(var L=-1,se=M==null?0:M.length;++L<se;)if(j(M[L],L,M))return!0;return!1}var Dk=_c("length");function kk(M){return M.split("")}function Nk(M){return M.match(Ks)||[]}function oy(M,j,L){var se;return L(M,function(_e,Be,bt){if(j(_e,Be,bt))return se=Be,!1}),se}function ea(M,j,L,se){for(var _e=M.length,Be=L+(se?1:-1);se?Be--:++Be<_e;)if(j(M[Be],Be,M))return Be;return-1}function $i(M,j,L){return j===j?Kk(M,j,L):ea(M,sy,L)}function Lk(M,j,L,se){for(var _e=L-1,Be=M.length;++_e<Be;)if(se(M[_e],j))return _e;return-1}function sy(M){return M!==M}function ay(M,j){var L=M==null?0:M.length;return L?wc(M,j)/L:q}function _c(M){return function(j){return j==null?n:j[M]}}function Tc(M){return function(j){return M==null?n:M[j]}}function ly(M,j,L,se,_e){return _e(M,function(Be,bt,Ke){L=se?(se=!1,Be):j(L,Be,bt,Ke)}),L}function Bk(M,j){var L=M.length;for(M.sort(j);L--;)M[L]=M[L].value;return M}function wc(M,j){for(var L,se=-1,_e=M.length;++se<_e;){var Be=j(M[se]);Be!==n&&(L=L===n?Be:L+Be)}return L}function Sc(M,j){for(var L=-1,se=Array(M);++L<M;)se[L]=j(L);return se}function zk(M,j){return nt(j,function(L){return[L,M[L]]})}function uy(M){return M&&M.slice(0,hy(M)+1).replace(Vt,"")}function Xt(M){return function(j){return M(j)}}function Cc(M,j){return nt(j,function(L){return M[L]})}function Eo(M,j){return M.has(j)}function cy(M,j){for(var L=-1,se=M.length;++L<se&&$i(j,M[L],0)>-1;);return L}function fy(M,j){for(var L=M.length;L--&&$i(j,M[L],0)>-1;);return L}function Uk(M,j){for(var L=M.length,se=0;L--;)M[L]===j&&++se;return se}var jk=Tc(Ck),Wk=Tc(Ek);function Vk(M){return"\\"+Ak[M]}function Gk(M,j){return M==null?n:M[j]}function Mi(M){return _k.test(M)}function Hk(M){return Tk.test(M)}function Yk(M){for(var j,L=[];!(j=M.next()).done;)L.push(j.value);return L}function Ec(M){var j=-1,L=Array(M.size);return M.forEach(function(se,_e){L[++j]=[_e,se]}),L}function dy(M,j){return function(L){return M(j(L))}}function Sr(M,j){for(var L=-1,se=M.length,_e=0,Be=[];++L<se;){var bt=M[L];(bt===j||bt===m)&&(M[L]=m,Be[_e++]=L)}return Be}function ta(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=se}),L}function qk(M){var j=-1,L=Array(M.size);return M.forEach(function(se){L[++j]=[se,se]}),L}function Kk(M,j,L){for(var se=L-1,_e=M.length;++se<_e;)if(M[se]===j)return se;return-1}function Jk(M,j,L){for(var se=L+1;se--;)if(M[se]===j)return se;return se}function Fi(M){return Mi(M)?Zk(M):Dk(M)}function Sn(M){return Mi(M)?Xk(M):kk(M)}function hy(M){for(var j=M.length;j--&&Ii.test(M.charAt(j)););return j}var Rk=Tc(xk);function Zk(M){for(var j=pc.lastIndex=0;pc.test(M);)++j;return j}function Xk(M){return M.match(pc)||[]}function Qk(M){return M.match(bk)||[]}var eN=function M(j){j=j==null?At:Di.defaults(At.Object(),j,Di.pick(At,wk));var L=j.Array,se=j.Date,_e=j.Error,Be=j.Function,bt=j.Math,Ke=j.Object,xc=j.RegExp,tN=j.String,fn=j.TypeError,na=L.prototype,nN=Be.prototype,ki=Ke.prototype,ra=j["__core-js_shared__"],ia=nN.toString,Ve=ki.hasOwnProperty,rN=0,py=function(){var r=/[^.]+$/.exec(ra&&ra.keys&&ra.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),oa=ki.toString,iN=ia.call(Ke),oN=At._,sN=xc("^"+ia.call(Ve).replace(Oi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sa=Z0?j.Buffer:n,Cr=j.Symbol,aa=j.Uint8Array,gy=sa?sa.allocUnsafe:n,la=dy(Ke.getPrototypeOf,Ke),my=Ke.create,yy=ki.propertyIsEnumerable,ua=na.splice,vy=Cr?Cr.isConcatSpreadable:n,xo=Cr?Cr.iterator:n,qr=Cr?Cr.toStringTag:n,ca=function(){try{var r=Xr(Ke,"defineProperty");return r({},"",{}),r}catch{}}(),aN=j.clearTimeout!==At.clearTimeout&&j.clearTimeout,lN=se&&se.now!==At.Date.now&&se.now,uN=j.setTimeout!==At.setTimeout&&j.setTimeout,fa=bt.ceil,da=bt.floor,Ac=Ke.getOwnPropertySymbols,cN=sa?sa.isBuffer:n,by=j.isFinite,fN=na.join,dN=dy(Ke.keys,Ke),_t=bt.max,$t=bt.min,hN=se.now,pN=j.parseInt,_y=bt.random,gN=na.reverse,Oc=Xr(j,"DataView"),Ao=Xr(j,"Map"),Ic=Xr(j,"Promise"),Ni=Xr(j,"Set"),Oo=Xr(j,"WeakMap"),Io=Xr(Ke,"create"),ha=Oo&&new Oo,Li={},mN=Qr(Oc),yN=Qr(Ao),vN=Qr(Ic),bN=Qr(Ni),_N=Qr(Oo),pa=Cr?Cr.prototype:n,Po=pa?pa.valueOf:n,Ty=pa?pa.toString:n;function b(r){if(ct(r)&&!Te(r)&&!(r instanceof $e)){if(r instanceof dn)return r;if(Ve.call(r,"__wrapped__"))return wv(r)}return new dn(r)}var Bi=function(){function r(){}return function(i){if(!rt(i))return{};if(my)return my(i);r.prototype=i;var l=new r;return r.prototype=n,l}}();function ga(){}function dn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}b.templateSettings={escape:gt,evaluate:_r,interpolate:Vs,variable:"",imports:{_:b}},b.prototype=ga.prototype,b.prototype.constructor=b,dn.prototype=Bi(ga.prototype),dn.prototype.constructor=dn;function $e(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function TN(){var r=new $e(this.__wrapped__);return r.__actions__=Gt(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Gt(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Gt(this.__views__),r}function wN(){if(this.__filtered__){var r=new $e(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function SN(){var r=this.__wrapped__.value(),i=this.__dir__,l=Te(r),f=i<0,g=l?r.length:0,T=kL(0,g,this.__views__),A=T.start,I=T.end,F=I-A,W=f?I:A-1,V=this.__iteratees__,J=V.length,re=0,ce=$t(F,this.__takeCount__);if(!l||!f&&g==F&&ce==F)return Hy(r,this.__actions__);var ge=[];e:for(;F--&&re<ce;){W+=i;for(var Ee=-1,me=r[W];++Ee<J;){var Pe=V[Ee],Fe=Pe.iteratee,tn=Pe.type,Ut=Fe(me);if(tn==Me)me=Ut;else if(!Ut){if(tn==ye)continue e;break e}}ge[re++]=me}return ge}$e.prototype=Bi(ga.prototype),$e.prototype.constructor=$e;function Kr(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function CN(){this.__data__=Io?Io(null):{},this.size=0}function EN(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function xN(r){var i=this.__data__;if(Io){var l=i[r];return l===h?n:l}return Ve.call(i,r)?i[r]:n}function AN(r){var i=this.__data__;return Io?i[r]!==n:Ve.call(i,r)}function ON(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=Io&&i===n?h:i,this}Kr.prototype.clear=CN,Kr.prototype.delete=EN,Kr.prototype.get=xN,Kr.prototype.has=AN,Kr.prototype.set=ON;function Kn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function IN(){this.__data__=[],this.size=0}function PN(r){var i=this.__data__,l=ma(i,r);if(l<0)return!1;var f=i.length-1;return l==f?i.pop():ua.call(i,l,1),--this.size,!0}function $N(r){var i=this.__data__,l=ma(i,r);return l<0?n:i[l][1]}function MN(r){return ma(this.__data__,r)>-1}function FN(r,i){var l=this.__data__,f=ma(l,r);return f<0?(++this.size,l.push([r,i])):l[f][1]=i,this}Kn.prototype.clear=IN,Kn.prototype.delete=PN,Kn.prototype.get=$N,Kn.prototype.has=MN,Kn.prototype.set=FN;function Jn(r){var i=-1,l=r==null?0:r.length;for(this.clear();++i<l;){var f=r[i];this.set(f[0],f[1])}}function DN(){this.size=0,this.__data__={hash:new Kr,map:new(Ao||Kn),string:new Kr}}function kN(r){var i=Oa(this,r).delete(r);return this.size-=i?1:0,i}function NN(r){return Oa(this,r).get(r)}function LN(r){return Oa(this,r).has(r)}function BN(r,i){var l=Oa(this,r),f=l.size;return l.set(r,i),this.size+=l.size==f?0:1,this}Jn.prototype.clear=DN,Jn.prototype.delete=kN,Jn.prototype.get=NN,Jn.prototype.has=LN,Jn.prototype.set=BN;function Jr(r){var i=-1,l=r==null?0:r.length;for(this.__data__=new Jn;++i<l;)this.add(r[i])}function zN(r){return this.__data__.set(r,h),this}function UN(r){return this.__data__.has(r)}Jr.prototype.add=Jr.prototype.push=zN,Jr.prototype.has=UN;function Cn(r){var i=this.__data__=new Kn(r);this.size=i.size}function jN(){this.__data__=new Kn,this.size=0}function WN(r){var i=this.__data__,l=i.delete(r);return this.size=i.size,l}function VN(r){return this.__data__.get(r)}function GN(r){return this.__data__.has(r)}function HN(r,i){var l=this.__data__;if(l instanceof Kn){var f=l.__data__;if(!Ao||f.length<s-1)return f.push([r,i]),this.size=++l.size,this;l=this.__data__=new Jn(f)}return l.set(r,i),this.size=l.size,this}Cn.prototype.clear=jN,Cn.prototype.delete=WN,Cn.prototype.get=VN,Cn.prototype.has=GN,Cn.prototype.set=HN;function wy(r,i){var l=Te(r),f=!l&&ei(r),g=!l&&!f&&Ir(r),T=!l&&!f&&!g&&Wi(r),A=l||f||g||T,I=A?Sc(r.length,tN):[],F=I.length;for(var W in r)(i||Ve.call(r,W))&&!(A&&(W=="length"||g&&(W=="offset"||W=="parent")||T&&(W=="buffer"||W=="byteLength"||W=="byteOffset")||Qn(W,F)))&&I.push(W);return I}function Sy(r){var i=r.length;return i?r[Uc(0,i-1)]:n}function YN(r,i){return Ia(Gt(r),Rr(i,0,r.length))}function qN(r){return Ia(Gt(r))}function Pc(r,i,l){(l!==n&&!En(r[i],l)||l===n&&!(i in r))&&Rn(r,i,l)}function $o(r,i,l){var f=r[i];(!(Ve.call(r,i)&&En(f,l))||l===n&&!(i in r))&&Rn(r,i,l)}function ma(r,i){for(var l=r.length;l--;)if(En(r[l][0],i))return l;return-1}function KN(r,i,l,f){return Er(r,function(g,T,A){i(f,g,l(g),A)}),f}function Cy(r,i){return r&&kn(i,Et(i),r)}function JN(r,i){return r&&kn(i,Yt(i),r)}function Rn(r,i,l){i=="__proto__"&&ca?ca(r,i,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[i]=l}function $c(r,i){for(var l=-1,f=i.length,g=L(f),T=r==null;++l<f;)g[l]=T?n:df(r,i[l]);return g}function Rr(r,i,l){return r===r&&(l!==n&&(r=r<=l?r:l),i!==n&&(r=r>=i?r:i)),r}function hn(r,i,l,f,g,T){var A,I=i&y,F=i&_,W=i&C;if(l&&(A=g?l(r,f,g,T):l(r)),A!==n)return A;if(!rt(r))return r;var V=Te(r);if(V){if(A=LL(r),!I)return Gt(r,A)}else{var J=Mt(r),re=J==te||J==yt;if(Ir(r))return Ky(r,I);if(J==vt||J==ee||re&&!g){if(A=F||re?{}:hv(r),!I)return F?xL(r,JN(A,r)):EL(r,Cy(A,r))}else{if(!Re[J])return g?r:{};A=BL(r,J,I)}}T||(T=new Cn);var ce=T.get(r);if(ce)return ce;T.set(r,A),Wv(r)?r.forEach(function(me){A.add(hn(me,i,l,me,r,T))}):Uv(r)&&r.forEach(function(me,Pe){A.set(Pe,hn(me,i,l,Pe,r,T))});var ge=W?F?Zc:Rc:F?Yt:Et,Ee=V?n:ge(r);return cn(Ee||r,function(me,Pe){Ee&&(Pe=me,me=r[Pe]),$o(A,Pe,hn(me,i,l,Pe,r,T))}),A}function RN(r){var i=Et(r);return function(l){return Ey(l,r,i)}}function Ey(r,i,l){var f=l.length;if(r==null)return!f;for(r=Ke(r);f--;){var g=l[f],T=i[g],A=r[g];if(A===n&&!(g in r)||!T(A))return!1}return!0}function xy(r,i,l){if(typeof r!="function")throw new fn(u);return Bo(function(){r.apply(n,l)},i)}function Mo(r,i,l,f){var g=-1,T=Qs,A=!0,I=r.length,F=[],W=i.length;if(!I)return F;l&&(i=nt(i,Xt(l))),f?(T=yc,A=!1):i.length>=s&&(T=Eo,A=!1,i=new Jr(i));e:for(;++g<I;){var V=r[g],J=l==null?V:l(V);if(V=f||V!==0?V:0,A&&J===J){for(var re=W;re--;)if(i[re]===J)continue e;F.push(V)}else T(i,J,f)||F.push(V)}return F}var Er=Qy(Dn),Ay=Qy(Fc,!0);function ZN(r,i){var l=!0;return Er(r,function(f,g,T){return l=!!i(f,g,T),l}),l}function ya(r,i,l){for(var f=-1,g=r.length;++f<g;){var T=r[f],A=i(T);if(A!=null&&(I===n?A===A&&!en(A):l(A,I)))var I=A,F=T}return F}function XN(r,i,l,f){var g=r.length;for(l=Se(l),l<0&&(l=-l>g?0:g+l),f=f===n||f>g?g:Se(f),f<0&&(f+=g),f=l>f?0:Gv(f);l<f;)r[l++]=i;return r}function Oy(r,i){var l=[];return Er(r,function(f,g,T){i(f,g,T)&&l.push(f)}),l}function Ot(r,i,l,f,g){var T=-1,A=r.length;for(l||(l=UL),g||(g=[]);++T<A;){var I=r[T];i>0&&l(I)?i>1?Ot(I,i-1,l,f,g):wr(g,I):f||(g[g.length]=I)}return g}var Mc=ev(),Iy=ev(!0);function Dn(r,i){return r&&Mc(r,i,Et)}function Fc(r,i){return r&&Iy(r,i,Et)}function va(r,i){return Tr(i,function(l){return er(r[l])})}function Zr(r,i){i=Ar(i,r);for(var l=0,f=i.length;r!=null&&l<f;)r=r[Nn(i[l++])];return l&&l==f?r:n}function Py(r,i,l){var f=i(r);return Te(r)?f:wr(f,l(r))}function Bt(r){return r==null?r===n?jr:dr:qr&&qr in Ke(r)?DL(r):qL(r)}function Dc(r,i){return r>i}function QN(r,i){return r!=null&&Ve.call(r,i)}function eL(r,i){return r!=null&&i in Ke(r)}function tL(r,i,l){return r>=$t(i,l)&&r<_t(i,l)}function kc(r,i,l){for(var f=l?yc:Qs,g=r[0].length,T=r.length,A=T,I=L(T),F=1/0,W=[];A--;){var V=r[A];A&&i&&(V=nt(V,Xt(i))),F=$t(V.length,F),I[A]=!l&&(i||g>=120&&V.length>=120)?new Jr(A&&V):n}V=r[0];var J=-1,re=I[0];e:for(;++J<g&&W.length<F;){var ce=V[J],ge=i?i(ce):ce;if(ce=l||ce!==0?ce:0,!(re?Eo(re,ge):f(W,ge,l))){for(A=T;--A;){var Ee=I[A];if(!(Ee?Eo(Ee,ge):f(r[A],ge,l)))continue e}re&&re.push(ge),W.push(ce)}}return W}function nL(r,i,l,f){return Dn(r,function(g,T,A){i(f,l(g),T,A)}),f}function Fo(r,i,l){i=Ar(i,r),r=yv(r,i);var f=r==null?r:r[Nn(gn(i))];return f==null?n:Zt(f,r,l)}function $y(r){return ct(r)&&Bt(r)==ee}function rL(r){return ct(r)&&Bt(r)==mr}function iL(r){return ct(r)&&Bt(r)==pe}function Do(r,i,l,f,g){return r===i?!0:r==null||i==null||!ct(r)&&!ct(i)?r!==r&&i!==i:oL(r,i,l,f,Do,g)}function oL(r,i,l,f,g,T){var A=Te(r),I=Te(i),F=A?oe:Mt(r),W=I?oe:Mt(i);F=F==ee?vt:F,W=W==ee?vt:W;var V=F==vt,J=W==vt,re=F==W;if(re&&Ir(r)){if(!Ir(i))return!1;A=!0,V=!1}if(re&&!V)return T||(T=new Cn),A||Wi(r)?cv(r,i,l,f,g,T):ML(r,i,F,l,f,g,T);if(!(l&E)){var ce=V&&Ve.call(r,"__wrapped__"),ge=J&&Ve.call(i,"__wrapped__");if(ce||ge){var Ee=ce?r.value():r,me=ge?i.value():i;return T||(T=new Cn),g(Ee,me,l,f,T)}}return re?(T||(T=new Cn),FL(r,i,l,f,g,T)):!1}function sL(r){return ct(r)&&Mt(r)==Je}function Nc(r,i,l,f){var g=l.length,T=g,A=!f;if(r==null)return!T;for(r=Ke(r);g--;){var I=l[g];if(A&&I[2]?I[1]!==r[I[0]]:!(I[0]in r))return!1}for(;++g<T;){I=l[g];var F=I[0],W=r[F],V=I[1];if(A&&I[2]){if(W===n&&!(F in r))return!1}else{var J=new Cn;if(f)var re=f(W,V,F,r,i,J);if(!(re===n?Do(V,W,E|w,f,J):re))return!1}}return!0}function My(r){if(!rt(r)||WL(r))return!1;var i=er(r)?sN:de;return i.test(Qr(r))}function aL(r){return ct(r)&&Bt(r)==hr}function lL(r){return ct(r)&&Mt(r)==Wt}function uL(r){return ct(r)&&ka(r.length)&&!!Qe[Bt(r)]}function Fy(r){return typeof r=="function"?r:r==null?qt:typeof r=="object"?Te(r)?Ny(r[0],r[1]):ky(r):tb(r)}function Lc(r){if(!Lo(r))return dN(r);var i=[];for(var l in Ke(r))Ve.call(r,l)&&l!="constructor"&&i.push(l);return i}function cL(r){if(!rt(r))return YL(r);var i=Lo(r),l=[];for(var f in r)f=="constructor"&&(i||!Ve.call(r,f))||l.push(f);return l}function Bc(r,i){return r<i}function Dy(r,i){var l=-1,f=Ht(r)?L(r.length):[];return Er(r,function(g,T,A){f[++l]=i(g,T,A)}),f}function ky(r){var i=Qc(r);return i.length==1&&i[0][2]?gv(i[0][0],i[0][1]):function(l){return l===r||Nc(l,r,i)}}function Ny(r,i){return tf(r)&&pv(i)?gv(Nn(r),i):function(l){var f=df(l,r);return f===n&&f===i?hf(l,r):Do(i,f,E|w)}}function ba(r,i,l,f,g){r!==i&&Mc(i,function(T,A){if(g||(g=new Cn),rt(T))fL(r,i,A,l,ba,f,g);else{var I=f?f(rf(r,A),T,A+"",r,i,g):n;I===n&&(I=T),Pc(r,A,I)}},Yt)}function fL(r,i,l,f,g,T,A){var I=rf(r,l),F=rf(i,l),W=A.get(F);if(W){Pc(r,l,W);return}var V=T?T(I,F,l+"",r,i,A):n,J=V===n;if(J){var re=Te(F),ce=!re&&Ir(F),ge=!re&&!ce&&Wi(F);V=F,re||ce||ge?Te(I)?V=I:ht(I)?V=Gt(I):ce?(J=!1,V=Ky(F,!0)):ge?(J=!1,V=Jy(F,!0)):V=[]:zo(F)||ei(F)?(V=I,ei(I)?V=Hv(I):(!rt(I)||er(I))&&(V=hv(F))):J=!1}J&&(A.set(F,V),g(V,F,f,T,A),A.delete(F)),Pc(r,l,V)}function Ly(r,i){var l=r.length;if(l)return i+=i<0?l:0,Qn(i,l)?r[i]:n}function By(r,i,l){i.length?i=nt(i,function(T){return Te(T)?function(A){return Zr(A,T.length===1?T[0]:T)}:T}):i=[qt];var f=-1;i=nt(i,Xt(he()));var g=Dy(r,function(T,A,I){var F=nt(i,function(W){return W(T)});return{criteria:F,index:++f,value:T}});return Bk(g,function(T,A){return CL(T,A,l)})}function dL(r,i){return zy(r,i,function(l,f){return hf(r,f)})}function zy(r,i,l){for(var f=-1,g=i.length,T={};++f<g;){var A=i[f],I=Zr(r,A);l(I,A)&&ko(T,Ar(A,r),I)}return T}function hL(r){return function(i){return Zr(i,r)}}function zc(r,i,l,f){var g=f?Lk:$i,T=-1,A=i.length,I=r;for(r===i&&(i=Gt(i)),l&&(I=nt(r,Xt(l)));++T<A;)for(var F=0,W=i[T],V=l?l(W):W;(F=g(I,V,F,f))>-1;)I!==r&&ua.call(I,F,1),ua.call(r,F,1);return r}function Uy(r,i){for(var l=r?i.length:0,f=l-1;l--;){var g=i[l];if(l==f||g!==T){var T=g;Qn(g)?ua.call(r,g,1):Vc(r,g)}}return r}function Uc(r,i){return r+da(_y()*(i-r+1))}function pL(r,i,l,f){for(var g=-1,T=_t(fa((i-r)/(l||1)),0),A=L(T);T--;)A[f?T:++g]=r,r+=l;return A}function jc(r,i){var l="";if(!r||i<1||i>Ie)return l;do i%2&&(l+=r),i=da(i/2),i&&(r+=r);while(i);return l}function xe(r,i){return of(mv(r,i,qt),r+"")}function gL(r){return Sy(Vi(r))}function mL(r,i){var l=Vi(r);return Ia(l,Rr(i,0,l.length))}function ko(r,i,l,f){if(!rt(r))return r;i=Ar(i,r);for(var g=-1,T=i.length,A=T-1,I=r;I!=null&&++g<T;){var F=Nn(i[g]),W=l;if(F==="__proto__"||F==="constructor"||F==="prototype")return r;if(g!=A){var V=I[F];W=f?f(V,F,I):n,W===n&&(W=rt(V)?V:Qn(i[g+1])?[]:{})}$o(I,F,W),I=I[F]}return r}var jy=ha?function(r,i){return ha.set(r,i),r}:qt,yL=ca?function(r,i){return ca(r,"toString",{configurable:!0,enumerable:!1,value:gf(i),writable:!0})}:qt;function vL(r){return Ia(Vi(r))}function pn(r,i,l){var f=-1,g=r.length;i<0&&(i=-i>g?0:g+i),l=l>g?g:l,l<0&&(l+=g),g=i>l?0:l-i>>>0,i>>>=0;for(var T=L(g);++f<g;)T[f]=r[f+i];return T}function bL(r,i){var l;return Er(r,function(f,g,T){return l=i(f,g,T),!l}),!!l}function _a(r,i,l){var f=0,g=r==null?f:r.length;if(typeof i=="number"&&i===i&&g<=R){for(;f<g;){var T=f+g>>>1,A=r[T];A!==null&&!en(A)&&(l?A<=i:A<i)?f=T+1:g=T}return g}return Wc(r,i,qt,l)}function Wc(r,i,l,f){var g=0,T=r==null?0:r.length;if(T===0)return 0;i=l(i);for(var A=i!==i,I=i===null,F=en(i),W=i===n;g<T;){var V=da((g+T)/2),J=l(r[V]),re=J!==n,ce=J===null,ge=J===J,Ee=en(J);if(A)var me=f||ge;else W?me=ge&&(f||re):I?me=ge&&re&&(f||!ce):F?me=ge&&re&&!ce&&(f||!Ee):ce||Ee?me=!1:me=f?J<=i:J<i;me?g=V+1:T=V}return $t(T,Z)}function Wy(r,i){for(var l=-1,f=r.length,g=0,T=[];++l<f;){var A=r[l],I=i?i(A):A;if(!l||!En(I,F)){var F=I;T[g++]=A===0?0:A}}return T}function Vy(r){return typeof r=="number"?r:en(r)?q:+r}function Qt(r){if(typeof r=="string")return r;if(Te(r))return nt(r,Qt)+"";if(en(r))return Ty?Ty.call(r):"";var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function xr(r,i,l){var f=-1,g=Qs,T=r.length,A=!0,I=[],F=I;if(l)A=!1,g=yc;else if(T>=s){var W=i?null:PL(r);if(W)return ta(W);A=!1,g=Eo,F=new Jr}else F=i?[]:I;e:for(;++f<T;){var V=r[f],J=i?i(V):V;if(V=l||V!==0?V:0,A&&J===J){for(var re=F.length;re--;)if(F[re]===J)continue e;i&&F.push(J),I.push(V)}else g(F,J,l)||(F!==I&&F.push(J),I.push(V))}return I}function Vc(r,i){return i=Ar(i,r),r=yv(r,i),r==null||delete r[Nn(gn(i))]}function Gy(r,i,l,f){return ko(r,i,l(Zr(r,i)),f)}function Ta(r,i,l,f){for(var g=r.length,T=f?g:-1;(f?T--:++T<g)&&i(r[T],T,r););return l?pn(r,f?0:T,f?T+1:g):pn(r,f?T+1:0,f?g:T)}function Hy(r,i){var l=r;return l instanceof $e&&(l=l.value()),vc(i,function(f,g){return g.func.apply(g.thisArg,wr([f],g.args))},l)}function Gc(r,i,l){var f=r.length;if(f<2)return f?xr(r[0]):[];for(var g=-1,T=L(f);++g<f;)for(var A=r[g],I=-1;++I<f;)I!=g&&(T[g]=Mo(T[g]||A,r[I],i,l));return xr(Ot(T,1),i,l)}function Yy(r,i,l){for(var f=-1,g=r.length,T=i.length,A={};++f<g;){var I=f<T?i[f]:n;l(A,r[f],I)}return A}function Hc(r){return ht(r)?r:[]}function Yc(r){return typeof r=="function"?r:qt}function Ar(r,i){return Te(r)?r:tf(r,i)?[r]:Tv(je(r))}var _L=xe;function Or(r,i,l){var f=r.length;return l=l===n?f:l,!i&&l>=f?r:pn(r,i,l)}var qy=aN||function(r){return At.clearTimeout(r)};function Ky(r,i){if(i)return r.slice();var l=r.length,f=gy?gy(l):new r.constructor(l);return r.copy(f),f}function qc(r){var i=new r.constructor(r.byteLength);return new aa(i).set(new aa(r)),i}function TL(r,i){var l=i?qc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function wL(r){var i=new r.constructor(r.source,wo.exec(r));return i.lastIndex=r.lastIndex,i}function SL(r){return Po?Ke(Po.call(r)):{}}function Jy(r,i){var l=i?qc(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function Ry(r,i){if(r!==i){var l=r!==n,f=r===null,g=r===r,T=en(r),A=i!==n,I=i===null,F=i===i,W=en(i);if(!I&&!W&&!T&&r>i||T&&A&&F&&!I&&!W||f&&A&&F||!l&&F||!g)return 1;if(!f&&!T&&!W&&r<i||W&&l&&g&&!f&&!T||I&&l&&g||!A&&g||!F)return-1}return 0}function CL(r,i,l){for(var f=-1,g=r.criteria,T=i.criteria,A=g.length,I=l.length;++f<A;){var F=Ry(g[f],T[f]);if(F){if(f>=I)return F;var W=l[f];return F*(W=="desc"?-1:1)}}return r.index-i.index}function Zy(r,i,l,f){for(var g=-1,T=r.length,A=l.length,I=-1,F=i.length,W=_t(T-A,0),V=L(F+W),J=!f;++I<F;)V[I]=i[I];for(;++g<A;)(J||g<T)&&(V[l[g]]=r[g]);for(;W--;)V[I++]=r[g++];return V}function Xy(r,i,l,f){for(var g=-1,T=r.length,A=-1,I=l.length,F=-1,W=i.length,V=_t(T-I,0),J=L(V+W),re=!f;++g<V;)J[g]=r[g];for(var ce=g;++F<W;)J[ce+F]=i[F];for(;++A<I;)(re||g<T)&&(J[ce+l[A]]=r[g++]);return J}function Gt(r,i){var l=-1,f=r.length;for(i||(i=L(f));++l<f;)i[l]=r[l];return i}function kn(r,i,l,f){var g=!l;l||(l={});for(var T=-1,A=i.length;++T<A;){var I=i[T],F=f?f(l[I],r[I],I,l,r):n;F===n&&(F=r[I]),g?Rn(l,I,F):$o(l,I,F)}return l}function EL(r,i){return kn(r,ef(r),i)}function xL(r,i){return kn(r,fv(r),i)}function wa(r,i){return function(l,f){var g=Te(l)?$k:KN,T=i?i():{};return g(l,r,he(f,2),T)}}function zi(r){return xe(function(i,l){var f=-1,g=l.length,T=g>1?l[g-1]:n,A=g>2?l[2]:n;for(T=r.length>3&&typeof T=="function"?(g--,T):n,A&&zt(l[0],l[1],A)&&(T=g<3?n:T,g=1),i=Ke(i);++f<g;){var I=l[f];I&&r(i,I,f,T)}return i})}function Qy(r,i){return function(l,f){if(l==null)return l;if(!Ht(l))return r(l,f);for(var g=l.length,T=i?g:-1,A=Ke(l);(i?T--:++T<g)&&f(A[T],T,A)!==!1;);return l}}function ev(r){return function(i,l,f){for(var g=-1,T=Ke(i),A=f(i),I=A.length;I--;){var F=A[r?I:++g];if(l(T[F],F,T)===!1)break}return i}}function AL(r,i,l){var f=i&$,g=No(r);function T(){var A=this&&this!==At&&this instanceof T?g:r;return A.apply(f?l:this,arguments)}return T}function tv(r){return function(i){i=je(i);var l=Mi(i)?Sn(i):n,f=l?l[0]:i.charAt(0),g=l?Or(l,1).join(""):i.slice(1);return f[r]()+g}}function Ui(r){return function(i){return vc(Qv(Xv(i).replace(yk,"")),r,"")}}function No(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var l=Bi(r.prototype),f=r.apply(l,i);return rt(f)?f:l}}function OL(r,i,l){var f=No(r);function g(){for(var T=arguments.length,A=L(T),I=T,F=ji(g);I--;)A[I]=arguments[I];var W=T<3&&A[0]!==F&&A[T-1]!==F?[]:Sr(A,F);if(T-=W.length,T<l)return sv(r,i,Sa,g.placeholder,n,A,W,n,n,l-T);var V=this&&this!==At&&this instanceof g?f:r;return Zt(V,this,A)}return g}function nv(r){return function(i,l,f){var g=Ke(i);if(!Ht(i)){var T=he(l,3);i=Et(i),l=function(I){return T(g[I],I,g)}}var A=r(i,l,f);return A>-1?g[T?i[A]:A]:n}}function rv(r){return Xn(function(i){var l=i.length,f=l,g=dn.prototype.thru;for(r&&i.reverse();f--;){var T=i[f];if(typeof T!="function")throw new fn(u);if(g&&!A&&Aa(T)=="wrapper")var A=new dn([],!0)}for(f=A?f:l;++f<l;){T=i[f];var I=Aa(T),F=I=="wrapper"?Xc(T):n;F&&nf(F[0])&&F[1]==(G|H|D|ae)&&!F[4].length&&F[9]==1?A=A[Aa(F[0])].apply(A,F[3]):A=T.length==1&&nf(T)?A[I]():A.thru(T)}return function(){var W=arguments,V=W[0];if(A&&W.length==1&&Te(V))return A.plant(V).value();for(var J=0,re=l?i[J].apply(this,W):V;++J<l;)re=i[J].call(this,re);return re}})}function Sa(r,i,l,f,g,T,A,I,F,W){var V=i&G,J=i&$,re=i&N,ce=i&(H|B),ge=i&ie,Ee=re?n:No(r);function me(){for(var Pe=arguments.length,Fe=L(Pe),tn=Pe;tn--;)Fe[tn]=arguments[tn];if(ce)var Ut=ji(me),nn=Uk(Fe,Ut);if(f&&(Fe=Zy(Fe,f,g,ce)),T&&(Fe=Xy(Fe,T,A,ce)),Pe-=nn,ce&&Pe<W){var pt=Sr(Fe,Ut);return sv(r,i,Sa,me.placeholder,l,Fe,pt,I,F,W-Pe)}var xn=J?l:this,nr=re?xn[r]:r;return Pe=Fe.length,I?Fe=KL(Fe,I):ge&&Pe>1&&Fe.reverse(),V&&F<Pe&&(Fe.length=F),this&&this!==At&&this instanceof me&&(nr=Ee||No(nr)),nr.apply(xn,Fe)}return me}function iv(r,i){return function(l,f){return nL(l,r,i(f),{})}}function Ca(r,i){return function(l,f){var g;if(l===n&&f===n)return i;if(l!==n&&(g=l),f!==n){if(g===n)return f;typeof l=="string"||typeof f=="string"?(l=Qt(l),f=Qt(f)):(l=Vy(l),f=Vy(f)),g=r(l,f)}return g}}function Kc(r){return Xn(function(i){return i=nt(i,Xt(he())),xe(function(l){var f=this;return r(i,function(g){return Zt(g,f,l)})})})}function Ea(r,i){i=i===n?" ":Qt(i);var l=i.length;if(l<2)return l?jc(i,r):i;var f=jc(i,fa(r/Fi(i)));return Mi(i)?Or(Sn(f),0,r).join(""):f.slice(0,r)}function IL(r,i,l,f){var g=i&$,T=No(r);function A(){for(var I=-1,F=arguments.length,W=-1,V=f.length,J=L(V+F),re=this&&this!==At&&this instanceof A?T:r;++W<V;)J[W]=f[W];for(;F--;)J[W++]=arguments[++I];return Zt(re,g?l:this,J)}return A}function ov(r){return function(i,l,f){return f&&typeof f!="number"&&zt(i,l,f)&&(l=f=n),i=tr(i),l===n?(l=i,i=0):l=tr(l),f=f===n?i<l?1:-1:tr(f),pL(i,l,f,r)}}function xa(r){return function(i,l){return typeof i=="string"&&typeof l=="string"||(i=mn(i),l=mn(l)),r(i,l)}}function sv(r,i,l,f,g,T,A,I,F,W){var V=i&H,J=V?A:n,re=V?n:A,ce=V?T:n,ge=V?n:T;i|=V?D:k,i&=~(V?k:D),i&Q||(i&=-4);var Ee=[r,i,g,ce,J,ge,re,I,F,W],me=l.apply(n,Ee);return nf(r)&&vv(me,Ee),me.placeholder=f,bv(me,r,i)}function Jc(r){var i=bt[r];return function(l,f){if(l=mn(l),f=f==null?0:$t(Se(f),292),f&&by(l)){var g=(je(l)+"e").split("e"),T=i(g[0]+"e"+(+g[1]+f));return g=(je(T)+"e").split("e"),+(g[0]+"e"+(+g[1]-f))}return i(l)}}var PL=Ni&&1/ta(new Ni([,-0]))[1]==Le?function(r){return new Ni(r)}:vf;function av(r){return function(i){var l=Mt(i);return l==Je?Ec(i):l==Wt?qk(i):zk(i,r(i))}}function Zn(r,i,l,f,g,T,A,I){var F=i&N;if(!F&&typeof r!="function")throw new fn(u);var W=f?f.length:0;if(W||(i&=-97,f=g=n),A=A===n?A:_t(Se(A),0),I=I===n?I:Se(I),W-=g?g.length:0,i&k){var V=f,J=g;f=g=n}var re=F?n:Xc(r),ce=[r,i,l,f,g,V,J,T,A,I];if(re&&HL(ce,re),r=ce[0],i=ce[1],l=ce[2],f=ce[3],g=ce[4],I=ce[9]=ce[9]===n?F?0:r.length:_t(ce[9]-W,0),!I&&i&(H|B)&&(i&=-25),!i||i==$)var ge=AL(r,i,l);else i==H||i==B?ge=OL(r,i,I):(i==D||i==($|D))&&!g.length?ge=IL(r,i,l,f):ge=Sa.apply(n,ce);var Ee=re?jy:vv;return bv(Ee(ge,ce),r,i)}function lv(r,i,l,f){return r===n||En(r,ki[l])&&!Ve.call(f,l)?i:r}function uv(r,i,l,f,g,T){return rt(r)&&rt(i)&&(T.set(i,r),ba(r,i,n,uv,T),T.delete(i)),r}function $L(r){return zo(r)?n:r}function cv(r,i,l,f,g,T){var A=l&E,I=r.length,F=i.length;if(I!=F&&!(A&&F>I))return!1;var W=T.get(r),V=T.get(i);if(W&&V)return W==i&&V==r;var J=-1,re=!0,ce=l&w?new Jr:n;for(T.set(r,i),T.set(i,r);++J<I;){var ge=r[J],Ee=i[J];if(f)var me=A?f(Ee,ge,J,i,r,T):f(ge,Ee,J,r,i,T);if(me!==n){if(me)continue;re=!1;break}if(ce){if(!bc(i,function(Pe,Fe){if(!Eo(ce,Fe)&&(ge===Pe||g(ge,Pe,l,f,T)))return ce.push(Fe)})){re=!1;break}}else if(!(ge===Ee||g(ge,Ee,l,f,T))){re=!1;break}}return T.delete(r),T.delete(i),re}function ML(r,i,l,f,g,T,A){switch(l){case qn:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case mr:return!(r.byteLength!=i.byteLength||!T(new aa(r),new aa(i)));case be:case pe:case Lt:return En(+r,+i);case tt:return r.name==i.name&&r.message==i.message;case hr:case Ur:return r==i+"";case Je:var I=Ec;case Wt:var F=f&E;if(I||(I=ta),r.size!=i.size&&!F)return!1;var W=A.get(r);if(W)return W==i;f|=w,A.set(r,i);var V=cv(I(r),I(i),f,g,T,A);return A.delete(r),V;case pr:if(Po)return Po.call(r)==Po.call(i)}return!1}function FL(r,i,l,f,g,T){var A=l&E,I=Rc(r),F=I.length,W=Rc(i),V=W.length;if(F!=V&&!A)return!1;for(var J=F;J--;){var re=I[J];if(!(A?re in i:Ve.call(i,re)))return!1}var ce=T.get(r),ge=T.get(i);if(ce&&ge)return ce==i&&ge==r;var Ee=!0;T.set(r,i),T.set(i,r);for(var me=A;++J<F;){re=I[J];var Pe=r[re],Fe=i[re];if(f)var tn=A?f(Fe,Pe,re,i,r,T):f(Pe,Fe,re,r,i,T);if(!(tn===n?Pe===Fe||g(Pe,Fe,l,f,T):tn)){Ee=!1;break}me||(me=re=="constructor")}if(Ee&&!me){var Ut=r.constructor,nn=i.constructor;Ut!=nn&&"constructor"in r&&"constructor"in i&&!(typeof Ut=="function"&&Ut instanceof Ut&&typeof nn=="function"&&nn instanceof nn)&&(Ee=!1)}return T.delete(r),T.delete(i),Ee}function Xn(r){return of(mv(r,n,Ev),r+"")}function Rc(r){return Py(r,Et,ef)}function Zc(r){return Py(r,Yt,fv)}var Xc=ha?function(r){return ha.get(r)}:vf;function Aa(r){for(var i=r.name+"",l=Li[i],f=Ve.call(Li,i)?l.length:0;f--;){var g=l[f],T=g.func;if(T==null||T==r)return g.name}return i}function ji(r){var i=Ve.call(b,"placeholder")?b:r;return i.placeholder}function he(){var r=b.iteratee||mf;return r=r===mf?Fy:r,arguments.length?r(arguments[0],arguments[1]):r}function Oa(r,i){var l=r.__data__;return jL(i)?l[typeof i=="string"?"string":"hash"]:l.map}function Qc(r){for(var i=Et(r),l=i.length;l--;){var f=i[l],g=r[f];i[l]=[f,g,pv(g)]}return i}function Xr(r,i){var l=Gk(r,i);return My(l)?l:n}function DL(r){var i=Ve.call(r,qr),l=r[qr];try{r[qr]=n;var f=!0}catch{}var g=oa.call(r);return f&&(i?r[qr]=l:delete r[qr]),g}var ef=Ac?function(r){return r==null?[]:(r=Ke(r),Tr(Ac(r),function(i){return yy.call(r,i)}))}:bf,fv=Ac?function(r){for(var i=[];r;)wr(i,ef(r)),r=la(r);return i}:bf,Mt=Bt;(Oc&&Mt(new Oc(new ArrayBuffer(1)))!=qn||Ao&&Mt(new Ao)!=Je||Ic&&Mt(Ic.resolve())!=ke||Ni&&Mt(new Ni)!=Wt||Oo&&Mt(new Oo)!=an)&&(Mt=function(r){var i=Bt(r),l=i==vt?r.constructor:n,f=l?Qr(l):"";if(f)switch(f){case mN:return qn;case yN:return Je;case vN:return ke;case bN:return Wt;case _N:return an}return i});function kL(r,i,l){for(var f=-1,g=l.length;++f<g;){var T=l[f],A=T.size;switch(T.type){case"drop":r+=A;break;case"dropRight":i-=A;break;case"take":i=$t(i,r+A);break;case"takeRight":r=_t(r,i-A);break}}return{start:r,end:i}}function NL(r){var i=r.match(qs);return i?i[1].split(To):[]}function dv(r,i,l){i=Ar(i,r);for(var f=-1,g=i.length,T=!1;++f<g;){var A=Nn(i[f]);if(!(T=r!=null&&l(r,A)))break;r=r[A]}return T||++f!=g?T:(g=r==null?0:r.length,!!g&&ka(g)&&Qn(A,g)&&(Te(r)||ei(r)))}function LL(r){var i=r.length,l=new r.constructor(i);return i&&typeof r[0]=="string"&&Ve.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function hv(r){return typeof r.constructor=="function"&&!Lo(r)?Bi(la(r)):{}}function BL(r,i,l){var f=r.constructor;switch(i){case mr:return qc(r);case be:case pe:return new f(+r);case qn:return TL(r,l);case Ci:case Wr:case Ei:case yr:case vr:case Rt:case Fn:case Vr:case Gr:return Jy(r,l);case Je:return new f;case Lt:case Ur:return new f(r);case hr:return wL(r);case Wt:return new f;case pr:return SL(r)}}function zL(r,i){var l=i.length;if(!l)return r;var f=l-1;return i[f]=(l>1?"& ":"")+i[f],i=i.join(l>2?", ":" "),r.replace(Ys,`{
133
133
  /* [wrapped with `+i+`] */
134
- `)}function UL(r){return Te(r)||ei(r)||!!(yy&&r&&r[yy])}function Qn(r,i){var l=typeof r;return i=i??Ie,!!i&&(l=="number"||l!="symbol"&&X.test(r))&&r>-1&&r%1==0&&r<i}function zt(r,i,l){if(!rt(l))return!1;var f=typeof i;return(f=="number"?Ht(l)&&Qn(i,l.length):f=="string"&&i in l)?En(l[i],r):!1}function ef(r,i){if(Te(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||en(r)?!0:bo.test(r)||!Vs.test(r)||i!=null&&r in Ke(i)}function jL(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function tf(r){var i=xa(r),l=b[i];if(typeof l!="function"||!(i in $e.prototype))return!1;if(r===l)return!0;var f=Zc(l);return!!f&&r===f[0]}function WL(r){return!!hy&&hy in r}var VL=na?er:bf;function No(r){var i=r&&r.constructor,l=typeof i=="function"&&i.prototype||ki;return r===l}function hv(r){return r===r&&!rt(r)}function pv(r,i){return function(l){return l==null?!1:l[r]===i&&(i!==n||r in Ke(l))}}function GL(r){var i=Ma(r,function(f){return l.size===p&&l.clear(),f}),l=i.cache;return i}function HL(r,i){var l=r[1],f=i[1],g=l|f,T=g<($|N|G),A=f==G&&l==H||f==G&&l==ae&&r[7].length<=i[8]||f==(G|ae)&&i[7].length<=i[8]&&l==H;if(!(T||A))return r;f&$&&(r[2]=i[2],g|=l&$?0:Q);var I=i[3];if(I){var F=r[3];r[3]=F?Ry(F,I,i[4]):I,r[4]=F?Sr(r[3],y):i[4]}return I=i[5],I&&(F=r[5],r[5]=F?Zy(F,I,i[6]):I,r[6]=F?Sr(r[5],y):i[6]),I=i[7],I&&(r[7]=I),f&G&&(r[8]=r[8]==null?i[8]:$t(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=g,r}function YL(r){var i=[];if(r!=null)for(var l in Ke(r))i.push(l);return i}function qL(r){return ia.call(r)}function gv(r,i,l){return i=_t(i===n?r.length-1:i,0),function(){for(var f=arguments,g=-1,T=_t(f.length-i,0),A=L(T);++g<T;)A[g]=f[i+g];g=-1;for(var I=L(i+1);++g<i;)I[g]=f[g];return I[i]=l(A),Zt(r,this,I)}}function mv(r,i){return i.length<2?r:Zr(r,pn(i,0,-1))}function KL(r,i){for(var l=r.length,f=$t(i.length,l),g=Gt(r);f--;){var T=i[f];r[f]=Qn(T,l)?g[T]:n}return r}function nf(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var yv=bv(Uy),Lo=uN||function(r,i){return At.setTimeout(r,i)},rf=bv(yL);function vv(r,i,l){var f=i+"";return rf(r,zL(f,JL(NL(f),l)))}function bv(r){var i=0,l=0;return function(){var f=hN(),g=fe-(f-l);if(l=f,g>0){if(++i>=ne)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Oa(r,i){var l=-1,f=r.length,g=f-1;for(i=i===n?f:i;++l<i;){var T=zc(l,g),A=r[T];r[T]=r[l],r[l]=A}return r.length=i,r}var _v=GL(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(Gs,function(l,f,g,T){i.push(g?T.replace(Ks,"$1"):f||l)}),i});function Nn(r){if(typeof r=="string"||en(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function Qr(r){if(r!=null){try{return ra.call(r)}catch{}try{return r+""}catch{}}return""}function JL(r,i){return cn(Y,function(l){var f="_."+l[0];i&l[1]&&!Xs(r,f)&&r.push(f)}),r.sort()}function Tv(r){if(r instanceof $e)return r.clone();var i=new dn(r.__wrapped__,r.__chain__);return i.__actions__=Gt(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function RL(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=_t(Se(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var g=0,T=0,A=L(ca(f/i));g<f;)A[T++]=pn(r,g,g+=i);return A}function ZL(r){for(var i=-1,l=r==null?0:r.length,f=0,g=[];++i<l;){var T=r[i];T&&(g[f++]=T)}return g}function XL(){var r=arguments.length;if(!r)return[];for(var i=L(r-1),l=arguments[0],f=r;f--;)i[f-1]=arguments[f];return wr(Te(l)?Gt(l):[l],Ot(i,1))}var QL=xe(function(r,i){return ht(r)?$o(r,Ot(i,1,ht,!0)):[]}),e5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?$o(r,Ot(i,1,ht,!0),he(l,2)):[]}),t5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?$o(r,Ot(i,1,ht,!0),n,l):[]});function n5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),pn(r,i<0?0:i,f)):[]}function r5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,0,i<0?0:i)):[]}function i5(r,i){return r&&r.length?_a(r,he(i,3),!0,!0):[]}function o5(r,i){return r&&r.length?_a(r,he(i,3),!0):[]}function s5(r,i,l,f){var g=r==null?0:r.length;return g?(l&&typeof l!="number"&&zt(r,i,l)&&(l=0,f=g),XN(r,i,l,f)):[]}function wv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),Qs(r,he(i,3),g)}function Sv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return l!==n&&(g=Se(l),g=l<0?_t(f+g,0):$t(g,f-1)),Qs(r,he(i,3),g,!0)}function Cv(r){var i=r==null?0:r.length;return i?Ot(r,1):[]}function a5(r){var i=r==null?0:r.length;return i?Ot(r,Le):[]}function l5(r,i){var l=r==null?0:r.length;return l?(i=i===n?1:Se(i),Ot(r,i)):[]}function u5(r){for(var i=-1,l=r==null?0:r.length,f={};++i<l;){var g=r[i];f[g[0]]=g[1]}return f}function Ev(r){return r&&r.length?r[0]:n}function c5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),$i(r,i,g)}function f5(r){var i=r==null?0:r.length;return i?pn(r,0,-1):[]}var d5=xe(function(r){var i=nt(r,Gc);return i.length&&i[0]===r[0]?Dc(i):[]}),h5=xe(function(r){var i=gn(r),l=nt(r,Gc);return i===gn(l)?i=n:l.pop(),l.length&&l[0]===r[0]?Dc(l,he(i,2)):[]}),p5=xe(function(r){var i=gn(r),l=nt(r,Gc);return i=typeof i=="function"?i:n,i&&l.pop(),l.length&&l[0]===r[0]?Dc(l,n,i):[]});function g5(r,i){return r==null?"":fN.call(r,i)}function gn(r){var i=r==null?0:r.length;return i?r[i-1]:n}function m5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f;return l!==n&&(g=Se(l),g=g<0?_t(f+g,0):$t(g,f-1)),i===i?Jk(r,i,g):Qs(r,oy,g,!0)}function y5(r,i){return r&&r.length?Ny(r,Se(i)):n}var v5=xe(xv);function xv(r,i){return r&&r.length&&i&&i.length?Bc(r,i):r}function b5(r,i,l){return r&&r.length&&i&&i.length?Bc(r,i,he(l,2)):r}function _5(r,i,l){return r&&r.length&&i&&i.length?Bc(r,i,n,l):r}var T5=Xn(function(r,i){var l=r==null?0:r.length,f=Pc(r,i);return zy(r,nt(i,function(g){return Qn(g,l)?+g:g}).sort(Jy)),f});function w5(r,i){var l=[];if(!(r&&r.length))return l;var f=-1,g=[],T=r.length;for(i=he(i,3);++f<T;){var A=r[f];i(A,f,r)&&(l.push(A),g.push(f))}return zy(r,g),l}function of(r){return r==null?r:gN.call(r)}function S5(r,i,l){var f=r==null?0:r.length;return f?(l&&typeof l!="number"&&zt(r,i,l)?(i=0,l=f):(i=i==null?0:Se(i),l=l===n?f:Se(l)),pn(r,i,l)):[]}function C5(r,i){return ba(r,i)}function E5(r,i,l){return jc(r,i,he(l,2))}function x5(r,i){var l=r==null?0:r.length;if(l){var f=ba(r,i);if(f<l&&En(r[f],i))return f}return-1}function A5(r,i){return ba(r,i,!0)}function O5(r,i,l){return jc(r,i,he(l,2),!0)}function I5(r,i){var l=r==null?0:r.length;if(l){var f=ba(r,i,!0)-1;if(En(r[f],i))return f}return-1}function P5(r){return r&&r.length?jy(r):[]}function $5(r,i){return r&&r.length?jy(r,he(i,2)):[]}function M5(r){var i=r==null?0:r.length;return i?pn(r,1,i):[]}function F5(r,i,l){return r&&r.length?(i=l||i===n?1:Se(i),pn(r,0,i<0?0:i)):[]}function D5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,i<0?0:i,f)):[]}function k5(r,i){return r&&r.length?_a(r,he(i,3),!1,!0):[]}function N5(r,i){return r&&r.length?_a(r,he(i,3)):[]}var L5=xe(function(r){return xr(Ot(r,1,ht,!0))}),B5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),xr(Ot(r,1,ht,!0),he(i,2))}),z5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,xr(Ot(r,1,ht,!0),n,i)});function U5(r){return r&&r.length?xr(r):[]}function j5(r,i){return r&&r.length?xr(r,he(i,2)):[]}function W5(r,i){return i=typeof i=="function"?i:n,r&&r.length?xr(r,n,i):[]}function sf(r){if(!(r&&r.length))return[];var i=0;return r=Tr(r,function(l){if(ht(l))return i=_t(l.length,i),!0}),wc(i,function(l){return nt(r,bc(l))})}function Av(r,i){if(!(r&&r.length))return[];var l=sf(r);return i==null?l:nt(l,function(f){return Zt(i,n,f)})}var V5=xe(function(r,i){return ht(r)?$o(r,i):[]}),G5=xe(function(r){return Vc(Tr(r,ht))}),H5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),Vc(Tr(r,ht),he(i,2))}),Y5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,Vc(Tr(r,ht),n,i)}),q5=xe(sf);function K5(r,i){return Hy(r||[],i||[],Po)}function J5(r,i){return Hy(r||[],i||[],Do)}var R5=xe(function(r){var i=r.length,l=i>1?r[i-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Av(r,l)});function Ov(r){var i=b(r);return i.__chain__=!0,i}function Z5(r,i){return i(r),r}function Ia(r,i){return i(r)}var X5=Xn(function(r){var i=r.length,l=i?r[0]:0,f=this.__wrapped__,g=function(T){return Pc(T,r)};return i>1||this.__actions__.length||!(f instanceof $e)||!Qn(l)?this.thru(g):(f=f.slice(l,+l+(i?1:0)),f.__actions__.push({func:Ia,args:[g],thisArg:n}),new dn(f,this.__chain__).thru(function(T){return i&&!T.length&&T.push(n),T}))});function Q5(){return Ov(this)}function e4(){return new dn(this.value(),this.__chain__)}function t4(){this.__values__===n&&(this.__values__=Wv(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function n4(){return this}function r4(r){for(var i,l=this;l instanceof pa;){var f=Tv(l);f.__index__=0,f.__values__=n,i?g.__wrapped__=f:i=f;var g=f;l=l.__wrapped__}return g.__wrapped__=r,i}function i4(){var r=this.__wrapped__;if(r instanceof $e){var i=r;return this.__actions__.length&&(i=new $e(this)),i=i.reverse(),i.__actions__.push({func:Ia,args:[of],thisArg:n}),new dn(i,this.__chain__)}return this.thru(of)}function o4(){return Gy(this.__wrapped__,this.__actions__)}var s4=Ta(function(r,i,l){Ve.call(r,l)?++r[l]:Rn(r,l,1)});function a4(r,i,l){var f=Te(r)?ry:ZN;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}function l4(r,i){var l=Te(r)?Tr:Ay;return l(r,he(i,3))}var u4=tv(wv),c4=tv(Sv);function f4(r,i){return Ot(Pa(r,i),1)}function d4(r,i){return Ot(Pa(r,i),Le)}function h4(r,i,l){return l=l===n?1:Se(l),Ot(Pa(r,i),l)}function Iv(r,i){var l=Te(r)?cn:Er;return l(r,he(i,3))}function Pv(r,i){var l=Te(r)?Mk:xy;return l(r,he(i,3))}var p4=Ta(function(r,i,l){Ve.call(r,l)?r[l].push(i):Rn(r,l,[i])});function g4(r,i,l,f){r=Ht(r)?r:Vi(r),l=l&&!f?Se(l):0;var g=r.length;return l<0&&(l=_t(g+l,0)),ka(r)?l<=g&&r.indexOf(i,l)>-1:!!g&&$i(r,i,l)>-1}var m4=xe(function(r,i,l){var f=-1,g=typeof i=="function",T=Ht(r)?L(r.length):[];return Er(r,function(A){T[++f]=g?Zt(i,A,l):Mo(A,i,l)}),T}),y4=Ta(function(r,i,l){Rn(r,l,i)});function Pa(r,i){var l=Te(r)?nt:Fy;return l(r,he(i,3))}function v4(r,i,l,f){return r==null?[]:(Te(i)||(i=i==null?[]:[i]),l=f?n:l,Te(l)||(l=l==null?[]:[l]),Ly(r,i,l))}var b4=Ta(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function _4(r,i,l){var f=Te(r)?yc:ay,g=arguments.length<3;return f(r,he(i,4),l,g,Er)}function T4(r,i,l){var f=Te(r)?Fk:ay,g=arguments.length<3;return f(r,he(i,4),l,g,xy)}function w4(r,i){var l=Te(r)?Tr:Ay;return l(r,Fa(he(i,3)))}function S4(r){var i=Te(r)?wy:gL;return i(r)}function C4(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=Se(i);var f=Te(r)?YN:mL;return f(r,i)}function E4(r){var i=Te(r)?qN:vL;return i(r)}function x4(r){if(r==null)return 0;if(Ht(r))return ka(r)?Fi(r):r.length;var i=Mt(r);return i==Je||i==Wt?r.size:Nc(r).length}function A4(r,i,l){var f=Te(r)?vc:bL;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}var O4=xe(function(r,i){if(r==null)return[];var l=i.length;return l>1&&zt(r,i[0],i[1])?i=[]:l>2&&zt(i[0],i[1],i[2])&&(i=[i[0]]),Ly(r,Ot(i,1),[])}),$a=lN||function(){return At.Date.now()};function I4(r,i){if(typeof i!="function")throw new fn(u);return r=Se(r),function(){if(--r<1)return i.apply(this,arguments)}}function $v(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Zn(r,G,n,n,n,n,i)}function Mv(r,i){var l;if(typeof i!="function")throw new fn(u);return r=Se(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var af=xe(function(r,i,l){var f=$;if(l.length){var g=Sr(l,ji(af));f|=D}return Zn(r,f,i,l,g)}),Fv=xe(function(r,i,l){var f=$|N;if(l.length){var g=Sr(l,ji(Fv));f|=D}return Zn(i,f,r,l,g)});function Dv(r,i,l){i=l?n:i;var f=Zn(r,H,n,n,n,n,n,i);return f.placeholder=Dv.placeholder,f}function kv(r,i,l){i=l?n:i;var f=Zn(r,B,n,n,n,n,n,i);return f.placeholder=kv.placeholder,f}function Nv(r,i,l){var f,g,T,A,I,F,W=0,V=!1,J=!1,re=!0;if(typeof r!="function")throw new fn(u);i=mn(i)||0,rt(l)&&(V=!!l.leading,J="maxWait"in l,T=J?_t(mn(l.maxWait)||0,i):T,re="trailing"in l?!!l.trailing:re);function ce(pt){var xn=f,nr=g;return f=g=n,W=pt,A=r.apply(nr,xn),A}function ge(pt){return W=pt,I=Lo(Pe,i),V?ce(pt):A}function Ee(pt){var xn=pt-F,nr=pt-W,tb=i-xn;return J?$t(tb,T-nr):tb}function me(pt){var xn=pt-F,nr=pt-W;return F===n||xn>=i||xn<0||J&&nr>=T}function Pe(){var pt=$a();if(me(pt))return Fe(pt);I=Lo(Pe,Ee(pt))}function Fe(pt){return I=n,re&&f?ce(pt):(f=g=n,A)}function tn(){I!==n&&Yy(I),W=0,f=F=g=I=n}function Ut(){return I===n?A:Fe($a())}function nn(){var pt=$a(),xn=me(pt);if(f=arguments,g=this,F=pt,xn){if(I===n)return ge(F);if(J)return Yy(I),I=Lo(Pe,i),ce(F)}return I===n&&(I=Lo(Pe,i)),A}return nn.cancel=tn,nn.flush=Ut,nn}var P4=xe(function(r,i){return Ey(r,1,i)}),$4=xe(function(r,i,l){return Ey(r,mn(i)||0,l)});function M4(r){return Zn(r,ie)}function Ma(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new fn(u);var l=function(){var f=arguments,g=i?i.apply(this,f):f[0],T=l.cache;if(T.has(g))return T.get(g);var A=r.apply(this,f);return l.cache=T.set(g,A)||T,A};return l.cache=new(Ma.Cache||Jn),l}Ma.Cache=Jn;function Fa(r){if(typeof r!="function")throw new fn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function F4(r){return Mv(2,r)}var D4=_L(function(r,i){i=i.length==1&&Te(i[0])?nt(i[0],Xt(he())):nt(Ot(i,1),Xt(he()));var l=i.length;return xe(function(f){for(var g=-1,T=$t(f.length,l);++g<T;)f[g]=i[g].call(this,f[g]);return Zt(r,this,f)})}),lf=xe(function(r,i){var l=Sr(i,ji(lf));return Zn(r,D,n,i,l)}),Lv=xe(function(r,i){var l=Sr(i,ji(Lv));return Zn(r,k,n,i,l)}),k4=Xn(function(r,i){return Zn(r,ae,n,n,n,i)});function N4(r,i){if(typeof r!="function")throw new fn(u);return i=i===n?i:Se(i),xe(r,i)}function L4(r,i){if(typeof r!="function")throw new fn(u);return i=i==null?0:_t(Se(i),0),xe(function(l){var f=l[i],g=Or(l,0,i);return f&&wr(g,f),Zt(r,this,g)})}function B4(r,i,l){var f=!0,g=!0;if(typeof r!="function")throw new fn(u);return rt(l)&&(f="leading"in l?!!l.leading:f,g="trailing"in l?!!l.trailing:g),Nv(r,i,{leading:f,maxWait:i,trailing:g})}function z4(r){return $v(r,1)}function U4(r,i){return lf(Hc(i),r)}function j4(){if(!arguments.length)return[];var r=arguments[0];return Te(r)?r:[r]}function W4(r){return hn(r,C)}function V4(r,i){return i=typeof i=="function"?i:n,hn(r,C,i)}function G4(r){return hn(r,m|C)}function H4(r,i){return i=typeof i=="function"?i:n,hn(r,m|C,i)}function Y4(r,i){return i==null||Cy(r,i,Et(i))}function En(r,i){return r===i||r!==r&&i!==i}var q4=Ea(Fc),K4=Ea(function(r,i){return r>=i}),ei=Py(function(){return arguments}())?Py:function(r){return ct(r)&&Ve.call(r,"callee")&&!my.call(r,"callee")},Te=L.isArray,J4=Z0?Xt(Z0):rL;function Ht(r){return r!=null&&Da(r.length)&&!er(r)}function ht(r){return ct(r)&&Ht(r)}function R4(r){return r===!0||r===!1||ct(r)&&Bt(r)==be}var Ir=cN||bf,Z4=X0?Xt(X0):iL;function X4(r){return ct(r)&&r.nodeType===1&&!Bo(r)}function Q4(r){if(r==null)return!0;if(Ht(r)&&(Te(r)||typeof r=="string"||typeof r.splice=="function"||Ir(r)||Wi(r)||ei(r)))return!r.length;var i=Mt(r);if(i==Je||i==Wt)return!r.size;if(No(r))return!Nc(r).length;for(var l in r)if(Ve.call(r,l))return!1;return!0}function e3(r,i){return Fo(r,i)}function t3(r,i,l){l=typeof l=="function"?l:n;var f=l?l(r,i):n;return f===n?Fo(r,i,n,l):!!f}function uf(r){if(!ct(r))return!1;var i=Bt(r);return i==tt||i==Ce||typeof r.message=="string"&&typeof r.name=="string"&&!Bo(r)}function n3(r){return typeof r=="number"&&vy(r)}function er(r){if(!rt(r))return!1;var i=Bt(r);return i==te||i==yt||i==ve||i==Yn}function Bv(r){return typeof r=="number"&&r==Se(r)}function Da(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ie}function rt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function ct(r){return r!=null&&typeof r=="object"}var zv=Q0?Xt(Q0):sL;function r3(r,i){return r===i||kc(r,i,Xc(i))}function i3(r,i,l){return l=typeof l=="function"?l:n,kc(r,i,Xc(i),l)}function o3(r){return Uv(r)&&r!=+r}function s3(r){if(VL(r))throw new _e(a);return $y(r)}function a3(r){return r===null}function l3(r){return r==null}function Uv(r){return typeof r=="number"||ct(r)&&Bt(r)==Lt}function Bo(r){if(!ct(r)||Bt(r)!=vt)return!1;var i=aa(r);if(i===null)return!0;var l=Ve.call(i,"constructor")&&i.constructor;return typeof l=="function"&&l instanceof l&&ra.call(l)==iN}var cf=ey?Xt(ey):aL;function u3(r){return Bv(r)&&r>=-9007199254740991&&r<=Ie}var jv=ty?Xt(ty):lL;function ka(r){return typeof r=="string"||!Te(r)&&ct(r)&&Bt(r)==Ur}function en(r){return typeof r=="symbol"||ct(r)&&Bt(r)==pr}var Wi=ny?Xt(ny):uL;function c3(r){return r===n}function f3(r){return ct(r)&&Mt(r)==an}function d3(r){return ct(r)&&Bt(r)==gr}var h3=Ea(Lc),p3=Ea(function(r,i){return r<=i});function Wv(r){if(!r)return[];if(Ht(r))return ka(r)?Sn(r):Gt(r);if(Eo&&r[Eo])return Yk(r[Eo]());var i=Mt(r),l=i==Je?Cc:i==Wt?ea:Vi;return l(r)}function tr(r){if(!r)return r===0?r:0;if(r=mn(r),r===Le||r===-1/0){var i=r<0?-1:1;return i*lt}return r===r?r:0}function Se(r){var i=tr(r),l=i%1;return i===i?l?i-l:i:0}function Vv(r){return r?Rr(Se(r),0,K):0}function mn(r){if(typeof r=="number")return r;if(en(r))return q;if(rt(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=rt(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=ly(r);var l=lc.test(r);return l||P.test(r)?Ik(r.slice(2),l?2:8):Rs.test(r)?q:+r}function Gv(r){return kn(r,Yt(r))}function g3(r){return r?Rr(Se(r),-9007199254740991,Ie):r===0?r:0}function je(r){return r==null?"":Qt(r)}var m3=zi(function(r,i){if(No(i)||Ht(i)){kn(i,Et(i),r);return}for(var l in i)Ve.call(i,l)&&Po(r,l,i[l])}),Hv=zi(function(r,i){kn(i,Yt(i),r)}),Na=zi(function(r,i,l,f){kn(i,Yt(i),r,f)}),y3=zi(function(r,i,l,f){kn(i,Et(i),r,f)}),v3=Xn(Pc);function b3(r,i){var l=Bi(r);return i==null?l:Sy(l,i)}var _3=xe(function(r,i){r=Ke(r);var l=-1,f=i.length,g=f>2?i[2]:n;for(g&&zt(i[0],i[1],g)&&(f=1);++l<f;)for(var T=i[l],A=Yt(T),I=-1,F=A.length;++I<F;){var W=A[I],V=r[W];(V===n||En(V,ki[W])&&!Ve.call(r,W))&&(r[W]=T[W])}return r}),T3=xe(function(r){return r.push(n,lv),Zt(Yv,n,r)});function w3(r,i){return iy(r,he(i,3),Dn)}function S3(r,i){return iy(r,he(i,3),Mc)}function C3(r,i){return r==null?r:$c(r,he(i,3),Yt)}function E3(r,i){return r==null?r:Oy(r,he(i,3),Yt)}function x3(r,i){return r&&Dn(r,he(i,3))}function A3(r,i){return r&&Mc(r,he(i,3))}function O3(r){return r==null?[]:ya(r,Et(r))}function I3(r){return r==null?[]:ya(r,Yt(r))}function ff(r,i,l){var f=r==null?n:Zr(r,i);return f===n?l:f}function P3(r,i){return r!=null&&fv(r,i,QN)}function df(r,i){return r!=null&&fv(r,i,eL)}var $3=rv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=ia.call(i)),r[i]=l},pf(qt)),M3=rv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=ia.call(i)),Ve.call(r,i)?r[i].push(l):r[i]=[l]},he),F3=xe(Mo);function Et(r){return Ht(r)?Ty(r):Nc(r)}function Yt(r){return Ht(r)?Ty(r,!0):cL(r)}function D3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,i(f,g,T),f)}),l}function k3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,g,i(f,g,T))}),l}var N3=zi(function(r,i,l){va(r,i,l)}),Yv=zi(function(r,i,l,f){va(r,i,l,f)}),L3=Xn(function(r,i){var l={};if(r==null)return l;var f=!1;i=nt(i,function(T){return T=Ar(T,r),f||(f=T.length>1),T}),kn(r,Rc(r),l),f&&(l=hn(l,m|_|C,$L));for(var g=i.length;g--;)Wc(l,i[g]);return l});function B3(r,i){return qv(r,Fa(he(i)))}var z3=Xn(function(r,i){return r==null?{}:dL(r,i)});function qv(r,i){if(r==null)return{};var l=nt(Rc(r),function(f){return[f]});return i=he(i),By(r,l,function(f,g){return i(f,g[0])})}function U3(r,i,l){i=Ar(i,r);var f=-1,g=i.length;for(g||(g=1,r=n);++f<g;){var T=r==null?n:r[Nn(i[f])];T===n&&(f=g,T=l),r=er(T)?T.call(r):T}return r}function j3(r,i,l){return r==null?r:Do(r,i,l)}function W3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Do(r,i,l,f)}var Kv=sv(Et),Jv=sv(Yt);function V3(r,i,l){var f=Te(r),g=f||Ir(r)||Wi(r);if(i=he(i,4),l==null){var T=r&&r.constructor;g?l=f?new T:[]:rt(r)?l=er(T)?Bi(aa(r)):{}:l={}}return(g?cn:Dn)(r,function(A,I,F){return i(l,A,I,F)}),l}function G3(r,i){return r==null?!0:Wc(r,i)}function H3(r,i,l){return r==null?r:Vy(r,i,Hc(l))}function Y3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Vy(r,i,Hc(l),f)}function Vi(r){return r==null?[]:Sc(r,Et(r))}function q3(r){return r==null?[]:Sc(r,Yt(r))}function K3(r,i,l){return l===n&&(l=i,i=n),l!==n&&(l=mn(l),l=l===l?l:0),i!==n&&(i=mn(i),i=i===i?i:0),Rr(mn(r),i,l)}function J3(r,i,l){return i=tr(i),l===n?(l=i,i=0):l=tr(l),r=mn(r),tL(r,i,l)}function R3(r,i,l){if(l&&typeof l!="boolean"&&zt(r,i,l)&&(i=l=n),l===n&&(typeof i=="boolean"?(l=i,i=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&i===n?(r=0,i=1):(r=tr(r),i===n?(i=r,r=0):i=tr(i)),r>i){var f=r;r=i,i=f}if(l||r%1||i%1){var g=by();return $t(r+g*(i-r+Ok("1e-"+((g+"").length-1))),i)}return zc(r,i)}var Z3=Ui(function(r,i,l){return i=i.toLowerCase(),r+(l?Rv(i):i)});function Rv(r){return hf(je(r).toLowerCase())}function Zv(r){return r=je(r),r&&r.replace(le,jk).replace(vk,"")}function X3(r,i,l){r=je(r),i=Qt(i);var f=r.length;l=l===n?f:Rr(Se(l),0,f);var g=l;return l-=i.length,l>=0&&r.slice(l,g)==i}function Q3(r){return r=je(r),r&&sc.test(r)?r.replace(br,Wk):r}function eB(r){return r=je(r),r&&ac.test(r)?r.replace(Oi,"\\$&"):r}var tB=Ui(function(r,i,l){return r+(l?"-":"")+i.toLowerCase()}),nB=Ui(function(r,i,l){return r+(l?" ":"")+i.toLowerCase()}),rB=ev("toLowerCase");function iB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;if(!i||f>=i)return r;var g=(i-f)/2;return Ca(fa(g),l)+r+Ca(ca(g),l)}function oB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?r+Ca(i-f,l):r}function sB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?Ca(i-f,l)+r:r}function aB(r,i,l){return l||i==null?i=0:i&&(i=+i),pN(je(r).replace(Vt,""),i||0)}function lB(r,i,l){return(l?zt(r,i,l):i===n)?i=1:i=Se(i),Uc(je(r),i)}function uB(){var r=arguments,i=je(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var cB=Ui(function(r,i,l){return r+(l?"_":"")+i.toLowerCase()});function fB(r,i,l){return l&&typeof l!="number"&&zt(r,i,l)&&(i=l=n),l=l===n?K:l>>>0,l?(r=je(r),r&&(typeof i=="string"||i!=null&&!cf(i))&&(i=Qt(i),!i&&Mi(r))?Or(Sn(r),0,l):r.split(i,l)):[]}var dB=Ui(function(r,i,l){return r+(l?" ":"")+hf(i)});function hB(r,i,l){return r=je(r),l=l==null?0:Rr(Se(l),0,r.length),i=Qt(i),r.slice(l,l+i.length)==i}function pB(r,i,l){var f=b.templateSettings;l&&zt(r,i,l)&&(i=n),r=je(r),i=Na({},i,f,av);var g=Na({},i.imports,f.imports,av),T=Et(g),A=Sc(g,T),I,F,W=0,V=i.interpolate||We,J="__p += '",re=Ec((i.escape||We).source+"|"+V.source+"|"+(V===Ws?Js:We).source+"|"+(i.evaluate||We).source+"|$","g"),ce="//# sourceURL="+(Ve.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sk+"]")+`
134
+ `)}function UL(r){return Te(r)||ei(r)||!!(vy&&r&&r[vy])}function Qn(r,i){var l=typeof r;return i=i??Ie,!!i&&(l=="number"||l!="symbol"&&X.test(r))&&r>-1&&r%1==0&&r<i}function zt(r,i,l){if(!rt(l))return!1;var f=typeof i;return(f=="number"?Ht(l)&&Qn(i,l.length):f=="string"&&i in l)?En(l[i],r):!1}function tf(r,i){if(Te(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||en(r)?!0:_o.test(r)||!Gs.test(r)||i!=null&&r in Ke(i)}function jL(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function nf(r){var i=Aa(r),l=b[i];if(typeof l!="function"||!(i in $e.prototype))return!1;if(r===l)return!0;var f=Xc(l);return!!f&&r===f[0]}function WL(r){return!!py&&py in r}var VL=ra?er:_f;function Lo(r){var i=r&&r.constructor,l=typeof i=="function"&&i.prototype||ki;return r===l}function pv(r){return r===r&&!rt(r)}function gv(r,i){return function(l){return l==null?!1:l[r]===i&&(i!==n||r in Ke(l))}}function GL(r){var i=Fa(r,function(f){return l.size===p&&l.clear(),f}),l=i.cache;return i}function HL(r,i){var l=r[1],f=i[1],g=l|f,T=g<($|N|G),A=f==G&&l==H||f==G&&l==ae&&r[7].length<=i[8]||f==(G|ae)&&i[7].length<=i[8]&&l==H;if(!(T||A))return r;f&$&&(r[2]=i[2],g|=l&$?0:Q);var I=i[3];if(I){var F=r[3];r[3]=F?Zy(F,I,i[4]):I,r[4]=F?Sr(r[3],m):i[4]}return I=i[5],I&&(F=r[5],r[5]=F?Xy(F,I,i[6]):I,r[6]=F?Sr(r[5],m):i[6]),I=i[7],I&&(r[7]=I),f&G&&(r[8]=r[8]==null?i[8]:$t(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=g,r}function YL(r){var i=[];if(r!=null)for(var l in Ke(r))i.push(l);return i}function qL(r){return oa.call(r)}function mv(r,i,l){return i=_t(i===n?r.length-1:i,0),function(){for(var f=arguments,g=-1,T=_t(f.length-i,0),A=L(T);++g<T;)A[g]=f[i+g];g=-1;for(var I=L(i+1);++g<i;)I[g]=f[g];return I[i]=l(A),Zt(r,this,I)}}function yv(r,i){return i.length<2?r:Zr(r,pn(i,0,-1))}function KL(r,i){for(var l=r.length,f=$t(i.length,l),g=Gt(r);f--;){var T=i[f];r[f]=Qn(T,l)?g[T]:n}return r}function rf(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var vv=_v(jy),Bo=uN||function(r,i){return At.setTimeout(r,i)},of=_v(yL);function bv(r,i,l){var f=i+"";return of(r,zL(f,JL(NL(f),l)))}function _v(r){var i=0,l=0;return function(){var f=hN(),g=fe-(f-l);if(l=f,g>0){if(++i>=ne)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Ia(r,i){var l=-1,f=r.length,g=f-1;for(i=i===n?f:i;++l<i;){var T=Uc(l,g),A=r[T];r[T]=r[l],r[l]=A}return r.length=i,r}var Tv=GL(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(Hs,function(l,f,g,T){i.push(g?T.replace(Js,"$1"):f||l)}),i});function Nn(r){if(typeof r=="string"||en(r))return r;var i=r+"";return i=="0"&&1/r==-1/0?"-0":i}function Qr(r){if(r!=null){try{return ia.call(r)}catch{}try{return r+""}catch{}}return""}function JL(r,i){return cn(Y,function(l){var f="_."+l[0];i&l[1]&&!Qs(r,f)&&r.push(f)}),r.sort()}function wv(r){if(r instanceof $e)return r.clone();var i=new dn(r.__wrapped__,r.__chain__);return i.__actions__=Gt(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function RL(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=_t(Se(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var g=0,T=0,A=L(fa(f/i));g<f;)A[T++]=pn(r,g,g+=i);return A}function ZL(r){for(var i=-1,l=r==null?0:r.length,f=0,g=[];++i<l;){var T=r[i];T&&(g[f++]=T)}return g}function XL(){var r=arguments.length;if(!r)return[];for(var i=L(r-1),l=arguments[0],f=r;f--;)i[f-1]=arguments[f];return wr(Te(l)?Gt(l):[l],Ot(i,1))}var QL=xe(function(r,i){return ht(r)?Mo(r,Ot(i,1,ht,!0)):[]}),e5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?Mo(r,Ot(i,1,ht,!0),he(l,2)):[]}),t5=xe(function(r,i){var l=gn(i);return ht(l)&&(l=n),ht(r)?Mo(r,Ot(i,1,ht,!0),n,l):[]});function n5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),pn(r,i<0?0:i,f)):[]}function r5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,0,i<0?0:i)):[]}function i5(r,i){return r&&r.length?Ta(r,he(i,3),!0,!0):[]}function o5(r,i){return r&&r.length?Ta(r,he(i,3),!0):[]}function s5(r,i,l,f){var g=r==null?0:r.length;return g?(l&&typeof l!="number"&&zt(r,i,l)&&(l=0,f=g),XN(r,i,l,f)):[]}function Sv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),ea(r,he(i,3),g)}function Cv(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f-1;return l!==n&&(g=Se(l),g=l<0?_t(f+g,0):$t(g,f-1)),ea(r,he(i,3),g,!0)}function Ev(r){var i=r==null?0:r.length;return i?Ot(r,1):[]}function a5(r){var i=r==null?0:r.length;return i?Ot(r,Le):[]}function l5(r,i){var l=r==null?0:r.length;return l?(i=i===n?1:Se(i),Ot(r,i)):[]}function u5(r){for(var i=-1,l=r==null?0:r.length,f={};++i<l;){var g=r[i];f[g[0]]=g[1]}return f}function xv(r){return r&&r.length?r[0]:n}function c5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=l==null?0:Se(l);return g<0&&(g=_t(f+g,0)),$i(r,i,g)}function f5(r){var i=r==null?0:r.length;return i?pn(r,0,-1):[]}var d5=xe(function(r){var i=nt(r,Hc);return i.length&&i[0]===r[0]?kc(i):[]}),h5=xe(function(r){var i=gn(r),l=nt(r,Hc);return i===gn(l)?i=n:l.pop(),l.length&&l[0]===r[0]?kc(l,he(i,2)):[]}),p5=xe(function(r){var i=gn(r),l=nt(r,Hc);return i=typeof i=="function"?i:n,i&&l.pop(),l.length&&l[0]===r[0]?kc(l,n,i):[]});function g5(r,i){return r==null?"":fN.call(r,i)}function gn(r){var i=r==null?0:r.length;return i?r[i-1]:n}function m5(r,i,l){var f=r==null?0:r.length;if(!f)return-1;var g=f;return l!==n&&(g=Se(l),g=g<0?_t(f+g,0):$t(g,f-1)),i===i?Jk(r,i,g):ea(r,sy,g,!0)}function y5(r,i){return r&&r.length?Ly(r,Se(i)):n}var v5=xe(Av);function Av(r,i){return r&&r.length&&i&&i.length?zc(r,i):r}function b5(r,i,l){return r&&r.length&&i&&i.length?zc(r,i,he(l,2)):r}function _5(r,i,l){return r&&r.length&&i&&i.length?zc(r,i,n,l):r}var T5=Xn(function(r,i){var l=r==null?0:r.length,f=$c(r,i);return Uy(r,nt(i,function(g){return Qn(g,l)?+g:g}).sort(Ry)),f});function w5(r,i){var l=[];if(!(r&&r.length))return l;var f=-1,g=[],T=r.length;for(i=he(i,3);++f<T;){var A=r[f];i(A,f,r)&&(l.push(A),g.push(f))}return Uy(r,g),l}function sf(r){return r==null?r:gN.call(r)}function S5(r,i,l){var f=r==null?0:r.length;return f?(l&&typeof l!="number"&&zt(r,i,l)?(i=0,l=f):(i=i==null?0:Se(i),l=l===n?f:Se(l)),pn(r,i,l)):[]}function C5(r,i){return _a(r,i)}function E5(r,i,l){return Wc(r,i,he(l,2))}function x5(r,i){var l=r==null?0:r.length;if(l){var f=_a(r,i);if(f<l&&En(r[f],i))return f}return-1}function A5(r,i){return _a(r,i,!0)}function O5(r,i,l){return Wc(r,i,he(l,2),!0)}function I5(r,i){var l=r==null?0:r.length;if(l){var f=_a(r,i,!0)-1;if(En(r[f],i))return f}return-1}function P5(r){return r&&r.length?Wy(r):[]}function $5(r,i){return r&&r.length?Wy(r,he(i,2)):[]}function M5(r){var i=r==null?0:r.length;return i?pn(r,1,i):[]}function F5(r,i,l){return r&&r.length?(i=l||i===n?1:Se(i),pn(r,0,i<0?0:i)):[]}function D5(r,i,l){var f=r==null?0:r.length;return f?(i=l||i===n?1:Se(i),i=f-i,pn(r,i<0?0:i,f)):[]}function k5(r,i){return r&&r.length?Ta(r,he(i,3),!1,!0):[]}function N5(r,i){return r&&r.length?Ta(r,he(i,3)):[]}var L5=xe(function(r){return xr(Ot(r,1,ht,!0))}),B5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),xr(Ot(r,1,ht,!0),he(i,2))}),z5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,xr(Ot(r,1,ht,!0),n,i)});function U5(r){return r&&r.length?xr(r):[]}function j5(r,i){return r&&r.length?xr(r,he(i,2)):[]}function W5(r,i){return i=typeof i=="function"?i:n,r&&r.length?xr(r,n,i):[]}function af(r){if(!(r&&r.length))return[];var i=0;return r=Tr(r,function(l){if(ht(l))return i=_t(l.length,i),!0}),Sc(i,function(l){return nt(r,_c(l))})}function Ov(r,i){if(!(r&&r.length))return[];var l=af(r);return i==null?l:nt(l,function(f){return Zt(i,n,f)})}var V5=xe(function(r,i){return ht(r)?Mo(r,i):[]}),G5=xe(function(r){return Gc(Tr(r,ht))}),H5=xe(function(r){var i=gn(r);return ht(i)&&(i=n),Gc(Tr(r,ht),he(i,2))}),Y5=xe(function(r){var i=gn(r);return i=typeof i=="function"?i:n,Gc(Tr(r,ht),n,i)}),q5=xe(af);function K5(r,i){return Yy(r||[],i||[],$o)}function J5(r,i){return Yy(r||[],i||[],ko)}var R5=xe(function(r){var i=r.length,l=i>1?r[i-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Ov(r,l)});function Iv(r){var i=b(r);return i.__chain__=!0,i}function Z5(r,i){return i(r),r}function Pa(r,i){return i(r)}var X5=Xn(function(r){var i=r.length,l=i?r[0]:0,f=this.__wrapped__,g=function(T){return $c(T,r)};return i>1||this.__actions__.length||!(f instanceof $e)||!Qn(l)?this.thru(g):(f=f.slice(l,+l+(i?1:0)),f.__actions__.push({func:Pa,args:[g],thisArg:n}),new dn(f,this.__chain__).thru(function(T){return i&&!T.length&&T.push(n),T}))});function Q5(){return Iv(this)}function e4(){return new dn(this.value(),this.__chain__)}function t4(){this.__values__===n&&(this.__values__=Vv(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function n4(){return this}function r4(r){for(var i,l=this;l instanceof ga;){var f=wv(l);f.__index__=0,f.__values__=n,i?g.__wrapped__=f:i=f;var g=f;l=l.__wrapped__}return g.__wrapped__=r,i}function i4(){var r=this.__wrapped__;if(r instanceof $e){var i=r;return this.__actions__.length&&(i=new $e(this)),i=i.reverse(),i.__actions__.push({func:Pa,args:[sf],thisArg:n}),new dn(i,this.__chain__)}return this.thru(sf)}function o4(){return Hy(this.__wrapped__,this.__actions__)}var s4=wa(function(r,i,l){Ve.call(r,l)?++r[l]:Rn(r,l,1)});function a4(r,i,l){var f=Te(r)?iy:ZN;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}function l4(r,i){var l=Te(r)?Tr:Oy;return l(r,he(i,3))}var u4=nv(Sv),c4=nv(Cv);function f4(r,i){return Ot($a(r,i),1)}function d4(r,i){return Ot($a(r,i),Le)}function h4(r,i,l){return l=l===n?1:Se(l),Ot($a(r,i),l)}function Pv(r,i){var l=Te(r)?cn:Er;return l(r,he(i,3))}function $v(r,i){var l=Te(r)?Mk:Ay;return l(r,he(i,3))}var p4=wa(function(r,i,l){Ve.call(r,l)?r[l].push(i):Rn(r,l,[i])});function g4(r,i,l,f){r=Ht(r)?r:Vi(r),l=l&&!f?Se(l):0;var g=r.length;return l<0&&(l=_t(g+l,0)),Na(r)?l<=g&&r.indexOf(i,l)>-1:!!g&&$i(r,i,l)>-1}var m4=xe(function(r,i,l){var f=-1,g=typeof i=="function",T=Ht(r)?L(r.length):[];return Er(r,function(A){T[++f]=g?Zt(i,A,l):Fo(A,i,l)}),T}),y4=wa(function(r,i,l){Rn(r,l,i)});function $a(r,i){var l=Te(r)?nt:Dy;return l(r,he(i,3))}function v4(r,i,l,f){return r==null?[]:(Te(i)||(i=i==null?[]:[i]),l=f?n:l,Te(l)||(l=l==null?[]:[l]),By(r,i,l))}var b4=wa(function(r,i,l){r[l?0:1].push(i)},function(){return[[],[]]});function _4(r,i,l){var f=Te(r)?vc:ly,g=arguments.length<3;return f(r,he(i,4),l,g,Er)}function T4(r,i,l){var f=Te(r)?Fk:ly,g=arguments.length<3;return f(r,he(i,4),l,g,Ay)}function w4(r,i){var l=Te(r)?Tr:Oy;return l(r,Da(he(i,3)))}function S4(r){var i=Te(r)?Sy:gL;return i(r)}function C4(r,i,l){(l?zt(r,i,l):i===n)?i=1:i=Se(i);var f=Te(r)?YN:mL;return f(r,i)}function E4(r){var i=Te(r)?qN:vL;return i(r)}function x4(r){if(r==null)return 0;if(Ht(r))return Na(r)?Fi(r):r.length;var i=Mt(r);return i==Je||i==Wt?r.size:Lc(r).length}function A4(r,i,l){var f=Te(r)?bc:bL;return l&&zt(r,i,l)&&(i=n),f(r,he(i,3))}var O4=xe(function(r,i){if(r==null)return[];var l=i.length;return l>1&&zt(r,i[0],i[1])?i=[]:l>2&&zt(i[0],i[1],i[2])&&(i=[i[0]]),By(r,Ot(i,1),[])}),Ma=lN||function(){return At.Date.now()};function I4(r,i){if(typeof i!="function")throw new fn(u);return r=Se(r),function(){if(--r<1)return i.apply(this,arguments)}}function Mv(r,i,l){return i=l?n:i,i=r&&i==null?r.length:i,Zn(r,G,n,n,n,n,i)}function Fv(r,i){var l;if(typeof i!="function")throw new fn(u);return r=Se(r),function(){return--r>0&&(l=i.apply(this,arguments)),r<=1&&(i=n),l}}var lf=xe(function(r,i,l){var f=$;if(l.length){var g=Sr(l,ji(lf));f|=D}return Zn(r,f,i,l,g)}),Dv=xe(function(r,i,l){var f=$|N;if(l.length){var g=Sr(l,ji(Dv));f|=D}return Zn(i,f,r,l,g)});function kv(r,i,l){i=l?n:i;var f=Zn(r,H,n,n,n,n,n,i);return f.placeholder=kv.placeholder,f}function Nv(r,i,l){i=l?n:i;var f=Zn(r,B,n,n,n,n,n,i);return f.placeholder=Nv.placeholder,f}function Lv(r,i,l){var f,g,T,A,I,F,W=0,V=!1,J=!1,re=!0;if(typeof r!="function")throw new fn(u);i=mn(i)||0,rt(l)&&(V=!!l.leading,J="maxWait"in l,T=J?_t(mn(l.maxWait)||0,i):T,re="trailing"in l?!!l.trailing:re);function ce(pt){var xn=f,nr=g;return f=g=n,W=pt,A=r.apply(nr,xn),A}function ge(pt){return W=pt,I=Bo(Pe,i),V?ce(pt):A}function Ee(pt){var xn=pt-F,nr=pt-W,nb=i-xn;return J?$t(nb,T-nr):nb}function me(pt){var xn=pt-F,nr=pt-W;return F===n||xn>=i||xn<0||J&&nr>=T}function Pe(){var pt=Ma();if(me(pt))return Fe(pt);I=Bo(Pe,Ee(pt))}function Fe(pt){return I=n,re&&f?ce(pt):(f=g=n,A)}function tn(){I!==n&&qy(I),W=0,f=F=g=I=n}function Ut(){return I===n?A:Fe(Ma())}function nn(){var pt=Ma(),xn=me(pt);if(f=arguments,g=this,F=pt,xn){if(I===n)return ge(F);if(J)return qy(I),I=Bo(Pe,i),ce(F)}return I===n&&(I=Bo(Pe,i)),A}return nn.cancel=tn,nn.flush=Ut,nn}var P4=xe(function(r,i){return xy(r,1,i)}),$4=xe(function(r,i,l){return xy(r,mn(i)||0,l)});function M4(r){return Zn(r,ie)}function Fa(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new fn(u);var l=function(){var f=arguments,g=i?i.apply(this,f):f[0],T=l.cache;if(T.has(g))return T.get(g);var A=r.apply(this,f);return l.cache=T.set(g,A)||T,A};return l.cache=new(Fa.Cache||Jn),l}Fa.Cache=Jn;function Da(r){if(typeof r!="function")throw new fn(u);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function F4(r){return Fv(2,r)}var D4=_L(function(r,i){i=i.length==1&&Te(i[0])?nt(i[0],Xt(he())):nt(Ot(i,1),Xt(he()));var l=i.length;return xe(function(f){for(var g=-1,T=$t(f.length,l);++g<T;)f[g]=i[g].call(this,f[g]);return Zt(r,this,f)})}),uf=xe(function(r,i){var l=Sr(i,ji(uf));return Zn(r,D,n,i,l)}),Bv=xe(function(r,i){var l=Sr(i,ji(Bv));return Zn(r,k,n,i,l)}),k4=Xn(function(r,i){return Zn(r,ae,n,n,n,i)});function N4(r,i){if(typeof r!="function")throw new fn(u);return i=i===n?i:Se(i),xe(r,i)}function L4(r,i){if(typeof r!="function")throw new fn(u);return i=i==null?0:_t(Se(i),0),xe(function(l){var f=l[i],g=Or(l,0,i);return f&&wr(g,f),Zt(r,this,g)})}function B4(r,i,l){var f=!0,g=!0;if(typeof r!="function")throw new fn(u);return rt(l)&&(f="leading"in l?!!l.leading:f,g="trailing"in l?!!l.trailing:g),Lv(r,i,{leading:f,maxWait:i,trailing:g})}function z4(r){return Mv(r,1)}function U4(r,i){return uf(Yc(i),r)}function j4(){if(!arguments.length)return[];var r=arguments[0];return Te(r)?r:[r]}function W4(r){return hn(r,C)}function V4(r,i){return i=typeof i=="function"?i:n,hn(r,C,i)}function G4(r){return hn(r,y|C)}function H4(r,i){return i=typeof i=="function"?i:n,hn(r,y|C,i)}function Y4(r,i){return i==null||Ey(r,i,Et(i))}function En(r,i){return r===i||r!==r&&i!==i}var q4=xa(Dc),K4=xa(function(r,i){return r>=i}),ei=$y(function(){return arguments}())?$y:function(r){return ct(r)&&Ve.call(r,"callee")&&!yy.call(r,"callee")},Te=L.isArray,J4=X0?Xt(X0):rL;function Ht(r){return r!=null&&ka(r.length)&&!er(r)}function ht(r){return ct(r)&&Ht(r)}function R4(r){return r===!0||r===!1||ct(r)&&Bt(r)==be}var Ir=cN||_f,Z4=Q0?Xt(Q0):iL;function X4(r){return ct(r)&&r.nodeType===1&&!zo(r)}function Q4(r){if(r==null)return!0;if(Ht(r)&&(Te(r)||typeof r=="string"||typeof r.splice=="function"||Ir(r)||Wi(r)||ei(r)))return!r.length;var i=Mt(r);if(i==Je||i==Wt)return!r.size;if(Lo(r))return!Lc(r).length;for(var l in r)if(Ve.call(r,l))return!1;return!0}function e3(r,i){return Do(r,i)}function t3(r,i,l){l=typeof l=="function"?l:n;var f=l?l(r,i):n;return f===n?Do(r,i,n,l):!!f}function cf(r){if(!ct(r))return!1;var i=Bt(r);return i==tt||i==Ce||typeof r.message=="string"&&typeof r.name=="string"&&!zo(r)}function n3(r){return typeof r=="number"&&by(r)}function er(r){if(!rt(r))return!1;var i=Bt(r);return i==te||i==yt||i==ve||i==Yn}function zv(r){return typeof r=="number"&&r==Se(r)}function ka(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Ie}function rt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function ct(r){return r!=null&&typeof r=="object"}var Uv=ey?Xt(ey):sL;function r3(r,i){return r===i||Nc(r,i,Qc(i))}function i3(r,i,l){return l=typeof l=="function"?l:n,Nc(r,i,Qc(i),l)}function o3(r){return jv(r)&&r!=+r}function s3(r){if(VL(r))throw new _e(a);return My(r)}function a3(r){return r===null}function l3(r){return r==null}function jv(r){return typeof r=="number"||ct(r)&&Bt(r)==Lt}function zo(r){if(!ct(r)||Bt(r)!=vt)return!1;var i=la(r);if(i===null)return!0;var l=Ve.call(i,"constructor")&&i.constructor;return typeof l=="function"&&l instanceof l&&ia.call(l)==iN}var ff=ty?Xt(ty):aL;function u3(r){return zv(r)&&r>=-9007199254740991&&r<=Ie}var Wv=ny?Xt(ny):lL;function Na(r){return typeof r=="string"||!Te(r)&&ct(r)&&Bt(r)==Ur}function en(r){return typeof r=="symbol"||ct(r)&&Bt(r)==pr}var Wi=ry?Xt(ry):uL;function c3(r){return r===n}function f3(r){return ct(r)&&Mt(r)==an}function d3(r){return ct(r)&&Bt(r)==gr}var h3=xa(Bc),p3=xa(function(r,i){return r<=i});function Vv(r){if(!r)return[];if(Ht(r))return Na(r)?Sn(r):Gt(r);if(xo&&r[xo])return Yk(r[xo]());var i=Mt(r),l=i==Je?Ec:i==Wt?ta:Vi;return l(r)}function tr(r){if(!r)return r===0?r:0;if(r=mn(r),r===Le||r===-1/0){var i=r<0?-1:1;return i*lt}return r===r?r:0}function Se(r){var i=tr(r),l=i%1;return i===i?l?i-l:i:0}function Gv(r){return r?Rr(Se(r),0,K):0}function mn(r){if(typeof r=="number")return r;if(en(r))return q;if(rt(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=rt(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=uy(r);var l=uc.test(r);return l||P.test(r)?Ik(r.slice(2),l?2:8):Zs.test(r)?q:+r}function Hv(r){return kn(r,Yt(r))}function g3(r){return r?Rr(Se(r),-9007199254740991,Ie):r===0?r:0}function je(r){return r==null?"":Qt(r)}var m3=zi(function(r,i){if(Lo(i)||Ht(i)){kn(i,Et(i),r);return}for(var l in i)Ve.call(i,l)&&$o(r,l,i[l])}),Yv=zi(function(r,i){kn(i,Yt(i),r)}),La=zi(function(r,i,l,f){kn(i,Yt(i),r,f)}),y3=zi(function(r,i,l,f){kn(i,Et(i),r,f)}),v3=Xn($c);function b3(r,i){var l=Bi(r);return i==null?l:Cy(l,i)}var _3=xe(function(r,i){r=Ke(r);var l=-1,f=i.length,g=f>2?i[2]:n;for(g&&zt(i[0],i[1],g)&&(f=1);++l<f;)for(var T=i[l],A=Yt(T),I=-1,F=A.length;++I<F;){var W=A[I],V=r[W];(V===n||En(V,ki[W])&&!Ve.call(r,W))&&(r[W]=T[W])}return r}),T3=xe(function(r){return r.push(n,uv),Zt(qv,n,r)});function w3(r,i){return oy(r,he(i,3),Dn)}function S3(r,i){return oy(r,he(i,3),Fc)}function C3(r,i){return r==null?r:Mc(r,he(i,3),Yt)}function E3(r,i){return r==null?r:Iy(r,he(i,3),Yt)}function x3(r,i){return r&&Dn(r,he(i,3))}function A3(r,i){return r&&Fc(r,he(i,3))}function O3(r){return r==null?[]:va(r,Et(r))}function I3(r){return r==null?[]:va(r,Yt(r))}function df(r,i,l){var f=r==null?n:Zr(r,i);return f===n?l:f}function P3(r,i){return r!=null&&dv(r,i,QN)}function hf(r,i){return r!=null&&dv(r,i,eL)}var $3=iv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=oa.call(i)),r[i]=l},gf(qt)),M3=iv(function(r,i,l){i!=null&&typeof i.toString!="function"&&(i=oa.call(i)),Ve.call(r,i)?r[i].push(l):r[i]=[l]},he),F3=xe(Fo);function Et(r){return Ht(r)?wy(r):Lc(r)}function Yt(r){return Ht(r)?wy(r,!0):cL(r)}function D3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,i(f,g,T),f)}),l}function k3(r,i){var l={};return i=he(i,3),Dn(r,function(f,g,T){Rn(l,g,i(f,g,T))}),l}var N3=zi(function(r,i,l){ba(r,i,l)}),qv=zi(function(r,i,l,f){ba(r,i,l,f)}),L3=Xn(function(r,i){var l={};if(r==null)return l;var f=!1;i=nt(i,function(T){return T=Ar(T,r),f||(f=T.length>1),T}),kn(r,Zc(r),l),f&&(l=hn(l,y|_|C,$L));for(var g=i.length;g--;)Vc(l,i[g]);return l});function B3(r,i){return Kv(r,Da(he(i)))}var z3=Xn(function(r,i){return r==null?{}:dL(r,i)});function Kv(r,i){if(r==null)return{};var l=nt(Zc(r),function(f){return[f]});return i=he(i),zy(r,l,function(f,g){return i(f,g[0])})}function U3(r,i,l){i=Ar(i,r);var f=-1,g=i.length;for(g||(g=1,r=n);++f<g;){var T=r==null?n:r[Nn(i[f])];T===n&&(f=g,T=l),r=er(T)?T.call(r):T}return r}function j3(r,i,l){return r==null?r:ko(r,i,l)}function W3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:ko(r,i,l,f)}var Jv=av(Et),Rv=av(Yt);function V3(r,i,l){var f=Te(r),g=f||Ir(r)||Wi(r);if(i=he(i,4),l==null){var T=r&&r.constructor;g?l=f?new T:[]:rt(r)?l=er(T)?Bi(la(r)):{}:l={}}return(g?cn:Dn)(r,function(A,I,F){return i(l,A,I,F)}),l}function G3(r,i){return r==null?!0:Vc(r,i)}function H3(r,i,l){return r==null?r:Gy(r,i,Yc(l))}function Y3(r,i,l,f){return f=typeof f=="function"?f:n,r==null?r:Gy(r,i,Yc(l),f)}function Vi(r){return r==null?[]:Cc(r,Et(r))}function q3(r){return r==null?[]:Cc(r,Yt(r))}function K3(r,i,l){return l===n&&(l=i,i=n),l!==n&&(l=mn(l),l=l===l?l:0),i!==n&&(i=mn(i),i=i===i?i:0),Rr(mn(r),i,l)}function J3(r,i,l){return i=tr(i),l===n?(l=i,i=0):l=tr(l),r=mn(r),tL(r,i,l)}function R3(r,i,l){if(l&&typeof l!="boolean"&&zt(r,i,l)&&(i=l=n),l===n&&(typeof i=="boolean"?(l=i,i=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&i===n?(r=0,i=1):(r=tr(r),i===n?(i=r,r=0):i=tr(i)),r>i){var f=r;r=i,i=f}if(l||r%1||i%1){var g=_y();return $t(r+g*(i-r+Ok("1e-"+((g+"").length-1))),i)}return Uc(r,i)}var Z3=Ui(function(r,i,l){return i=i.toLowerCase(),r+(l?Zv(i):i)});function Zv(r){return pf(je(r).toLowerCase())}function Xv(r){return r=je(r),r&&r.replace(le,jk).replace(vk,"")}function X3(r,i,l){r=je(r),i=Qt(i);var f=r.length;l=l===n?f:Rr(Se(l),0,f);var g=l;return l-=i.length,l>=0&&r.slice(l,g)==i}function Q3(r){return r=je(r),r&&ac.test(r)?r.replace(br,Wk):r}function eB(r){return r=je(r),r&&lc.test(r)?r.replace(Oi,"\\$&"):r}var tB=Ui(function(r,i,l){return r+(l?"-":"")+i.toLowerCase()}),nB=Ui(function(r,i,l){return r+(l?" ":"")+i.toLowerCase()}),rB=tv("toLowerCase");function iB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;if(!i||f>=i)return r;var g=(i-f)/2;return Ea(da(g),l)+r+Ea(fa(g),l)}function oB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?r+Ea(i-f,l):r}function sB(r,i,l){r=je(r),i=Se(i);var f=i?Fi(r):0;return i&&f<i?Ea(i-f,l)+r:r}function aB(r,i,l){return l||i==null?i=0:i&&(i=+i),pN(je(r).replace(Vt,""),i||0)}function lB(r,i,l){return(l?zt(r,i,l):i===n)?i=1:i=Se(i),jc(je(r),i)}function uB(){var r=arguments,i=je(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var cB=Ui(function(r,i,l){return r+(l?"_":"")+i.toLowerCase()});function fB(r,i,l){return l&&typeof l!="number"&&zt(r,i,l)&&(i=l=n),l=l===n?K:l>>>0,l?(r=je(r),r&&(typeof i=="string"||i!=null&&!ff(i))&&(i=Qt(i),!i&&Mi(r))?Or(Sn(r),0,l):r.split(i,l)):[]}var dB=Ui(function(r,i,l){return r+(l?" ":"")+pf(i)});function hB(r,i,l){return r=je(r),l=l==null?0:Rr(Se(l),0,r.length),i=Qt(i),r.slice(l,l+i.length)==i}function pB(r,i,l){var f=b.templateSettings;l&&zt(r,i,l)&&(i=n),r=je(r),i=La({},i,f,lv);var g=La({},i.imports,f.imports,lv),T=Et(g),A=Cc(g,T),I,F,W=0,V=i.interpolate||We,J="__p += '",re=xc((i.escape||We).source+"|"+V.source+"|"+(V===Vs?Rs:We).source+"|"+(i.evaluate||We).source+"|$","g"),ce="//# sourceURL="+(Ve.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Sk+"]")+`
135
135
  `;r.replace(re,function(me,Pe,Fe,tn,Ut,nn){return Fe||(Fe=tn),J+=r.slice(W,nn).replace(St,Vk),Pe&&(I=!0,J+=`' +
136
136
  __e(`+Pe+`) +
137
137
  '`),Ut&&(F=!0,J+=`';
@@ -142,13 +142,13 @@ __p += '`),Fe&&(J+=`' +
142
142
  `;var ge=Ve.call(i,"variable")&&i.variable;if(!ge)J=`with (obj) {
143
143
  `+J+`
144
144
  }
145
- `;else if(wn.test(ge))throw new _e(c);J=(F?J.replace(ic,""):J).replace(xi,"$1").replace(Ai,"$1;"),J="function("+(ge||"obj")+`) {
145
+ `;else if(wn.test(ge))throw new _e(c);J=(F?J.replace(oc,""):J).replace(xi,"$1").replace(Ai,"$1;"),J="function("+(ge||"obj")+`) {
146
146
  `+(ge?"":`obj || (obj = {});
147
147
  `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(F?`, __j = Array.prototype.join;
148
148
  function print() { __p += __j.call(arguments, '') }
149
149
  `:`;
150
150
  `)+J+`return __p
151
- }`;var Ee=Qv(function(){return Be(T,ce+"return "+J).apply(n,A)});if(Ee.source=J,uf(Ee))throw Ee;return Ee}function gB(r){return je(r).toLowerCase()}function mB(r){return je(r).toUpperCase()}function yB(r,i,l){if(r=je(r),r&&(l||i===n))return ly(r);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=Sn(i),T=uy(f,g),A=cy(f,g)+1;return Or(f,T,A).join("")}function vB(r,i,l){if(r=je(r),r&&(l||i===n))return r.slice(0,dy(r)+1);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=cy(f,Sn(i))+1;return Or(f,0,g).join("")}function bB(r,i,l){if(r=je(r),r&&(l||i===n))return r.replace(Vt,"");if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=uy(f,Sn(i));return Or(f,g).join("")}function _B(r,i){var l=S,f=U;if(rt(i)){var g="separator"in i?i.separator:g;l="length"in i?Se(i.length):l,f="omission"in i?Qt(i.omission):f}r=je(r);var T=r.length;if(Mi(r)){var A=Sn(r);T=A.length}if(l>=T)return r;var I=l-Fi(f);if(I<1)return f;var F=A?Or(A,0,I).join(""):r.slice(0,I);if(g===n)return F+f;if(A&&(I+=F.length-I),cf(g)){if(r.slice(I).search(g)){var W,V=F;for(g.global||(g=Ec(g.source,je(To.exec(g))+"g")),g.lastIndex=0;W=g.exec(V);)var J=W.index;F=F.slice(0,J===n?I:J)}}else if(r.indexOf(Qt(g),I)!=I){var re=F.lastIndexOf(g);re>-1&&(F=F.slice(0,re))}return F+f}function TB(r){return r=je(r),r&&oc.test(r)?r.replace(js,Rk):r}var wB=Ui(function(r,i,l){return r+(l?" ":"")+i.toUpperCase()}),hf=ev("toUpperCase");function Xv(r,i,l){return r=je(r),i=l?n:i,i===n?Hk(r)?Qk(r):Nk(r):r.match(i)||[]}var Qv=xe(function(r,i){try{return Zt(r,n,i)}catch(l){return uf(l)?l:new _e(l)}}),SB=Xn(function(r,i){return cn(i,function(l){l=Nn(l),Rn(r,l,af(r[l],r))}),r});function CB(r){var i=r==null?0:r.length,l=he();return r=i?nt(r,function(f){if(typeof f[1]!="function")throw new fn(u);return[l(f[0]),f[1]]}):[],xe(function(f){for(var g=-1;++g<i;){var T=r[g];if(Zt(T[0],this,f))return Zt(T[1],this,f)}})}function EB(r){return RN(hn(r,m))}function pf(r){return function(){return r}}function xB(r,i){return r==null||r!==r?i:r}var AB=nv(),OB=nv(!0);function qt(r){return r}function gf(r){return My(typeof r=="function"?r:hn(r,m))}function IB(r){return Dy(hn(r,m))}function PB(r,i){return ky(r,hn(i,m))}var $B=xe(function(r,i){return function(l){return Mo(l,r,i)}}),MB=xe(function(r,i){return function(l){return Mo(r,l,i)}});function mf(r,i,l){var f=Et(i),g=ya(i,f);l==null&&!(rt(i)&&(g.length||!f.length))&&(l=i,i=r,r=this,g=ya(i,Et(i)));var T=!(rt(l)&&"chain"in l)||!!l.chain,A=er(r);return cn(g,function(I){var F=i[I];r[I]=F,A&&(r.prototype[I]=function(){var W=this.__chain__;if(T||W){var V=r(this.__wrapped__),J=V.__actions__=Gt(this.__actions__);return J.push({func:F,args:arguments,thisArg:r}),V.__chain__=W,V}return F.apply(r,wr([this.value()],arguments))})}),r}function FB(){return At._===this&&(At._=oN),this}function yf(){}function DB(r){return r=Se(r),xe(function(i){return Ny(i,r)})}var kB=qc(nt),NB=qc(ry),LB=qc(vc);function eb(r){return ef(r)?bc(Nn(r)):hL(r)}function BB(r){return function(i){return r==null?n:Zr(r,i)}}var zB=iv(),UB=iv(!0);function vf(){return[]}function bf(){return!1}function jB(){return{}}function WB(){return""}function VB(){return!0}function GB(r,i){if(r=Se(r),r<1||r>Ie)return[];var l=K,f=$t(r,K);i=he(i),r-=K;for(var g=wc(f,i);++l<r;)i(l);return g}function HB(r){return Te(r)?nt(r,Nn):en(r)?[r]:Gt(_v(je(r)))}function YB(r){var i=++rN;return je(r)+i}var qB=Sa(function(r,i){return r+i},0),KB=Kc("ceil"),JB=Sa(function(r,i){return r/i},1),RB=Kc("floor");function ZB(r){return r&&r.length?ma(r,qt,Fc):n}function XB(r,i){return r&&r.length?ma(r,he(i,2),Fc):n}function QB(r){return sy(r,qt)}function ez(r,i){return sy(r,he(i,2))}function tz(r){return r&&r.length?ma(r,qt,Lc):n}function nz(r,i){return r&&r.length?ma(r,he(i,2),Lc):n}var rz=Sa(function(r,i){return r*i},1),iz=Kc("round"),oz=Sa(function(r,i){return r-i},0);function sz(r){return r&&r.length?Tc(r,qt):0}function az(r,i){return r&&r.length?Tc(r,he(i,2)):0}return b.after=I4,b.ary=$v,b.assign=m3,b.assignIn=Hv,b.assignInWith=Na,b.assignWith=y3,b.at=v3,b.before=Mv,b.bind=af,b.bindAll=SB,b.bindKey=Fv,b.castArray=j4,b.chain=Ov,b.chunk=RL,b.compact=ZL,b.concat=XL,b.cond=CB,b.conforms=EB,b.constant=pf,b.countBy=s4,b.create=b3,b.curry=Dv,b.curryRight=kv,b.debounce=Nv,b.defaults=_3,b.defaultsDeep=T3,b.defer=P4,b.delay=$4,b.difference=QL,b.differenceBy=e5,b.differenceWith=t5,b.drop=n5,b.dropRight=r5,b.dropRightWhile=i5,b.dropWhile=o5,b.fill=s5,b.filter=l4,b.flatMap=f4,b.flatMapDeep=d4,b.flatMapDepth=h4,b.flatten=Cv,b.flattenDeep=a5,b.flattenDepth=l5,b.flip=M4,b.flow=AB,b.flowRight=OB,b.fromPairs=u5,b.functions=O3,b.functionsIn=I3,b.groupBy=p4,b.initial=f5,b.intersection=d5,b.intersectionBy=h5,b.intersectionWith=p5,b.invert=$3,b.invertBy=M3,b.invokeMap=m4,b.iteratee=gf,b.keyBy=y4,b.keys=Et,b.keysIn=Yt,b.map=Pa,b.mapKeys=D3,b.mapValues=k3,b.matches=IB,b.matchesProperty=PB,b.memoize=Ma,b.merge=N3,b.mergeWith=Yv,b.method=$B,b.methodOf=MB,b.mixin=mf,b.negate=Fa,b.nthArg=DB,b.omit=L3,b.omitBy=B3,b.once=F4,b.orderBy=v4,b.over=kB,b.overArgs=D4,b.overEvery=NB,b.overSome=LB,b.partial=lf,b.partialRight=Lv,b.partition=b4,b.pick=z3,b.pickBy=qv,b.property=eb,b.propertyOf=BB,b.pull=v5,b.pullAll=xv,b.pullAllBy=b5,b.pullAllWith=_5,b.pullAt=T5,b.range=zB,b.rangeRight=UB,b.rearg=k4,b.reject=w4,b.remove=w5,b.rest=N4,b.reverse=of,b.sampleSize=C4,b.set=j3,b.setWith=W3,b.shuffle=E4,b.slice=S5,b.sortBy=O4,b.sortedUniq=P5,b.sortedUniqBy=$5,b.split=fB,b.spread=L4,b.tail=M5,b.take=F5,b.takeRight=D5,b.takeRightWhile=k5,b.takeWhile=N5,b.tap=Z5,b.throttle=B4,b.thru=Ia,b.toArray=Wv,b.toPairs=Kv,b.toPairsIn=Jv,b.toPath=HB,b.toPlainObject=Gv,b.transform=V3,b.unary=z4,b.union=L5,b.unionBy=B5,b.unionWith=z5,b.uniq=U5,b.uniqBy=j5,b.uniqWith=W5,b.unset=G3,b.unzip=sf,b.unzipWith=Av,b.update=H3,b.updateWith=Y3,b.values=Vi,b.valuesIn=q3,b.without=V5,b.words=Xv,b.wrap=U4,b.xor=G5,b.xorBy=H5,b.xorWith=Y5,b.zip=q5,b.zipObject=K5,b.zipObjectDeep=J5,b.zipWith=R5,b.entries=Kv,b.entriesIn=Jv,b.extend=Hv,b.extendWith=Na,mf(b,b),b.add=qB,b.attempt=Qv,b.camelCase=Z3,b.capitalize=Rv,b.ceil=KB,b.clamp=K3,b.clone=W4,b.cloneDeep=G4,b.cloneDeepWith=H4,b.cloneWith=V4,b.conformsTo=Y4,b.deburr=Zv,b.defaultTo=xB,b.divide=JB,b.endsWith=X3,b.eq=En,b.escape=Q3,b.escapeRegExp=eB,b.every=a4,b.find=u4,b.findIndex=wv,b.findKey=w3,b.findLast=c4,b.findLastIndex=Sv,b.findLastKey=S3,b.floor=RB,b.forEach=Iv,b.forEachRight=Pv,b.forIn=C3,b.forInRight=E3,b.forOwn=x3,b.forOwnRight=A3,b.get=ff,b.gt=q4,b.gte=K4,b.has=P3,b.hasIn=df,b.head=Ev,b.identity=qt,b.includes=g4,b.indexOf=c5,b.inRange=J3,b.invoke=F3,b.isArguments=ei,b.isArray=Te,b.isArrayBuffer=J4,b.isArrayLike=Ht,b.isArrayLikeObject=ht,b.isBoolean=R4,b.isBuffer=Ir,b.isDate=Z4,b.isElement=X4,b.isEmpty=Q4,b.isEqual=e3,b.isEqualWith=t3,b.isError=uf,b.isFinite=n3,b.isFunction=er,b.isInteger=Bv,b.isLength=Da,b.isMap=zv,b.isMatch=r3,b.isMatchWith=i3,b.isNaN=o3,b.isNative=s3,b.isNil=l3,b.isNull=a3,b.isNumber=Uv,b.isObject=rt,b.isObjectLike=ct,b.isPlainObject=Bo,b.isRegExp=cf,b.isSafeInteger=u3,b.isSet=jv,b.isString=ka,b.isSymbol=en,b.isTypedArray=Wi,b.isUndefined=c3,b.isWeakMap=f3,b.isWeakSet=d3,b.join=g5,b.kebabCase=tB,b.last=gn,b.lastIndexOf=m5,b.lowerCase=nB,b.lowerFirst=rB,b.lt=h3,b.lte=p3,b.max=ZB,b.maxBy=XB,b.mean=QB,b.meanBy=ez,b.min=tz,b.minBy=nz,b.stubArray=vf,b.stubFalse=bf,b.stubObject=jB,b.stubString=WB,b.stubTrue=VB,b.multiply=rz,b.nth=y5,b.noConflict=FB,b.noop=yf,b.now=$a,b.pad=iB,b.padEnd=oB,b.padStart=sB,b.parseInt=aB,b.random=R3,b.reduce=_4,b.reduceRight=T4,b.repeat=lB,b.replace=uB,b.result=U3,b.round=iz,b.runInContext=M,b.sample=S4,b.size=x4,b.snakeCase=cB,b.some=A4,b.sortedIndex=C5,b.sortedIndexBy=E5,b.sortedIndexOf=x5,b.sortedLastIndex=A5,b.sortedLastIndexBy=O5,b.sortedLastIndexOf=I5,b.startCase=dB,b.startsWith=hB,b.subtract=oz,b.sum=sz,b.sumBy=az,b.template=pB,b.times=GB,b.toFinite=tr,b.toInteger=Se,b.toLength=Vv,b.toLower=gB,b.toNumber=mn,b.toSafeInteger=g3,b.toString=je,b.toUpper=mB,b.trim=yB,b.trimEnd=vB,b.trimStart=bB,b.truncate=_B,b.unescape=TB,b.uniqueId=YB,b.upperCase=wB,b.upperFirst=hf,b.each=Iv,b.eachRight=Pv,b.first=Ev,mf(b,function(){var r={};return Dn(b,function(i,l){Ve.call(b.prototype,l)||(r[l]=i)}),r}(),{chain:!1}),b.VERSION=o,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){b[r].placeholder=b}),cn(["drop","take"],function(r,i){$e.prototype[r]=function(l){l=l===n?1:_t(Se(l),0);var f=this.__filtered__&&!i?new $e(this):this.clone();return f.__filtered__?f.__takeCount__=$t(l,f.__takeCount__):f.__views__.push({size:$t(l,K),type:r+(f.__dir__<0?"Right":"")}),f},$e.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),cn(["filter","map","takeWhile"],function(r,i){var l=i+1,f=l==ye||l==we;$e.prototype[r]=function(g){var T=this.clone();return T.__iteratees__.push({iteratee:he(g,3),type:l}),T.__filtered__=T.__filtered__||f,T}}),cn(["head","last"],function(r,i){var l="take"+(i?"Right":"");$e.prototype[r]=function(){return this[l](1).value()[0]}}),cn(["initial","tail"],function(r,i){var l="drop"+(i?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[l](1)}}),$e.prototype.compact=function(){return this.filter(qt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=xe(function(r,i){return typeof r=="function"?new $e(this):this.map(function(l){return Mo(l,r,i)})}),$e.prototype.reject=function(r){return this.filter(Fa(he(r)))},$e.prototype.slice=function(r,i){r=Se(r);var l=this;return l.__filtered__&&(r>0||i<0)?new $e(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=Se(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(K)},Dn($e.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),g=b[f?"take"+(i=="last"?"Right":""):i],T=f||/^find/.test(i);g&&(b.prototype[i]=function(){var A=this.__wrapped__,I=f?[1]:arguments,F=A instanceof $e,W=I[0],V=F||Te(A),J=function(Pe){var Fe=g.apply(b,wr([Pe],I));return f&&re?Fe[0]:Fe};V&&l&&typeof W=="function"&&W.length!=1&&(F=V=!1);var re=this.__chain__,ce=!!this.__actions__.length,ge=T&&!re,Ee=F&&!ce;if(!T&&V){A=Ee?A:new $e(this);var me=r.apply(A,I);return me.__actions__.push({func:Ia,args:[J],thisArg:n}),new dn(me,re)}return ge&&Ee?r.apply(this,I):(me=this.thru(J),ge?f?me.value()[0]:me.value():me)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var i=ta[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);b.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var T=this.value();return i.apply(Te(T)?T:[],g)}return this[l](function(A){return i.apply(Te(A)?A:[],g)})}}),Dn($e.prototype,function(r,i){var l=b[i];if(l){var f=l.name+"";Ve.call(Li,f)||(Li[f]=[]),Li[f].push({name:i,func:l})}}),Li[wa(n,N).name]=[{name:"wrapper",func:n}],$e.prototype.clone=TN,$e.prototype.reverse=wN,$e.prototype.value=SN,b.prototype.at=X5,b.prototype.chain=Q5,b.prototype.commit=e4,b.prototype.next=t4,b.prototype.plant=r4,b.prototype.reverse=i4,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=o4,b.prototype.first=b.prototype.head,Eo&&(b.prototype[Eo]=n4),b},Di=eN();Yr?((Yr.exports=Di)._=Di,pc._=Di):At._=Di}).call(Un)}(fs,fs.exports);var zS=fs.exports;function Nh(e){const{renderers:t,cells:n,uischemas:o,schema:s,label:a,path:u,visible:c,enabled:h,uischema:p,rootSchema:y}=e,m=x.useMemo(()=>ue.findUISchema(o,s,p.scope,u,()=>zS.isEmpty(u)?ue.Generate.uiSchema(s,"VerticalLayout",void 0,y):{...ue.Generate.uiSchema(s,"Group",void 0,y),label:a},p,y),[o,s,u,a,p,y]);return c?d.jsx(De.JsonFormsDispatch,{visible:c,enabled:h,schema:s,uischema:m,path:u,renderers:t,cells:n}):null}function Yl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=cs(o,s),u=x.useMemo(()=>{var _;const y=o===null,m=(_=t.error)==null?void 0:_.filter(C=>C.key==="is a required property"||!y?C:!1);return m!=null&&m.length?{error:m}:{error:y&&t.required?"is a required property":void 0}},[t.error,t.required,o]),c=x.useMemo(()=>({...t,...a,...u}),[t,u,a]),[h,p]=_n("OneOfEnum",n,c,e);return h===void 0?d.jsx(v.Select,{...p}):h}function ql(e){const t=In(e),{path:n,data:o,schema:s}=e,a=Fh({data:o,onChange:t.onChange}),u=x.useMemo(()=>({...t,...a}),[t,a]),[c,h]=_n("Text",n,u,e);return c===void 0?s.format==="password"?d.jsx(v.PasswordInput,{...h}):d.jsx(v.TextInput,{...h}):c}const Lh=ue.rankWith(1,ue.isBooleanControl),Bh=De.withJsonFormsCellProps(e=>d.jsx(Wl,{...e})),zh=ue.rankWith(1,ue.isDateControl),Uh=De.withJsonFormsCellProps(e=>d.jsx(Vl,{...e})),jh=ue.rankWith(1,ue.isDateTimeControl),Wh=De.withJsonFormsControlProps(e=>d.jsx(Gl,{...e})),Vh=ue.rankWith(2,ue.isEnumControl),Gh=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Hl,{...e})),!1),Hh=ue.rankWith(1,ue.isIntegerControl),Yh=De.withJsonFormsCellProps(e=>d.jsx(to,{...e})),qh=ue.rankWith(1,ue.isNumberControl),Kh=De.withJsonFormsCellProps(e=>d.jsx(to,{...e})),Jh=ue.rankWith(2,ue.isOneOfControl),Rh=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),Zh=ue.rankWith(1,ue.isStringControl),Xh=De.withJsonFormsCellProps(e=>d.jsx(ql,{...e})),Qh=x.memo(function({open:t,onClose:n,onConfirm:o,onCancel:s,title:a,message:u,acceptText:c,declineText:h}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:n,children:[u,d.jsxs(v.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(v.Button,{onClick:s,children:h}),d.jsx(v.Button,{onClick:o,children:c})]})]})});var Kl={exports:{}},Ge={};/**
151
+ }`;var Ee=eb(function(){return Be(T,ce+"return "+J).apply(n,A)});if(Ee.source=J,cf(Ee))throw Ee;return Ee}function gB(r){return je(r).toLowerCase()}function mB(r){return je(r).toUpperCase()}function yB(r,i,l){if(r=je(r),r&&(l||i===n))return uy(r);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=Sn(i),T=cy(f,g),A=fy(f,g)+1;return Or(f,T,A).join("")}function vB(r,i,l){if(r=je(r),r&&(l||i===n))return r.slice(0,hy(r)+1);if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=fy(f,Sn(i))+1;return Or(f,0,g).join("")}function bB(r,i,l){if(r=je(r),r&&(l||i===n))return r.replace(Vt,"");if(!r||!(i=Qt(i)))return r;var f=Sn(r),g=cy(f,Sn(i));return Or(f,g).join("")}function _B(r,i){var l=S,f=U;if(rt(i)){var g="separator"in i?i.separator:g;l="length"in i?Se(i.length):l,f="omission"in i?Qt(i.omission):f}r=je(r);var T=r.length;if(Mi(r)){var A=Sn(r);T=A.length}if(l>=T)return r;var I=l-Fi(f);if(I<1)return f;var F=A?Or(A,0,I).join(""):r.slice(0,I);if(g===n)return F+f;if(A&&(I+=F.length-I),ff(g)){if(r.slice(I).search(g)){var W,V=F;for(g.global||(g=xc(g.source,je(wo.exec(g))+"g")),g.lastIndex=0;W=g.exec(V);)var J=W.index;F=F.slice(0,J===n?I:J)}}else if(r.indexOf(Qt(g),I)!=I){var re=F.lastIndexOf(g);re>-1&&(F=F.slice(0,re))}return F+f}function TB(r){return r=je(r),r&&sc.test(r)?r.replace(Ws,Rk):r}var wB=Ui(function(r,i,l){return r+(l?" ":"")+i.toUpperCase()}),pf=tv("toUpperCase");function Qv(r,i,l){return r=je(r),i=l?n:i,i===n?Hk(r)?Qk(r):Nk(r):r.match(i)||[]}var eb=xe(function(r,i){try{return Zt(r,n,i)}catch(l){return cf(l)?l:new _e(l)}}),SB=Xn(function(r,i){return cn(i,function(l){l=Nn(l),Rn(r,l,lf(r[l],r))}),r});function CB(r){var i=r==null?0:r.length,l=he();return r=i?nt(r,function(f){if(typeof f[1]!="function")throw new fn(u);return[l(f[0]),f[1]]}):[],xe(function(f){for(var g=-1;++g<i;){var T=r[g];if(Zt(T[0],this,f))return Zt(T[1],this,f)}})}function EB(r){return RN(hn(r,y))}function gf(r){return function(){return r}}function xB(r,i){return r==null||r!==r?i:r}var AB=rv(),OB=rv(!0);function qt(r){return r}function mf(r){return Fy(typeof r=="function"?r:hn(r,y))}function IB(r){return ky(hn(r,y))}function PB(r,i){return Ny(r,hn(i,y))}var $B=xe(function(r,i){return function(l){return Fo(l,r,i)}}),MB=xe(function(r,i){return function(l){return Fo(r,l,i)}});function yf(r,i,l){var f=Et(i),g=va(i,f);l==null&&!(rt(i)&&(g.length||!f.length))&&(l=i,i=r,r=this,g=va(i,Et(i)));var T=!(rt(l)&&"chain"in l)||!!l.chain,A=er(r);return cn(g,function(I){var F=i[I];r[I]=F,A&&(r.prototype[I]=function(){var W=this.__chain__;if(T||W){var V=r(this.__wrapped__),J=V.__actions__=Gt(this.__actions__);return J.push({func:F,args:arguments,thisArg:r}),V.__chain__=W,V}return F.apply(r,wr([this.value()],arguments))})}),r}function FB(){return At._===this&&(At._=oN),this}function vf(){}function DB(r){return r=Se(r),xe(function(i){return Ly(i,r)})}var kB=Kc(nt),NB=Kc(iy),LB=Kc(bc);function tb(r){return tf(r)?_c(Nn(r)):hL(r)}function BB(r){return function(i){return r==null?n:Zr(r,i)}}var zB=ov(),UB=ov(!0);function bf(){return[]}function _f(){return!1}function jB(){return{}}function WB(){return""}function VB(){return!0}function GB(r,i){if(r=Se(r),r<1||r>Ie)return[];var l=K,f=$t(r,K);i=he(i),r-=K;for(var g=Sc(f,i);++l<r;)i(l);return g}function HB(r){return Te(r)?nt(r,Nn):en(r)?[r]:Gt(Tv(je(r)))}function YB(r){var i=++rN;return je(r)+i}var qB=Ca(function(r,i){return r+i},0),KB=Jc("ceil"),JB=Ca(function(r,i){return r/i},1),RB=Jc("floor");function ZB(r){return r&&r.length?ya(r,qt,Dc):n}function XB(r,i){return r&&r.length?ya(r,he(i,2),Dc):n}function QB(r){return ay(r,qt)}function ez(r,i){return ay(r,he(i,2))}function tz(r){return r&&r.length?ya(r,qt,Bc):n}function nz(r,i){return r&&r.length?ya(r,he(i,2),Bc):n}var rz=Ca(function(r,i){return r*i},1),iz=Jc("round"),oz=Ca(function(r,i){return r-i},0);function sz(r){return r&&r.length?wc(r,qt):0}function az(r,i){return r&&r.length?wc(r,he(i,2)):0}return b.after=I4,b.ary=Mv,b.assign=m3,b.assignIn=Yv,b.assignInWith=La,b.assignWith=y3,b.at=v3,b.before=Fv,b.bind=lf,b.bindAll=SB,b.bindKey=Dv,b.castArray=j4,b.chain=Iv,b.chunk=RL,b.compact=ZL,b.concat=XL,b.cond=CB,b.conforms=EB,b.constant=gf,b.countBy=s4,b.create=b3,b.curry=kv,b.curryRight=Nv,b.debounce=Lv,b.defaults=_3,b.defaultsDeep=T3,b.defer=P4,b.delay=$4,b.difference=QL,b.differenceBy=e5,b.differenceWith=t5,b.drop=n5,b.dropRight=r5,b.dropRightWhile=i5,b.dropWhile=o5,b.fill=s5,b.filter=l4,b.flatMap=f4,b.flatMapDeep=d4,b.flatMapDepth=h4,b.flatten=Ev,b.flattenDeep=a5,b.flattenDepth=l5,b.flip=M4,b.flow=AB,b.flowRight=OB,b.fromPairs=u5,b.functions=O3,b.functionsIn=I3,b.groupBy=p4,b.initial=f5,b.intersection=d5,b.intersectionBy=h5,b.intersectionWith=p5,b.invert=$3,b.invertBy=M3,b.invokeMap=m4,b.iteratee=mf,b.keyBy=y4,b.keys=Et,b.keysIn=Yt,b.map=$a,b.mapKeys=D3,b.mapValues=k3,b.matches=IB,b.matchesProperty=PB,b.memoize=Fa,b.merge=N3,b.mergeWith=qv,b.method=$B,b.methodOf=MB,b.mixin=yf,b.negate=Da,b.nthArg=DB,b.omit=L3,b.omitBy=B3,b.once=F4,b.orderBy=v4,b.over=kB,b.overArgs=D4,b.overEvery=NB,b.overSome=LB,b.partial=uf,b.partialRight=Bv,b.partition=b4,b.pick=z3,b.pickBy=Kv,b.property=tb,b.propertyOf=BB,b.pull=v5,b.pullAll=Av,b.pullAllBy=b5,b.pullAllWith=_5,b.pullAt=T5,b.range=zB,b.rangeRight=UB,b.rearg=k4,b.reject=w4,b.remove=w5,b.rest=N4,b.reverse=sf,b.sampleSize=C4,b.set=j3,b.setWith=W3,b.shuffle=E4,b.slice=S5,b.sortBy=O4,b.sortedUniq=P5,b.sortedUniqBy=$5,b.split=fB,b.spread=L4,b.tail=M5,b.take=F5,b.takeRight=D5,b.takeRightWhile=k5,b.takeWhile=N5,b.tap=Z5,b.throttle=B4,b.thru=Pa,b.toArray=Vv,b.toPairs=Jv,b.toPairsIn=Rv,b.toPath=HB,b.toPlainObject=Hv,b.transform=V3,b.unary=z4,b.union=L5,b.unionBy=B5,b.unionWith=z5,b.uniq=U5,b.uniqBy=j5,b.uniqWith=W5,b.unset=G3,b.unzip=af,b.unzipWith=Ov,b.update=H3,b.updateWith=Y3,b.values=Vi,b.valuesIn=q3,b.without=V5,b.words=Qv,b.wrap=U4,b.xor=G5,b.xorBy=H5,b.xorWith=Y5,b.zip=q5,b.zipObject=K5,b.zipObjectDeep=J5,b.zipWith=R5,b.entries=Jv,b.entriesIn=Rv,b.extend=Yv,b.extendWith=La,yf(b,b),b.add=qB,b.attempt=eb,b.camelCase=Z3,b.capitalize=Zv,b.ceil=KB,b.clamp=K3,b.clone=W4,b.cloneDeep=G4,b.cloneDeepWith=H4,b.cloneWith=V4,b.conformsTo=Y4,b.deburr=Xv,b.defaultTo=xB,b.divide=JB,b.endsWith=X3,b.eq=En,b.escape=Q3,b.escapeRegExp=eB,b.every=a4,b.find=u4,b.findIndex=Sv,b.findKey=w3,b.findLast=c4,b.findLastIndex=Cv,b.findLastKey=S3,b.floor=RB,b.forEach=Pv,b.forEachRight=$v,b.forIn=C3,b.forInRight=E3,b.forOwn=x3,b.forOwnRight=A3,b.get=df,b.gt=q4,b.gte=K4,b.has=P3,b.hasIn=hf,b.head=xv,b.identity=qt,b.includes=g4,b.indexOf=c5,b.inRange=J3,b.invoke=F3,b.isArguments=ei,b.isArray=Te,b.isArrayBuffer=J4,b.isArrayLike=Ht,b.isArrayLikeObject=ht,b.isBoolean=R4,b.isBuffer=Ir,b.isDate=Z4,b.isElement=X4,b.isEmpty=Q4,b.isEqual=e3,b.isEqualWith=t3,b.isError=cf,b.isFinite=n3,b.isFunction=er,b.isInteger=zv,b.isLength=ka,b.isMap=Uv,b.isMatch=r3,b.isMatchWith=i3,b.isNaN=o3,b.isNative=s3,b.isNil=l3,b.isNull=a3,b.isNumber=jv,b.isObject=rt,b.isObjectLike=ct,b.isPlainObject=zo,b.isRegExp=ff,b.isSafeInteger=u3,b.isSet=Wv,b.isString=Na,b.isSymbol=en,b.isTypedArray=Wi,b.isUndefined=c3,b.isWeakMap=f3,b.isWeakSet=d3,b.join=g5,b.kebabCase=tB,b.last=gn,b.lastIndexOf=m5,b.lowerCase=nB,b.lowerFirst=rB,b.lt=h3,b.lte=p3,b.max=ZB,b.maxBy=XB,b.mean=QB,b.meanBy=ez,b.min=tz,b.minBy=nz,b.stubArray=bf,b.stubFalse=_f,b.stubObject=jB,b.stubString=WB,b.stubTrue=VB,b.multiply=rz,b.nth=y5,b.noConflict=FB,b.noop=vf,b.now=Ma,b.pad=iB,b.padEnd=oB,b.padStart=sB,b.parseInt=aB,b.random=R3,b.reduce=_4,b.reduceRight=T4,b.repeat=lB,b.replace=uB,b.result=U3,b.round=iz,b.runInContext=M,b.sample=S4,b.size=x4,b.snakeCase=cB,b.some=A4,b.sortedIndex=C5,b.sortedIndexBy=E5,b.sortedIndexOf=x5,b.sortedLastIndex=A5,b.sortedLastIndexBy=O5,b.sortedLastIndexOf=I5,b.startCase=dB,b.startsWith=hB,b.subtract=oz,b.sum=sz,b.sumBy=az,b.template=pB,b.times=GB,b.toFinite=tr,b.toInteger=Se,b.toLength=Gv,b.toLower=gB,b.toNumber=mn,b.toSafeInteger=g3,b.toString=je,b.toUpper=mB,b.trim=yB,b.trimEnd=vB,b.trimStart=bB,b.truncate=_B,b.unescape=TB,b.uniqueId=YB,b.upperCase=wB,b.upperFirst=pf,b.each=Pv,b.eachRight=$v,b.first=xv,yf(b,function(){var r={};return Dn(b,function(i,l){Ve.call(b.prototype,l)||(r[l]=i)}),r}(),{chain:!1}),b.VERSION=o,cn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){b[r].placeholder=b}),cn(["drop","take"],function(r,i){$e.prototype[r]=function(l){l=l===n?1:_t(Se(l),0);var f=this.__filtered__&&!i?new $e(this):this.clone();return f.__filtered__?f.__takeCount__=$t(l,f.__takeCount__):f.__views__.push({size:$t(l,K),type:r+(f.__dir__<0?"Right":"")}),f},$e.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),cn(["filter","map","takeWhile"],function(r,i){var l=i+1,f=l==ye||l==we;$e.prototype[r]=function(g){var T=this.clone();return T.__iteratees__.push({iteratee:he(g,3),type:l}),T.__filtered__=T.__filtered__||f,T}}),cn(["head","last"],function(r,i){var l="take"+(i?"Right":"");$e.prototype[r]=function(){return this[l](1).value()[0]}}),cn(["initial","tail"],function(r,i){var l="drop"+(i?"":"Right");$e.prototype[r]=function(){return this.__filtered__?new $e(this):this[l](1)}}),$e.prototype.compact=function(){return this.filter(qt)},$e.prototype.find=function(r){return this.filter(r).head()},$e.prototype.findLast=function(r){return this.reverse().find(r)},$e.prototype.invokeMap=xe(function(r,i){return typeof r=="function"?new $e(this):this.map(function(l){return Fo(l,r,i)})}),$e.prototype.reject=function(r){return this.filter(Da(he(r)))},$e.prototype.slice=function(r,i){r=Se(r);var l=this;return l.__filtered__&&(r>0||i<0)?new $e(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),i!==n&&(i=Se(i),l=i<0?l.dropRight(-i):l.take(i-r)),l)},$e.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},$e.prototype.toArray=function(){return this.take(K)},Dn($e.prototype,function(r,i){var l=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),g=b[f?"take"+(i=="last"?"Right":""):i],T=f||/^find/.test(i);g&&(b.prototype[i]=function(){var A=this.__wrapped__,I=f?[1]:arguments,F=A instanceof $e,W=I[0],V=F||Te(A),J=function(Pe){var Fe=g.apply(b,wr([Pe],I));return f&&re?Fe[0]:Fe};V&&l&&typeof W=="function"&&W.length!=1&&(F=V=!1);var re=this.__chain__,ce=!!this.__actions__.length,ge=T&&!re,Ee=F&&!ce;if(!T&&V){A=Ee?A:new $e(this);var me=r.apply(A,I);return me.__actions__.push({func:Pa,args:[J],thisArg:n}),new dn(me,re)}return ge&&Ee?r.apply(this,I):(me=this.thru(J),ge?f?me.value()[0]:me.value():me)})}),cn(["pop","push","shift","sort","splice","unshift"],function(r){var i=na[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);b.prototype[r]=function(){var g=arguments;if(f&&!this.__chain__){var T=this.value();return i.apply(Te(T)?T:[],g)}return this[l](function(A){return i.apply(Te(A)?A:[],g)})}}),Dn($e.prototype,function(r,i){var l=b[i];if(l){var f=l.name+"";Ve.call(Li,f)||(Li[f]=[]),Li[f].push({name:i,func:l})}}),Li[Sa(n,N).name]=[{name:"wrapper",func:n}],$e.prototype.clone=TN,$e.prototype.reverse=wN,$e.prototype.value=SN,b.prototype.at=X5,b.prototype.chain=Q5,b.prototype.commit=e4,b.prototype.next=t4,b.prototype.plant=r4,b.prototype.reverse=i4,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=o4,b.prototype.first=b.prototype.head,xo&&(b.prototype[xo]=n4),b},Di=eN();Yr?((Yr.exports=Di)._=Di,gc._=Di):At._=Di}).call(Un)}(ds,ds.exports);var zS=ds.exports;function Lh(e){const{renderers:t,cells:n,uischemas:o,schema:s,label:a,path:u,visible:c,enabled:h,uischema:p,rootSchema:m}=e,y=x.useMemo(()=>ue.findUISchema(o,s,p.scope,u,()=>zS.isEmpty(u)?ue.Generate.uiSchema(s,"VerticalLayout",void 0,m):{...ue.Generate.uiSchema(s,"Group",void 0,m),label:a},p,m),[o,s,u,a,p,m]);return c?d.jsx(De.JsonFormsDispatch,{visible:c,enabled:h,schema:s,uischema:y,path:u,renderers:t,cells:n}):null}function ql(e){const t=In(e),{path:n,data:o,schema:s}=e,a=fs(o,s),u=x.useMemo(()=>{var _;const m=o===null,y=(_=t.error)==null?void 0:_.filter(C=>C.key==="is a required property"||!m?C:!1);return y!=null&&y.length?{error:y}:{error:m&&t.required?"is a required property":void 0}},[t.error,t.required,o]),c=x.useMemo(()=>({...t,...a,...u}),[t,u,a]),[h,p]=_n("OneOfEnum",n,c,e);return h===void 0?d.jsx(v.Select,{...p}):h}function Kl(e){const t=In(e),{path:n,data:o,schema:s}=e,a=Dh({data:o,onChange:t.onChange}),u=x.useMemo(()=>({...t,...a}),[t,a]),[c,h]=_n("Text",n,u,e);return c===void 0?s.format==="password"?d.jsx(v.PasswordInput,{...h}):d.jsx(v.TextInput,{...h}):c}const Bh=ue.rankWith(1,ue.isBooleanControl),zh=De.withJsonFormsCellProps(e=>d.jsx(Vl,{...e})),Uh=ue.rankWith(1,ue.isDateControl),jh=De.withJsonFormsCellProps(e=>d.jsx(Gl,{...e})),Wh=ue.rankWith(1,ue.isDateTimeControl),Vh=De.withJsonFormsControlProps(e=>d.jsx(Hl,{...e})),Gh=ue.rankWith(2,ue.isEnumControl),Hh=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),Yh=ue.rankWith(1,ue.isIntegerControl),qh=De.withJsonFormsCellProps(e=>d.jsx(no,{...e})),Kh=ue.rankWith(1,ue.isNumberControl),Jh=De.withJsonFormsCellProps(e=>d.jsx(no,{...e})),Rh=ue.rankWith(2,ue.isOneOfControl),Zh=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(ql,{...e})),!1),Xh=ue.rankWith(1,ue.isStringControl),Qh=De.withJsonFormsCellProps(e=>d.jsx(Kl,{...e})),ep=x.memo(function({open:t,onClose:n,onConfirm:o,onCancel:s,title:a,message:u,acceptText:c,declineText:h}){return d.jsxs(v.Modal,{opened:t,withCloseButton:!1,centered:!0,title:a,keepMounted:!0,onClose:n,children:[u,d.jsxs(v.Flex,{justify:"flex-end",align:"center",gap:"sm",children:[d.jsx(v.Button,{onClick:s,children:h}),d.jsx(v.Button,{onClick:o,children:c})]})]})});var Jl={exports:{}},Ge={};/**
152
152
  * @license React
153
153
  * react-is.production.js
154
154
  *
@@ -156,7 +156,7 @@ function print() { __p += __j.call(arguments, '') }
156
156
  *
157
157
  * This source code is licensed under the MIT license found in the
158
158
  * LICENSE file in the root directory of this source tree.
159
- */var ep;function US(){if(ep)return Ge;ep=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function E(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case e:switch(w=w.type,w){case n:case s:case o:case h:case p:case _:return w;default:switch(w=w&&w.$$typeof,w){case u:case c:case m:case y:return w;case a:return w;default:return $}}case t:return $}}}return Ge.ContextConsumer=a,Ge.ContextProvider=u,Ge.Element=e,Ge.ForwardRef=c,Ge.Fragment=n,Ge.Lazy=m,Ge.Memo=y,Ge.Portal=t,Ge.Profiler=s,Ge.StrictMode=o,Ge.Suspense=h,Ge.SuspenseList=p,Ge.isContextConsumer=function(w){return E(w)===a},Ge.isContextProvider=function(w){return E(w)===u},Ge.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Ge.isForwardRef=function(w){return E(w)===c},Ge.isFragment=function(w){return E(w)===n},Ge.isLazy=function(w){return E(w)===m},Ge.isMemo=function(w){return E(w)===y},Ge.isPortal=function(w){return E(w)===t},Ge.isProfiler=function(w){return E(w)===s},Ge.isStrictMode=function(w){return E(w)===o},Ge.isSuspense=function(w){return E(w)===h},Ge.isSuspenseList=function(w){return E(w)===p},Ge.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===s||w===o||w===h||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===y||w.$$typeof===u||w.$$typeof===a||w.$$typeof===c||w.$$typeof===C||w.getModuleId!==void 0)},Ge.typeOf=E,Ge}var He={};/**
159
+ */var tp;function US(){if(tp)return Ge;tp=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),C=Symbol.for("react.client.reference");function E(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case e:switch(w=w.type,w){case n:case s:case o:case h:case p:case _:return w;default:switch(w=w&&w.$$typeof,w){case u:case c:case y:case m:return w;case a:return w;default:return $}}case t:return $}}}return Ge.ContextConsumer=a,Ge.ContextProvider=u,Ge.Element=e,Ge.ForwardRef=c,Ge.Fragment=n,Ge.Lazy=y,Ge.Memo=m,Ge.Portal=t,Ge.Profiler=s,Ge.StrictMode=o,Ge.Suspense=h,Ge.SuspenseList=p,Ge.isContextConsumer=function(w){return E(w)===a},Ge.isContextProvider=function(w){return E(w)===u},Ge.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Ge.isForwardRef=function(w){return E(w)===c},Ge.isFragment=function(w){return E(w)===n},Ge.isLazy=function(w){return E(w)===y},Ge.isMemo=function(w){return E(w)===m},Ge.isPortal=function(w){return E(w)===t},Ge.isProfiler=function(w){return E(w)===s},Ge.isStrictMode=function(w){return E(w)===o},Ge.isSuspense=function(w){return E(w)===h},Ge.isSuspenseList=function(w){return E(w)===p},Ge.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===s||w===o||w===h||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===m||w.$$typeof===u||w.$$typeof===a||w.$$typeof===c||w.$$typeof===C||w.getModuleId!==void 0)},Ge.typeOf=E,Ge}var He={};/**
160
160
  * @license React
161
161
  * react-is.development.js
162
162
  *
@@ -164,39 +164,39 @@ function print() { __p += __j.call(arguments, '') }
164
164
  *
165
165
  * This source code is licensed under the MIT license found in the
166
166
  * LICENSE file in the root directory of this source tree.
167
- */var tp;function jS(){return tp||(tp=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case t:switch(w=w.type,w){case o:case a:case s:case p:case y:case C:return w;default:switch(w=w&&w.$$typeof,w){case c:case h:case _:case m:return w;case u:return w;default:return $}}case n:return $}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");He.ContextConsumer=u,He.ContextProvider=c,He.Element=t,He.ForwardRef=h,He.Fragment=o,He.Lazy=_,He.Memo=m,He.Portal=n,He.Profiler=a,He.StrictMode=s,He.Suspense=p,He.SuspenseList=y,He.isContextConsumer=function(w){return e(w)===u},He.isContextProvider=function(w){return e(w)===c},He.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},He.isForwardRef=function(w){return e(w)===h},He.isFragment=function(w){return e(w)===o},He.isLazy=function(w){return e(w)===_},He.isMemo=function(w){return e(w)===m},He.isPortal=function(w){return e(w)===n},He.isProfiler=function(w){return e(w)===a},He.isStrictMode=function(w){return e(w)===s},He.isSuspense=function(w){return e(w)===p},He.isSuspenseList=function(w){return e(w)===y},He.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===s||w===p||w===y||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===m||w.$$typeof===c||w.$$typeof===u||w.$$typeof===h||w.$$typeof===E||w.getModuleId!==void 0)},He.typeOf=e}()),He}process.env.NODE_ENV==="production"?Kl.exports=US():Kl.exports=jS();var ds=Kl.exports;function Vn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function np(e){if(Ft.isValidElement(e)||ds.isValidElementType(e)||!Vn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=np(e[n])}),t}function Kt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Vn(e)&&Vn(t)&&Object.keys(t).forEach(s=>{Ft.isValidElement(t[s])||ds.isValidElementType(t[s])?o[s]=t[s]:Vn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Vn(e[s])?o[s]=Kt(e[s],t[s],n):n.clone?o[s]=Vn(t[s])?np(t[s]):t[s]:o[s]=t[s]}),o}var Jl={exports:{}},hs={exports:{}},ze={};/** @license React v16.13.1
167
+ */var np;function jS(){return np||(np=1,process.env.NODE_ENV!=="production"&&function(){function e(w){if(typeof w=="object"&&w!==null){var $=w.$$typeof;switch($){case t:switch(w=w.type,w){case o:case a:case s:case p:case m:case C:return w;default:switch(w=w&&w.$$typeof,w){case c:case h:case _:case y:return w;case u:return w;default:return $}}case n:return $}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),E=Symbol.for("react.client.reference");He.ContextConsumer=u,He.ContextProvider=c,He.Element=t,He.ForwardRef=h,He.Fragment=o,He.Lazy=_,He.Memo=y,He.Portal=n,He.Profiler=a,He.StrictMode=s,He.Suspense=p,He.SuspenseList=m,He.isContextConsumer=function(w){return e(w)===u},He.isContextProvider=function(w){return e(w)===c},He.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},He.isForwardRef=function(w){return e(w)===h},He.isFragment=function(w){return e(w)===o},He.isLazy=function(w){return e(w)===_},He.isMemo=function(w){return e(w)===y},He.isPortal=function(w){return e(w)===n},He.isProfiler=function(w){return e(w)===a},He.isStrictMode=function(w){return e(w)===s},He.isSuspense=function(w){return e(w)===p},He.isSuspenseList=function(w){return e(w)===m},He.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===a||w===s||w===p||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===y||w.$$typeof===c||w.$$typeof===u||w.$$typeof===h||w.$$typeof===E||w.getModuleId!==void 0)},He.typeOf=e}()),He}process.env.NODE_ENV==="production"?Jl.exports=US():Jl.exports=jS();var hs=Jl.exports;function Vn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rp(e){if(Ft.isValidElement(e)||hs.isValidElementType(e)||!Vn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=rp(e[n])}),t}function Kt(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Vn(e)&&Vn(t)&&Object.keys(t).forEach(s=>{Ft.isValidElement(t[s])||hs.isValidElementType(t[s])?o[s]=t[s]:Vn(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&Vn(e[s])?o[s]=Kt(e[s],t[s],n):n.clone?o[s]=Vn(t[s])?rp(t[s]):t[s]:o[s]=t[s]}),o}var Rl={exports:{}},ps={exports:{}},ze={};/** @license React v16.13.1
168
168
  * react-is.production.min.js
169
169
  *
170
170
  * Copyright (c) Facebook, Inc. and its affiliates.
171
171
  *
172
172
  * This source code is licensed under the MIT license found in the
173
173
  * LICENSE file in the root directory of this source tree.
174
- */var rp;function WS(){if(rp)return ze;rp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(D){if(typeof D=="object"&&D!==null){var k=D.$$typeof;switch(k){case t:switch(D=D.type,D){case h:case p:case o:case a:case s:case m:return D;default:switch(D=D&&D.$$typeof,D){case c:case y:case E:case C:case u:return D;default:return k}}case n:return k}}}function B(D){return H(D)===p}return ze.AsyncMode=h,ze.ConcurrentMode=p,ze.ContextConsumer=c,ze.ContextProvider=u,ze.Element=t,ze.ForwardRef=y,ze.Fragment=o,ze.Lazy=E,ze.Memo=C,ze.Portal=n,ze.Profiler=a,ze.StrictMode=s,ze.Suspense=m,ze.isAsyncMode=function(D){return B(D)||H(D)===h},ze.isConcurrentMode=B,ze.isContextConsumer=function(D){return H(D)===c},ze.isContextProvider=function(D){return H(D)===u},ze.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},ze.isForwardRef=function(D){return H(D)===y},ze.isFragment=function(D){return H(D)===o},ze.isLazy=function(D){return H(D)===E},ze.isMemo=function(D){return H(D)===C},ze.isPortal=function(D){return H(D)===n},ze.isProfiler=function(D){return H(D)===a},ze.isStrictMode=function(D){return H(D)===s},ze.isSuspense=function(D){return H(D)===m},ze.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===o||D===p||D===a||D===s||D===m||D===_||typeof D=="object"&&D!==null&&(D.$$typeof===E||D.$$typeof===C||D.$$typeof===u||D.$$typeof===c||D.$$typeof===y||D.$$typeof===$||D.$$typeof===N||D.$$typeof===Q||D.$$typeof===w)},ze.typeOf=H,ze}var Ue={};/** @license React v16.13.1
174
+ */var ip;function WS(){if(ip)return ze;ip=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(D){if(typeof D=="object"&&D!==null){var k=D.$$typeof;switch(k){case t:switch(D=D.type,D){case h:case p:case o:case a:case s:case y:return D;default:switch(D=D&&D.$$typeof,D){case c:case m:case E:case C:case u:return D;default:return k}}case n:return k}}}function B(D){return H(D)===p}return ze.AsyncMode=h,ze.ConcurrentMode=p,ze.ContextConsumer=c,ze.ContextProvider=u,ze.Element=t,ze.ForwardRef=m,ze.Fragment=o,ze.Lazy=E,ze.Memo=C,ze.Portal=n,ze.Profiler=a,ze.StrictMode=s,ze.Suspense=y,ze.isAsyncMode=function(D){return B(D)||H(D)===h},ze.isConcurrentMode=B,ze.isContextConsumer=function(D){return H(D)===c},ze.isContextProvider=function(D){return H(D)===u},ze.isElement=function(D){return typeof D=="object"&&D!==null&&D.$$typeof===t},ze.isForwardRef=function(D){return H(D)===m},ze.isFragment=function(D){return H(D)===o},ze.isLazy=function(D){return H(D)===E},ze.isMemo=function(D){return H(D)===C},ze.isPortal=function(D){return H(D)===n},ze.isProfiler=function(D){return H(D)===a},ze.isStrictMode=function(D){return H(D)===s},ze.isSuspense=function(D){return H(D)===y},ze.isValidElementType=function(D){return typeof D=="string"||typeof D=="function"||D===o||D===p||D===a||D===s||D===y||D===_||typeof D=="object"&&D!==null&&(D.$$typeof===E||D.$$typeof===C||D.$$typeof===u||D.$$typeof===c||D.$$typeof===m||D.$$typeof===$||D.$$typeof===N||D.$$typeof===Q||D.$$typeof===w)},ze.typeOf=H,ze}var Ue={};/** @license React v16.13.1
175
175
  * react-is.development.js
176
176
  *
177
177
  * Copyright (c) Facebook, Inc. and its affiliates.
178
178
  *
179
179
  * This source code is licensed under the MIT license found in the
180
180
  * LICENSE file in the root directory of this source tree.
181
- */var ip;function VS(){return ip||(ip=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(te){return typeof te=="string"||typeof te=="function"||te===o||te===p||te===a||te===s||te===m||te===_||typeof te=="object"&&te!==null&&(te.$$typeof===E||te.$$typeof===C||te.$$typeof===u||te.$$typeof===c||te.$$typeof===y||te.$$typeof===$||te.$$typeof===N||te.$$typeof===Q||te.$$typeof===w)}function B(te){if(typeof te=="object"&&te!==null){var yt=te.$$typeof;switch(yt){case t:var Je=te.type;switch(Je){case h:case p:case o:case a:case s:case m:return Je;default:var Lt=Je&&Je.$$typeof;switch(Lt){case c:case y:case E:case C:case u:return Lt;default:return yt}}case n:return yt}}}var D=h,k=p,G=c,ae=u,ie=t,S=y,U=o,ne=E,fe=C,ye=n,Me=a,we=s,Le=m,Ie=!1;function lt(te){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(te)||B(te)===h}function q(te){return B(te)===p}function K(te){return B(te)===c}function Z(te){return B(te)===u}function R(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Y(te){return B(te)===y}function ee(te){return B(te)===o}function oe(te){return B(te)===E}function ve(te){return B(te)===C}function be(te){return B(te)===n}function pe(te){return B(te)===a}function Ce(te){return B(te)===s}function tt(te){return B(te)===m}Ue.AsyncMode=D,Ue.ConcurrentMode=k,Ue.ContextConsumer=G,Ue.ContextProvider=ae,Ue.Element=ie,Ue.ForwardRef=S,Ue.Fragment=U,Ue.Lazy=ne,Ue.Memo=fe,Ue.Portal=ye,Ue.Profiler=Me,Ue.StrictMode=we,Ue.Suspense=Le,Ue.isAsyncMode=lt,Ue.isConcurrentMode=q,Ue.isContextConsumer=K,Ue.isContextProvider=Z,Ue.isElement=R,Ue.isForwardRef=Y,Ue.isFragment=ee,Ue.isLazy=oe,Ue.isMemo=ve,Ue.isPortal=be,Ue.isProfiler=pe,Ue.isStrictMode=Ce,Ue.isSuspense=tt,Ue.isValidElementType=H,Ue.typeOf=B}()),Ue}var op;function sp(){return op||(op=1,process.env.NODE_ENV==="production"?hs.exports=WS():hs.exports=VS()),hs.exports}/*
181
+ */var op;function VS(){return op||(op=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,Q=e?Symbol.for("react.scope"):60119;function H(te){return typeof te=="string"||typeof te=="function"||te===o||te===p||te===a||te===s||te===y||te===_||typeof te=="object"&&te!==null&&(te.$$typeof===E||te.$$typeof===C||te.$$typeof===u||te.$$typeof===c||te.$$typeof===m||te.$$typeof===$||te.$$typeof===N||te.$$typeof===Q||te.$$typeof===w)}function B(te){if(typeof te=="object"&&te!==null){var yt=te.$$typeof;switch(yt){case t:var Je=te.type;switch(Je){case h:case p:case o:case a:case s:case y:return Je;default:var Lt=Je&&Je.$$typeof;switch(Lt){case c:case m:case E:case C:case u:return Lt;default:return yt}}case n:return yt}}}var D=h,k=p,G=c,ae=u,ie=t,S=m,U=o,ne=E,fe=C,ye=n,Me=a,we=s,Le=y,Ie=!1;function lt(te){return Ie||(Ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),q(te)||B(te)===h}function q(te){return B(te)===p}function K(te){return B(te)===c}function Z(te){return B(te)===u}function R(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Y(te){return B(te)===m}function ee(te){return B(te)===o}function oe(te){return B(te)===E}function ve(te){return B(te)===C}function be(te){return B(te)===n}function pe(te){return B(te)===a}function Ce(te){return B(te)===s}function tt(te){return B(te)===y}Ue.AsyncMode=D,Ue.ConcurrentMode=k,Ue.ContextConsumer=G,Ue.ContextProvider=ae,Ue.Element=ie,Ue.ForwardRef=S,Ue.Fragment=U,Ue.Lazy=ne,Ue.Memo=fe,Ue.Portal=ye,Ue.Profiler=Me,Ue.StrictMode=we,Ue.Suspense=Le,Ue.isAsyncMode=lt,Ue.isConcurrentMode=q,Ue.isContextConsumer=K,Ue.isContextProvider=Z,Ue.isElement=R,Ue.isForwardRef=Y,Ue.isFragment=ee,Ue.isLazy=oe,Ue.isMemo=ve,Ue.isPortal=be,Ue.isProfiler=pe,Ue.isStrictMode=Ce,Ue.isSuspense=tt,Ue.isValidElementType=H,Ue.typeOf=B}()),Ue}var sp;function ap(){return sp||(sp=1,process.env.NODE_ENV==="production"?ps.exports=WS():ps.exports=VS()),ps.exports}/*
182
182
  object-assign
183
183
  (c) Sindre Sorhus
184
184
  @license MIT
185
- */var Rl,ap;function GS(){if(ap)return Rl;ap=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(u).map(function(y){return u[y]});if(h.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(y){p[y]=y}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rl=s()?Object.assign:function(a,u){for(var c,h=o(a),p,y=1;y<arguments.length;y++){c=Object(arguments[y]);for(var m in c)t.call(c,m)&&(h[m]=c[m]);if(e){p=e(c);for(var _=0;_<p.length;_++)n.call(c,p[_])&&(h[p[_]]=c[p[_]])}}return h},Rl}var Zl,lp;function Xl(){if(lp)return Zl;lp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zl=e,Zl}var Ql,up;function cp(){return up||(up=1,Ql=Function.call.bind(Object.prototype.hasOwnProperty)),Ql}var eu,fp;function HS(){if(fp)return eu;fp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xl(),n={},o=cp();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,h,p){if(process.env.NODE_ENV!=="production"){for(var y in a)if(o(a,y)){var m;try{if(typeof a[y]!="function"){var _=Error((h||"React class")+": "+c+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}m=a[y](u,y,h,c,null,t)}catch(E){m=E}if(m&&!(m instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var C=p?p():"";e("Failed "+c+" type: "+m.message+(C??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},eu=s,eu}var tu,dp;function YS(){if(dp)return tu;dp=1;var e=sp(),t=GS(),n=Xl(),o=cp(),s=HS(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function u(){return null}return tu=function(c,h){var p=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function m(q){var K=q&&(p&&q[p]||q[y]);if(typeof K=="function")return K}var _="<<anonymous>>",C={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:Q(),arrayOf:H,element:B(),elementType:D(),instanceOf:k,node:S(),objectOf:ae,oneOf:G,oneOfType:ie,shape:ne,exact:fe};function E(q,K){return q===K?q!==0||1/q===1/K:q!==q&&K!==K}function w(q,K){this.message=q,this.data=K&&typeof K=="object"?K:{},this.stack=""}w.prototype=Error.prototype;function $(q){if(process.env.NODE_ENV!=="production")var K={},Z=0;function R(ee,oe,ve,be,pe,Ce,tt){if(be=be||_,Ce=Ce||ve,tt!==n){if(h){var te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw te.name="Invariant Violation",te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var yt=be+":"+ve;!K[yt]&&Z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+be+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[yt]=!0,Z++)}}return oe[ve]==null?ee?oe[ve]===null?new w("The "+pe+" `"+Ce+"` is marked as required "+("in `"+be+"`, but its value is `null`.")):new w("The "+pe+" `"+Ce+"` is marked as required in "+("`"+be+"`, but its value is `undefined`.")):null:q(oe,ve,be,pe,Ce)}var Y=R.bind(null,!1);return Y.isRequired=R.bind(null,!0),Y}function N(q){function K(Z,R,Y,ee,oe,ve){var be=Z[R],pe=we(be);if(pe!==q){var Ce=Le(be);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+Ce+"` supplied to `"+Y+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return $(K)}function Q(){return $(u)}function H(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ve=Z[R];if(!Array.isArray(ve)){var be=we(ve);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an array."))}for(var pe=0;pe<ve.length;pe++){var Ce=q(ve,pe,Y,ee,oe+"["+pe+"]",n);if(Ce instanceof Error)return Ce}return null}return $(K)}function B(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!c(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return $(q)}function D(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!e.isValidElementType(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return $(q)}function k(q){function K(Z,R,Y,ee,oe){if(!(Z[R]instanceof q)){var ve=q.name||_,be=lt(Z[R]);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected ")+("instance of `"+ve+"`."))}return null}return $(K)}function G(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function K(Z,R,Y,ee,oe){for(var ve=Z[R],be=0;be<q.length;be++)if(E(ve,q[be]))return null;var pe=JSON.stringify(q,function(tt,te){var yt=Le(te);return yt==="symbol"?String(te):te});return new w("Invalid "+ee+" `"+oe+"` of value `"+String(ve)+"` "+("supplied to `"+Y+"`, expected one of "+pe+"."))}return $(K)}function ae(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an object."));for(var pe in ve)if(o(ve,pe)){var Ce=q(ve,pe,Y,ee,oe+"."+pe,n);if(Ce instanceof Error)return Ce}return null}return $(K)}function ie(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var K=0;K<q.length;K++){var Z=q[K];if(typeof Z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(Z)+" at index "+K+"."),u}function R(Y,ee,oe,ve,be){for(var pe=[],Ce=0;Ce<q.length;Ce++){var tt=q[Ce],te=tt(Y,ee,oe,ve,be,n);if(te==null)return null;te.data&&o(te.data,"expectedType")&&pe.push(te.data.expectedType)}var yt=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new w("Invalid "+ve+" `"+be+"` supplied to "+("`"+oe+"`"+yt+"."))}return $(R)}function S(){function q(K,Z,R,Y,ee){return ye(K[Z])?null:new w("Invalid "+Y+" `"+ee+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return $(q)}function U(q,K,Z,R,Y){return new w((q||"React class")+": "+K+" type `"+Z+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function ne(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));for(var pe in q){var Ce=q[pe];if(typeof Ce!="function")return U(Y,ee,oe,pe,Le(Ce));var tt=Ce(ve,pe,Y,ee,oe+"."+pe,n);if(tt)return tt}return null}return $(K)}function fe(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));var pe=t({},Z[R],q);for(var Ce in pe){var tt=q[Ce];if(o(q,Ce)&&typeof tt!="function")return U(Y,ee,oe,Ce,Le(tt));if(!tt)return new w("Invalid "+ee+" `"+oe+"` key `"+Ce+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[R],null," ")+`
186
- Valid keys: `+JSON.stringify(Object.keys(q),null," "));var te=tt(ve,Ce,Y,ee,oe+"."+Ce,n);if(te)return te}return null}return $(K)}function ye(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(ye);if(q===null||c(q))return!0;var K=m(q);if(K){var Z=K.call(q),R;if(K!==q.entries){for(;!(R=Z.next()).done;)if(!ye(R.value))return!1}else for(;!(R=Z.next()).done;){var Y=R.value;if(Y&&!ye(Y[1]))return!1}}else return!1;return!0;default:return!1}}function Me(q,K){return q==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function we(q){var K=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":Me(K,q)?"symbol":K}function Le(q){if(typeof q>"u"||q===null)return""+q;var K=we(q);if(K==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return K}function Ie(q){var K=Le(q);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function lt(q){return!q.constructor||!q.constructor.name?_:q.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},tu}var nu,hp;function qS(){if(hp)return nu;hp=1;var e=Xl();function t(){}function n(){}return n.resetWarningCache=t,nu=function(){function o(u,c,h,p,y,m){if(m!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},nu}if(process.env.NODE_ENV!=="production"){var KS=sp(),JS=!0;Jl.exports=YS()(KS.isElement,JS)}else Jl.exports=qS()();var RS=Jl.exports;const Ne=ir(RS);function ur(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function pp(e,t=""){return e.displayName||e.name||t}function gp(e,t,n){const o=pp(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function ZS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return pp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ds.ForwardRef:return gp(e,e.render,"ForwardRef");case ds.Memo:return gp(e,e.type,"memo");default:return}}}function Lr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ru(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],u=t[s];if(!u)n[s]=a||{};else if(!a)n[s]=u;else{n[s]={...u};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const h=c;n[s][h]=ru(a[h],u[h])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function XS(e,t,n=void 0){const o={};for(const s in e){const a=e[s];let u="",c=!0;for(let h=0;h<a.length;h+=1){const p=a[h];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}o[s]=u}return o}const mp=e=>e,QS=(()=>{let e=mp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mp}}})(),eC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function iu(e,t,n="Mui"){const o=eC[t];return o?`${n}-${o}`:`${QS.generate(e)}-${t}`}function tC(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=iu(e,s,n)}),o}function nC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function no(e,t){return t?Kt(e,t,{clone:!1}):e}const cr=process.env.NODE_ENV!=="production"?Ne.oneOfType([Ne.number,Ne.string,Ne.object,Ne.array]):{};function rC(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=o.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function iC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function oC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
187
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ur(18,`(${t})`));return null}const[,o,s]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function sC(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const h=t(e.breakpoints.not(...c),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const o={},s=a=>(n(o,a),o);return n(s),{...e,containerQueries:s}}const ps={xs:0,sm:600,md:900,lg:1200,xl:1536},yp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ps[e]}px)`},aC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ps[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||yp;return t.reduce((u,c,h)=>(u[a.up(a.keys[h])]=n(t[h]),u),{})}if(typeof t=="object"){const a=o.breakpoints||yp;return Object.keys(t).reduce((u,c)=>{if(iC(a.keys,c)){const h=oC(o.containerQueries?o:aC,c);h&&(u[h]=n(t[c],c))}else if(Object.keys(a.values||ps).includes(c)){const h=a.up(c);u[h]=n(t[c],c)}else{const h=c;u[h]=t[h]}return u},{})}return n(t)}function lC(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function uC(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function gs(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function ms(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=gs(e,n)||o,t&&(s=t(s,o,e)),s}function dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],h=u.theme,p=gs(h,o)||{};return Gn(u,c,m=>{let _=ms(p,s,m);return m===_&&typeof m=="string"&&(_=ms(p,s,`${t}${m==="default"?"":Lr(m)}`,m)),n===!1?_:{[n]:_}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:cr}:{},a.filterProps=[t],a}function cC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fC={m:"margin",p:"padding"},dC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hC=cC(e=>{if(e.length>2)if(vp[e])e=vp[e];else return[e];const[t,n]=e.split(""),o=fC[t],s=dC[n]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),ys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],vs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pC=[...ys,...vs];function ro(e,t,n,o){const s=gs(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof s=="string"?`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
185
+ */var Zl,lp;function GS(){if(lp)return Zl;lp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(u).map(function(m){return u[m]});if(h.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(m){p[m]=m}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zl=s()?Object.assign:function(a,u){for(var c,h=o(a),p,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var y in c)t.call(c,y)&&(h[y]=c[y]);if(e){p=e(c);for(var _=0;_<p.length;_++)n.call(c,p[_])&&(h[p[_]]=c[p[_]])}}return h},Zl}var Xl,up;function Ql(){if(up)return Xl;up=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xl=e,Xl}var eu,cp;function fp(){return cp||(cp=1,eu=Function.call.bind(Object.prototype.hasOwnProperty)),eu}var tu,dp;function HS(){if(dp)return tu;dp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ql(),n={},o=fp();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,h,p){if(process.env.NODE_ENV!=="production"){for(var m in a)if(o(a,m)){var y;try{if(typeof a[m]!="function"){var _=Error((h||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}y=a[m](u,m,h,c,null,t)}catch(E){y=E}if(y&&!(y instanceof Error)&&e((h||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in n)){n[y.message]=!0;var C=p?p():"";e("Failed "+c+" type: "+y.message+(C??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},tu=s,tu}var nu,hp;function YS(){if(hp)return nu;hp=1;var e=ap(),t=GS(),n=Ql(),o=fp(),s=HS(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var h="Warning: "+c;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function u(){return null}return nu=function(c,h){var p=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function y(q){var K=q&&(p&&q[p]||q[m]);if(typeof K=="function")return K}var _="<<anonymous>>",C={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:Q(),arrayOf:H,element:B(),elementType:D(),instanceOf:k,node:S(),objectOf:ae,oneOf:G,oneOfType:ie,shape:ne,exact:fe};function E(q,K){return q===K?q!==0||1/q===1/K:q!==q&&K!==K}function w(q,K){this.message=q,this.data=K&&typeof K=="object"?K:{},this.stack=""}w.prototype=Error.prototype;function $(q){if(process.env.NODE_ENV!=="production")var K={},Z=0;function R(ee,oe,ve,be,pe,Ce,tt){if(be=be||_,Ce=Ce||ve,tt!==n){if(h){var te=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw te.name="Invariant Violation",te}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var yt=be+":"+ve;!K[yt]&&Z<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ce+"` prop on `"+be+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[yt]=!0,Z++)}}return oe[ve]==null?ee?oe[ve]===null?new w("The "+pe+" `"+Ce+"` is marked as required "+("in `"+be+"`, but its value is `null`.")):new w("The "+pe+" `"+Ce+"` is marked as required in "+("`"+be+"`, but its value is `undefined`.")):null:q(oe,ve,be,pe,Ce)}var Y=R.bind(null,!1);return Y.isRequired=R.bind(null,!0),Y}function N(q){function K(Z,R,Y,ee,oe,ve){var be=Z[R],pe=we(be);if(pe!==q){var Ce=Le(be);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+Ce+"` supplied to `"+Y+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return $(K)}function Q(){return $(u)}function H(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var ve=Z[R];if(!Array.isArray(ve)){var be=we(ve);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an array."))}for(var pe=0;pe<ve.length;pe++){var Ce=q(ve,pe,Y,ee,oe+"["+pe+"]",n);if(Ce instanceof Error)return Ce}return null}return $(K)}function B(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!c(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement."))}return null}return $(q)}function D(){function q(K,Z,R,Y,ee){var oe=K[Z];if(!e.isValidElementType(oe)){var ve=we(oe);return new w("Invalid "+Y+" `"+ee+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected a single ReactElement type."))}return null}return $(q)}function k(q){function K(Z,R,Y,ee,oe){if(!(Z[R]instanceof q)){var ve=q.name||_,be=lt(Z[R]);return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected ")+("instance of `"+ve+"`."))}return null}return $(K)}function G(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function K(Z,R,Y,ee,oe){for(var ve=Z[R],be=0;be<q.length;be++)if(E(ve,q[be]))return null;var pe=JSON.stringify(q,function(tt,te){var yt=Le(te);return yt==="symbol"?String(te):te});return new w("Invalid "+ee+" `"+oe+"` of value `"+String(ve)+"` "+("supplied to `"+Y+"`, expected one of "+pe+"."))}return $(K)}function ae(q){function K(Z,R,Y,ee,oe){if(typeof q!="function")return new w("Property `"+oe+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type "+("`"+be+"` supplied to `"+Y+"`, expected an object."));for(var pe in ve)if(o(ve,pe)){var Ce=q(ve,pe,Y,ee,oe+"."+pe,n);if(Ce instanceof Error)return Ce}return null}return $(K)}function ie(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var K=0;K<q.length;K++){var Z=q[K];if(typeof Z!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ie(Z)+" at index "+K+"."),u}function R(Y,ee,oe,ve,be){for(var pe=[],Ce=0;Ce<q.length;Ce++){var tt=q[Ce],te=tt(Y,ee,oe,ve,be,n);if(te==null)return null;te.data&&o(te.data,"expectedType")&&pe.push(te.data.expectedType)}var yt=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new w("Invalid "+ve+" `"+be+"` supplied to "+("`"+oe+"`"+yt+"."))}return $(R)}function S(){function q(K,Z,R,Y,ee){return ye(K[Z])?null:new w("Invalid "+Y+" `"+ee+"` supplied to "+("`"+R+"`, expected a ReactNode."))}return $(q)}function U(q,K,Z,R,Y){return new w((q||"React class")+": "+K+" type `"+Z+"."+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function ne(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));for(var pe in q){var Ce=q[pe];if(typeof Ce!="function")return U(Y,ee,oe,pe,Le(Ce));var tt=Ce(ve,pe,Y,ee,oe+"."+pe,n);if(tt)return tt}return null}return $(K)}function fe(q){function K(Z,R,Y,ee,oe){var ve=Z[R],be=we(ve);if(be!=="object")return new w("Invalid "+ee+" `"+oe+"` of type `"+be+"` "+("supplied to `"+Y+"`, expected `object`."));var pe=t({},Z[R],q);for(var Ce in pe){var tt=q[Ce];if(o(q,Ce)&&typeof tt!="function")return U(Y,ee,oe,Ce,Le(tt));if(!tt)return new w("Invalid "+ee+" `"+oe+"` key `"+Ce+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(Z[R],null," ")+`
186
+ Valid keys: `+JSON.stringify(Object.keys(q),null," "));var te=tt(ve,Ce,Y,ee,oe+"."+Ce,n);if(te)return te}return null}return $(K)}function ye(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(ye);if(q===null||c(q))return!0;var K=y(q);if(K){var Z=K.call(q),R;if(K!==q.entries){for(;!(R=Z.next()).done;)if(!ye(R.value))return!1}else for(;!(R=Z.next()).done;){var Y=R.value;if(Y&&!ye(Y[1]))return!1}}else return!1;return!0;default:return!1}}function Me(q,K){return q==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function we(q){var K=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":Me(K,q)?"symbol":K}function Le(q){if(typeof q>"u"||q===null)return""+q;var K=we(q);if(K==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return K}function Ie(q){var K=Le(q);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function lt(q){return!q.constructor||!q.constructor.name?_:q.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},nu}var ru,pp;function qS(){if(pp)return ru;pp=1;var e=Ql();function t(){}function n(){}return n.resetWarningCache=t,ru=function(){function o(u,c,h,p,m,y){if(y!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}o.isRequired=o;function s(){return o}var a={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},ru}if(process.env.NODE_ENV!=="production"){var KS=ap(),JS=!0;Rl.exports=YS()(KS.isElement,JS)}else Rl.exports=qS()();var RS=Rl.exports;const Ne=ir(RS);function ur(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function gp(e,t=""){return e.displayName||e.name||t}function mp(e,t,n){const o=gp(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function ZS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return gp(e,"Component");if(typeof e=="object")switch(e.$$typeof){case hs.ForwardRef:return mp(e,e.render,"ForwardRef");case hs.Memo:return mp(e,e.type,"memo");default:return}}}function Lr(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function iu(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],u=t[s];if(!u)n[s]=a||{};else if(!a)n[s]=u;else{n[s]={...u};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const h=c;n[s][h]=iu(a[h],u[h])}}}else n[s]===void 0&&(n[s]=e[s])}return n}function XS(e,t,n=void 0){const o={};for(const s in e){const a=e[s];let u="",c=!0;for(let h=0;h<a.length;h+=1){const p=a[h];p&&(u+=(c===!0?"":" ")+t(p),c=!1,n&&n[p]&&(u+=" "+n[p]))}o[s]=u}return o}const yp=e=>e,QS=(()=>{let e=yp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yp}}})(),eC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ou(e,t,n="Mui"){const o=eC[t];return o?`${n}-${o}`:`${QS.generate(e)}-${t}`}function tC(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=ou(e,s,n)}),o}function nC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function ro(e,t){return t?Kt(e,t,{clone:!1}):e}const cr=process.env.NODE_ENV!=="production"?Ne.oneOfType([Ne.number,Ne.string,Ne.object,Ne.array]):{};function rC(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var u,c;const a=/min-width:\s*([0-9.]+)/;return+(((u=o.match(a))==null?void 0:u[1])||0)-+(((c=s.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function iC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function oC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
187
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:ur(18,`(${t})`));return null}const[,o,s]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function sC(e){const t=(a,u)=>a.replace("@media",u?`@container ${u}`:"@container");function n(a,u){a.up=(...c)=>t(e.breakpoints.up(...c),u),a.down=(...c)=>t(e.breakpoints.down(...c),u),a.between=(...c)=>t(e.breakpoints.between(...c),u),a.only=(...c)=>t(e.breakpoints.only(...c),u),a.not=(...c)=>{const h=t(e.breakpoints.not(...c),u);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const o={},s=a=>(n(o,a),o);return n(s),{...e,containerQueries:s}}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},vp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`},aC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:gs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Gn(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||vp;return t.reduce((u,c,h)=>(u[a.up(a.keys[h])]=n(t[h]),u),{})}if(typeof t=="object"){const a=o.breakpoints||vp;return Object.keys(t).reduce((u,c)=>{if(iC(a.keys,c)){const h=oC(o.containerQueries?o:aC,c);h&&(u[h]=n(t[c],c))}else if(Object.keys(a.values||gs).includes(c)){const h=a.up(c);u[h]=n(t[c],c)}else{const h=c;u[h]=t[h]}return u},{})}return n(t)}function lC(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function uC(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function ms(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function ys(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=ms(e,n)||o,t&&(s=t(s,o,e)),s}function dt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,a=u=>{if(u[t]==null)return null;const c=u[t],h=u.theme,p=ms(h,o)||{};return Gn(u,c,y=>{let _=ys(p,s,y);return y===_&&typeof y=="string"&&(_=ys(p,s,`${t}${y==="default"?"":Lr(y)}`,y)),n===!1?_:{[n]:_}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:cr}:{},a.filterProps=[t],a}function cC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const fC={m:"margin",p:"padding"},dC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hC=cC(e=>{if(e.length>2)if(bp[e])e=bp[e];else return[e];const[t,n]=e.split(""),o=fC[t],s=dC[n]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),vs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pC=[...vs,...bs];function io(e,t,n,o){const s=ms(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${a}.`),typeof s=="string"?`calc(${a} * ${s})`:s*a):Array.isArray(s)?a=>{if(typeof a=="string")return a;const u=Math.abs(a);process.env.NODE_ENV!=="production"&&(Number.isInteger(u)?u>s.length-1&&console.error([`MUI: The value provided (${u}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${u} > ${s.length-1}, you need to add the missing values.`].join(`
188
188
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
189
189
  `)));const c=s[u];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
190
- `)),()=>{})}function ou(e){return ro(e,"spacing",8,"spacing")}function io(e,t){return typeof t=="string"||t==null?t:e(t)}function gC(e,t){return n=>e.reduce((o,s)=>(o[s]=io(t,n),o),{})}function mC(e,t,n,o){if(!t.includes(n))return null;const s=hC(n),a=gC(s,o),u=e[n];return Gn(e,u,a)}function bp(e,t){const n=ou(e.theme);return Object.keys(e).map(o=>mC(e,t,o,n)).reduce(no,{})}function st(e){return bp(e,ys)}st.propTypes=process.env.NODE_ENV!=="production"?ys.reduce((e,t)=>(e[t]=cr,e),{}):{},st.filterProps=ys;function at(e){return bp(e,vs)}at.propTypes=process.env.NODE_ENV!=="production"?vs.reduce((e,t)=>(e[t]=cr,e),{}):{},at.filterProps=vs,process.env.NODE_ENV!=="production"&&pC.reduce((e,t)=>(e[t]=cr,e),{});function bs(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?no(s,t[a](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return dt({prop:e,themeKey:"borders",transform:t})}const yC=on("border",rn),vC=on("borderTop",rn),bC=on("borderRight",rn),_C=on("borderBottom",rn),TC=on("borderLeft",rn),wC=on("borderColor"),SC=on("borderTopColor"),CC=on("borderRightColor"),EC=on("borderBottomColor"),xC=on("borderLeftColor"),AC=on("outline",rn),OC=on("outlineColor"),_s=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ro(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:io(t,o)});return Gn(e,e.borderRadius,n)}return null};_s.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:cr}:{},_s.filterProps=["borderRadius"],bs(yC,vC,bC,_C,TC,wC,SC,CC,EC,xC,_s,AC,OC);const Ts=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ro(e.theme,"spacing",8,"gap"),n=o=>({gap:io(t,o)});return Gn(e,e.gap,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{gap:cr}:{},Ts.filterProps=["gap"];const ws=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ro(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:io(t,o)});return Gn(e,e.columnGap,n)}return null};ws.propTypes=process.env.NODE_ENV!=="production"?{columnGap:cr}:{},ws.filterProps=["columnGap"];const Ss=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ro(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:io(t,o)});return Gn(e,e.rowGap,n)}return null};Ss.propTypes=process.env.NODE_ENV!=="production"?{rowGap:cr}:{},Ss.filterProps=["rowGap"];const IC=dt({prop:"gridColumn"}),PC=dt({prop:"gridRow"}),$C=dt({prop:"gridAutoFlow"}),MC=dt({prop:"gridAutoColumns"}),FC=dt({prop:"gridAutoRows"}),DC=dt({prop:"gridTemplateColumns"}),kC=dt({prop:"gridTemplateRows"}),NC=dt({prop:"gridTemplateAreas"}),LC=dt({prop:"gridArea"});bs(Ts,ws,Ss,IC,PC,$C,MC,FC,DC,kC,NC,LC);function ui(e,t){return t==="grey"?t:e}const BC=dt({prop:"color",themeKey:"palette",transform:ui}),zC=dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ui}),UC=dt({prop:"backgroundColor",themeKey:"palette",transform:ui});bs(BC,zC,UC);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const jC=dt({prop:"width",transform:Jt}),su=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,h;const o=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||ps[n];return o?((h=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jt(n)}};return Gn(e,e.maxWidth,t)}return null};su.filterProps=["maxWidth"];const WC=dt({prop:"minWidth",transform:Jt}),VC=dt({prop:"height",transform:Jt}),GC=dt({prop:"maxHeight",transform:Jt}),HC=dt({prop:"minHeight",transform:Jt});dt({prop:"size",cssProperty:"width",transform:Jt}),dt({prop:"size",cssProperty:"height",transform:Jt});const YC=dt({prop:"boxSizing"});bs(jC,su,WC,VC,GC,HC,YC);const Cs={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_s},color:{themeKey:"palette",transform:ui},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ui},backgroundColor:{themeKey:"palette",transform:ui},p:{style:at},pt:{style:at},pr:{style:at},pb:{style:at},pl:{style:at},px:{style:at},py:{style:at},padding:{style:at},paddingTop:{style:at},paddingRight:{style:at},paddingBottom:{style:at},paddingLeft:{style:at},paddingX:{style:at},paddingY:{style:at},paddingInline:{style:at},paddingInlineStart:{style:at},paddingInlineEnd:{style:at},paddingBlock:{style:at},paddingBlockStart:{style:at},paddingBlockEnd:{style:at},m:{style:st},mt:{style:st},mr:{style:st},mb:{style:st},ml:{style:st},mx:{style:st},my:{style:st},margin:{style:st},marginTop:{style:st},marginRight:{style:st},marginBottom:{style:st},marginLeft:{style:st},marginX:{style:st},marginY:{style:st},marginInline:{style:st},marginInlineStart:{style:st},marginInlineEnd:{style:st},marginBlock:{style:st},marginBlockStart:{style:st},marginBlockEnd:{style:st},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ts},rowGap:{style:Ss},columnGap:{style:ws},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:su},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qC(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function KC(e,t){return typeof e=="function"?e(t):e}function JC(){function e(n,o,s,a){const u={[n]:o,theme:s},c=a[n];if(!c)return{[n]:o};const{cssProperty:h=n,themeKey:p,transform:y,style:m}=c;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[n]:o};const _=gs(s,p)||{};return m?m(u):Gn(u,o,E=>{let w=ms(_,y,E);return E===w&&typeof E=="string"&&(w=ms(_,y,`${n}${E==="default"?"":Lr(E)}`,E)),h===!1?w:{[h]:w}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Cs;function u(c){let h=c;if(typeof c=="function")h=c(s);else if(typeof c!="object")return c;if(!h)return null;const p=lC(s.breakpoints),y=Object.keys(p);let m=p;return Object.keys(h).forEach(_=>{const C=KC(h[_],s);if(C!=null)if(typeof C=="object")if(a[_])m=no(m,e(_,C,s,a));else{const E=Gn({theme:s},C,w=>({[_]:w}));qC(E,C)?m[_]=t({sx:C,theme:s}):m=no(m,E)}else m=no(m,e(_,C,s,a))}),rC(s,uC(y,m))}return Array.isArray(o)?o.map(u):u(o)}return t}const ci=JC();ci.filterProps=["sx"];function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},au.apply(null,arguments)}function RC(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZC={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};function _p(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XC=/[A-Z]|^ms/g,QC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tp=function(t){return t.charCodeAt(1)===45},wp=function(t){return t!=null&&typeof t!="boolean"},lu=_p(function(e){return Tp(e)?e:e.replace(XC,"-$&").toLowerCase()}),Sp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(QC,function(o,s,a){return Pn={name:s,styles:a,next:Pn},s})}return ZC[t]!==1&&!Tp(t)&&typeof n=="number"&&n!==0?n+"px":n};function oo(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Pn={name:s.name,styles:s.styles,next:Pn},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Pn={name:u.name,styles:u.styles,next:Pn},u=u.next;var c=a.styles+";";return c}return eE(e,t,n)}case"function":{if(e!==void 0){var h=Pn,p=n(e);return Pn=h,oo(e,t,p)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function eE(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=oo(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":wp(c)&&(o+=lu(a)+":"+Sp(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)wp(u[h])&&(o+=lu(a)+":"+Sp(a,u[h])+";");else{var p=oo(e,t,u);switch(a){case"animation":case"animationName":{o+=lu(a)+":"+p+";";break}default:o+=a+"{"+p+"}"}}}return o}var Cp=/label:\s*([^\s;{]+)\s*(;|$)/g,Pn;function Ep(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Pn=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=oo(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=oo(n,t,e[c]),o){var h=a;s+=h[c]}Cp.lastIndex=0;for(var p="",y;(y=Cp.exec(s))!==null;)p+="-"+y[1];var m=RC(s)+p;return{name:m,styles:s,next:Pn}}var tE=function(t){return t()},nE=Ft.useInsertionEffect?Ft.useInsertionEffect:!1,rE=nE||tE,iE=!0;function oE(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var xp=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||iE===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},sE=function(t,n,o){xp(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},aE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lE=_p(function(e){return aE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uE=lE,cE=function(t){return t!=="theme"},Ap=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uE:cE},Op=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},fE=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return xp(n,o,s),rE(function(){return sE(n,o,s)}),null},dE=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=Op(t,n,o),h=c||Ap(s),p=!h("as");return function(){var y=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{var _=y[0];m.push(_[0]);for(var C=y.length,E=1;E<C;E++)m.push(y[E],_[E])}var w=wf.withEmotionCache(function($,N,Q){var H=p&&$.as||s,B="",D=[],k=$;if($.theme==null){k={};for(var G in $)k[G]=$[G];k.theme=Ft.useContext(wf.ThemeContext)}typeof $.className=="string"?B=oE(N.registered,D,$.className):$.className!=null&&(B=$.className+" ");var ae=Ep(m.concat(D),N.registered,k);B+=N.key+"-"+ae.name,u!==void 0&&(B+=" "+u);var ie=p&&c===void 0?Ap(H):h,S={};for(var U in $)p&&U==="as"||ie(U)&&(S[U]=$[U]);return S.className=B,Q&&(S.ref=Q),Ft.createElement(Ft.Fragment,null,Ft.createElement(fE,{cache:N,serialized:ae,isStringTag:typeof H=="string"}),Ft.createElement(H,S))});return w.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=m,w.__emotion_forwardProp=c,Object.defineProperty(w,"toString",{value:function(){return"."+u}}),w.withComponent=function($,N){var Q=e($,au({},n,N,{shouldForwardProp:Op(w,N,!0)}));return Q.apply(void 0,m)},w}},hE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],uu=dE.bind(null);hE.forEach(function(e){uu[e]=uu(e)});/**
190
+ `)),()=>{})}function su(e){return io(e,"spacing",8,"spacing")}function oo(e,t){return typeof t=="string"||t==null?t:e(t)}function gC(e,t){return n=>e.reduce((o,s)=>(o[s]=oo(t,n),o),{})}function mC(e,t,n,o){if(!t.includes(n))return null;const s=hC(n),a=gC(s,o),u=e[n];return Gn(e,u,a)}function _p(e,t){const n=su(e.theme);return Object.keys(e).map(o=>mC(e,t,o,n)).reduce(ro,{})}function st(e){return _p(e,vs)}st.propTypes=process.env.NODE_ENV!=="production"?vs.reduce((e,t)=>(e[t]=cr,e),{}):{},st.filterProps=vs;function at(e){return _p(e,bs)}at.propTypes=process.env.NODE_ENV!=="production"?bs.reduce((e,t)=>(e[t]=cr,e),{}):{},at.filterProps=bs,process.env.NODE_ENV!=="production"&&pC.reduce((e,t)=>(e[t]=cr,e),{});function _s(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?ro(s,t[a](o)):s,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,s)=>Object.assign(o,s.propTypes),{}):{},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function rn(e){return typeof e!="number"?e:`${e}px solid`}function on(e,t){return dt({prop:e,themeKey:"borders",transform:t})}const yC=on("border",rn),vC=on("borderTop",rn),bC=on("borderRight",rn),_C=on("borderBottom",rn),TC=on("borderLeft",rn),wC=on("borderColor"),SC=on("borderTopColor"),CC=on("borderRightColor"),EC=on("borderBottomColor"),xC=on("borderLeftColor"),AC=on("outline",rn),OC=on("outlineColor"),Ts=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=io(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:oo(t,o)});return Gn(e,e.borderRadius,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:cr}:{},Ts.filterProps=["borderRadius"],_s(yC,vC,bC,_C,TC,wC,SC,CC,EC,xC,Ts,AC,OC);const ws=e=>{if(e.gap!==void 0&&e.gap!==null){const t=io(e.theme,"spacing",8,"gap"),n=o=>({gap:oo(t,o)});return Gn(e,e.gap,n)}return null};ws.propTypes=process.env.NODE_ENV!=="production"?{gap:cr}:{},ws.filterProps=["gap"];const Ss=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=io(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:oo(t,o)});return Gn(e,e.columnGap,n)}return null};Ss.propTypes=process.env.NODE_ENV!=="production"?{columnGap:cr}:{},Ss.filterProps=["columnGap"];const Cs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=io(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:oo(t,o)});return Gn(e,e.rowGap,n)}return null};Cs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:cr}:{},Cs.filterProps=["rowGap"];const IC=dt({prop:"gridColumn"}),PC=dt({prop:"gridRow"}),$C=dt({prop:"gridAutoFlow"}),MC=dt({prop:"gridAutoColumns"}),FC=dt({prop:"gridAutoRows"}),DC=dt({prop:"gridTemplateColumns"}),kC=dt({prop:"gridTemplateRows"}),NC=dt({prop:"gridTemplateAreas"}),LC=dt({prop:"gridArea"});_s(ws,Ss,Cs,IC,PC,$C,MC,FC,DC,kC,NC,LC);function ui(e,t){return t==="grey"?t:e}const BC=dt({prop:"color",themeKey:"palette",transform:ui}),zC=dt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ui}),UC=dt({prop:"backgroundColor",themeKey:"palette",transform:ui});_s(BC,zC,UC);function Jt(e){return e<=1&&e!==0?`${e*100}%`:e}const jC=dt({prop:"width",transform:Jt}),au=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,u,c,h;const o=((u=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:u[n])||gs[n];return o?((h=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Jt(n)}};return Gn(e,e.maxWidth,t)}return null};au.filterProps=["maxWidth"];const WC=dt({prop:"minWidth",transform:Jt}),VC=dt({prop:"height",transform:Jt}),GC=dt({prop:"maxHeight",transform:Jt}),HC=dt({prop:"minHeight",transform:Jt});dt({prop:"size",cssProperty:"width",transform:Jt}),dt({prop:"size",cssProperty:"height",transform:Jt});const YC=dt({prop:"boxSizing"});_s(jC,au,WC,VC,GC,HC,YC);const Es={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ts},color:{themeKey:"palette",transform:ui},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ui},backgroundColor:{themeKey:"palette",transform:ui},p:{style:at},pt:{style:at},pr:{style:at},pb:{style:at},pl:{style:at},px:{style:at},py:{style:at},padding:{style:at},paddingTop:{style:at},paddingRight:{style:at},paddingBottom:{style:at},paddingLeft:{style:at},paddingX:{style:at},paddingY:{style:at},paddingInline:{style:at},paddingInlineStart:{style:at},paddingInlineEnd:{style:at},paddingBlock:{style:at},paddingBlockStart:{style:at},paddingBlockEnd:{style:at},m:{style:st},mt:{style:st},mr:{style:st},mb:{style:st},ml:{style:st},mx:{style:st},my:{style:st},margin:{style:st},marginTop:{style:st},marginRight:{style:st},marginBottom:{style:st},marginLeft:{style:st},marginX:{style:st},marginY:{style:st},marginInline:{style:st},marginInlineStart:{style:st},marginInlineEnd:{style:st},marginBlock:{style:st},marginBlockStart:{style:st},marginBlockEnd:{style:st},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ws},rowGap:{style:Cs},columnGap:{style:Ss},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jt},maxWidth:{style:au},minWidth:{transform:Jt},height:{transform:Jt},maxHeight:{transform:Jt},minHeight:{transform:Jt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function qC(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function KC(e,t){return typeof e=="function"?e(t):e}function JC(){function e(n,o,s,a){const u={[n]:o,theme:s},c=a[n];if(!c)return{[n]:o};const{cssProperty:h=n,themeKey:p,transform:m,style:y}=c;if(o==null)return null;if(p==="typography"&&o==="inherit")return{[n]:o};const _=ms(s,p)||{};return y?y(u):Gn(u,o,E=>{let w=ys(_,m,E);return E===w&&typeof E=="string"&&(w=ys(_,m,`${n}${E==="default"?"":Lr(E)}`,E)),h===!1?w:{[h]:w}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Es;function u(c){let h=c;if(typeof c=="function")h=c(s);else if(typeof c!="object")return c;if(!h)return null;const p=lC(s.breakpoints),m=Object.keys(p);let y=p;return Object.keys(h).forEach(_=>{const C=KC(h[_],s);if(C!=null)if(typeof C=="object")if(a[_])y=ro(y,e(_,C,s,a));else{const E=Gn({theme:s},C,w=>({[_]:w}));qC(E,C)?y[_]=t({sx:C,theme:s}):y=ro(y,E)}else y=ro(y,e(_,C,s,a))}),rC(s,uC(m,y))}return Array.isArray(o)?o.map(u):u(o)}return t}const ci=JC();ci.filterProps=["sx"];function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lu.apply(null,arguments)}function RC(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ZC={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};function Tp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var XC=/[A-Z]|^ms/g,QC=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wp=function(t){return t.charCodeAt(1)===45},Sp=function(t){return t!=null&&typeof t!="boolean"},uu=Tp(function(e){return wp(e)?e:e.replace(XC,"-$&").toLowerCase()}),Cp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(QC,function(o,s,a){return Pn={name:s,styles:a,next:Pn},s})}return ZC[t]!==1&&!wp(t)&&typeof n=="number"&&n!==0?n+"px":n};function so(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return Pn={name:s.name,styles:s.styles,next:Pn},s.name;var a=n;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Pn={name:u.name,styles:u.styles,next:Pn},u=u.next;var c=a.styles+";";return c}return eE(e,t,n)}case"function":{if(e!==void 0){var h=Pn,p=n(e);return Pn=h,so(e,t,p)}break}}var m=n;if(t==null)return m;var y=t[m];return y!==void 0?y:m}function eE(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=so(e,t,n[s])+";";else for(var a in n){var u=n[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?o+=a+"{"+t[c]+"}":Sp(c)&&(o+=uu(a)+":"+Cp(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var h=0;h<u.length;h++)Sp(u[h])&&(o+=uu(a)+":"+Cp(a,u[h])+";");else{var p=so(e,t,u);switch(a){case"animation":case"animationName":{o+=uu(a)+":"+p+";";break}default:o+=a+"{"+p+"}"}}}return o}var Ep=/label:\s*([^\s;{]+)\s*(;|$)/g,Pn;function xp(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";Pn=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=so(n,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=so(n,t,e[c]),o){var h=a;s+=h[c]}Ep.lastIndex=0;for(var p="",m;(m=Ep.exec(s))!==null;)p+="-"+m[1];var y=RC(s)+p;return{name:y,styles:s,next:Pn}}var tE=function(t){return t()},nE=Ft.useInsertionEffect?Ft.useInsertionEffect:!1,rE=nE||tE,iE=!0;function oE(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var Ap=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||iE===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},sE=function(t,n,o){Ap(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},aE=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lE=Tp(function(e){return aE.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uE=lE,cE=function(t){return t!=="theme"},Op=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uE:cE},Ip=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},fE=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return Ap(n,o,s),rE(function(){return sE(n,o,s)}),null},dE=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,u;n!==void 0&&(a=n.label,u=n.target);var c=Ip(t,n,o),h=c||Op(s),p=!h("as");return function(){var m=arguments,y=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&y.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)y.push.apply(y,m);else{var _=m[0];y.push(_[0]);for(var C=m.length,E=1;E<C;E++)y.push(m[E],_[E])}var w=Sf.withEmotionCache(function($,N,Q){var H=p&&$.as||s,B="",D=[],k=$;if($.theme==null){k={};for(var G in $)k[G]=$[G];k.theme=Ft.useContext(Sf.ThemeContext)}typeof $.className=="string"?B=oE(N.registered,D,$.className):$.className!=null&&(B=$.className+" ");var ae=xp(y.concat(D),N.registered,k);B+=N.key+"-"+ae.name,u!==void 0&&(B+=" "+u);var ie=p&&c===void 0?Op(H):h,S={};for(var U in $)p&&U==="as"||ie(U)&&(S[U]=$[U]);return S.className=B,Q&&(S.ref=Q),Ft.createElement(Ft.Fragment,null,Ft.createElement(fE,{cache:N,serialized:ae,isStringTag:typeof H=="string"}),Ft.createElement(H,S))});return w.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=y,w.__emotion_forwardProp=c,Object.defineProperty(w,"toString",{value:function(){return"."+u}}),w.withComponent=function($,N){var Q=e($,lu({},n,N,{shouldForwardProp:Ip(w,N,!0)}));return Q.apply(void 0,y)},w}},hE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],cu=dE.bind(null);hE.forEach(function(e){cu[e]=cu(e)});/**
191
191
  * @mui/styled-engine v6.4.9
192
192
  *
193
193
  * @license MIT
194
194
  * This source code is licensed under the MIT license found in the
195
195
  * LICENSE file in the root directory of this source tree.
196
- */function pE(e,t){const n=uu(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
197
- `)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function gE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ip=[];function Pp(e){return Ip[0]=e,Ep(Ip)}const mE=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function yE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,a=mE(t),u=Object.keys(a);function c(_){return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n})`}function h(_){return`@media (max-width:${(typeof t[_]=="number"?t[_]:_)-o/100}${n})`}function p(_,C){const E=u.indexOf(C);return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n}) and (max-width:${(E!==-1&&typeof t[u[E]]=="number"?t[u[E]]:C)-o/100}${n})`}function y(_){return u.indexOf(_)+1<u.length?p(_,u[u.indexOf(_)+1]):c(_)}function m(_){const C=u.indexOf(_);return C===0?c(u[1]):C===u.length-1?h(u[C]):p(_,u[u.indexOf(_)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:h,between:p,only:y,not:m,unit:n,...s}}const vE={borderRadius:4};function $p(e=8,t=ou({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function bE(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Mp(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:a={},...u}=e,c=yE(n),h=$p(s);let p=Kt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:h,shape:{...vE,...a}},u);return p=sC(p),p.applyStyles=bE,p=t.reduce((y,m)=>Kt(y,m),p),p.unstable_sxConfig={...Cs,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(m){return ci({sx:m,theme:this})},p}function Fp(e){const{variants:t,...n}=e,o={variants:t,style:Pp(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=Pp(s.style))}),o}const _E=Mp();function cu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TE(e){return e?(t,n)=>n[e]:null}function wE(e,t,n){e.theme=xE(e.theme)?n:e.theme[t]||e.theme}function Es(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Es(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:s,...a}=n;o=a}return Dp(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Dp(e,t,n=[]){var s;let o;e:for(let a=0;a<t.length;a+=1){const u=t[a];if(typeof u.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(o))continue}else for(const c in u.props)if(e[c]!==u.props[c]&&((s=e.ownerState)==null?void 0:s[c])!==u.props[c])continue e;typeof u.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(o))):n.push(u.style)}return n}function SE(e={}){const{themeId:t,defaultTheme:n=_E,rootShouldForwardProp:o=cu,slotShouldForwardProp:s=cu}=e;function a(c){wE(c,t,n)}return(c,h={})=>{gE(c,D=>D.filter(k=>k!==ci));const{name:p,slot:y,skipVariantsResolver:m,skipSx:_,overridesResolver:C=TE(kp(y)),...E}=h,w=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,$=_||!1;let N=cu;y==="Root"||y==="root"?N=o:y?N=s:AE(c)&&(N=void 0);const Q=pE(c,{shouldForwardProp:N,label:EE(p,y),...E}),H=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(G){return Es(G,D)};if(Vn(D)){const k=Fp(D);return k.variants?function(ae){return Es(ae,k)}:k.style}return D},B=(...D)=>{const k=[],G=D.map(H),ae=[];if(k.push(a),p&&C&&ae.push(function(ne){var we,Le;const ye=(Le=(we=ne.theme.components)==null?void 0:we[p])==null?void 0:Le.styleOverrides;if(!ye)return null;const Me={};for(const Ie in ye)Me[Ie]=Es(ne,ye[Ie]);return C(ne,Me)}),p&&!w&&ae.push(function(ne){var Me,we;const fe=ne.theme,ye=(we=(Me=fe==null?void 0:fe.components)==null?void 0:Me[p])==null?void 0:we.variants;return ye?Dp(ne,ye):null}),$||ae.push(ci),Array.isArray(G[0])){const U=G.shift(),ne=new Array(k.length).fill(""),fe=new Array(ae.length).fill("");let ye;ye=[...ne,...U,...fe],ye.raw=[...ne,...U.raw,...fe],k.unshift(ye)}const ie=[...k,...G,...ae],S=Q(...ie);return c.muiName&&(S.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(S.displayName=CE(p,y,c)),S};return Q.withConfig&&(B.withConfig=Q.withConfig),B}}function CE(e,t,n){return e?`${e}${Lr(t||"")}`:`Styled(${ZS(n)})`}function EE(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${kp(t||"Root")}`),n}function xE(e){for(const t in e)return!1;return!0}function AE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function kp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function fu(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),nC(e,t,n)}function OE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function fr(e){if(e.type)return e;if(e.charAt(0)==="#")return fr(OE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
196
+ */function pE(e,t){const n=cu(e,t);return process.env.NODE_ENV!=="production"?(...o)=>{const s=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${s})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
197
+ `)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${s})(...args) API requires all its args to be defined.`),n(...o)}:n}function gE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Pp=[];function $p(e){return Pp[0]=e,xp(Pp)}const mE=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function yE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,a=mE(t),u=Object.keys(a);function c(_){return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n})`}function h(_){return`@media (max-width:${(typeof t[_]=="number"?t[_]:_)-o/100}${n})`}function p(_,C){const E=u.indexOf(C);return`@media (min-width:${typeof t[_]=="number"?t[_]:_}${n}) and (max-width:${(E!==-1&&typeof t[u[E]]=="number"?t[u[E]]:C)-o/100}${n})`}function m(_){return u.indexOf(_)+1<u.length?p(_,u[u.indexOf(_)+1]):c(_)}function y(_){const C=u.indexOf(_);return C===0?c(u[1]):C===u.length-1?h(u[C]):p(_,u[u.indexOf(_)+1]).replace("@media","@media not all and")}return{keys:u,values:a,up:c,down:h,between:p,only:m,not:y,unit:n,...s}}const vE={borderRadius:4};function Mp(e=8,t=su({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{const u=t(a);return typeof u=="number"?`${u}px`:u}).join(" "));return n.mui=!0,n}function bE(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function Fp(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:a={},...u}=e,c=yE(n),h=Mp(s);let p=Kt({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:h,shape:{...vE,...a}},u);return p=sC(p),p.applyStyles=bE,p=t.reduce((m,y)=>Kt(m,y),p),p.unstable_sxConfig={...Es,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(y){return ci({sx:y,theme:this})},p}function Dp(e){const{variants:t,...n}=e,o={variants:t,style:$p(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=$p(s.style))}),o}const _E=Fp();function fu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function TE(e){return e?(t,n)=>n[e]:null}function wE(e,t,n){e.theme=xE(e.theme)?n:e.theme[t]||e.theme}function xs(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>xs(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:s,...a}=n;o=a}return kp(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function kp(e,t,n=[]){var s;let o;e:for(let a=0;a<t.length;a+=1){const u=t[a];if(typeof u.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!u.props(o))continue}else for(const c in u.props)if(e[c]!==u.props[c]&&((s=e.ownerState)==null?void 0:s[c])!==u.props[c])continue e;typeof u.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(u.style(o))):n.push(u.style)}return n}function SE(e={}){const{themeId:t,defaultTheme:n=_E,rootShouldForwardProp:o=fu,slotShouldForwardProp:s=fu}=e;function a(c){wE(c,t,n)}return(c,h={})=>{gE(c,D=>D.filter(k=>k!==ci));const{name:p,slot:m,skipVariantsResolver:y,skipSx:_,overridesResolver:C=TE(Np(m)),...E}=h,w=y!==void 0?y:m&&m!=="Root"&&m!=="root"||!1,$=_||!1;let N=fu;m==="Root"||m==="root"?N=o:m?N=s:AE(c)&&(N=void 0);const Q=pE(c,{shouldForwardProp:N,label:EE(p,m),...E}),H=D=>{if(typeof D=="function"&&D.__emotion_real!==D)return function(G){return xs(G,D)};if(Vn(D)){const k=Dp(D);return k.variants?function(ae){return xs(ae,k)}:k.style}return D},B=(...D)=>{const k=[],G=D.map(H),ae=[];if(k.push(a),p&&C&&ae.push(function(ne){var we,Le;const ye=(Le=(we=ne.theme.components)==null?void 0:we[p])==null?void 0:Le.styleOverrides;if(!ye)return null;const Me={};for(const Ie in ye)Me[Ie]=xs(ne,ye[Ie]);return C(ne,Me)}),p&&!w&&ae.push(function(ne){var Me,we;const fe=ne.theme,ye=(we=(Me=fe==null?void 0:fe.components)==null?void 0:Me[p])==null?void 0:we.variants;return ye?kp(ne,ye):null}),$||ae.push(ci),Array.isArray(G[0])){const U=G.shift(),ne=new Array(k.length).fill(""),fe=new Array(ae.length).fill("");let ye;ye=[...ne,...U,...fe],ye.raw=[...ne,...U.raw,...fe],k.unshift(ye)}const ie=[...k,...G,...ae],S=Q(...ie);return c.muiName&&(S.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(S.displayName=CE(p,m,c)),S};return Q.withConfig&&(B.withConfig=Q.withConfig),B}}function CE(e,t,n){return e?`${e}${Lr(t||"")}`:`Styled(${ZS(n)})`}function EE(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Np(t||"Root")}`),n}function xE(e){for(const t in e)return!1;return!0}function AE(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Np(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function du(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),nC(e,t,n)}function OE(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function fr(e){if(e.type)return e;if(e.charAt(0)==="#")return fr(OE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
198
198
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ur(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${s}\` color space.
199
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ur(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:s}}const IE=e=>{const t=fr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},so=(e,t)=>{try{return IE(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function xs(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Np(e){e=fr(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),u=(p,y=(p+n/30)%12)=>s-a*Math.max(Math.min(y-3,9-y,1),-1);let c="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",h.push(t[3])),xs({type:c,values:h})}function du(e){e=fr(e);let t=e.type==="hsl"||e.type==="hsla"?fr(Np(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lp(e,t){const n=du(e),o=du(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function PE(e,t){return e=fr(e),t=fu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,xs(e)}function As(e,t,n){try{return PE(e,t)}catch{return e}}function hu(e,t){if(e=fr(e),t=fu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return xs(e)}function Ye(e,t,n){try{return hu(e,t)}catch{return e}}function pu(e,t){if(e=fr(e),t=fu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return xs(e)}function qe(e,t,n){try{return pu(e,t)}catch{return e}}function $E(e,t=.15){return du(e)>.5?hu(e,t):pu(e,t)}function Os(e,t,n){try{return $E(e,t)}catch{return e}}const ME=Ft.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object);function FE(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?ru(s.defaultProps,o):!s.styleOverrides&&!s.variants?ru(s,o):o}function DE({props:e,name:t}){const n=Ft.useContext(ME);return FE({props:e,name:t,theme:{components:n}})}const Bp={theme:void 0};function kE(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(Bp.theme=s.theme,a=Fp(e(Bp)),t=a,n=s.theme),a}}function NE(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const zp=(e,t,n,o=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},LE=(e,t,n)=>{function o(s,a=[],u=[]){Object.entries(s).forEach(([c,h])=>{(!n||n&&!n([...a,c]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?o(h,[...a,c],Array.isArray(h)?[...u,c]:u):t([...a,c],h,u))})}o(e)},BE=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function gu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},a={},u={};return LE(e,(c,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!o||!o(c,h))){const y=`--${n?`${n}-`:""}${c.join("-")}`,m=BE(c,h);Object.assign(s,{[y]:m}),zp(a,c,`var(${y})`,p),zp(u,c,`var(${y}, ${m})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function zE(e,t={}){const{getSelector:n=$,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:u,defaultColorScheme:c="light",...h}=e,{vars:p,css:y,varsWithDefaults:m}=gu(h,t);let _=m;const C={},{[c]:E,...w}=a;if(Object.entries(w||{}).forEach(([H,B])=>{const{vars:D,css:k,varsWithDefaults:G}=gu(B,t);_=Kt(_,G),C[H]={css:k,vars:D}}),E){const{css:H,vars:B,varsWithDefaults:D}=gu(E,t);_=Kt(_,D),C[c]={css:H,vars:B}}function $(H,B){var k,G;let D=s;if(s==="class"&&(D=".%s"),s==="data"&&(D="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(D=`[${s}="%s"]`),H){if(D==="media")return e.defaultColorScheme===H?":root":{[`@media (prefers-color-scheme: ${((G=(k=a[H])==null?void 0:k.palette)==null?void 0:G.mode)||H})`]:{":root":B}};if(D)return e.defaultColorScheme===H?`:root, ${D.replace("%s",String(H))}`:D.replace("%s",String(H))}return":root"}return{vars:_,generateThemeVars:()=>{let H={...p};return Object.entries(C).forEach(([,{vars:B}])=>{H=Kt(H,B)}),H},generateStyleSheets:()=>{var ae,ie;const H=[],B=e.defaultColorScheme||"light";function D(S,U){Object.keys(U).length&&H.push(typeof S=="string"?{[S]:{...U}}:S)}D(n(void 0,{...y}),y);const{[B]:k,...G}=C;if(k){const{css:S}=k,U=(ie=(ae=a[B])==null?void 0:ae.palette)==null?void 0:ie.mode,ne=!o&&U?{colorScheme:U,...S}:{...S};D(n(B,{...ne}),ne)}return Object.entries(G).forEach(([S,{css:U}])=>{var ye,Me;const ne=(Me=(ye=a[S])==null?void 0:ye.palette)==null?void 0:Me.mode,fe=!o&&ne?{colorScheme:ne,...U}:{...U};D(n(S,{...fe}),fe)}),H}}}function UE(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const ao={black:"#000",white:"#fff"},jE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},fi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},di={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},lo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},hi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Up(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ao.white,default:ao.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const WE=Up();function jp(){return{text:{primary:ao.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ao.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Wp=jp();function Vp(e,t,n,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=pu(e.main,s):t==="dark"&&(e.dark=hu(e.main,a)))}function VE(e="light"){return e==="dark"?{main:hi[200],light:hi[50],dark:hi[400]}:{main:hi[700],light:hi[400],dark:hi[800]}}function GE(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}function HE(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function YE(e="light"){return e==="dark"?{main:pi[400],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[500],dark:pi[900]}}function qE(e="light"){return e==="dark"?{main:gi[400],light:gi[300],dark:gi[700]}:{main:gi[800],light:gi[500],dark:gi[900]}}function KE(e="light"){return e==="dark"?{main:lo[400],light:lo[300],dark:lo[700]}:{main:"#ed6c02",light:lo[500],dark:lo[900]}}function mu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...s}=e,a=e.primary||VE(t),u=e.secondary||GE(t),c=e.error||HE(t),h=e.info||YE(t),p=e.success||qE(t),y=e.warning||KE(t);function m(w){const $=Lp(w,Wp.text.primary)>=n?Wp.text.primary:WE.text.primary;if(process.env.NODE_ENV!=="production"){const N=Lp(w,$);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${$} on ${w}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
199
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ur(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:s}}const IE=e=>{const t=fr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},ao=(e,t)=>{try{return IE(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function As(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Lp(e){e=fr(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),u=(p,m=(p+n/30)%12)=>s-a*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const h=[Math.round(u(0)*255),Math.round(u(8)*255),Math.round(u(4)*255)];return e.type==="hsla"&&(c+="a",h.push(t[3])),As({type:c,values:h})}function hu(e){e=fr(e);let t=e.type==="hsl"||e.type==="hsla"?fr(Lp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Bp(e,t){const n=hu(e),o=hu(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function PE(e,t){return e=fr(e),t=du(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,As(e)}function Os(e,t,n){try{return PE(e,t)}catch{return e}}function pu(e,t){if(e=fr(e),t=du(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return As(e)}function Ye(e,t,n){try{return pu(e,t)}catch{return e}}function gu(e,t){if(e=fr(e),t=du(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return As(e)}function qe(e,t,n){try{return gu(e,t)}catch{return e}}function $E(e,t=.15){return hu(e)>.5?pu(e,t):gu(e,t)}function Is(e,t,n){try{return $E(e,t)}catch{return e}}const ME=Ft.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object);function FE(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?iu(s.defaultProps,o):!s.styleOverrides&&!s.variants?iu(s,o):o}function DE({props:e,name:t}){const n=Ft.useContext(ME);return FE({props:e,name:t,theme:{components:n}})}const zp={theme:void 0};function kE(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(zp.theme=s.theme,a=Dp(e(zp)),t=a,n=s.theme),a}}function NE(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const Up=(e,t,n,o=[])=>{let s=e;t.forEach((a,u)=>{u===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},LE=(e,t,n)=>{function o(s,a=[],u=[]){Object.entries(s).forEach(([c,h])=>{(!n||n&&!n([...a,c]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?o(h,[...a,c],Array.isArray(h)?[...u,c]:u):t([...a,c],h,u))})}o(e)},BE=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function mu(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},a={},u={};return LE(e,(c,h,p)=>{if((typeof h=="string"||typeof h=="number")&&(!o||!o(c,h))){const m=`--${n?`${n}-`:""}${c.join("-")}`,y=BE(c,h);Object.assign(s,{[m]:y}),Up(a,c,`var(${m})`,p),Up(u,c,`var(${m}, ${y})`,p)}},c=>c[0]==="vars"),{css:s,vars:a,varsWithDefaults:u}}function zE(e,t={}){const{getSelector:n=$,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:u,defaultColorScheme:c="light",...h}=e,{vars:p,css:m,varsWithDefaults:y}=mu(h,t);let _=y;const C={},{[c]:E,...w}=a;if(Object.entries(w||{}).forEach(([H,B])=>{const{vars:D,css:k,varsWithDefaults:G}=mu(B,t);_=Kt(_,G),C[H]={css:k,vars:D}}),E){const{css:H,vars:B,varsWithDefaults:D}=mu(E,t);_=Kt(_,D),C[c]={css:H,vars:B}}function $(H,B){var k,G;let D=s;if(s==="class"&&(D=".%s"),s==="data"&&(D="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(D=`[${s}="%s"]`),H){if(D==="media")return e.defaultColorScheme===H?":root":{[`@media (prefers-color-scheme: ${((G=(k=a[H])==null?void 0:k.palette)==null?void 0:G.mode)||H})`]:{":root":B}};if(D)return e.defaultColorScheme===H?`:root, ${D.replace("%s",String(H))}`:D.replace("%s",String(H))}return":root"}return{vars:_,generateThemeVars:()=>{let H={...p};return Object.entries(C).forEach(([,{vars:B}])=>{H=Kt(H,B)}),H},generateStyleSheets:()=>{var ae,ie;const H=[],B=e.defaultColorScheme||"light";function D(S,U){Object.keys(U).length&&H.push(typeof S=="string"?{[S]:{...U}}:S)}D(n(void 0,{...m}),m);const{[B]:k,...G}=C;if(k){const{css:S}=k,U=(ie=(ae=a[B])==null?void 0:ae.palette)==null?void 0:ie.mode,ne=!o&&U?{colorScheme:U,...S}:{...S};D(n(B,{...ne}),ne)}return Object.entries(G).forEach(([S,{css:U}])=>{var ye,Me;const ne=(Me=(ye=a[S])==null?void 0:ye.palette)==null?void 0:Me.mode,fe=!o&&ne?{colorScheme:ne,...U}:{...U};D(n(S,{...fe}),fe)}),H}}}function UE(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const lo={black:"#000",white:"#fff"},jE={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},fi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},di={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},uo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},hi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},pi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},gi={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function jp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lo.white,default:lo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const WE=jp();function Wp(){return{text:{primary:lo.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lo.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Vp=Wp();function Gp(e,t,n,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=gu(e.main,s):t==="dark"&&(e.dark=pu(e.main,a)))}function VE(e="light"){return e==="dark"?{main:hi[200],light:hi[50],dark:hi[400]}:{main:hi[700],light:hi[400],dark:hi[800]}}function GE(e="light"){return e==="dark"?{main:fi[200],light:fi[50],dark:fi[400]}:{main:fi[500],light:fi[300],dark:fi[700]}}function HE(e="light"){return e==="dark"?{main:di[500],light:di[300],dark:di[700]}:{main:di[700],light:di[400],dark:di[800]}}function YE(e="light"){return e==="dark"?{main:pi[400],light:pi[300],dark:pi[700]}:{main:pi[700],light:pi[500],dark:pi[900]}}function qE(e="light"){return e==="dark"?{main:gi[400],light:gi[300],dark:gi[700]}:{main:gi[800],light:gi[500],dark:gi[900]}}function KE(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:"#ed6c02",light:uo[500],dark:uo[900]}}function yu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...s}=e,a=e.primary||VE(t),u=e.secondary||GE(t),c=e.error||HE(t),h=e.info||YE(t),p=e.success||qE(t),m=e.warning||KE(t);function y(w){const $=Bp(w,Vp.text.primary)>=n?Vp.text.primary:WE.text.primary;if(process.env.NODE_ENV!=="production"){const N=Bp(w,$);N<3&&console.error([`MUI: The contrast ratio of ${N}:1 for ${$} on ${w}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
200
200
  `))}return $}const _=({color:w,name:$,mainShade:N=500,lightShade:Q=300,darkShade:H=700})=>{if(w={...w},!w.main&&w[N]&&(w.main=w[N]),!w.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${$?` (${$})`:""} provided to augmentColor(color) is invalid.
201
201
  The color object needs to have a \`main\` property or a \`${N}\` property.`:ur(11,$?` (${$})`:"",N));if(typeof w.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${$?` (${$})`:""} provided to augmentColor(color) is invalid.
202
202
  \`color.main\` should be a string, but \`${JSON.stringify(w.main)}\` was provided instead.
@@ -211,17 +211,17 @@ const theme1 = createTheme({ palette: {
211
211
 
212
212
  const theme2 = createTheme({ palette: {
213
213
  primary: { main: green[500] },
214
- } });`:ur(12,$?` (${$})`:"",JSON.stringify(w.main)));return Vp(w,"light",Q,o),Vp(w,"dark",H,o),w.contrastText||(w.contrastText=m(w.main)),w};let C;return t==="light"?C=Up():t==="dark"&&(C=jp()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Kt({common:{...ao},mode:t,primary:_({color:a,name:"primary"}),secondary:_({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:c,name:"error"}),warning:_({color:y,name:"warning"}),info:_({color:h,name:"info"}),success:_({color:p,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:m,augmentColor:_,tonalOffset:o,...C},s)}function JE(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function RE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ZE(e){return Math.round(e*1e5)/1e5}const Gp={textTransform:"uppercase"},Hp='"Roboto", "Helvetica", "Arial", sans-serif';function XE(e,t){const{fontFamily:n=Hp,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:h=16,allVariants:p,pxToRem:y,...m}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const _=o/14,C=y||($=>`${$/h*_}rem`),E=($,N,Q,H,B)=>({fontFamily:n,fontWeight:$,fontSize:C(N),lineHeight:Q,...n===Hp?{letterSpacing:`${ZE(H/N)}em`}:{},...B,...p}),w={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(a,48,1.167,0),h4:E(a,34,1.235,.25),h5:E(a,24,1.334,0),h6:E(u,20,1.6,.15),subtitle1:E(a,16,1.75,.15),subtitle2:E(u,14,1.57,.1),body1:E(a,16,1.5,.15),body2:E(a,14,1.43,.15),button:E(u,14,1.75,.4,Gp),caption:E(a,12,1.66,.4),overline:E(a,12,2.66,1,Gp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:h,pxToRem:C,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...w},m,{clone:!1})}const QE=.2,ex=.14,tx=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${QE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ex})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tx})`].join(",")}const nx=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],rx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ix={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Yp(e){return`${Math.round(e)}ms`}function ox(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sx(e){const t={...rx,...e.easing},n={...ix,...e.duration};return{getAutoHeightDuration:ox,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:h=0,...p}=a;if(process.env.NODE_ENV!=="production"){const y=_=>typeof _=="string",m=_=>!Number.isNaN(parseFloat(_));!y(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(u)&&!y(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),y(c)||console.error('MUI: Argument "easing" must be a string.'),!m(h)&&!y(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
215
- `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof u=="string"?u:Yp(u)} ${c} ${typeof h=="string"?h:Yp(h)}`).join(",")},...e,easing:t,duration:n}}const ax={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lx(e){return Vn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function qp(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let a=0;a<s.length;a++){const[u,c]=s[a];!lx(c)||u.startsWith("unstable_")?delete o[u]:Vn(c)&&(o[u]={...c},n(o[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
214
+ } });`:ur(12,$?` (${$})`:"",JSON.stringify(w.main)));return Gp(w,"light",Q,o),Gp(w,"dark",H,o),w.contrastText||(w.contrastText=y(w.main)),w};let C;return t==="light"?C=jp():t==="dark"&&(C=Wp()),process.env.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Kt({common:{...lo},mode:t,primary:_({color:a,name:"primary"}),secondary:_({color:u,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:c,name:"error"}),warning:_({color:m,name:"warning"}),info:_({color:h,name:"info"}),success:_({color:p,name:"success"}),grey:jE,contrastThreshold:n,getContrastText:y,augmentColor:_,tonalOffset:o,...C},s)}function JE(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function RE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function ZE(e){return Math.round(e*1e5)/1e5}const Hp={textTransform:"uppercase"},Yp='"Roboto", "Helvetica", "Arial", sans-serif';function XE(e,t){const{fontFamily:n=Yp,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:h=16,allVariants:p,pxToRem:m,...y}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof h!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const _=o/14,C=m||($=>`${$/h*_}rem`),E=($,N,Q,H,B)=>({fontFamily:n,fontWeight:$,fontSize:C(N),lineHeight:Q,...n===Yp?{letterSpacing:`${ZE(H/N)}em`}:{},...B,...p}),w={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(a,48,1.167,0),h4:E(a,34,1.235,.25),h5:E(a,24,1.334,0),h6:E(u,20,1.6,.15),subtitle1:E(a,16,1.75,.15),subtitle2:E(u,14,1.57,.1),body1:E(a,16,1.5,.15),body2:E(a,14,1.43,.15),button:E(u,14,1.75,.4,Hp),caption:E(a,12,1.66,.4),overline:E(a,12,2.66,1,Hp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kt({htmlFontSize:h,pxToRem:C,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:u,fontWeightBold:c,...w},y,{clone:!1})}const QE=.2,ex=.14,tx=.12;function et(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${QE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ex})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tx})`].join(",")}const nx=["none",et(0,2,1,-1,0,1,1,0,0,1,3,0),et(0,3,1,-2,0,2,2,0,0,1,5,0),et(0,3,3,-2,0,3,4,0,0,1,8,0),et(0,2,4,-1,0,4,5,0,0,1,10,0),et(0,3,5,-1,0,5,8,0,0,1,14,0),et(0,3,5,-1,0,6,10,0,0,1,18,0),et(0,4,5,-2,0,7,10,1,0,2,16,1),et(0,5,5,-3,0,8,10,1,0,3,14,2),et(0,5,6,-3,0,9,12,1,0,3,16,2),et(0,6,6,-3,0,10,14,1,0,4,18,3),et(0,6,7,-4,0,11,15,1,0,4,20,3),et(0,7,8,-4,0,12,17,2,0,5,22,4),et(0,7,8,-4,0,13,19,2,0,5,24,4),et(0,7,9,-4,0,14,21,2,0,5,26,4),et(0,8,9,-5,0,15,22,2,0,6,28,5),et(0,8,10,-5,0,16,24,2,0,6,30,5),et(0,8,11,-5,0,17,26,2,0,6,32,5),et(0,9,11,-5,0,18,28,2,0,7,34,6),et(0,9,12,-6,0,19,29,2,0,7,36,6),et(0,10,13,-6,0,20,31,3,0,8,38,7),et(0,10,13,-6,0,21,33,3,0,8,40,7),et(0,10,14,-6,0,22,35,3,0,8,42,7),et(0,11,14,-7,0,23,36,3,0,9,44,8),et(0,11,15,-7,0,24,38,3,0,9,46,8)],rx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ix={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qp(e){return`${Math.round(e)}ms`}function ox(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function sx(e){const t={...rx,...e.easing},n={...ix,...e.duration};return{getAutoHeightDuration:ox,create:(s=["all"],a={})=>{const{duration:u=n.standard,easing:c=t.easeInOut,delay:h=0,...p}=a;if(process.env.NODE_ENV!=="production"){const m=_=>typeof _=="string",y=_=>!Number.isNaN(parseFloat(_));!m(s)&&!Array.isArray(s)&&console.error('MUI: Argument "props" must be a string or Array.'),!y(u)&&!m(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!y(h)&&!m(h)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
215
+ `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(s)?s:[s]).map(m=>`${m} ${typeof u=="string"?u:qp(u)} ${c} ${typeof h=="string"?h:qp(h)}`).join(",")},...e,easing:t,duration:n}}const ax={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lx(e){return Vn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Kp(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let a=0;a<s.length;a++){const[u,c]=s[a];!lx(c)||u.startsWith("unstable_")?delete o[u]:Vn(c)&&(o[u]={...c},n(o[u]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
216
216
 
217
217
  const theme = ${JSON.stringify(t,null,2)};
218
218
 
219
219
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
220
220
  theme.transitions = createTransitions(theme.transitions || {});
221
221
 
222
- export default theme;`}function yu(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ur(20));const y=mu(a),m=Mp(e);let _=Kt(m,{mixins:RE(m.breakpoints,o),palette:y,shadows:nx.slice(),typography:XE(y,c),transitions:sx(u),zIndex:{...ax}});if(_=Kt(_,p),_=t.reduce((C,E)=>Kt(C,E),_),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(w,$)=>{let N;for(N in w){const Q=w[N];if(C.includes(N)&&Object.keys(Q).length>0){if(process.env.NODE_ENV!=="production"){const H=iu("",N);console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${H}' syntax:`,JSON.stringify({root:{[`&.${H}`]:Q}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
223
- `))}w[N]={}}}};Object.keys(_.components).forEach(w=>{const $=_.components[w].styleOverrides;$&&w.startsWith("Mui")&&E($,w)})}return _.unstable_sxConfig={...Cs,...p==null?void 0:p.unstable_sxConfig},_.unstable_sx=function(E){return ci({sx:E,theme:this})},_.toRuntimeSource=qp,_}function ux(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const cx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ux(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Kp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Jp(e){return e==="dark"?cx:[]}function fx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,a=mu(t);return{palette:a,opacity:{...Kp(a.mode),...n},overlays:o||Jp(a.mode),...s}}function dx(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],px=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return hx(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:u}}:a?{[a.replace("%s",t)]:u,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...u}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function gx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function z(e,t,n){!e[t]&&n&&(e[t]=n)}function uo(e){return typeof e!="string"||!e.startsWith("hsl")?e:Np(e)}function Hn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=so(uo(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
224
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const $n=e=>{try{return e()}catch{}},yx=(e="mui")=>NE(e);function vu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=fx({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...u}=yu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...Kp(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Jp(s)},u}function vx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:u=dx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:h=":root",...p}=e,y=Object.keys(n)[0],m=o||(n.light&&y!=="light"?"light":y),_=yx(a),{[m]:C,light:E,dark:w,...$}=n,N={...$};let Q=C;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(Q=!0),!Q)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${m}\` option is either missing or invalid.`:ur(21,m));const H=vu(N,Q,p,m);E&&!N.light&&vu(N,E,void 0,"light"),w&&!N.dark&&vu(N,w,void 0,"dark");let B={defaultColorScheme:m,...H,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:h,getCssVar:_,colorSchemes:N,font:{...JE(H.typography),...H.font},spacing:mx(p.spacing)};Object.keys(B.colorSchemes).forEach(ie=>{const S=B.colorSchemes[ie].palette,U=ne=>{const fe=ne.split("-"),ye=fe[1],Me=fe[2];return _(ne,S[ye][Me])};if(S.mode==="light"&&(z(S.common,"background","#fff"),z(S.common,"onBackground","#000")),S.mode==="dark"&&(z(S.common,"background","#000"),z(S.common,"onBackground","#fff")),gx(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){z(S.Alert,"errorColor",Ye(S.error.light,.6)),z(S.Alert,"infoColor",Ye(S.info.light,.6)),z(S.Alert,"successColor",Ye(S.success.light,.6)),z(S.Alert,"warningColor",Ye(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-main")),z(S.Alert,"infoFilledBg",U("palette-info-main")),z(S.Alert,"successFilledBg",U("palette-success-main")),z(S.Alert,"warningFilledBg",U("palette-warning-main")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.main))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.main))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.main))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.main))),z(S.Alert,"errorStandardBg",qe(S.error.light,.9)),z(S.Alert,"infoStandardBg",qe(S.info.light,.9)),z(S.Alert,"successStandardBg",qe(S.success.light,.9)),z(S.Alert,"warningStandardBg",qe(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-100")),z(S.Avatar,"defaultBg",U("palette-grey-400")),z(S.Button,"inheritContainedBg",U("palette-grey-300")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-A100")),z(S.Chip,"defaultBorder",U("palette-grey-400")),z(S.Chip,"defaultAvatarColor",U("palette-grey-700")),z(S.Chip,"defaultIconColor",U("palette-grey-700")),z(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),z(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),z(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),z(S.LinearProgress,"primaryBg",qe(S.primary.main,.62)),z(S.LinearProgress,"secondaryBg",qe(S.secondary.main,.62)),z(S.LinearProgress,"errorBg",qe(S.error.main,.62)),z(S.LinearProgress,"infoBg",qe(S.info.main,.62)),z(S.LinearProgress,"successBg",qe(S.success.main,.62)),z(S.LinearProgress,"warningBg",qe(S.warning.main,.62)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.11)`),z(S.Slider,"primaryTrack",qe(S.primary.main,.62)),z(S.Slider,"secondaryTrack",qe(S.secondary.main,.62)),z(S.Slider,"errorTrack",qe(S.error.main,.62)),z(S.Slider,"infoTrack",qe(S.info.main,.62)),z(S.Slider,"successTrack",qe(S.success.main,.62)),z(S.Slider,"warningTrack",qe(S.warning.main,.62));const ne=Os(S.background.default,.8);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Os(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-400")),z(S.StepContent,"border",U("palette-grey-400")),z(S.Switch,"defaultColor",U("palette-common-white")),z(S.Switch,"defaultDisabledColor",U("palette-grey-100")),z(S.Switch,"primaryDisabledColor",qe(S.primary.main,.62)),z(S.Switch,"secondaryDisabledColor",qe(S.secondary.main,.62)),z(S.Switch,"errorDisabledColor",qe(S.error.main,.62)),z(S.Switch,"infoDisabledColor",qe(S.info.main,.62)),z(S.Switch,"successDisabledColor",qe(S.success.main,.62)),z(S.Switch,"warningDisabledColor",qe(S.warning.main,.62)),z(S.TableCell,"border",qe(As(S.divider,1),.88)),z(S.Tooltip,"bg",As(S.grey[700],.92))}if(S.mode==="dark"){z(S.Alert,"errorColor",qe(S.error.light,.6)),z(S.Alert,"infoColor",qe(S.info.light,.6)),z(S.Alert,"successColor",qe(S.success.light,.6)),z(S.Alert,"warningColor",qe(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-dark")),z(S.Alert,"infoFilledBg",U("palette-info-dark")),z(S.Alert,"successFilledBg",U("palette-success-dark")),z(S.Alert,"warningFilledBg",U("palette-warning-dark")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.dark))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.dark))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.dark))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.dark))),z(S.Alert,"errorStandardBg",Ye(S.error.light,.9)),z(S.Alert,"infoStandardBg",Ye(S.info.light,.9)),z(S.Alert,"successStandardBg",Ye(S.success.light,.9)),z(S.Alert,"warningStandardBg",Ye(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-900")),z(S.AppBar,"darkBg",U("palette-background-paper")),z(S.AppBar,"darkColor",U("palette-text-primary")),z(S.Avatar,"defaultBg",U("palette-grey-600")),z(S.Button,"inheritContainedBg",U("palette-grey-800")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-700")),z(S.Chip,"defaultBorder",U("palette-grey-700")),z(S.Chip,"defaultAvatarColor",U("palette-grey-300")),z(S.Chip,"defaultIconColor",U("palette-grey-300")),z(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),z(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),z(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),z(S.LinearProgress,"primaryBg",Ye(S.primary.main,.5)),z(S.LinearProgress,"secondaryBg",Ye(S.secondary.main,.5)),z(S.LinearProgress,"errorBg",Ye(S.error.main,.5)),z(S.LinearProgress,"infoBg",Ye(S.info.main,.5)),z(S.LinearProgress,"successBg",Ye(S.success.main,.5)),z(S.LinearProgress,"warningBg",Ye(S.warning.main,.5)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.13)`),z(S.Slider,"primaryTrack",Ye(S.primary.main,.5)),z(S.Slider,"secondaryTrack",Ye(S.secondary.main,.5)),z(S.Slider,"errorTrack",Ye(S.error.main,.5)),z(S.Slider,"infoTrack",Ye(S.info.main,.5)),z(S.Slider,"successTrack",Ye(S.success.main,.5)),z(S.Slider,"warningTrack",Ye(S.warning.main,.5));const ne=Os(S.background.default,.98);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Os(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-600")),z(S.StepContent,"border",U("palette-grey-600")),z(S.Switch,"defaultColor",U("palette-grey-300")),z(S.Switch,"defaultDisabledColor",U("palette-grey-600")),z(S.Switch,"primaryDisabledColor",Ye(S.primary.main,.55)),z(S.Switch,"secondaryDisabledColor",Ye(S.secondary.main,.55)),z(S.Switch,"errorDisabledColor",Ye(S.error.main,.55)),z(S.Switch,"infoDisabledColor",Ye(S.info.main,.55)),z(S.Switch,"successDisabledColor",Ye(S.success.main,.55)),z(S.Switch,"warningDisabledColor",Ye(S.warning.main,.55)),z(S.TableCell,"border",Ye(As(S.divider,1),.68)),z(S.Tooltip,"bg",As(S.grey[700],.92))}Hn(S.background,"default"),Hn(S.background,"paper"),Hn(S.common,"background"),Hn(S.common,"onBackground"),Hn(S,"divider"),Object.keys(S).forEach(ne=>{const fe=S[ne];ne!=="tonalOffset"&&fe&&typeof fe=="object"&&(fe.main&&z(S[ne],"mainChannel",so(uo(fe.main))),fe.light&&z(S[ne],"lightChannel",so(uo(fe.light))),fe.dark&&z(S[ne],"darkChannel",so(uo(fe.dark))),fe.contrastText&&z(S[ne],"contrastTextChannel",so(uo(fe.contrastText))),ne==="text"&&(Hn(S[ne],"primary"),Hn(S[ne],"secondary")),ne==="action"&&(fe.active&&Hn(S[ne],"active"),fe.selected&&Hn(S[ne],"selected")))})}),B=t.reduce((ie,S)=>Kt(ie,S),B);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:px(B)},{vars:k,generateThemeVars:G,generateStyleSheets:ae}=zE(B,D);return B.vars=k,Object.entries(B.colorSchemes[B.defaultColorScheme]).forEach(([ie,S])=>{B[ie]=S}),B.generateThemeVars=G,B.generateStyleSheets=ae,B.generateSpacing=function(){return $p(p.spacing,ou(this))},B.getColorSchemeSelector=UE(c),B.spacing=B.generateSpacing(),B.shouldSkipGeneratingVar=u,B.unstable_sxConfig={...Cs,...p==null?void 0:p.unstable_sxConfig},B.unstable_sx=function(S){return ci({sx:S,theme:this})},B.toRuntimeSource=qp,B}function Rp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mu({...n===!0?{}:n.palette,mode:t})})}function bx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",h=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return yu(e,...t);let y=n;"palette"in e||p[c]&&(p[c]!==!0?y=p[c].palette:c==="dark"&&(y={mode:"dark"}));const m=yu({...e,palette:y},...t);return m.defaultColorScheme=c,m.colorSchemes=p,m.palette.mode==="light"&&(m.colorSchemes.light={...p.light!==!0&&p.light,palette:m.palette},Rp(m,"dark",p.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:m.palette},Rp(m,"light",p.light)),m}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),vx({...u,colorSchemes:p,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const _x=bx(),Tx="$$material";function wx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sx=SE({themeId:Tx,defaultTheme:_x,rootShouldForwardProp:e=>wx(e)&&e!=="classes"}),Cx=kE;process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object.isRequired);function Ex(e){return DE(e)}function xx(e){return iu("MuiSvgIcon",e)}tC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ax=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Lr(t)}`,`fontSize${Lr(n)}`]};return XS(s,xx,o)},Ox=Sx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Lr(n.color)}`],t[`fontSize${Lr(n.fontSize)}`]]}})(Cx(({theme:e})=>{var t,n,o,s,a,u,c,h,p,y,m,_,C,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:h.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:y.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var $,N;return{props:{color:w},style:{color:(N=($=(e.vars??e).palette)==null?void 0:$[w])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(_=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(E=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Is=Ft.forwardRef(function(t,n){const o=Ex({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:y=!1,titleAccess:m,viewBox:_="0 0 24 24",...C}=o,E=Ft.isValidElement(s)&&s.type==="svg",w={...o,color:u,component:c,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:_,hasSvgAsChild:E},$={};y||($.viewBox=_);const N=Ax(w);return d.jsxs(Ox,{as:c,className:Pr(N.root,a),focusable:"false",color:p,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...$,...C,...E&&s.props,ownerState:w,children:[E?s.props.children:s,m?d.jsx("title",{children:m}):null]})});process.env.NODE_ENV!=="production"&&(Is.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ne.string]),component:Ne.elementType,fontSize:Ne.oneOfType([Ne.oneOf(["inherit","large","medium","small"]),Ne.string]),htmlColor:Ne.string,inheritViewBox:Ne.bool,shapeRendering:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),titleAccess:Ne.string,viewBox:Ne.string}),Is.muiName="SvgIcon";function bu(e,t){function n(o,s){return d.jsx(Is,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Is.muiName,Ft.memo(Ft.forwardRef(n))}const Ix=bu(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),Px=bu(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),$x=bu(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");function Mx(){this.__data__=[],this.size=0}var Fx=Mx;function Dx(e,t){return e===t||e!==e&&t!==t}var Ps=Dx,kx=Ps;function Nx(e,t){for(var n=e.length;n--;)if(kx(e[n][0],t))return n;return-1}var $s=Nx,Lx=$s,Bx=Array.prototype,zx=Bx.splice;function Ux(e){var t=this.__data__,n=Lx(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():zx.call(t,n,1),--this.size,!0}var jx=Ux,Wx=$s;function Vx(e){var t=this.__data__,n=Wx(t,e);return n<0?void 0:t[n][1]}var Gx=Vx,Hx=$s;function Yx(e){return Hx(this.__data__,e)>-1}var qx=Yx,Kx=$s;function Jx(e,t){var n=this.__data__,o=Kx(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var Rx=Jx,Zx=Fx,Xx=jx,Qx=Gx,eA=qx,tA=Rx;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}mi.prototype.clear=Zx,mi.prototype.delete=Xx,mi.prototype.get=Qx,mi.prototype.has=eA,mi.prototype.set=tA;var Ms=mi,nA=Ms;function rA(){this.__data__=new nA,this.size=0}var iA=rA;function oA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var sA=oA;function aA(e){return this.__data__.get(e)}var lA=aA;function uA(e){return this.__data__.has(e)}var cA=uA,fA=kr,dA=fA(Object,"create"),Fs=dA,Zp=Fs;function hA(){this.__data__=Zp?Zp(null):{},this.size=0}var pA=hA;function gA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mA=gA,yA=Fs,vA="__lodash_hash_undefined__",bA=Object.prototype,_A=bA.hasOwnProperty;function TA(e){var t=this.__data__;if(yA){var n=t[e];return n===vA?void 0:n}return _A.call(t,e)?t[e]:void 0}var wA=TA,SA=Fs,CA=Object.prototype,EA=CA.hasOwnProperty;function xA(e){var t=this.__data__;return SA?t[e]!==void 0:EA.call(t,e)}var AA=xA,OA=Fs,IA="__lodash_hash_undefined__";function PA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=OA&&t===void 0?IA:t,this}var $A=PA,MA=pA,FA=mA,DA=wA,kA=AA,NA=$A;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}yi.prototype.clear=MA,yi.prototype.delete=FA,yi.prototype.get=DA,yi.prototype.has=kA,yi.prototype.set=NA;var LA=yi,Xp=LA,BA=Ms,zA=Fl;function UA(){this.size=0,this.__data__={hash:new Xp,map:new(zA||BA),string:new Xp}}var jA=UA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VA=WA,GA=VA;function HA(e,t){var n=e.__data__;return GA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ds=HA,YA=Ds;function qA(e){var t=YA(this,e).delete(e);return this.size-=t?1:0,t}var KA=qA,JA=Ds;function RA(e){return JA(this,e).get(e)}var ZA=RA,XA=Ds;function QA(e){return XA(this,e).has(e)}var eO=QA,tO=Ds;function nO(e,t){var n=tO(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var rO=nO,iO=jA,oO=KA,sO=ZA,aO=eO,lO=rO;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}vi.prototype.clear=iO,vi.prototype.delete=oO,vi.prototype.get=sO,vi.prototype.has=aO,vi.prototype.set=lO;var Qp=vi,uO=Ms,cO=Fl,fO=Qp,dO=200;function hO(e,t){var n=this.__data__;if(n instanceof uO){var o=n.__data__;if(!cO||o.length<dO-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new fO(o)}return n.set(e,t),this.size=n.size,this}var pO=hO,gO=Ms,mO=iA,yO=sA,vO=lA,bO=cA,_O=pO;function bi(e){var t=this.__data__=new gO(e);this.size=t.size}bi.prototype.clear=mO,bi.prototype.delete=yO,bi.prototype.get=vO,bi.prototype.has=bO,bi.prototype.set=_O;var TO=bi,wO=kr,SO=function(){try{var e=wO(Object,"defineProperty");return e({},"",{}),e}catch{}}(),eg=SO,tg=eg;function CO(e,t,n){t=="__proto__"&&tg?tg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _u=CO,EO=_u,xO=Ps;function AO(e,t,n){(n!==void 0&&!xO(e[t],n)||n===void 0&&!(t in e))&&EO(e,t,n)}var ng=AO;function OO(e){return function(t,n,o){for(var s=-1,a=Object(t),u=o(t),c=u.length;c--;){var h=u[e?c:++s];if(n(a[h],h,a)===!1)break}return t}}var IO=OO,PO=IO,$O=PO(),MO=$O,ks={exports:{}};ks.exports,function(e,t){var n=bn,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a?n.Buffer:void 0,c=u?u.allocUnsafe:void 0;function h(p,y){if(y)return p.slice();var m=p.length,_=c?c(m):new p.constructor(m);return p.copy(_),_}e.exports=h}(ks,ks.exports);var FO=ks.exports,DO=bn,kO=DO.Uint8Array,NO=kO,rg=NO;function LO(e){var t=new e.constructor(e.byteLength);return new rg(t).set(new rg(e)),t}var BO=LO,zO=BO;function UO(e,t){var n=t?zO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jO=UO;function WO(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var VO=WO,GO=Wn,ig=Object.create,HO=function(){function e(){}return function(t){if(!GO(t))return{};if(ig)return ig(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),YO=HO,qO=hh,KO=qO(Object.getPrototypeOf,Object),og=KO,JO=YO,RO=og,ZO=rs;function XO(e){return typeof e.constructor=="function"&&!ZO(e)?JO(RO(e)):{}}var QO=XO,e2=os,t2=ai;function n2(e){return t2(e)&&e2(e)}var sg=n2,r2=si,i2=og,o2=ai,s2="[object Object]",a2=Function.prototype,l2=Object.prototype,ag=a2.toString,u2=l2.hasOwnProperty,c2=ag.call(Object);function f2(e){if(!o2(e)||r2(e)!=s2)return!1;var t=i2(e);if(t===null)return!0;var n=u2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ag.call(n)==c2}var d2=f2;function h2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var lg=h2,p2=_u,g2=Ps,m2=Object.prototype,y2=m2.hasOwnProperty;function v2(e,t,n){var o=e[t];(!(y2.call(e,t)&&g2(o,n))||n===void 0&&!(t in e))&&p2(e,t,n)}var b2=v2,_2=b2,T2=_u;function w2(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],h=o?o(n[c],e[c],c,n,e):void 0;h===void 0&&(h=e[c]),s?T2(n,c,h):_2(n,c,h)}return n}var S2=w2;function C2(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var E2=C2,x2=9007199254740991,A2=/^(?:0|[1-9]\d*)$/;function O2(e,t){var n=typeof e;return t=t??x2,!!t&&(n=="number"||n!="symbol"&&A2.test(e))&&e>-1&&e%1==0&&e<t}var ug=O2,I2=E2,P2=is,$2=eo,M2=zl,F2=ug,D2=Ul,k2=Object.prototype,N2=k2.hasOwnProperty;function L2(e,t){var n=$2(e),o=!n&&P2(e),s=!n&&!o&&M2(e),a=!n&&!o&&!s&&D2(e),u=n||o||s||a,c=u?I2(e.length,String):[],h=c.length;for(var p in e)(t||N2.call(e,p))&&!(u&&(p=="length"||s&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||F2(p,h)))&&c.push(p);return c}var B2=L2;function z2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var U2=z2,j2=Wn,W2=rs,V2=U2,G2=Object.prototype,H2=G2.hasOwnProperty;function Y2(e){if(!j2(e))return V2(e);var t=W2(e),n=[];for(var o in e)o=="constructor"&&(t||!H2.call(e,o))||n.push(o);return n}var q2=Y2,K2=B2,J2=q2,R2=os;function Z2(e){return R2(e)?K2(e,!0):J2(e)}var cg=Z2,X2=S2,Q2=cg;function eI(e){return X2(e,Q2(e))}var tI=eI,fg=ng,nI=FO,rI=jO,iI=VO,oI=QO,dg=is,hg=eo,sI=sg,aI=zl,lI=$l,uI=Wn,cI=d2,fI=Ul,pg=lg,dI=tI;function hI(e,t,n,o,s,a,u){var c=pg(e,n),h=pg(t,n),p=u.get(h);if(p){fg(e,n,p);return}var y=a?a(c,h,n+"",e,t,u):void 0,m=y===void 0;if(m){var _=hg(h),C=!_&&aI(h),E=!_&&!C&&fI(h);y=h,_||C||E?hg(c)?y=c:sI(c)?y=iI(c):C?(m=!1,y=nI(h,!0)):E?(m=!1,y=rI(h,!0)):y=[]:cI(h)||dg(h)?(y=c,dg(c)?y=dI(c):(!uI(c)||lI(c))&&(y=oI(h))):m=!1}m&&(u.set(h,y),s(y,h,o,a,u),u.delete(h)),fg(e,n,y)}var pI=hI,gI=TO,mI=ng,yI=MO,vI=pI,bI=Wn,_I=cg,TI=lg;function gg(e,t,n,o,s){e!==t&&yI(t,function(a,u){if(s||(s=new gI),bI(a))vI(e,t,u,n,gg,o,s);else{var c=o?o(TI(e,u),a,u+"",e,t,s):void 0;c===void 0&&(c=a),mI(e,u,c)}},_I)}var wI=gg;function SI(e){return e}var mg=SI;function CI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var EI=CI,xI=EI,yg=Math.max;function AI(e,t,n){return t=yg(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=yg(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),xI(e,this,c)}}var OI=AI;function II(e){return function(){return e}}var PI=II,$I=PI,vg=eg,MI=mg,FI=vg?function(e,t){return vg(e,"toString",{configurable:!0,enumerable:!1,value:$I(t),writable:!0})}:MI,DI=FI,kI=800,NI=16,LI=Date.now;function BI(e){var t=0,n=0;return function(){var o=LI(),s=NI-(o-n);if(n=o,s>0){if(++t>=kI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zI=BI,UI=DI,jI=zI,WI=jI(UI),VI=WI,GI=mg,HI=OI,YI=VI;function qI(e,t){return YI(HI(e,t,GI),e+"")}var bg=qI,KI=Ps,JI=os,RI=ug,ZI=Wn;function XI(e,t,n){if(!ZI(n))return!1;var o=typeof t;return(o=="number"?JI(n)&&RI(t,n.length):o=="string"&&t in n)?KI(n[t],e):!1}var _g=XI,QI=bg,eP=_g;function tP(e){return QI(function(t,n){var o=-1,s=n.length,a=s>1?n[s-1]:void 0,u=s>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(s--,a):void 0,u&&eP(n[0],n[1],u)&&(a=s<3?void 0:a,s=1),t=Object(t);++o<s;){var c=n[o];c&&e(t,c,o,a)}return t})}var nP=tP,rP=wI,iP=nP,oP=iP(function(e,t,n){rP(e,t,n)}),sP=oP;const aP=ir(sP);var lP=Math.ceil,uP=Math.max;function cP(e,t,n,o){for(var s=-1,a=uP(lP((t-e)/(n||1)),0),u=Array(a);a--;)u[o?a:++s]=e,e+=n;return u}var fP=cP,dP=fh,hP=1/0,pP=17976931348623157e292;function gP(e){if(!e)return e===0?e:0;if(e=dP(e),e===hP||e===-1/0){var t=e<0?-1:1;return t*pP}return e===e?e:0}var mP=gP,yP=fP,vP=_g,Tu=mP;function bP(e){return function(t,n,o){return o&&typeof o!="number"&&vP(t,n,o)&&(n=o=void 0),t=Tu(t),n===void 0?(n=t,t=0):n=Tu(n),o=o===void 0?t<n?1:-1:Tu(o),yP(t,n,o,e)}}var _P=bP,TP=_P,wP=TP(),SP=wP;const CP=ir(SP);function EP(e,t,n,o){var s=-1,a=e==null?0:e.length;for(o&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}var xP=EP;function AP(e){return function(t){return e==null?void 0:e[t]}}var OP=AP,IP=OP,PP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$P=IP(PP),MP=$P;function FP(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var DP=FP,Tg=ns,kP=DP,NP=eo,LP=lh,wg=Tg?Tg.prototype:void 0,Sg=wg?wg.toString:void 0;function Cg(e){if(typeof e=="string")return e;if(NP(e))return kP(e,Cg)+"";if(LP(e))return Sg?Sg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var BP=Cg,zP=BP;function UP(e){return e==null?"":zP(e)}var wu=UP,jP=MP,WP=wu,VP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,GP="\\u0300-\\u036f",HP="\\ufe20-\\ufe2f",YP="\\u20d0-\\u20ff",qP=GP+HP+YP,KP="["+qP+"]",JP=RegExp(KP,"g");function RP(e){return e=WP(e),e&&e.replace(VP,jP).replace(JP,"")}var ZP=RP,XP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function QP(e){return e.match(XP)||[]}var e$=QP,t$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n$(e){return t$.test(e)}var r$=n$,Eg="\\ud800-\\udfff",i$="\\u0300-\\u036f",o$="\\ufe20-\\ufe2f",s$="\\u20d0-\\u20ff",a$=i$+o$+s$,xg="\\u2700-\\u27bf",Ag="a-z\\xdf-\\xf6\\xf8-\\xff",l$="\\xac\\xb1\\xd7\\xf7",u$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c$="\\u2000-\\u206f",f$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Og="A-Z\\xc0-\\xd6\\xd8-\\xde",d$="\\ufe0e\\ufe0f",Ig=l$+u$+c$+f$,Pg="['’]",$g="["+Ig+"]",h$="["+a$+"]",Mg="\\d+",p$="["+xg+"]",Fg="["+Ag+"]",Dg="[^"+Eg+Ig+Mg+xg+Ag+Og+"]",g$="\\ud83c[\\udffb-\\udfff]",m$="(?:"+h$+"|"+g$+")",y$="[^"+Eg+"]",kg="(?:\\ud83c[\\udde6-\\uddff]){2}",Ng="[\\ud800-\\udbff][\\udc00-\\udfff]",_i="["+Og+"]",v$="\\u200d",Lg="(?:"+Fg+"|"+Dg+")",b$="(?:"+_i+"|"+Dg+")",Bg="(?:"+Pg+"(?:d|ll|m|re|s|t|ve))?",zg="(?:"+Pg+"(?:D|LL|M|RE|S|T|VE))?",Ug=m$+"?",jg="["+d$+"]?",_$="(?:"+v$+"(?:"+[y$,kg,Ng].join("|")+")"+jg+Ug+")*",T$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",S$=jg+Ug+_$,C$="(?:"+[p$,kg,Ng].join("|")+")"+S$,E$=RegExp([_i+"?"+Fg+"+"+Bg+"(?="+[$g,_i,"$"].join("|")+")",b$+"+"+zg+"(?="+[$g,_i+Lg,"$"].join("|")+")",_i+"?"+Lg+"+"+Bg,_i+"+"+zg,w$,T$,Mg,C$].join("|"),"g");function x$(e){return e.match(E$)||[]}var A$=x$,O$=e$,I$=r$,P$=wu,$$=A$;function M$(e,t,n){return e=P$(e),t=n?void 0:t,t===void 0?I$(e)?$$(e):O$(e):e.match(t)||[]}var F$=M$,D$=xP,k$=ZP,N$=F$,L$="['’]",B$=RegExp(L$,"g");function z$(e){return function(t){return D$(N$(k$(t).replace(B$,"")),e,"")}}var U$=z$;function j$(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++o<s;)a[o]=e[o+t];return a}var W$=j$,V$=W$;function G$(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:V$(e,t,n)}var H$=G$,Y$="\\ud800-\\udfff",q$="\\u0300-\\u036f",K$="\\ufe20-\\ufe2f",J$="\\u20d0-\\u20ff",R$=q$+K$+J$,Z$="\\ufe0e\\ufe0f",X$="\\u200d",Q$=RegExp("["+X$+Y$+R$+Z$+"]");function eM(e){return Q$.test(e)}var Wg=eM;function tM(e){return e.split("")}var nM=tM,Vg="\\ud800-\\udfff",rM="\\u0300-\\u036f",iM="\\ufe20-\\ufe2f",oM="\\u20d0-\\u20ff",sM=rM+iM+oM,aM="\\ufe0e\\ufe0f",lM="["+Vg+"]",Su="["+sM+"]",Cu="\\ud83c[\\udffb-\\udfff]",uM="(?:"+Su+"|"+Cu+")",Gg="[^"+Vg+"]",Hg="(?:\\ud83c[\\udde6-\\uddff]){2}",Yg="[\\ud800-\\udbff][\\udc00-\\udfff]",cM="\\u200d",qg=uM+"?",Kg="["+aM+"]?",fM="(?:"+cM+"(?:"+[Gg,Hg,Yg].join("|")+")"+Kg+qg+")*",dM=Kg+qg+fM,hM="(?:"+[Gg+Su+"?",Su,Hg,Yg,lM].join("|")+")",pM=RegExp(Cu+"(?="+Cu+")|"+hM+dM,"g");function gM(e){return e.match(pM)||[]}var mM=gM,yM=nM,vM=Wg,bM=mM;function _M(e){return vM(e)?bM(e):yM(e)}var TM=_M,wM=H$,SM=Wg,CM=TM,EM=wu;function xM(e){return function(t){t=EM(t);var n=SM(t)?CM(t):void 0,o=n?n[0]:t.charAt(0),s=n?wM(n,1).join(""):t.slice(1);return o[e]()+s}}var AM=xM,OM=AM,IM=OM("toUpperCase"),PM=IM,$M=U$,MM=PM,FM=$M(function(e,t,n){return e+(n?" ":"")+MM(t)}),DM=FM;const kM=ir(DM);function NM(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var LM=NM,Jg=ns,BM=is,zM=eo,Rg=Jg?Jg.isConcatSpreadable:void 0;function UM(e){return zM(e)||BM(e)||!!(Rg&&e&&e[Rg])}var jM=UM,WM=LM,VM=jM;function Zg(e,t,n,o,s){var a=-1,u=e.length;for(n||(n=VM),s||(s=[]);++a<u;){var c=e[a];t>0&&n(c)?t>1?Zg(c,t-1,n,o,s):WM(s,c):o||(s[s.length]=c)}return s}var GM=Zg,HM="__lodash_hash_undefined__";function YM(e){return this.__data__.set(e,HM),this}var qM=YM;function KM(e){return this.__data__.has(e)}var JM=KM,RM=Qp,ZM=qM,XM=JM;function Ns(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new RM;++t<n;)this.add(e[t])}Ns.prototype.add=Ns.prototype.push=ZM,Ns.prototype.has=XM;var QM=Ns;function eF(e,t,n,o){for(var s=e.length,a=n+(o?1:-1);o?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var tF=eF;function nF(e){return e!==e}var rF=nF;function iF(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var oF=iF,sF=tF,aF=rF,lF=oF;function uF(e,t,n){return t===t?lF(e,t,n):sF(e,aF,n)}var cF=uF,fF=cF;function dF(e,t){var n=e==null?0:e.length;return!!n&&fF(e,t,0)>-1}var hF=dF;function pF(e,t,n){for(var o=-1,s=e==null?0:e.length;++o<s;)if(n(t,e[o]))return!0;return!1}var gF=pF;function mF(e,t){return e.has(t)}var yF=mF;function vF(){}var bF=vF;function _F(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Xg=_F,Eu=mh,TF=bF,wF=Xg,SF=1/0,CF=Eu&&1/wF(new Eu([,-0]))[1]==SF?function(e){return new Eu(e)}:TF,EF=CF,xF=QM,AF=hF,OF=gF,IF=yF,PF=EF,$F=Xg,MF=200;function FF(e,t,n){var o=-1,s=AF,a=e.length,u=!0,c=[],h=c;if(n)u=!1,s=OF;else if(a>=MF){var p=t?null:PF(e);if(p)return $F(p);u=!1,s=IF,h=new xF}else h=t?[]:c;e:for(;++o<a;){var y=e[o],m=t?t(y):y;if(y=n||y!==0?y:0,u&&m===m){for(var _=h.length;_--;)if(h[_]===m)continue e;t&&h.push(m),c.push(y)}else s(h,m,n)||(h!==c&&h.push(m),c.push(y))}return c}var DF=FF,kF=GM,NF=bg,LF=DF,BF=sg,zF=NF(function(e){return LF(kF(e,1,BF,!0))}),UF=zF;const jF=ir(UF),Ti=({children:e,...t})=>d.jsx(v.Table.Td,{...t,children:e}),Qg=({errorMessages:e,id:t})=>d.jsx(v.Tooltip,{id:t,title:e,children:d.jsx(v.Indicator,{label:e.split(`
225
- `).length,children:d.jsx(n1,{})})}),WF={paddingLeft:0,paddingRight:0},em=x.memo(function({numColumns:t,errors:n,label:o,description:s,path:a,addItem:u,schema:c,enabled:h,translations:p,rootSchema:y}){const m={bg:"transparent",size:"sm",c:"gray"},_=v.useProps("ActionIcon",m,{});return d.jsxs(v.Table.Tr,{children:[d.jsx(Ti,{colSpan:t,children:d.jsxs(v.Stack,{children:[d.jsxs(v.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Text,{children:o})}),d.jsx(v.Grid.Col,{span:"content",children:n.length!==0?d.jsx(v.Grid.Col,{span:"content",children:d.jsx(Qg,{id:"tooltip-validation",errorMessages:n})}):null})]}),s&&d.jsx(v.Text,{size:"sm",children:s})]})}),h?d.jsx(Ti,{align:"right",style:WF,children:d.jsx(v.Tooltip,{id:"tooltip-add",title:p.addTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:_.bg,size:_.size,c:_.c,onClick:u(a,ue.createDefaultValue(c,y)),children:d.jsx(vl,{})})})}):null]})}),tm={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},nm=(e,t,n,o,s)=>{if(t.type==="object")return rm(t).map(a=>{var h,p;const u=ue.Paths.compose(n,a),c={propName:a,schema:t,title:((p=(h=t.properties)==null?void 0:h[a])==null?void 0:p.title)??kM(a),rowPath:n,cellPath:u,enabled:o,cells:s};return d.jsx(e,{...c},u)});{const a={schema:t,rowPath:n,cellPath:n,enabled:o};return d.jsx(e,{...a},n)}},rm=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],VF=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(Ti,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),GF=x.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),HF=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),o=ue.formatErrorMessage(jF(ue.errorsAt(n,t.schema,s=>s===n)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:o,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},im=e=>({type:"Control",scope:e,label:!1}),YF=x.memo(function({path:t,propName:n,schema:o,rootSchema:s,errors:a,enabled:u,renderers:c,cells:h,isValid:p}){return d.jsxs(Ti,{children:[o.properties?d.jsx(De.DispatchCell,{schema:ue.Resolve.schema(o,`#/properties/${ue.encode(n)}`,s),uischema:im(`#/properties/${ue.encode(n)}`),path:t,enabled:u,renderers:c,cells:h}):d.jsx(De.DispatchCell,{schema:o,uischema:im("#"),path:t,enabled:u,renderers:c,cells:h}),d.jsx(v.Text,{size:"xs",children:p?"":a})]})}),qF=e=>{const t=De.useJsonForms(),n=HF(t,e),o=Oh(n.errors);return d.jsx(YF,{...n,isValid:o})},KF=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:u,enableDown:c,showSortButtons:h,enabled:p,cells:y,path:m,translations:_})=>{const C={bg:"transparent",size:"sm",c:"gray"},E=v.useProps("ActionIcon",C,{}),w=x.useMemo(()=>s(m,n),[s,m,n]),$=x.useMemo(()=>a(m,n),[a,m,n]);return d.jsxs(v.Table.Tr,{children:[nm(qF,t,e,p,y),p?d.jsx(Ti,{style:h?tm.fixedCell:tm.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[h?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:_.up,position:"bottom",opened:u?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.upAriaLabel,onClick:w,disabled:!u,children:d.jsx(Px,{})})})}),d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-down",title:_.down,position:"bottom",opened:c?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.downAriaLabel,onClick:$,disabled:!c,children:d.jsx(Ix,{})})})})]}):null,d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-remove",title:_.removeTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.removeAriaLabel,onClick:()=>o(e,n),children:d.jsx($x,{})})})})]})}):null]},e)},om=x.memo(KF),JF=({data:e,path:t,schema:n,openDeleteDialog:o,moveUp:s,moveDown:a,uischema:u,config:c,enabled:h,cells:p,translations:y})=>{if(e===0)return d.jsx(VF,{numColumns:rm(n).length+1,translations:y});const _=aP({},c,u.options);return d.jsx(x.Fragment,{children:CP(e).map(C=>{const E=ue.Paths.compose(t,`${C}`);return d.jsx(om,{childPath:E,rowIndex:C,schema:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:C!==0,enableDown:C!==e-1,showSortButtons:_.showSortButtons||_.showArrayTableSortButtons,enabled:h,cells:p,path:t,translations:y},E)})})};class sm extends x.Component{constructor(){super(...arguments);nb(this,"addItem",(n,o)=>this.props.addItem(n,o))}render(){const{label:n,description:o,path:s,schema:a,rootSchema:u,uischema:c,errors:h,openDeleteDialog:p,visible:y,enabled:m,cells:_,translations:C}=this.props,E=c,w=a.type==="object",$=w?nm(GF,a,s,m,_):void 0;return y?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(em,{errors:h,label:n,description:o,addItem:this.addItem,numColumns:w?$.length:1,path:s,uischema:E,schema:a,rootSchema:u,enabled:m,translations:C}),w&&d.jsxs(v.Table.Tr,{children:[$,m?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(JF,{openDeleteDialog:p,translations:C,...this.props})})]}):null}}const RF=e=>{const[t,n]=x.useState(!1),[o,s]=x.useState(void 0),[a,u]=x.useState(void 0),{removeItems:c,visible:h}=e,p=x.useCallback((C,E)=>{n(!0),s(C),u(E)},[n,s,u]),y=x.useCallback(()=>n(!1),[n]),m=x.useCallback(()=>{const C=o.substring(0,o.lastIndexOf("."));c(C,[a])(),n(!1)},[n,o,a]),_=x.useCallback(()=>n(!1),[n]);return h?d.jsxs(d.Fragment,{children:[d.jsx(sm,{...e,openDeleteDialog:p}),d.jsx(Qh,{open:t,onCancel:y,onConfirm:m,onClose:_,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},am=ue.rankWith(1,ue.or(ue.isObjectArrayControl,ue.isPrimitiveArrayControl)),lm=De.withJsonFormsArrayLayoutProps(RF),ZF=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),XF=e=>e.type==="string"&&e.enum!==void 0;function um(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"array")&&!Array.isArray(n.items)&&n.uniqueItems===!0&&(ZF(n.items)||XF(n.items)))}function cm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"object")&&!n.properties)}const fm=ue.rankWith(1,um),dm=De.withJsonFormsMultiEnumProps(e=>d.jsx(Dh,{...e})),hm=ue.rankWith(1,ue.isObjectControl),pm=De.withJsonFormsDetailProps(e=>d.jsx(Nh,{...e})),gm=ue.rankWith(1,ue.isBooleanControl),mm=De.withJsonFormsControlProps(e=>d.jsx(Wl,{...e})),ym=ue.rankWith(1,ue.isDateControl),vm=De.withJsonFormsControlProps(e=>d.jsx(Vl,{...e})),bm=ue.rankWith(1,ue.isDateTimeControl),_m=De.withJsonFormsControlProps(e=>d.jsx(Gl,{...e})),Tm=ue.rankWith(2,ue.isEnumControl),wm=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Hl,{...e})),!1),Sm=ue.rankWith(1,ue.isIntegerControl),Cm=De.withJsonFormsControlProps(e=>d.jsx(to,{...e})),Em=ue.rankWith(2,cm),xm=De.withJsonFormsControlProps(e=>d.jsx(kh,{...e})),Am=ue.rankWith(1,ue.isNumberControl),Om=De.withJsonFormsControlProps(e=>d.jsx(to,{...e})),Im=ue.rankWith(2,ue.isOneOfControl),Pm=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),$m=ue.rankWith(1,ue.isStringControl),Mm=De.withJsonFormsControlProps(e=>d.jsx(ql,{...e})),QF=e=>{const{text:t,visible:n}=e;return n?d.jsx(v.Title,{fw:"bold",size:"xl",children:t}):null},Fm=ue.rankWith(1,ue.isLabelable),Dm=De.withJsonFormsLabelProps(QF),eD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a,label:u})=>{const h={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(v.Fieldset,{legend:u,children:d.jsx(ls,{...h,renderers:s,cells:a})})},km=ue.rankWith(1,ue.uiTypeIs("Group")),Nm=De.withJsonFormsLayoutProps(eD),tD=({uischema:e,renderers:t,cells:n,schema:o,path:s,enabled:a})=>{const c={elements:e.elements,schema:o,path:s,enabled:a,direction:"row"};return d.jsx(ls,{...c,renderers:t,cells:n})},Lm=ue.rankWith(1,ue.uiTypeIs("HorizontalLayout")),Bm=De.withJsonFormsLayoutProps(tD),nD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a})=>{const c={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(ls,{...c,renderers:s,cells:a})},zm=ue.rankWith(1,ue.uiTypeIs("VerticalLayout")),Um=De.withJsonFormsLayoutProps(nD),jm=[{tester:Zh,cell:Xh},{tester:qh,cell:Kh},{tester:Hh,cell:Yh},{tester:Lh,cell:Bh},{tester:zh,cell:Uh},{tester:jh,cell:Wh},{tester:Vh,cell:Gh},{tester:Jh,cell:Rh}],Wm=[{tester:ym,renderer:vm},{tester:bm,renderer:_m},{tester:Am,renderer:Om},{tester:Sm,renderer:Cm},{tester:$m,renderer:Mm},{tester:gm,renderer:mm},{tester:Tm,renderer:wm},{tester:Im,renderer:Pm},{tester:Em,renderer:xm},{tester:am,renderer:lm},{tester:fm,renderer:dm},{tester:hm,renderer:pm},{tester:Lm,renderer:Bm},{tester:zm,renderer:Um},{tester:km,renderer:Nm},{tester:Fm,renderer:Dm}];function xu({schema:e,uischema:t,state:n,setState:o,view:s,setView:a,jsonForms:u,onSubmit:c,buttonText:h,loading:p,...y}){const m=x.useMemo(()=>v.createTheme({components:{...Object.entries(u||{}).reduce((_,[C,E])=>(_[C]||(_[C]={defaultProps:{}}),_[C].defaultProps=E,_),{})}}),[u]);return d.jsx(v.Modal,{size:"lg",centered:!0,fullScreen:s===mt.FULL_SCREEN,radius:s!==mt.NORMAL?0:void 0,transitionProps:s!==mt.NORMAL?{transition:"fade",duration:200}:void 0,...y,title:d.jsxs(d.Fragment,{children:[y.title,d.jsx(v.Group,{children:d.jsxs(v.Group,{gap:"xs",pr:"xs",children:[d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.OVERLAY?mt.OVERLAY:mt.NORMAL),title:s!==mt.OVERLAY?"Overlay":"Exit overlay",icon:d.jsx(Il,{icon:s!==mt.OVERLAY?"tabler:stack-forward":"tabler:stack",fontSize:"1.25rem"})}),d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.FULL_SCREEN?mt.FULL_SCREEN:mt.NORMAL),title:s!==mt.FULL_SCREEN?"Full screen":"Exit full screen",icon:d.jsx(Il,{icon:s!==mt.FULL_SCREEN?"tabler:maximize":"tabler:minimize",fontSize:"1.25rem"})})]})})]}),classNames:{content:"mrt-table-container"},styles:Bn(y.styles,{title:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}}),children:d.jsxs(v.Box,{component:"form",pos:"relative",onSubmit:c,children:[d.jsx(v.LoadingOverlay,{visible:p}),d.jsx(v.MantineThemeProvider,{inherit:!0,theme:m,children:d.jsx(De.JsonForms,{schema:e,uischema:t??void 0,renderers:Wm,cells:jm,data:n.data,onChange:o})}),d.jsx(v.Group,{justify:"end",mt:"xl",children:d.jsx(v.Button,{type:"submit",children:h})})]})})}const Au={styles:{content:{height:450}}},Ou={withinPortal:!1,h:"100%",w:"100%",pos:"absolute",styles:{overlay:{display:"none"},inner:{position:"relative",height:"100%",width:"100%",padding:0},content:{position:"absolute",height:"100%",width:"100%"}}};function Vm(e,t){const n={};return Object.entries(t.properties||{}).forEach(([o,s])=>{var c,h;const a=s.items?s.items:s,u=a.oneOf?a.oneOf.map(p=>({value:p.const,label:p.title})):a.enum;if(u){const p=u.map(y=>y.value);if(lr(s.type,"array")){const y=((c=e[o])==null?void 0:c.map(m=>m.id_||m))||[];n[o]=p.filter(m=>y.includes(m))}else n[o]=p.find(y=>{var m;return y===(((m=e[o])==null?void 0:m.id_)||e[o])})}else n[o]=(((h=e[o])==null?void 0:h.id_)||e[o])??void 0}),n}function Iu({jsonForms:e,...t}){const{info:n,updateEntry:o}=Ae(),{opened:s,setOpened:a,item:u,itemLoading:c,state:h,setState:p,reset:y,view:m,setView:_}=zn("edit"),{jsonForms:C}=v.useProps("EditDialog",{},{}),E=x.useMemo(()=>Bn({__:{setNull:!0}},C,e),[C,e]),w=x.useCallback(async N=>{N==null||N.preventDefault(),await o(u==null?void 0:u.id,h.data),a(!1)},[o,u==null?void 0:u.id,h.data,a]),$=x.useMemo(()=>({...Uo,data:Vm((u==null?void 0:u.result)||{},n.edit_schema)}),[n.edit_schema,u==null?void 0:u.result]);return x.useEffect(()=>{p({data:$.data})},[$,p]),d.jsx(xu,{schema:n.edit_schema,uischema:n.edit_uischema,state:h,setState:p,view:m,setView:_,jsonForms:E,onSubmit:w,buttonText:"Edit",loading:c,opened:s,onClose:()=>a(!1),onExitTransitionEnd:y,...m===mt.OVERLAY?Ou:{},...m===mt.NORMAL?Au:{},...t,title:t.title??(n==null?void 0:n.edit_title)})}function Pu(){const{error:e,resetError:t}=Ae();return d.jsx(v.Modal,{opened:e,onClose:t,title:d.jsxs(v.Group,{children:[d.jsx(Qb,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.message}):null})}/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:Gm,setPrototypeOf:Hm,isFrozen:rD,getPrototypeOf:iD,getOwnPropertyDescriptor:oD}=Object;let{freeze:Dt,seal:sn,create:Ym}=Object,{apply:$u,construct:Mu}=typeof Reflect<"u"&&Reflect;Dt||(Dt=function(t){return t}),sn||(sn=function(t){return t}),$u||($u=function(t,n,o){return t.apply(n,o)}),Mu||(Mu=function(t,n){return new t(...n)});const Ls=Nt(Array.prototype.forEach),sD=Nt(Array.prototype.lastIndexOf),qm=Nt(Array.prototype.pop),co=Nt(Array.prototype.push),aD=Nt(Array.prototype.splice),Bs=Nt(String.prototype.toLowerCase),Fu=Nt(String.prototype.toString),Km=Nt(String.prototype.match),fo=Nt(String.prototype.replace),lD=Nt(String.prototype.indexOf),uD=Nt(String.prototype.trim),Tn=Nt(Object.prototype.hasOwnProperty),kt=Nt(RegExp.prototype.test),ho=cD(TypeError);function Nt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return $u(e,t,o)}}function cD(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Mu(e,n)}}function Oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bs;Hm&&Hm(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(rD(t)||(t[o]=a),s=a)}e[s]=!0}return e}function fD(e){for(let t=0;t<e.length;t++)Tn(e,t)||(e[t]=null);return e}function Br(e){const t=Ym(null);for(const[n,o]of Gm(e))Tn(e,n)&&(Array.isArray(o)?t[n]=fD(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=Br(o):t[n]=o);return t}function po(e,t){for(;e!==null;){const o=oD(e,t);if(o){if(o.get)return Nt(o.get);if(typeof o.value=="function")return Nt(o.value)}e=iD(e)}function n(){return null}return n}const Jm=Dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Du=Dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ku=Dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dD=Dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Nu=Dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hD=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rm=Dt(["#text"]),Zm=Dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Lu=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Xm=Dt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zs=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pD=sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gD=sn(/<%[\w\W]*|[\w\W]*%>/gm),mD=sn(/\$\{[\w\W]*/gm),yD=sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),vD=sn(/^aria-[\-\w]+$/),Qm=sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bD=sn(/^(?:\w+script|data):/i),_D=sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),e0=sn(/^html$/i),TD=sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var t0=Object.freeze({__proto__:null,ARIA_ATTR:vD,ATTR_WHITESPACE:_D,CUSTOM_ELEMENT:TD,DATA_ATTR:yD,DOCTYPE_NAME:e0,ERB_EXPR:gD,IS_ALLOWED_URI:Qm,IS_SCRIPT_OR_DATA:bD,MUSTACHE_EXPR:pD,TMPLIT_EXPR:mD});const go={element:1,text:3,progressingInstruction:7,comment:8,document:9},wD=function(){return typeof window>"u"?null:window},SD=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},n0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function r0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wD();const t=de=>r0(de);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==go.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:c,Element:h,NodeFilter:p,NamedNodeMap:y=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:_,trustedTypes:C}=e,E=h.prototype,w=po(E,"cloneNode"),$=po(E,"remove"),N=po(E,"nextSibling"),Q=po(E,"childNodes"),H=po(E,"parentNode");if(typeof u=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let B,D="";const{implementation:k,createNodeIterator:G,createDocumentFragment:ae,getElementsByTagName:ie}=n,{importNode:S}=o;let U=n0();t.isSupported=typeof Gm=="function"&&typeof H=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:fe,TMPLIT_EXPR:ye,DATA_ATTR:Me,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:lt}=t0;let{IS_ALLOWED_URI:q}=t0,K=null;const Z=Oe({},[...Jm,...Du,...ku,...Nu,...Rm]);let R=null;const Y=Oe({},[...Zm,...Lu,...Xm,...zs]);let ee=Object.seal(Ym(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,ve=null,be=!0,pe=!0,Ce=!1,tt=!0,te=!1,yt=!0,Je=!1,Lt=!1,dr=!1,vt=!1,ke=!1,Yn=!1,hr=!0,Wt=!1;const Ur="user-content-";let pr=!0,jr=!1,an={},gr=null;const mr=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qn=null;const Ci=Oe({},["audio","video","img","source","image","track"]);let Wr=null;const Ei=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",vr="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1999/xhtml";let Fn=Rt,Vr=!1,Gr=null;const ic=Oe({},[yr,vr,Rt],Fu);let xi=Oe({},["mi","mo","mn","ms","mtext"]),Ai=Oe({},["annotation-xml"]);const js=Oe({},["title","style","font","a","script"]);let br=null;const oc=["application/xhtml+xml","text/html"],sc="text/html";let gt=null,_r=null;const Ws=n.createElement("form"),Vs=function(P){return P instanceof RegExp||P instanceof Function},bo=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_r&&_r===P)){if((!P||typeof P!="object")&&(P={}),P=Br(P),br=oc.indexOf(P.PARSER_MEDIA_TYPE)===-1?sc:P.PARSER_MEDIA_TYPE,gt=br==="application/xhtml+xml"?Fu:Bs,K=Tn(P,"ALLOWED_TAGS")?Oe({},P.ALLOWED_TAGS,gt):Z,R=Tn(P,"ALLOWED_ATTR")?Oe({},P.ALLOWED_ATTR,gt):Y,Gr=Tn(P,"ALLOWED_NAMESPACES")?Oe({},P.ALLOWED_NAMESPACES,Fu):ic,Wr=Tn(P,"ADD_URI_SAFE_ATTR")?Oe(Br(Ei),P.ADD_URI_SAFE_ATTR,gt):Ei,qn=Tn(P,"ADD_DATA_URI_TAGS")?Oe(Br(Ci),P.ADD_DATA_URI_TAGS,gt):Ci,gr=Tn(P,"FORBID_CONTENTS")?Oe({},P.FORBID_CONTENTS,gt):mr,oe=Tn(P,"FORBID_TAGS")?Oe({},P.FORBID_TAGS,gt):{},ve=Tn(P,"FORBID_ATTR")?Oe({},P.FORBID_ATTR,gt):{},an=Tn(P,"USE_PROFILES")?P.USE_PROFILES:!1,be=P.ALLOW_ARIA_ATTR!==!1,pe=P.ALLOW_DATA_ATTR!==!1,Ce=P.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=P.SAFE_FOR_TEMPLATES||!1,yt=P.SAFE_FOR_XML!==!1,Je=P.WHOLE_DOCUMENT||!1,vt=P.RETURN_DOM||!1,ke=P.RETURN_DOM_FRAGMENT||!1,Yn=P.RETURN_TRUSTED_TYPE||!1,dr=P.FORCE_BODY||!1,hr=P.SANITIZE_DOM!==!1,Wt=P.SANITIZE_NAMED_PROPS||!1,pr=P.KEEP_CONTENT!==!1,jr=P.IN_PLACE||!1,q=P.ALLOWED_URI_REGEXP||Qm,Fn=P.NAMESPACE||Rt,xi=P.MATHML_TEXT_INTEGRATION_POINTS||xi,Ai=P.HTML_INTEGRATION_POINTS||Ai,ee=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Vs(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Vs(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),te&&(pe=!1),ke&&(vt=!0),an&&(K=Oe({},Rm),R=[],an.html===!0&&(Oe(K,Jm),Oe(R,Zm)),an.svg===!0&&(Oe(K,Du),Oe(R,Lu),Oe(R,zs)),an.svgFilters===!0&&(Oe(K,ku),Oe(R,Lu),Oe(R,zs)),an.mathMl===!0&&(Oe(K,Nu),Oe(R,Xm),Oe(R,zs))),P.ADD_TAGS&&(K===Z&&(K=Br(K)),Oe(K,P.ADD_TAGS,gt)),P.ADD_ATTR&&(R===Y&&(R=Br(R)),Oe(R,P.ADD_ATTR,gt)),P.ADD_URI_SAFE_ATTR&&Oe(Wr,P.ADD_URI_SAFE_ATTR,gt),P.FORBID_CONTENTS&&(gr===mr&&(gr=Br(gr)),Oe(gr,P.FORBID_CONTENTS,gt)),pr&&(K["#text"]=!0),Je&&Oe(K,["html","head","body"]),K.table&&(Oe(K,["tbody"]),delete oe.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw ho('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ho('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=P.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=SD(C,s)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Dt&&Dt(P),_r=P}},Gs=Oe({},[...Du,...ku,...dD]),Oi=Oe({},[...Nu,...hD]),ac=function(P){let X=H(P);(!X||!X.tagName)&&(X={namespaceURI:Fn,tagName:"template"});const le=Bs(P.tagName),We=Bs(X.tagName);return Gr[P.namespaceURI]?P.namespaceURI===vr?X.namespaceURI===Rt?le==="svg":X.namespaceURI===yr?le==="svg"&&(We==="annotation-xml"||xi[We]):!!Gs[le]:P.namespaceURI===yr?X.namespaceURI===Rt?le==="math":X.namespaceURI===vr?le==="math"&&Ai[We]:!!Oi[le]:P.namespaceURI===Rt?X.namespaceURI===vr&&!Ai[We]||X.namespaceURI===yr&&!xi[We]?!1:!Oi[le]&&(js[le]||!Gs[le]):!!(br==="application/xhtml+xml"&&Gr[P.namespaceURI]):!1},Vt=function(P){co(t.removed,{element:P});try{H(P).removeChild(P)}catch{$(P)}},Ii=function(P,X){try{co(t.removed,{attribute:X.getAttributeNode(P),from:X})}catch{co(t.removed,{attribute:null,from:X})}if(X.removeAttribute(P),P==="is")if(vt||ke)try{Vt(X)}catch{}else try{X.setAttribute(P,"")}catch{}},Hs=function(P){let X=null,le=null;if(dr)P="<remove></remove>"+P;else{const ut=Km(P,/^[\r\n\t ]+/);le=ut&&ut[0]}br==="application/xhtml+xml"&&Fn===Rt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const We=B?B.createHTML(P):P;if(Fn===Rt)try{X=new _().parseFromString(We,br)}catch{}if(!X||!X.documentElement){X=k.createDocument(Fn,"template",null);try{X.documentElement.innerHTML=Vr?D:We}catch{}}const St=X.body||X.documentElement;return P&&le&&St.insertBefore(n.createTextNode(le),St.childNodes[0]||null),Fn===Rt?ie.call(X,Je?"html":"body")[0]:Je?X.documentElement:St},Ys=function(P){return G.call(P.ownerDocument||P,P,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},_o=function(P){return P instanceof m&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof y)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},qs=function(P){return typeof c=="function"&&P instanceof c};function wn(de,P,X){Ls(de,le=>{le.call(t,P,X,_r)})}const Ks=function(P){let X=null;if(wn(U.beforeSanitizeElements,P,null),_o(P))return Vt(P),!0;const le=gt(P.nodeName);if(wn(U.uponSanitizeElement,P,{tagName:le,allowedTags:K}),P.hasChildNodes()&&!qs(P.firstElementChild)&&kt(/<[/\w!]/g,P.innerHTML)&&kt(/<[/\w!]/g,P.textContent)||P.nodeType===go.progressingInstruction||yt&&P.nodeType===go.comment&&kt(/<[/\w]/g,P.data))return Vt(P),!0;if(!K[le]||oe[le]){if(!oe[le]&&To(le)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le)))return!1;if(pr&&!gr[le]){const We=H(P)||P.parentNode,St=Q(P)||P.childNodes;if(St&&We){const ut=St.length;for(let Pt=ut-1;Pt>=0;--Pt){const ln=w(St[Pt],!0);ln.__removalCount=(P.__removalCount||0)+1,We.insertBefore(ln,N(P))}}}return Vt(P),!0}return P instanceof h&&!ac(P)||(le==="noscript"||le==="noembed"||le==="noframes")&&kt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Vt(P),!0):(te&&P.nodeType===go.text&&(X=P.textContent,Ls([ne,fe,ye],We=>{X=fo(X,We," ")}),P.textContent!==X&&(co(t.removed,{element:P.cloneNode()}),P.textContent=X)),wn(U.afterSanitizeElements,P,null),!1)},Js=function(P,X,le){if(hr&&(X==="id"||X==="name")&&(le in n||le in Ws))return!1;if(!(pe&&!ve[X]&&kt(Me,X))){if(!(be&&kt(we,X))){if(!R[X]||ve[X]){if(!(To(P)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,P)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(P))&&(ee.attributeNameCheck instanceof RegExp&&kt(ee.attributeNameCheck,X)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(X))||X==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le))))return!1}else if(!Wr[X]){if(!kt(q,fo(le,Ie,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&P!=="script"&&lD(le,"data:")===0&&qn[P])){if(!(Ce&&!kt(Le,fo(le,Ie,"")))){if(le)return!1}}}}}}return!0},To=function(P){return P!=="annotation-xml"&&Km(P,lt)},Rs=function(P){wn(U.beforeSanitizeAttributes,P,null);const{attributes:X}=P;if(!X||_o(P))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let We=X.length;for(;We--;){const St=X[We],{name:ut,namespaceURI:Pt,value:ln}=St,Hr=gt(ut);let Ct=ut==="value"?ln:uD(ln);if(le.attrName=Hr,le.attrValue=Ct,le.keepAttr=!0,le.forceKeepAttr=void 0,wn(U.uponSanitizeAttribute,P,le),Ct=le.attrValue,Wt&&(Hr==="id"||Hr==="name")&&(Ii(ut,P),Ct=Ur+Ct),yt&&kt(/((--!?|])>)|<\/(style|title)/i,Ct)){Ii(ut,P);continue}if(le.forceKeepAttr||(Ii(ut,P),!le.keepAttr))continue;if(!tt&&kt(/\/>/i,Ct)){Ii(ut,P);continue}te&&Ls([ne,fe,ye],So=>{Ct=fo(Ct,So," ")});const wo=gt(P.nodeName);if(Js(wo,Hr,Ct)){if(B&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!Pt)switch(C.getAttributeType(wo,Hr)){case"TrustedHTML":{Ct=B.createHTML(Ct);break}case"TrustedScriptURL":{Ct=B.createScriptURL(Ct);break}}try{Pt?P.setAttributeNS(Pt,ut,Ct):P.setAttribute(ut,Ct),_o(P)?Vt(P):qm(t.removed)}catch{}}}wn(U.afterSanitizeAttributes,P,null)},lc=function de(P){let X=null;const le=Ys(P);for(wn(U.beforeSanitizeShadowDOM,P,null);X=le.nextNode();)wn(U.uponSanitizeShadowNode,X,null),Ks(X),Rs(X),X.content instanceof a&&de(X.content);wn(U.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(de){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,We=null,St=null;if(Vr=!de,Vr&&(de="<!-->"),typeof de!="string"&&!qs(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw ho("dirty is not a string, aborting")}else throw ho("toString is not a function");if(!t.isSupported)return de;if(Lt||bo(P),t.removed=[],typeof de=="string"&&(jr=!1),jr){if(de.nodeName){const ln=gt(de.nodeName);if(!K[ln]||oe[ln])throw ho("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof c)X=Hs("<!---->"),le=X.ownerDocument.importNode(de,!0),le.nodeType===go.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le);else{if(!vt&&!te&&!Je&&de.indexOf("<")===-1)return B&&Yn?B.createHTML(de):de;if(X=Hs(de),!X)return vt?null:Yn?D:""}X&&dr&&Vt(X.firstChild);const ut=Ys(jr?de:X);for(;We=ut.nextNode();)Ks(We),Rs(We),We.content instanceof a&&lc(We.content);if(jr)return de;if(vt){if(ke)for(St=ae.call(X.ownerDocument);X.firstChild;)St.appendChild(X.firstChild);else St=X;return(R.shadowroot||R.shadowrootmode)&&(St=S.call(o,St,!0)),St}let Pt=Je?X.outerHTML:X.innerHTML;return Je&&K["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&kt(e0,X.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
226
- `+Pt),te&&Ls([ne,fe,ye],ln=>{Pt=fo(Pt,ln," ")}),B&&Yn?B.createHTML(Pt):Pt},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bo(de),Lt=!0},t.clearConfig=function(){_r=null,Lt=!1},t.isValidAttribute=function(de,P,X){_r||bo({});const le=gt(de),We=gt(P);return Js(le,We,X)},t.addHook=function(de,P){typeof P=="function"&&co(U[de],P)},t.removeHook=function(de,P){if(P!==void 0){const X=sD(U[de],P);return X===-1?void 0:aD(U[de],X,1)[0]}return qm(U[de])},t.removeHooks=function(de){U[de]=[]},t.removeAllHooks=function(){U=n0()},t}var i0=r0();const Mn=x.forwardRef(({fallback:e,functionProps:t,children:n},o)=>{if(n=ft(n,t),n===null)return null;const s=n||e;return x.isValidElement(s)?x.cloneElement(s,{ref:o}):s});Mn.displayName="FallbackWrapper";const CD={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},mo=x.memo(({id:e,entry:t,loading:n,rightBorder:o,children:s,onClickEntry:a,customElement:u,sanitize:c,...h})=>{const p={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:y}=v.useProps("Field",p,h),m={};Object.entries(y).forEach(([C,E])=>{typeof E=="function"&&(m[C]=E(t))});const _=v.useStyles({name:"Field",props:h,classes:CD});return d.jsx(v.Table.Td,{..._("field"),onClick:a?()=>a(e,t):null,...h,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:n,children:d.jsx(Mn,{fallback:Array.isArray(s)?s.map((C,E)=>d.jsx(v.Text,{...y,...m,children:c?i0.sanitize(C):C},E)):x.isValidElement(s)?s:d.jsx(v.Text,{...y,...m,children:c?i0.sanitize(s):s}),functionProps:t,children:u})})})})});mo.displayName="Field";const o0={row:"_row_138r2_1",selected:"_selected_138r2_5"};function s0({entry:e,selected:t,children:n}){const o=v.useStyles({name:"Row",classes:o0}),s=v.useProps("Row",{},{});Object.entries(s).forEach(([c,h])=>{typeof h=="function"&&(s[c]=h(e))});var{className:a,style:u}=o("row");return a=`${a} ${t?o0.selected:""}`,d.jsx(v.Table.Tr,{className:a,style:{...u},...s,children:n})}function ED({bodyCustomizer:e,actionColumn:t,id:n,entry:o}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:n,...o})),s===null?null:s||d.jsx(qu,{id:n})}function a0({data:e,loading:t,hideActions:n,hideCheckbox:o,selection:s,toggleRow:a,onClickEntry:u,bodyCustomizer:c,bodySeparator:h}){const p=e.list_columns.includes("actions")?"_actions":"actions",y=x.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return d.jsx(v.Table.Tbody,{children:e.result.length?e.result.map((m,_)=>{const C=e.ids[_];return d.jsxs(s0,{entry:{...m,id:C},children:[o?null:d.jsx(mo,{loading:t,children:d.jsx(v.Checkbox,{pl:2,checked:s.includes(C),onChange:()=>{a(C)}})},_),n?null:d.jsx(mo,{loading:t,children:d.jsx(ED,{bodyCustomizer:c,actionColumn:p,id:xt(C),entry:m})}),e.list_columns.map((E,w)=>{let $=c==null?void 0:c[E];typeof $=="function"&&($=$({id:C,...m}));let N=Hi(m,E);typeof N=="number"?N=N.toLocaleString():N==null&&(N="");const Q=(h==null?void 0:h[E])||(h==null?void 0:h[y]);return Q&&(N=N.split(Q)),$===null?null:d.jsx(mo,{id:C,entry:m,loading:t,onClickEntry:u,customElement:$,sanitize:!0,children:N},w)})]},xt(C))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:n?e.list_columns.length:e.list_columns.length+1,children:d.jsx(v.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const l0={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function Us({column:e,label:t,orderColumn:n,related:o,toggleAll:s,allChecked:a,classNames:u,styles:c,customElement:h,...p}){const{queryParams:y,setQueryParams:m,loading:_}=Ae(),C={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},E=v.useStyles({name:"FieldTitle",classes:l0,classNames:u,styles:c,props:p}),w=v.useProps("FieldTitle",C,p),{hovered:$,ref:N}=Ze.useHover(),Q=n&&y.order_column===n,H=E("wrapper");return H.style.cursor=n?H.style.cursor:"auto",d.jsx(v.Table.Th,{className:l0.fieldTitleRoot,...E("root"),onClick:n&&!_?()=>m({order_column:n,order_direction:y.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:N,...H,children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:s,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:w.fw,size:"xl",c:$&&n?w.hoverColor:Q?w.selectedColor:w.color,children:h||t||e}),o?d.jsx(v.Tooltip,{label:"Related Field",children:d.jsx(v.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(v.Box,{...E("icon"),children:Q?y.order_direction==="asc"?d.jsx(yl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...E("icon"),children:Q?y.order_direction==="asc"?d.jsx(yl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})]})})})}const Bu=x.memo(({data:e,info:t,settings:n,hideActions:o,hideCheckbox:s,allChecked:a,toggleAll:u,headerCustomizer:c})=>{const h=e.list_columns.includes("actions")?"_actions":"actions";let p=c==null?void 0:c[h];return typeof p=="function"&&(p=p()),d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[s?null:d.jsx(Us,{data:e,column:"Checkbox",allChecked:a,toggleAll:u}),o?null:d.jsx(Us,{column:"Actions",customElement:p}),e.list_columns.map((y,m)=>{var C;let _=c==null?void 0:c[y];return typeof _=="function"&&(_=_(e.label_columns[y])),_===null?null:d.jsx(Us,{column:y,label:e.label_columns[y],orderColumn:e.order_columns.find(E=>E===y)||e.order_columns.find(E=>E.startsWith(`${y}.`)),related:((C=t.filters[y])==null?void 0:C.schema.type)==="Nested",customElement:_},y)})]})})});Bu.displayName="Header";const xD={scrollbar:"_scrollbar_isyo2_1"};function u0({bulkActions:e,hideActions:t,loading:n,onSelectCheckbox:o,onClickEntry:s,hideCheckbox:a,hideDownload:u,headerCustomizer:c,bodyCustomizer:h,bodySeparator:p,...y}){const m=v.useMantineTheme(),_=v.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),C=v.useProps("DatagridTable",_,y),{data:E,info:w}=Ae(),[$,N]=x.useState([]),[Q,H]=x.useState(!1),B=k=>{N(G=>G.includes(k)?G.filter(ae=>ae!==k):[...G,k])},D=()=>{N(k=>k.length===E.ids.length?[]:E.ids.map((G,ae)=>G))};return x.useEffect(()=>{H($.length===E.result.length&&$.length>0),o&&o($),e==null||e.setSelectedIds($.map(k=>k))},[$]),x.useEffect(()=>{N([]),o&&o([])},[E]),d.jsx(v.ScrollArea,{options:{className:m.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:xD,children:d.jsxs(v.Table,{stickyHeader:!0,...C,children:[d.jsx(Bu,{data:E,info:w,hideActions:t,hideCheckbox:a,allChecked:Q,setSelection:N,toggleAll:D,headerCustomizer:c}),d.jsx(a0,{data:E,loading:n,hideActions:t,hideCheckbox:a,selection:$,setSelection:N,toggleRow:B,onClickEntry:s,bodyCustomizer:h,bodySeparator:p})]})})}const zu=x.memo(({counter:e,...t})=>{const{data:n,queryParams:o,setQueryParams:s}=Ae(),a=v.useMantineTheme(),u=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],c=String(o.page_size),[h,p]=x.useState(o.page);x.useEffect(()=>{p(o.page)},[o.page]);const y=_=>{p(_-1),s({page:_-1})},m=_=>{s({page_size:parseInt(_,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(v.Divider,{}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(v.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(v.Text,{children:"Rows per page:"}),d.jsx(v.Select,{value:c,defaultValue:c,onChange:_=>m(_),data:u,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(v.Pagination,{size:"sm",total:Math.ceil(n.count/c),value:h+1,onChange:y,...t}),e&&n?d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{c:a.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),d.jsx(v.Text,{c:a.primaryColor,size:"md",fw:700,pl:10,children:n.count})]}):null]})]})});zu.displayName="Pagination";function AD(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(n){const o={};return n instanceof wt&&n.inner.forEach(s=>{o[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),o}}}function OD({form:e,name:t,items:n,...o}){return d.jsx(v.Autocomplete,{data:n,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function c0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateInput,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o.getTime()-o.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function f0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateTimePicker,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function yo({form:e,name:t,...n}){const o=e.getInputProps(t).value,s=x.useMemo(()=>o&&typeof o=="object"?JSON.stringify(o):o||"",[o]);return t==="password"?d.jsx(v.PasswordInput,{...e.getInputProps(t),value:s,...n}):d.jsx(v.TextInput,{...e.getInputProps(t),value:s,...n})}function Uu({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(""),u=e.getInputProps(t).value,c=x.useMemo(()=>u?typeof u=="object"?JSON.stringify(u,null,2):u:"",[u]);return x.useEffect(()=>{a(c)},[c]),n?d.jsx(yo,{form:e,name:t,...o}):d.jsx(v.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...o,value:s,onChange:h=>{if(a(h),!h){e.getInputProps(t).onChange(null);return}try{const p=JSON.parse(h);e.getInputProps(t).onChange(p)}catch{}}})}function d0({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(!!n);return d.jsxs(v.InputWrapper,{label:o.label,description:o.description,children:[!n&&d.jsxs(v.Group,{align:"center",gap:"xs",py:"0.25rem",children:[d.jsx(v.Checkbox,{checked:s,onChange:u=>a(u.currentTarget.checked)}),d.jsx(v.Text,{size:"xs",children:"WKT"})]}),s?d.jsx(yo,{form:e,name:t,...o,label:void 0,description:void 0}):d.jsx(Uu,{form:e,name:t,...o,label:void 0,description:void 0})]})}function h0({form:e,name:t,items:n,...o}){const s=n.map(u=>({value:String(xt(u.id)),label:u.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(u=>String(typeof u=="object"?xt(u.id):u)):[];return d.jsx(v.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:a||[],...o})}function p0({form:e,name:t,items:n,filter:o,...s}){var u;const a=n.map(c=>({value:String(xt(c.id)),label:c.value}));return d.jsx(v.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:c=>{if(o){e.setFieldValue(t,c);return}const h=n.find(p=>String(xt(p.id))===c)||null;e.setFieldValue(t,h)},value:o?e.getInputProps(t).value:String(xt((u=e.getInputProps(t).value)==null?void 0:u.id))||"",...s})}function ju({form:e,name:t,items:n,...o}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function Wu({form:e,name:t,schema:n,filter:o,withinPortal:s=!0,...a}){if(!n.type)return null;switch(n.type){case"Boolean":return d.jsx(ju,{form:e,name:t,items:[{label:"true",value:o?"1":"true"},{label:"false",value:o?"0":"false"}],...a});case"RelatedList":return d.jsx(h0,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});case"Related":return d.jsx(p0,{form:e,name:t,items:n.values,filter:o,comboboxProps:{withinPortal:s},...a});case"DateTime":return d.jsx(f0,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:n,popoverProps:{withinPortal:s},...a});case"Date":return d.jsx(c0,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:n,popoverProps:{withinPortal:s},...a});case"Geometry":return d.jsx(d0,{form:e,name:t,filter:o,...a});case"Raw":return d.jsx(Uu,{form:e,name:t,filter:o,...a});case"Integer":case"Float":return d.jsx(yo,{form:e,name:t,...a});case"Enum":return d.jsx(ju,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});default:return d.jsx(yo,{form:e,name:t,...a})}}function ID({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function Vu({form:e,name:t,label:n,comboboxProps:o,...s}){const a=v.useCombobox({onDropdownClose:()=>a.resetSelectedOption(),onDropdownOpen:()=>a.updateSelectedOptionIndex("active")}),[u,c]=x.useState([]),[h,p]=x.useState(""),y=C=>{h!==""&&(u.includes(h)||c(E=>[...E,h]),p(""))},m=C=>c(E=>E.filter(w=>w!==C)),_=u.map(C=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>m(C),children:C},C));return x.useEffect(()=>{const C=e.getInputProps(t).value;if(C)try{c([...C])}catch(E){console.error("Error parsing JSON:",E)}},[]),x.useEffect(()=>{e.getInputProps(t).onChange(u)},[u]),d.jsx(v.InputWrapper,{label:n,children:d.jsxs(v.Combobox,{store:a,onOptionSubmit:y,...o,children:[d.jsx(v.Combobox.DropdownTarget,{children:d.jsx(v.PillsInput,{onClick:()=>a.openDropdown(),children:d.jsxs(v.Pill.Group,{children:[_,d.jsx(v.Combobox.EventsTarget,{children:d.jsx(v.PillsInput.Field,{onFocus:()=>a.openDropdown(),onBlur:()=>a.closeDropdown(),value:h,placeholder:"Search values",onChange:C=>{a.updateSelectedOptionIndex(),p(C.currentTarget.value)},onKeyDown:C=>{C.key==="Backspace"&&h.length===0&&(C.preventDefault(),m(u[u.length-1]))}})})]})})}),d.jsx(v.Combobox.Dropdown,{children:d.jsx(v.Combobox.Options,{children:d.jsxs(v.Combobox.Option,{value:"$create",children:["+ Create ",h]})})})]})})}function PD({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function g0({onClose:e,...t}){const{info:n,queryParams:o,setQueryParams:s,path:a}=Ae(),u=La.useForm({initialValues:{filters:[]},validate:AD(qi({filters:dl().of(qi({col:Jo().transform(m=>m||void 0).required("Field is required"),opr:Jo().transform(m=>m||void 0).required("col is required"),value:Ko().when("col",{is:m=>m&&n.filters[m].schema.required,then:()=>Ko().required("Value is required")})}))}))}),c={bg:"transparent",size:"sm",c:"gray"},h=v.useProps("ActionIcon",c,t);x.useEffect(()=>{u.setValues({filters:[]}),u.reset()},[a]),x.useEffect(()=>{if(o.filters&&o.filters.length){const m=o.filters.filter(_=>!_.id).map(_=>({..._,key:Ze.randomId()}));u.setFieldValue("filters",m)}},[o.filters]);const p=m=>{const _=m.filters.map(({key:E,...w})=>w),C=JSON.parse(JSON.stringify(_));s({filters:C,page:0}),e()},y=u.values.filters.map((m,_)=>d.jsxs(v.Box,{px:"sm",children:[d.jsxs(v.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(v.Box,{style:{width:"192px"},children:n&&n.filters&&d.jsx(ID,{form:u,name:`filters.${_}.col`,items:Object.entries(n.filters).map(([C,E])=>({label:E.label,value:String(C)})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:C,opr:"",value:"",key:Ze.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:m.col?d.jsx(PD,{form:u,name:`filters.${_}.opr`,items:n.filters[m.col].filters.filter(C=>!C.id).map(C=>({label:C.name,value:C.operator})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:u.values.filters[_].col,opr:C,value:"",key:Ze.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:m.col?m.opr==="in"?d.jsx(Vu,{form:u,name:`filters.${_}.value`}):d.jsx(Wu,{form:u,name:`filters.${_}.value`,schema:n.filters[m.col].schema,filter:!0}):null}),d.jsx(v.ActionIcon,{bg:h.bg,size:h.size,c:h.c,onClick:()=>{u.removeListItem("filters",_)},children:d.jsx(xd,{})})]}),u.values.filters.length>1&&_<u.values.filters.length-1?d.jsx(v.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},m.key));return d.jsxs(v.Box,{component:"form",onSubmit:u.onSubmit(p),children:[y.length===0&&d.jsx(v.Box,{style:{width:"642px"},children:d.jsx(v.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(v.ScrollArea.Autosize,{mah:"40vh",mt:20,children:y}),d.jsx(v.Divider,{my:"sm"}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(v.Button,{variant:"subtle",leftSection:d.jsx(vl,{}),onClick:()=>{u.insertListItem("filters",{col:"",opr:"",value:"",key:Ze.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function m0(...e){const{queryParams:t}=Ae(),n={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",n,e),[s,a]=x.useState(!1);return d.jsxs(v.Popover,{opened:s,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,children:[d.jsx(v.Popover.Target,{children:d.jsx(v.Tooltip,{opened:s?!1:null,label:"Filter",children:(t==null?void 0:t.filters.filter(u=>!u.id).length)!=0?d.jsx(v.Indicator,{zIndex:20,size:16,label:t==null?void 0:t.filters.length,children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})}):d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})})}),d.jsxs(v.Popover.Dropdown,{px:"xs",children:[d.jsx(v.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(v.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),d.jsx(g0,{onClose:()=>{a(!1)}})]})]})}const Gu=x.memo(({hideAdd:e,hideFilter:t,hideDownload:n,toolbarCustomizer:o})=>{const{info:s}=Ae(),a=x.useMemo(()=>{const c={};return Object.entries(o).forEach(([h,p])=>{c[h]=p,typeof c[h]=="function"&&(c[h]=c[h]())}),c},[o]),u=s.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!n&&(a.download||d.jsx(Ru,{size:"sm"})),u&&!e?a.add||d.jsx(Ku,{size:"sm"}):null,t?null:a.filter||d.jsx(m0,{})]})});Gu.displayName="Toolbar";function Hu({children:e,cond:t}){return Od(t)?e:null}const Yu=x.forwardRef((e,t)=>{const{path:n,data:o,loading:s,info:a,setQueryParams:u}=Ae(),{hideToolbar:c=!1,hideFilter:h=!1,hideAdd:p=!1,hideSettings:y=!1,hideActions:m=!1,hidePagination:_=!1,hideError:C=!1,hideDownload:E=!0,onSelectCheckbox:w=null,onClickEntry:$=null,fetchOnMount:N=!0,bulkActions:Q=null,styles:H,headerCustomizer:B={},bodyCustomizer:D={},toolbarCustomizer:k={},counter:G=!1,bodySeparator:ae,form:ie}=e;x.useEffect(()=>{!o&&N&&u({})},[o]);const{setView:S}=zn("add"),{setView:U}=zn("edit");if(x.useEffect(()=>{var fe,ye;(fe=ie==null?void 0:ie.add)!=null&&fe.initialView&&S(ie.add.initialView),(ye=ie==null?void 0:ie.edit)!=null&&ye.initialView&&U(ie.edit.initialView)},[]),!a)return;const ne=Q===null;return d.jsxs(v.Paper,{ref:t,h:"100%",display:"flex",pos:"relative",style:{flexDirection:"column",...H},children:[d.jsxs(Hu,{cond:!!a,children:[d.jsx(Ju,{jsonForms:ie==null?void 0:ie.add}),d.jsx(Iu,{jsonForms:ie==null?void 0:ie.edit})]}),c?null:d.jsx(Gu,{hideFilter:h,hideAdd:p,hideSettings:y,hideDownload:E,toolbarCustomizer:k}),o?d.jsx(u0,{bulkActions:Q,hideActions:m,loading:s,onSelectCheckbox:w,onClickEntry:$,hideCheckbox:ne,hideDownload:E,headerCustomizer:B,bodyCustomizer:D,bodySeparator:ae}):null,!_&&o?d.jsx(zu,{counter:G}):null,C?null:d.jsx(Pu,{})]})});Yu.displayName="DataGrid";function $D({relatedPath:e,...t}){const{path:n}=Ae();return it(n?n.substring(0,n.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(Td,{resource_name:e.replace("/",""),relation:t,children:d.jsx(Yu,{hideToolbar:!0,hideDownload:!1})})}const MD=x.memo($D);function y0({item:e,info:t,loading:n,opened:o,onClose:s,...a}){const u={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:c,tabs:h,tabsList:p,tabsPanel:y}=v.useProps("ViewDialog",u,a);return d.jsxs(v.Modal,{opened:o,onClose:s,title:`${e==null?void 0:e.show_title} (#${xt(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...c,children:[d.jsx(v.LoadingOverlay,{visible:n}),!n&&e?d.jsxs(v.Tabs,{defaultValue:"details",...h,children:[d.jsxs(v.Tabs.List,{...p,children:[d.jsx(v.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((m,_)=>d.jsx(v.Tabs.Tab,{value:m.name,children:m.name},_))]}),d.jsx(v.Tabs.Panel,{pt:"xs",value:"details",...y,children:d.jsx(v.Paper,{p:"xs",withBorder:!0,children:d.jsx(v.Stack,{spacing:"md",children:d.jsx(v.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((m,_)=>d.jsxs(v.Grid,{maw:500,children:[d.jsx(v.Grid.Col,{span:4,children:d.jsx(v.Text,{size:"md",children:e.label_columns[m]})}),d.jsx(v.Grid.Col,{span:1,children:d.jsx(v.Text,{size:"xs",children:":"})}),d.jsx(v.Grid.Col,{span:6,children:d.jsx(v.Text,{size:"md",children:Hi(e.result,m)})})]},_))})})})}),t.relations.map((m,_)=>d.jsx(v.Tabs.Panel,{pt:"xs",value:m.name,children:d.jsx(v.Paper,{withBorder:!0,children:d.jsx(MD,{relatedPath:m.path,id:xt(e.id),foreign_key:m.foreign_key,type:m.type})})},_))]}):null]})}function v0({id:e,...t}){const{info:n,getEntry:o}=Ae(),[s,a]=x.useState(null),[u,c]=x.useState(!1),[h,p]=x.useState(!1),y=ar({onClick:()=>{c(!0),o(e).then(m=>{m&&(a(m),p(!0))}).finally(()=>c(!1))},size:"sm",...t});return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{...y,children:d.jsx(r1,{})})}),d.jsx(y0,{item:s,info:n,loading:u,opened:h,onClose:()=>p(!1)})]})}function qu({id:e}){const{info:t}=Ae();return d.jsxs(v.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?d.jsx(v0,{id:e}):null,t!=null&&t.permissions.includes("can_put")?d.jsx($d,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?d.jsx(Pd,{id:e}):null]})}function Ku({tooltipProps:e,...t}){const{setOpened:n}=zn("add"),o=ar({onClick:()=>n(!0),...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Add Item",children:d.jsx(v.ActionIcon,{...o,children:d.jsx(vl,{})})})})}function Ju({jsonForms:e,...t}){const{info:n,addEntry:o}=Ae(),{opened:s,setOpened:a,state:u,setState:c,reset:h,view:p,setView:y}=zn("add"),{jsonForms:m}=v.useProps("AddDialog",{},{}),_=x.useMemo(()=>Bn(m,e),[m,e]),C=x.useCallback(async E=>{E==null||E.preventDefault(),await o(u.data),a(!1)},[o,a,u.data]);return d.jsx(xu,{schema:n.add_schema,uischema:n.add_uischema,state:u,setState:c,view:p,setView:y,jsonForms:_,onSubmit:C,buttonText:"Add",opened:s,onClose:()=>a(!1),onExitTransitionEnd:h,...p===mt.OVERLAY?Ou:{},...p===mt.NORMAL?Au:{},...t,title:t.title??(n==null?void 0:n.add_title)})}const b0=[{name:"John Doe",age:25,friend:"Jane Doe","friend.name":"Jane Doe","friend.age":30},{name:"Jane Doe",age:30,friend:"John Doe","friend.name":"John Doe","friend.age":25}];function Ru({tooltipProps:e,...t}){const{download:n}=Ae(),[o,{toggle:s,close:a}]=Ze.useDisclosure(),[u,c]=x.useState(!1),h=ar({onClick:s,...t}),p=(_,C)=>{c(!0),n(_,C).then(()=>{a()}).finally(()=>c(!1))},y=b0.map(_=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:_.name}),d.jsx(v.Table.Td,{p:4,children:_.age}),d.jsx(v.Table.Td,{p:4,children:_.friend})]},_.name)),m=b0.map(_=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:_.name}),d.jsx(v.Table.Td,{p:4,children:_.age}),d.jsx(v.Table.Td,{p:4,children:_["friend.name"]}),d.jsx(v.Table.Td,{p:4,children:_["friend.age"]})]},_.name));return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Download data",centered:!0,size:"xl",opened:o,onClose:a,children:d.jsxs(v.Group,{grow:!0,children:[d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Simplified version of the data"}),d.jsx(v.Tooltip,{label:"This is a simplified version of the data. It shows only the properties of the elements and their relationships",children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"Name"}),d.jsx(v.Table.Th,{p:4,children:"Age"}),d.jsx(v.Table.Th,{p:4,children:"Friend"})]})}),d.jsx(v.Table.Tbody,{children:y})]}),d.jsx(v.Button,{mt:"md",onClick:()=>p("","simplified"),children:"Download simplified"})]}),d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Detailed version of the data"}),d.jsx(v.Tooltip,{label:d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{children:"This is a detailed version of the data. It shows all the properties of the elements including all the properties of their relationships"}),d.jsx(v.Text,{children:"It can also be used as a CSV file to be imported into a database"})]}),children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"name"}),d.jsx(v.Table.Th,{p:4,children:"age"}),d.jsx(v.Table.Th,{p:4,children:"friend.name"}),d.jsx(v.Table.Th,{p:4,children:"friend.age"})]})}),d.jsx(v.Table.Tbody,{children:m})]}),d.jsx(v.Button,{mt:"md",onClick:()=>p("","detailed"),children:"Download detailed"})]})]})}),u?d.jsx(v.ThemeIcon,{variant:"transparent",size:h.size,c:h.c,children:d.jsx(v.Loader,{size:"100%",color:h.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Download",children:d.jsx(v.ActionIcon,{...h,children:d.jsx(t1,{})})})]})}function _0({tooltipProps:e,...t}){const[n,o]=x.useState(!1),{loading:s,refetch:a}=Ae(),u=ar({onClick:()=>{o(!0),a()},...t});return x.useEffect(()=>{s||o(!1)},[s]),n?d.jsx(v.ThemeIcon,{variant:"transparent",size:u.size,c:u.c,children:d.jsx(v.Loader,{size:"100%",color:u.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.refresh)??"Refresh",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(u1,{})})})}function T0({tooltipProps:e,...t}){const{upload:n,refetch:o}=Ae(),[s,{toggle:a,close:u}]=Ze.useDisclosure(),[c,h]=x.useState(),[p,y]=x.useState(za),m=ar({onClick:a,...t}),_=x.useCallback(async()=>{await n(c,p)&&o(),u()},[u,p,c,o,n]);return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Import data",centered:!0,opened:s,onClose:u,onExitTransitionEnd:()=>{h(null),y(za)},children:d.jsxs(v.Stack,{children:[d.jsx(v.FileInput,{value:c,onChange:h,accept:"text/csv",placeholder:"Upload CSV file",leftSection:d.jsx(i1,{}),clearable:!0}),d.jsx(v.Select,{value:p,onChange:y,data:Ef,placeholder:"Select delimiter",leftSection:d.jsx(c1,{})}),d.jsx(v.Group,{justify:"end",children:d.jsx(v.Button,{onClick:_,disabled:!c,children:"Upload"})})]})}),d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Upload CSV",children:d.jsx(v.ActionIcon,{...m,children:d.jsx(f1,{})})})]})}function FD({children:e,fetch:t=!0,loading:n=d.jsx(v.Center,{children:d.jsx(v.Loader,{})}),end:o=d.jsx(v.Center,{children:"End of data"}),fetchWrapper:s=v.Center,fetchWrapperProps:a}){const{streaming:u,loading:c}=Ae(),{ref:h,inViewport:p}=Ze.useInViewport(),y=x.useMemo(()=>Object.values(u.data).flat(),[u.data]),m=x.useMemo(()=>typeof e=="function"?e(y):e,[e,y]);return x.useEffect(()=>{p&&t&&u.fetch()},[p]),d.jsxs(d.Fragment,{children:[m,c&&n,u.isEnd&&o,d.jsx(s,{ref:h,id:"IS-load-trigger",mih:"1%",...a})]})}function DD(e,t){const n=Ae(),o=$r(),s=x.useCallback(({row:a,...u})=>d.jsx(Mn,{fallback:d.jsx(qu,{id:a.original.id}),functionProps:{api:n,auth:o,data:a.original,mrtProps:{row:a,...u}},children:t}),[n,o,t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:s}}function kD(e,t){return{enableRowSelection:!!e||!!t}}const zr=(e={},...t)=>t.reduce((n,o)=>Bn(n,e[o]),{}),vo=(e,t,n=!1)=>{let o="";n&&(o+="filter");const s=n?e[0].toUpperCase():e[0].toLowerCase();return o+=s+e.slice(1),`${o}.${t}`},w0=(e="")=>{e.startsWith("filter")&&(e=e.slice(6));const[t="",n=""]=e.split(".");return{col:t,operator:n}};function ND({col:e,colFilter:t,onClick:n,...o}){return d.jsxs(v.Menu,{shadow:"md",width:"target",...o,children:[d.jsx(v.Menu.Target,{children:d.jsx(v.Button,{children:"Add filter"})}),d.jsx(v.Menu.Dropdown,{children:t.filters.filter(s=>!s.id).map(s=>d.jsx(v.Menu.Item,{onClick:()=>n({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function LD({col:e}){const{info:t,queryParams:n,setQueryParams:o}=Ae(),s=La.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),a=x.useMemo(()=>(t==null?void 0:t.filters[e])||{},[e,t==null?void 0:t.filters]),u=x.useMemo(()=>{var y;return((y=a==null?void 0:a.filters)==null?void 0:y.reduce((m,_)=>({...m,[_.operator]:_.name}),{}))||{}},[a==null?void 0:a.filters]),[c]=Ze.useDebouncedValue(s.getValues(),rr);Ze.useDidUpdate(()=>{const y=c.filters.filter(m=>m.value);o({filters:y})},[c]);const h=s.getValues().filters,p=h.map((y,m)=>y.col===e&&!y.id?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:1.5,py:0,children:d.jsx(v.Center,{h:"100%",w:"100%",children:d.jsx(v.CloseButton,{onClick:()=>s.removeListItem("filters",m),size:"md",title:"Remove filter",variant:"outline"})})}),d.jsx(v.Grid.Col,{span:10.5,py:0,children:y.opr==="in"?d.jsx(Vu,{form:s,name:`filters.${m}.value`,label:u[y.opr],comboboxProps:{withinPortal:!1}}):d.jsx(Wu,{form:s,name:`filters.${m}.value`,label:u[y.opr],schema:a.schema,withinPortal:!1,filter:!0})}),m>=0&&m+1<h.length&&d.jsx(v.Grid.Col,{span:12,py:0,children:d.jsx(v.Divider,{my:"sm",label:"AND",align:"center"})})]},`${y.col}-${m}`):null).filter(Boolean);return d.jsxs(v.Grid,{w:p.length?"25rem":"100%",gap:"md",gutter:"xs",children:[p.length?p:d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Stack,{children:d.jsx(ND,{col:e,colFilter:a||{filters:[]},onClick:y=>s.insertListItem("filters",y),withinPortal:!1})})})]})}function BD({filters:e,col:t,opr:n,table:o}){const s=v.useMantineTheme();return e.map(a=>{const u=a.operator===n;return d.jsx(v.Menu.Item,{color:u?s.primaryColor:void 0,leftSection:d.jsx(v.Text,{size:"xl",ta:"center",w:"2ch",style:{transform:"translateY(-0.1em)"},children:a.name[0]}),onClick:()=>o.setColumnFilterFns(c=>({...c,[t]:vo(t,a.operator)})),value:a.opr,children:a.name},a.operator)})}function zD({enableAdvancedFilters:e,mode:t,setMode:n,col:o,opr:s,filters:a,table:u}){return d.jsxs(d.Fragment,{children:[e&&d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Item,{component:"div",p:0,children:d.jsx(v.SegmentedControl,{fullWidth:!0,size:"sm",data:["Basic","Advanced"],value:t,onChange:n})}),d.jsx(v.Menu.Divider,{})]}),t==="Basic"&&d.jsx(BD,{filters:a,col:o,opr:s,table:u}),t==="Advanced"&&d.jsx(LD,{col:o})]})}const wi=e=>e!=null&&e!=="",S0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>{const{value:s,onChange:a,leftInputProps:u,rightInputProps:c,groupProps:h,cleariconprops:p,...y}=n,[m,_]=x.useState([null,null]);x.useEffect(()=>{s||_([null,null])},[s]),x.useEffect(()=>{const B=JSON.stringify(m);let D=null;return m.every(wi)&&B!==s?D=setTimeout(()=>{a(JSON.stringify(m))},rr):m.every(k=>!wi(k))&&(D=setTimeout(()=>{a(void 0)},rr)),()=>clearTimeout(D)},[m]);const C=x.useCallback((B,D)=>{_(k=>{const G=[...k];return G[D]=B,G})},[]);let[E,w]=m;const $=wi(w)&&!wi(E),N=wi(E)&&!wi(w),Q=typeof E=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[null,B[1]]),children:d.jsx(Ad,{})}):null,H=typeof w=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[B[0],null]),children:d.jsx(Ad,{})}):null;return d.jsxs(v.Group,{w:"100%",wrap:"nowrap",align:"center",gap:"xs",...h,children:[d.jsx(v.NumberInput,{ref:o,styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:Q,...y,...t,value:E??"",onChange:B=>C(B,0),placeholder:$?"Start value is required":"Start value",error:$&&" ",...u}),d.jsx(v.NumberInput,{styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:H,...y,...t,value:w??"",onChange:B=>C(B,1),placeholder:N?"End value is required":"End value",error:N&&" ",...c})]})});S0.displayName="HeaderBetweenInput";const C0=x.forwardRef(({clearIcon:e,mrtprops:{selectprops:t},...n},o)=>d.jsx(v.Select,{ref:o,data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],...t,...n,value:ti(n.value)?String(n.value):null,onChange:s=>n.onChange(ti(s)?s===String(!0):void 0)}));C0.displayName="HeaderBooleanInput";const Zu=e=>e==="range"?[null,null]:null,E0=(e,t)=>e==="range"?t.every(n=>n!==null):t!==null,Xu=x.forwardRef(({type:e,clearIcon:t,mrtprops:{dateinputprops:n},...o},s)=>{const{value:a,onChange:u,...c}=o,[h,p]=x.useState(Zu(e));return x.useEffect(()=>{p(Zu(e))},[e]),x.useEffect(()=>{a||p(Zu(e))},[e,a]),x.useEffect(()=>{const y=JSON.stringify(e==="range"?h.map(_=>_?_.toISOString():null):(h==null?void 0:h.toISOString())??null);let m=null;return E0(e,h)&&y!==a?m=setTimeout(()=>{u(y)},rr):E0(e,h)||(m=setTimeout(()=>{u(void 0)},rr)),()=>clearTimeout(m)},[h]),d.jsx(Gi.DatePickerInput,{ref:s,type:e,clearable:!0,valueFormat:"DD.MM.YYYY",...c,...n,value:e==="range"?Array.isArray(h)?h:[null,null]:Array.isArray(h)?null:h,onChange:p})});Xu.displayName="HeaderDateInput";const x0=x.forwardRef(({data:e,clearIcon:t,mrtprops:{multiselectprops:n},placeholder:o,...s},a)=>{const u=Array.isArray(s.value)?s.value.map(c=>String(typeof c=="object"?xt(c.id):c)):[];return d.jsxs(v.Box,{...s,children:[!u.length&&d.jsx(v.TextInput,{pos:"absolute",placeholder:o,...s,value:void 0,onChange:void 0}),d.jsx(v.MultiSelect,{ref:a,styles:{pill:{maxWidth:"5rem"}},data:e,...n,...s,value:u})]})});x0.displayName="HeaderMultiSelectInput";const A0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.NumberInput,{ref:o,rightSection:e,...t,...n,value:n.value??""}));A0.displayName="HeaderNumberInput";const Qu=x.forwardRef(({data:e,clearIcon:t,mrtprops:{selectprops:n},...o},s)=>d.jsx(v.Select,{ref:s,data:e,searchable:!0,...n,...o,value:o.value??null}));Qu.displayName="HeaderSelectInput";const ec=x.forwardRef(({clearIcon:e,mrtprops:{multiselectprops:t},...n},o)=>d.jsx(v.TagsInput,{ref:o,styles:{pill:{maxWidth:"5rem"}},...t,...n,value:n.value??[],onChange:s=>n.onChange(s.length?s:void 0)}));ec.displayName="HeaderTagsInput";const tc=x.forwardRef((e,t)=>{const[n,o]=x.useState();return d.jsx(ec,{ref:t,...e,searchValue:n?n.toString():"",onSearchChange:s=>{if(!s){o(void 0);return}const a=Number(s);isNaN(a)||o(a)}})});tc.displayName="HeaderTagsNumberInput";const nc=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.TextInput,{ref:o,rightSection:e,...t,...n,value:n.value||""}));nc.displayName="HeaderTextInput";const O0=x.forwardRef(({component:e,...t},n)=>{const o=Ae(),s=$r(),a=x.useMemo(()=>({api:o,auth:s,componentProps:{...t,ref:n}}),[o,s,t,n]);return d.jsx(Mn,{ref:n,fallback:d.jsx(nc,{...t}),functionProps:a,children:e})});O0.displayName="HeaderInput";const UD=(e,t)=>{if(!(!e||!t)){switch(e){case"tc":return({componentProps:n})=>d.jsx(nc,{...n});case"in":switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(tc,{...n});case"Enum":return({componentProps:n})=>d.jsx(tc,{data:t.values,...n})}return({componentProps:n})=>d.jsx(ec,{...n});case"bw":switch(t.type){case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Xu,{type:"range",...n});default:return({componentProps:n})=>d.jsx(S0,{...n})}case"eq":case"neq":switch(t.type){case"Boolean":return({componentProps:n})=>d.jsx(C0,{...n})}break;case"rel_o_m":case"nrel_o_m":return({componentProps:n})=>d.jsx(Qu,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n});case"rel_m_m":case"nrel_m_m":return({componentProps:n})=>d.jsx(x0,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n})}switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(A0,{...n});case"Enum":return({componentProps:n})=>d.jsx(Qu,{data:t.values,...n});case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Xu,{...n})}}},Si={root:"_root_yn5fy_1","date-filter":"_date-filter_yn5fy_5"},I0=x.forwardRef(({label:e,disabled:t,children:n,...o},s)=>t?x.cloneElement(n,{ref:s}):d.jsx(v.Tooltip,{label:e,...o,children:x.cloneElement(n,{ref:s})}));I0.displayName="FilterIconWrapper";const P0=x.forwardRef(({indicator:e,children:t,...n},o)=>{const{height:s,ref:a}=Ze.useElementSize(),u=Ze.useMergedRef(o,a);if(!e)return x.cloneElement(t,{ref:u});const c=2;//! This is the height offset between the button from ActionIcon and the icon itself
227
- return d.jsx(v.Indicator,{zIndex:20,size:16,label:e,styles:{root:{height:s+c}},...n,children:x.cloneElement(t,{ref:u})})});P0.displayName="FilterIndicatorWrapper";function jD({children:e,enableFilterModes:t,enableAdvancedFilters:n,filterProps:o,filterModeDescription:s,filterMenu:a,filters:u,filterFn:c,mrtProps:{column:h,table:p,...y}}){var R;const{info:m,queryParams:_,setQueryParams:C}=Ae(),E=Ae(),w=$r(),$=x.useMemo(()=>{var Y,ee;return(ee=(Y=m==null?void 0:m.filters)==null?void 0:Y[h.id])==null?void 0:ee.schema},[h.id,m==null?void 0:m.filters]),[N,Q]=x.useState("Basic"),[H,{toggle:B}]=Ze.useDisclosure(),D=((R=p.getState().columnFilterFns)==null?void 0:R[h.id])||c,k=x.useMemo(()=>w0(D).operator,[D]),G=x.useMemo(()=>{var Y;return(Y=u==null?void 0:u.find(ee=>ee.operator===k))==null?void 0:Y.name},[u,k]),ae=La.useField({mode:"controlled"}),ie=x.useRef(k),S=x.useMemo(()=>(_==null?void 0:_.filters.filter(Y=>Y.id!==h.id&&Y.col===h.id).map(Y=>({...Y})))||[],[_,h.id]);ie.current!==k&&(ie.current=k,ae.reset());const U=x.useCallback(()=>{ae.reset(),h.setFilterValue(void 0)},[]),[ne]=Ze.useDebouncedValue(ae.getInputProps().value,rr),fe=Ze.useMounted(),ye=x.useMemo(()=>_==null?void 0:_.filters.find(Y=>Y.col===h.id&&Y.opr===k),[h.id,k,_==null?void 0:_.filters]);x.useEffect(()=>{fe&&h.setFilterValue(ne??void 0)},[ne]),x.useEffect(()=>{if(!fe)return;const Y=h.getFilterValue();Y===void 0?U():ae.getInputProps().onChange(Y)},[h.getFilterValue()]),x.useEffect(()=>{fe&&(ye||U())},[ye]),Ze.useDidUpdate(()=>{var ee;const Y=(ee=_==null?void 0:_.filters)==null?void 0:ee.filter(oe=>oe.id!==h.id);ti(ne)&&ne!==""&&Y.push({id:h.id,col:h.id,opr:k,value:ne}),C({filters:Y})},[ne]);const Me=x.useMemo(()=>{const Y={variant:"subtle"};return!(u!=null&&u.length)&&(Y.disabled=!0,Y.c="gray"),Y},[u==null?void 0:u.length]),we=x.useMemo(()=>ja(t?e==null?void 0:e[k]:e,UD(k,$)),[e,t,k,$]),Le=x.useMemo(()=>({...Me,variant:"transparent",c:void 0,size:"sm",onClick:U}),[Me,U]),Ie=x.useMemo(()=>({api:E,auth:w,mrtProps:{column:h,table:p,...y}}),[E,w,h,y,p]),lt=x.useMemo(()=>({...Ie,componentProps:{label:p.options.localization.changeFilterMode,disabled:!(u!=null&&u.length),indicator:S.length,aiProps:Me,onClick:B}}),[Me,S.length,u==null?void 0:u.length,Ie,p.options.localization.changeFilterMode,B]),q=x.useMemo(()=>({...Ie,componentProps:{filterMode:G}}),[G,Ie]),K=ft(t?zr(o,k):o,Ie),Z=x.useMemo(()=>{var Y,ee;return{w:"100%",variant:"unstyled",disabled:!(u!=null&&u.length),title:u.length?void 0:"No filters",placeholder:(Y=p.options.localization.filterByColumn)==null?void 0:Y.replace("{column}",String(h.columnDef.header)),"aria-label":(ee=p.options.localization.filterByColumn)==null?void 0:ee.replace("{column}",String(h.columnDef.header)),style:{fontWeight:"normal"},mrtprops:{column:h,table:p,...y,textinputprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterTextInputProps,[{column:h,table:p,...y}]),...ft(h.columnDef.mantineFilterTextInputProps,[{column:h,table:p,...y}])},selectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterSelectProps||{clearable:!0},{column:h,table:p,...y}),...ft(h.columnDef.mantineFilterSelectProps,{column:h,table:p,...y})},multiselectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterMultiSelectProps||{clearable:!0},{column:h,table:p,...y}),...ft(h.columnDef.mantineFilterMultiSelectProps,{column:h,table:p,...y})},dateinputprops:{className:Pr("mrt-filter-text-input",Si.root,Si["date-filter"]),...ft(p.mantineFilterDateInputProps,{column:h,table:p,...y}),...ft(h.columnDef.mantineFilterDateInputProps,{column:h,table:p,...y})},autocompleteprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterAutocompleteProps,{column:h,table:p,...y}),...ft(h.columnDef.mantineFilterAutocompleteProps,{column:h,table:p,...y})}},ref:oe=>{oe&&(p.refs.filterInputRefs.current[`${h.id}-0`]=oe)},clearIcon:ae.isDirty()&&d.jsx(v.CloseButton,{...Le}),...K,cleariconprops:Le}},[Le,h,K,ae,u.length,y,p]);return d.jsxs(v.Menu,{opened:H,closeOnClickOutside:!0,onChange:B,children:[d.jsxs(v.Stack,{w:"100%",gap:"0.25rem",children:[d.jsxs(v.Flex,{align:"flex-end",children:[d.jsx(O0,{component:we,field:ae,...ae.getInputProps(),...Z}),t&&d.jsx(v.Menu.Target,{children:d.jsx(Mn,{fallback:u.length?d.jsx(I0,{label:p.options.localization.changeFilterMode,position:"bottom-start",withArrow:!0,arrowPosition:"side",children:d.jsx(P0,{indicator:n?S.length:void 0,children:d.jsx(v.ActionIcon,{...Me,onClick:B,children:d.jsx(o1,{})})})}):null,functionProps:lt,children:a})})]}),t&&d.jsx(Mn,{fallback:u.length?d.jsx(v.Input.Description,{size:"xs",children:p.options.localization.filterMode.replace("{filterType}",yn.localizedFilterOption(zr(p.options.localization,h.id),G)||yn.localizedFilterOption(p.options.localization,G)||G)}):null,functionProps:q,children:s})]}),d.jsx(v.Menu.Dropdown,{children:d.jsx(zD,{enableAdvancedFilters:n,mode:N,setMode:Q,col:h.id,opr:k,filters:u,table:p})})]})}function WD({highlight:e,truncate:t,children:n}){return Array.isArray(n)?n.map((o,s)=>{var a;return(a=t==null?void 0:t[s])!=null&&a.truncated?d.jsx(v.Tooltip,{label:t[s].original,children:d.jsx(v.Highlight,{highlight:e,children:t[s].truncated},s)},s):d.jsx(v.Highlight,{highlight:e,children:o},s)}):t!=null&&t.truncated?d.jsx(v.Tooltip,{label:t.original,children:d.jsx(v.Highlight,{highlight:e,children:t.truncated})}):d.jsx(v.Highlight,{highlight:e,children:n})}function VD(e,t,n,o){const{path:s,info:a,data:u,specialKey:c}=Ae(),h=Ae(),p=$r(),y=x.useMemo(()=>(u==null?void 0:u.list_columns.map(C=>{var ie,S,U,ne,fe,ye,Me;const{component:E,enableFilterModes:w,enableAdvancedFilters:$,filterComponent:N,filterProps:Q,filterModeDescription:H,filterMenu:B,defaultOpr:D=((ne=(U=(S=(ie=a==null?void 0:a.filters)==null?void 0:ie[C])==null?void 0:S.filters)==null?void 0:U[0])==null?void 0:ne.operator)||""}=zr(t,c.all,C),k=vo(C,D),G=((ye=(fe=a==null?void 0:a.filters)==null?void 0:fe[C])==null?void 0:ye.filters)||[],ae={};return E!==void 0&&(ae.Header=we=>ft(E,{api:h,auth:p,mrtProps:we})),{accessorKey:C,accessorFn:we=>Hi(we,C),header:(Me=u==null?void 0:u.label_columns)==null?void 0:Me[C],Filter:we=>d.jsx(jD,{enableFilterModes:w,enableAdvancedFilters:$,filterProps:Q,filterModeDescription:H,filterMenu:B,filters:G,filterFn:k,mrtProps:we,children:N}),enableSorting:(u==null?void 0:u.order_columns.includes(C))||(u==null?void 0:u.order_columns.includes(`${C}.id`)),filterFn:G.length?k:void 0,columnFilterModeOptions:G.map(we=>vo(C,we.operator)),Cell:({cell:we,table:Le,column:Ie,...lt})=>{const q=Le.getState().globalFilter,K=Ie.getFilterValue()||"",{component:Z,separator:R,truncate:Y}=zr(n,c.all,C);let ee=[];q&&ee.push(...q.split(o).map(pe=>pe.trim())),K&&typeof K=="string"&&ee.push(...K.split(o).map(pe=>pe.trim()));let oe=we.getValue();typeof oe=="number"?oe=oe.toLocaleString():oe==null&&(oe=""),R&&(oe=oe.split(R));let ve={};Y&&(Array.isArray(oe)?ve=oe.map(pe=>({original:pe,truncated:pe.length>Y?`${pe.slice(0,Y)}...`:null})):ve={original:oe,truncated:oe.length>Y?`${oe.slice(0,Y)}...`:null});const be={api:h,auth:p,data:we.row.original,highlight:ee,componentProps:{value:oe},mrtProps:{cell:we,table:Le,column:Ie,...lt}};return d.jsx(Mn,{fallback:d.jsx(WD,{highlight:ee,truncate:ve,children:oe}),functionProps:be,children:Z})},...ae,...zr(e,c.all,C)}}))||[],[u==null?void 0:u.list_columns,u==null?void 0:u.label_columns,u==null?void 0:u.order_columns,a,e,c.all,h,p,t,n,o]),[m,_]=Ze.useSetState({});return x.useEffect(()=>{y.length&&_({[u.path]:y})},[y]),{columns:y.length?y:(m==null?void 0:m[s])||y,manualFiltering:!0}}function GD(){const{data:e,loading:t}=Ae();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function HD(e){const{data:t}=Ae();return e?{mantineTableBodyRowProps:({row:n})=>({onClick:()=>{const o=t.ids[n.id];e(o,n.original)},style:{cursor:"pointer"}})}:null}function YD(){const{info:e}=Ae();return{filterFns:x.useMemo(()=>Object.entries((e==null?void 0:e.filters)||{}).reduce((t,[n,o])=>(o.filters.filter(s=>s.operator.startsWith("header:")).forEach(s=>t[vo(n,s.operator)]=null),t),{}),[e==null?void 0:e.filters])}}function qD(){const{queryParams:e,setQueryParams:t}=Ae(),n=x.useMemo(()=>e==null?void 0:e.global_filter,[e==null?void 0:e.global_filter]),[o,s]=x.useState(n||""),[a]=Ze.useDebouncedValue(o,rr);return Ze.useDidUpdate(()=>{n&&n!==a&&s(n)},[n]),Ze.useDidUpdate(()=>{a?t({page:0,global_filter:a}):e!=null&&e.global_filter&&t({page:0,global_filter:void 0})},[a]),{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:o}}}function KD(e){const{data:t,queryParams:n,setQueryParams:o}=Ae(),s=x.useMemo(()=>({pageIndex:(n==null?void 0:n.page)||Sf,pageSize:(n==null?void 0:n.page_size)||Cf}),[n==null?void 0:n.page,n==null?void 0:n.page_size]),a=x.useCallback(u=>{const c=u(s);!(t!=null&&t.count)&&c.pageIndex===0||o({page:c.pageIndex,page_size:c.pageSize})},[t==null?void 0:t.count,s,o]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:a}}function JD(e){const{ref:t,height:n}=Ze.useElementSize(),{ref:o,height:s}=Ze.useElementSize(),a=x.useMemo(()=>{const p={h:"100%",withBorder:e};return e||(p.shadow=void 0),p},[e]),u=x.useMemo(()=>({ref:o}),[o]),c=x.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),h=x.useMemo(()=>({h:`calc(100% - ${s+n}px)`}),[s,n]);return{mantinePaperProps:a,mantineTopToolbarProps:u,mantineBottomToolbarProps:c,mantineTableContainerProps:h}}function RD(){const{queryParams:e,setQueryParams:t,data:n}=Ae(),o=x.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=x.useCallback(a=>{const u=a(o);if(!u.length){t({order_column:null,order_direction:null});return}const c=u[0];t({order_column:n.order_columns.includes(c.id)?c.id:`${c.id}.id`,order_direction:c.desc?"desc":"asc"})},[n==null?void 0:n.order_columns,t,o]);return{manualSorting:!0,state:{sorting:o},onSortingChange:s}}function ZD(e,t){return{toggleGlobalFilter:d.jsx(yn.MRT_ToggleGlobalFilterButton,{table:e,disabled:!1},"basic-toggleGlobalFilter"),filter:d.jsx(yn.MRT_ToggleFiltersButton,{table:e},"basic-filter"),refresh:d.jsx(_0,{tooltipProps:{label:e.options.localization.refresh}},"basic-refresh"),add:(t==null?void 0:t.add)&&d.jsx(Ku,{tooltipProps:{label:e.options.localization.add}},"basic-add"),download:(t==null?void 0:t.download)&&d.jsx(Ru,{tooltipProps:{label:e.options.localization.download}},"basic-download"),upload:(t==null?void 0:t.upload)&&d.jsx(T0,{tooltipProps:{label:e.options.localization.upload}},"basic-upload"),showHideColumns:d.jsx(yn.MRT_ShowHideColumnsButton,{table:e},"basic-showHideColumns"),toggleDensePadding:d.jsx(yn.MRT_ToggleDensePaddingButton,{table:e},"basic-toggleDensePadding"),toggleFullScreen:d.jsx(yn.MRT_ToggleFullScreenButton,{table:e},"basic-toggleFullScreen")}}function $0(e,t,n,o){Object.entries(e||{}).forEach(([a,u])=>{a in t&&(t[a]=d.jsx(Mn,{fallback:t[a],functionProps:n,children:u},`custom-${a}`))});let s=Object.values(t);return Object.entries(o||{}).forEach(([a,u])=>{a=Number(a)-1;const c=d.jsx(Mn,{functionProps:n,children:u},`order-${a}`);a>s.length?s.push(c):s=[...s.slice(0,a),c,...s.slice(a)]}),d.jsx(v.Flex,{gap:"0.125rem",align:"center",children:s})}function XD(e={},t,n){const{info:o,queryParams:s,setQueryParams:a}=Ae(),u=Ae(),c=$r(),{customizer:h,custom:p,leftToolbar:y}=e,m=x.useMemo(()=>t?[{label:"All",value:"[]"},...t.map(E=>({label:E.name,value:JSON.stringify(E.value)}))]:[],[t]),_=x.useMemo(()=>m.length?d.jsx(v.SegmentedControl,{value:JSON.stringify((s==null?void 0:s.filters)||[]),onChange:E=>a({filters:JSON.parse(E)}),data:m}):null,[s==null?void 0:s.filters,m,a]);return{renderToolbarInternalActions:x.useCallback(({table:E})=>{const w={api:u,auth:c,mrtProps:{table:E}},$={add:o==null?void 0:o.permissions.includes("can_post"),download:o==null?void 0:o.permissions.includes("can_download"),upload:o==null?void 0:o.permissions.includes("can_upload")},N=ZD(E,$);return $0(h,N,w,p)},[u,c,p,h,o==null?void 0:o.permissions]),enableTopToolbar:!n,enableFilters:(h==null?void 0:h.filter)!==null,...x.useMemo(()=>{if(_&&y)throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");const E={};if(_&&(E.renderTopToolbarCustomActions=()=>d.jsx(v.Group,{justify:"space-between",children:d.jsx(v.Box,{children:_})}),E.positionToolbarAlertBanner="bottom"),y){const{custom:w}=y;E.renderTopToolbarCustomActions=({table:$})=>$0(void 0,{},{api:u,auth:c,mrtProps:{table:$}},w),E.positionToolbarAlertBanner="bottom"}return E},[u,c,y,_])}}const M0={"toolbar-alert":"_toolbar-alert_bw71q_25","head-overlay":"_head-overlay_bw71q_28"},QD=({alertBanner:e,table:t,...n})=>{var we,Le;const{getFilteredSelectedRowModel:o,getPrePaginationRowModel:s,getState:a,resetRowSelection:u,options:{enableRowSelection:c,enableSelectAll:h,icons:{IconX:p},localization:y,mantineToolbarAlertBannerBadgeProps:m,mantineToolbarAlertBannerProps:_,manualPagination:C,positionToolbarAlertBanner:E,rowCount:w}}=t,{density:$,grouping:N,rowSelection:Q}=a(),{left:H,right:B,renderToolbarAlertBannerContent:D,wrapperProps:k}=e??{},{flex:G,group:ae,stack:ie}=k??{},S={...ft(_,{table:t}),...n},U=ft(m,{table:t}),ne=w??s().flatRows.length,fe=x.useMemo(()=>C?Object.values(Q).filter(Boolean).length:o().rows.length,[Q,ne,C]),ye=fe?d.jsxs(v.Flex,{align:"center",gap:"sm",children:[(Le=(we=y.selectedCountOfRowCountRowsSelected)==null?void 0:we.replace("{selectedCount}",fe.toString()))==null?void 0:Le.replace("{rowCount}",ne.toString()),d.jsx(v.Button,{onClick:u,size:"compact-xs",variant:"subtle",children:y.clearSelection}),d.jsx(v.Button,{onClick:Ie=>yn.getMRT_SelectAllHandler({table:t})(Ie,!1,!0),size:"compact-xs",variant:"subtle",children:y.clearSelectionOnThisPage??"Clear selection on this page"})]}):null,Me=N.length>0?d.jsxs(v.Group,{gap:"xs",children:[y.groupedBy,N.map((Ie,lt)=>d.jsxs(x.Fragment,{children:[lt>0?y.thenBy:"",d.jsxs(v.Badge,{className:"alert-badge",rightSection:d.jsx(v.ActionIcon,{color:"white",onClick:()=>t.getColumn(Ie).toggleGrouping(),size:"xs",variant:"subtle",children:d.jsx(p,{style:{transform:"scale(0.8)"}})}),variant:"filled",...U,children:[t.getColumn(Ie).columnDef.header," "]})]},`${lt}-${Ie}`))]}):null;return d.jsxs(v.Flex,{className:Pr(M0["toolbar-alert"],E==="head-overlay"&&M0["head-overlay"],$),...G,children:[c&&h&&E==="head-overlay"&&d.jsx(yn.MRT_SelectCheckbox,{table:t}),d.jsxs(v.Group,{align:"flex-start",gap:"xs",...ae,children:[ft(H,{table:t}),ja(ft(D,{selectedAlert:ye,groupedAlert:Me,table:t}),d.jsxs(v.Stack,{gap:"xs",...ie,children:[S==null?void 0:S.children,ye,Me]})),ft(B,{table:t})]})]})};function ek(e){const{alertBanner:t}=e;return{renderToolbarAlertBannerContent:({table:n})=>d.jsx(QD,{alertBanner:t,table:n})}}function tk(){const{data:e}=Ae();return x.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const nk={enableStickyHeader:!0,enableColumnPinning:!0},F0=x.forwardRef((e,t)=>{var Lt,dr,vt;const{info:n,data:o,queryParams:s,refetch:a,specialKey:u}=Ae(),c=v.useProps("NextGenDataGrid",{},{}),{fetchOnMount:h=!0,hideToolbar:p,hideActions:y,hidePagination:m,hideError:_,onSelectCheckbox:C,onClickEntry:E,bulkActions:w,table:$,quickFilters:N,withBorder:Q,columnProps:H,header:B,body:D,form:k,toolbar:G={},textFilterSeparator:ae=";",bodySeparator:ie,bodyTruncate:S,headerCustomizer:U,bodyCustomizer:ne,toolbarCustomizer:fe,hideAdd:ye,hideDownload:Me,hideFilter:we,...Le}=x.useMemo(()=>Bn(c,e),[e,c]);ie&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].separator=D[ke].separator||ie}),S&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].truncate=D[ke].truncate||S}),U&&Object.keys(U).forEach(ke=>{B[ke]=B[ke]||{},B[ke].component=U[ke].component||U[ke]}),ne&&Object.keys(ne).forEach(ke=>{D[ke]=D[ke]||{},D[ke].component=ne[ke].component||ne[ke]}),fe&&(G.custom=G.custom||fe),ye&&(G.customizer=G.customizer||{},G.customizer.add=G.customizer.add||null),Me&&(G.customizer=G.customizer||{},G.customizer.download=G.customizer.download||null),we&&(G.customizer=G.customizer||{},G.customizer.filter=G.customizer.filter||null),x.useEffect(()=>{process.env.NODE_ENV==="development"&&(ie&&console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),S&&console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),U&&console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),ne&&console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),fe&&console.warn("toolbarCustomizer is deprecated, please use toolbar.custom instead"),ye&&console.warn("hideAdd is deprecated, please use toolbar.customizer.add instead"),Me&&console.warn("hideDownload is deprecated, please use toolbar.customizer.download instead"),we&&console.warn("hideFilter is deprecated, please use toolbar.customizer.filter instead"))},[]);const Ie=GD(),lt=RD(),q=KD(m),K=VD(H,B,D,ae),Z=JD(Q),R=DD(y,(Lt=zr(D,u.actions))==null?void 0:Lt.component),Y=qD(),ee=tk(),oe=XD(G,N,p),ve=HD(E),be=kD(C,w),pe=YD(),Ce=ek(G),tt=x.useMemo(()=>Bn(nk,{mantinePaperProps:{ref:t},getRowId:ke=>ke.id},K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$),[t,K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$]),te=yn.useMantineReactTable(tt);x.useEffect(()=>{!s&&h&&a()},[]),x.useEffect(()=>{C==null||C(Object.keys(te.getState().rowSelection)),w==null||w.setSelectedIds(Object.keys(te.getState().rowSelection))},[w,o==null?void 0:o.ids,te.getState().rowSelection,C]);const{setView:yt}=zn("add"),{setView:Je}=zn("edit");return x.useEffect(()=>{var ke,Yn;(ke=k==null?void 0:k.add)!=null&&ke.initialView&&yt(k.add.initialView),(Yn=k==null?void 0:k.edit)!=null&&Yn.initialView&&Je(k.edit.initialView)},[]),d.jsxs(v.Box,{h:"100%",w:"100%",pos:"relative",children:[d.jsxs(Hu,{cond:!!n,children:[d.jsx(Ju,{jsonForms:k==null?void 0:k.add,...(dr=k==null?void 0:k.add)==null?void 0:dr.dialogProps}),d.jsx(Iu,{jsonForms:k==null?void 0:k.edit,...(vt=k==null?void 0:k.edit)==null?void 0:vt.dialogProps})]}),d.jsx(yn.MantineReactTable,{table:te,...Le}),_?null:d.jsx(Pu,{})]})});F0.displayName="NextGenDataGrid";const rc={iconSmall:"_iconSmall_sxv3z_1",btn:"_btn_sxv3z_17"};function rk({basePath:e="/security",Target:t,children:n}){const o=_f.useNavigate(),{user:s,signout:a}=$r(),[u,c]=x.useState(!1),p=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:d1},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:s1},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Ed},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Ed},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:e1}].filter(y=>s.permissions.includes(y.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:u,onClose:()=>c(!1),onOpen:()=>c(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:rc.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(v.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(v.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),d.jsx(yl,{size:12})]})})}),d.jsxs(v.Menu.Dropdown,{children:[p.length?d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Label,{children:"Security"}),p.map((y,m)=>d.jsx(v.Menu.Item,{p:12,leftSection:d.jsx(y.Icon,{className:rc.iconSmall}),onClick:()=>o(y.resource_name),children:y.label},m)),d.jsx(v.Menu.Divider,{})]}):null,n,d.jsx(v.Menu.Item,{leftSection:d.jsx(a1,{p:12,className:rc.iconSmall}),onClick:a,children:"Logout"})]})]})}O.Actions=qu,O.Add=Ku,O.AddDialog=Ju,O.AlertDialog=Id,O.ApiContext=Ba,O.ApiProvider=Td,O.AuthContext=Wa,O.Body=a0,O.BulkActionsContext=Ga,O.CommonModal=xu,O.DEBOUNCE_DELAY=rr,O.DEFAULT_DELIMITER=za,O.DEFAULT_PAGE=Sf,O.DEFAULT_PAGE_SIZE=Cf,O.DELIMITER_DATA=Ef,O.DataGrid=Yu,O.Delete=Pd,O.DeleteDialog=Qh,O.Download=Ru,O.Edit=$d,O.EditDialog=Iu,O.ErrorDialog=Pu,O.FallbackWrapper=Mn,O.Field=mo,O.FieldTitle=Us,O.Filter=m0,O.FilterMenu=g0,O.FormAutocomplete=OD,O.FormContextAdd=Ha,O.FormContextEdit=Ya,O.FormDatePicker=c0,O.FormDateTimePicker=f0,O.FormField=Wu,O.FormFilterIn=Vu,O.FormGeometryField=d0,O.FormJsonField=Uu,O.FormRelatedListSelect=h0,O.FormRelatedSelect=p0,O.FormSelect=ju,O.FormTextField=yo,O.Header=Bu,O.InfiniteScroll=FD,O.InfoContext=Va,O.LazyLoadWrapper=Hu,O.Main=u0,O.MantineArrayControlRenderer=lm,O.MantineBooleanCell=Bh,O.MantineBooleanControl=mm,O.MantineBooleanInput=Wl,O.MantineDateCell=Uh,O.MantineDateControl=vm,O.MantineDateInput=Vl,O.MantineDateTimeCell=Wh,O.MantineDateTimeControl=_m,O.MantineDateTimeInput=Gl,O.MantineEnumArrayInput=Dh,O.MantineEnumArrayRenderer=dm,O.MantineEnumCell=Gh,O.MantineEnumControl=wm,O.MantineEnumInput=Hl,O.MantineGroupLayoutRenderer=Nm,O.MantineGroupLayoutTester=km,O.MantineHorizontalLayoutRenderer=Bm,O.MantineIntegerCell=Yh,O.MantineIntegerControl=Cm,O.MantineJsonControl=xm,O.MantineJsonInput=kh,O.MantineLabelRenderer=Dm,O.MantineLabelTester=Fm,O.MantineLayoutRenderer=ls,O.MantineNumberCell=Kh,O.MantineNumberControl=Om,O.MantineNumberInput=to,O.MantineObjectControl=pm,O.MantineObjectControlTester=hm,O.MantineObjectInput=Nh,O.MantineOneOfEnumCell=Rh,O.MantineOneOfEnumControl=Pm,O.MantineOneOfEnumInput=Yl,O.MantineTableControl=sm,O.MantineTextCell=Xh,O.MantineTextControl=Mm,O.MantineTextInput=ql,O.MantineVerticalLayoutRenderer=Um,O.NextGenDataGrid=F0,O.NoBorderTableCell=Ti,O.NonEmptyRow=om,O.Pagination=zu,O.Provider=sb,O.Refresh=_0,O.Row=s0,O.TableToolbar=em,O.Toolbar=Gu,O.Upload=T0,O.UserMenu=rk,O.VIEW_MODE=mt,O.ValidationIcon=Qg,O.View=v0,O.ViewDialog=y0,O.authInfo=Ff,O.authOAuthSignin=Mf,O.authResetPassword=$f,O.authSignin=If,O.authSignout=Pf,O.compareStateWithStore=Af,O.convertId=xt,O.convertInfo=vd,O.convertLocalToUTCISOString=jl,O.convertToFormInputs=Vm,O.convertUTCISOStringToLocal=Ih,O.createFetchParams=Tt,O.createItem=zf,O.createProxy=zo,O.createQueryParams=Ki,O.deepMerge=Bn,O.deleteItem=Uf,O.downloadItems=jf,O.fromFilterFnToFilter=w0,O.fromFilterToFilterFn=vo,O.getDefaultValues=qa,O.getInfo=Wf,O.getItem=Vf,O.getItems=Gf,O.getProps=zr,O.getUser=Df,O.getValidationSchema=gl,O.getValue=Hi,O.getValueOrDefault=ja,O.initialState=Uo,O.isEnumArrayControl=um,O.isJsonControl=cm,O.isSchemaTypeInclude=lr,O.isTruthy=ti,O.mantineArrayControlTester=am,O.mantineBooleanCellTester=Lh,O.mantineBooleanControlTester=gm,O.mantineCells=jm,O.mantineDateCellTester=zh,O.mantineDateControlTester=ym,O.mantineDateTimeCellTester=jh,O.mantineDateTimeControlTester=bm,O.mantineEnumArrayRendererTester=fm,O.mantineEnumCellTester=Vh,O.mantineEnumControlTester=Tm,O.mantineHorizontalLayoutTester=Lm,O.mantineIntegerCellTester=Hh,O.mantineIntegerControlTester=Sm,O.mantineJsonControlTester=Em,O.mantineNumberCellTester=qh,O.mantineNumberControlTester=Am,O.mantineOneOfEnumCellTester=Jh,O.mantineOneOfEnumControlTester=Im,O.mantineRenderers=Wm,O.mantineTextCellTester=Zh,O.mantineTextControlTester=$m,O.mantineVerticalLayoutTester=zm,O.normalProps=Au,O.normalize=xf,O.overlayProps=Ou,O.parseFromValuesOrFunc=ft,O.parseValue=Ua,O.postBulk=qf,O.updateItem=Hf,O.updateUser=kf,O.uploadItems=Yf,O.urlJoin=it,O.useActionIcon=ar,O.useApi=Ae,O.useAuth=$r,O.useBooleanProps=nh,O.useBulkActions=ab,O.useCommonProps=In,O.useContextProps=_n,O.useCustomFetch=h1,O.useDateProps=us,O.useDebouncedChange=lT,O.useForms=zn,O.useInfo=Of,O.useJsonProps=Ph,O.useMultiSelectProps=$h,O.useNumberProps=Mh,O.useProvideApi=bd,O.useProvideAuth=Nf,O.useProvideBulk=_d,O.useProvideForm=ml,O.useProvideInfo=Lf,O.useProxy=Yi,O.useSelectProps=cs,O.useTextProps=Fh,O.useTrueOnce=Od,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
222
+ export default theme;`}function vu(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:a={},transitions:u={},typography:c={},shape:h,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":ur(20));const m=yu(a),y=Fp(e);let _=Kt(y,{mixins:RE(y.breakpoints,o),palette:m,shadows:nx.slice(),typography:XE(m,c),transitions:sx(u),zIndex:{...ax}});if(_=Kt(_,p),_=t.reduce((C,E)=>Kt(C,E),_),process.env.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],E=(w,$)=>{let N;for(N in w){const Q=w[N];if(C.includes(N)&&Object.keys(Q).length>0){if(process.env.NODE_ENV!=="production"){const H=ou("",N);console.error([`MUI: The \`${$}\` component increases the CSS specificity of the \`${N}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${H}' syntax:`,JSON.stringify({root:{[`&.${H}`]:Q}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
223
+ `))}w[N]={}}}};Object.keys(_.components).forEach(w=>{const $=_.components[w].styleOverrides;$&&w.startsWith("Mui")&&E($,w)})}return _.unstable_sxConfig={...Es,...p==null?void 0:p.unstable_sxConfig},_.unstable_sx=function(E){return ci({sx:E,theme:this})},_.toRuntimeSource=Kp,_}function ux(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const cx=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ux(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Jp(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rp(e){return e==="dark"?cx:[]}function fx(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,a=yu(t);return{palette:a,opacity:{...Jp(a.mode),...n},overlays:o||Rp(a.mode),...s}}function dx(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],px=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const u={};return hx(e.cssVarPrefix).forEach(c=>{u[c]=n[c],delete n[c]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:u}}:a?{[a.replace("%s",t)]:u,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...u}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function gx(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function z(e,t,n){!e[t]&&n&&(e[t]=n)}function co(e){return typeof e!="string"||!e.startsWith("hsl")?e:Lp(e)}function Hn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ao(co(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
224
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function mx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const $n=e=>{try{return e()}catch{}},yx=(e="mui")=>NE(e);function bu(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=fx({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...u}=vu({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...Jp(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Rp(s)},u}function vx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:u=dx,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:h=":root",...p}=e,m=Object.keys(n)[0],y=o||(n.light&&m!=="light"?"light":m),_=yx(a),{[y]:C,light:E,dark:w,...$}=n,N={...$};let Q=C;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(Q=!0),!Q)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:ur(21,y));const H=bu(N,Q,p,y);E&&!N.light&&bu(N,E,void 0,"light"),w&&!N.dark&&bu(N,w,void 0,"dark");let B={defaultColorScheme:y,...H,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:h,getCssVar:_,colorSchemes:N,font:{...JE(H.typography),...H.font},spacing:mx(p.spacing)};Object.keys(B.colorSchemes).forEach(ie=>{const S=B.colorSchemes[ie].palette,U=ne=>{const fe=ne.split("-"),ye=fe[1],Me=fe[2];return _(ne,S[ye][Me])};if(S.mode==="light"&&(z(S.common,"background","#fff"),z(S.common,"onBackground","#000")),S.mode==="dark"&&(z(S.common,"background","#000"),z(S.common,"onBackground","#fff")),gx(S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),S.mode==="light"){z(S.Alert,"errorColor",Ye(S.error.light,.6)),z(S.Alert,"infoColor",Ye(S.info.light,.6)),z(S.Alert,"successColor",Ye(S.success.light,.6)),z(S.Alert,"warningColor",Ye(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-main")),z(S.Alert,"infoFilledBg",U("palette-info-main")),z(S.Alert,"successFilledBg",U("palette-success-main")),z(S.Alert,"warningFilledBg",U("palette-warning-main")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.main))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.main))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.main))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.main))),z(S.Alert,"errorStandardBg",qe(S.error.light,.9)),z(S.Alert,"infoStandardBg",qe(S.info.light,.9)),z(S.Alert,"successStandardBg",qe(S.success.light,.9)),z(S.Alert,"warningStandardBg",qe(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-100")),z(S.Avatar,"defaultBg",U("palette-grey-400")),z(S.Button,"inheritContainedBg",U("palette-grey-300")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-A100")),z(S.Chip,"defaultBorder",U("palette-grey-400")),z(S.Chip,"defaultAvatarColor",U("palette-grey-700")),z(S.Chip,"defaultIconColor",U("palette-grey-700")),z(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),z(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),z(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),z(S.LinearProgress,"primaryBg",qe(S.primary.main,.62)),z(S.LinearProgress,"secondaryBg",qe(S.secondary.main,.62)),z(S.LinearProgress,"errorBg",qe(S.error.main,.62)),z(S.LinearProgress,"infoBg",qe(S.info.main,.62)),z(S.LinearProgress,"successBg",qe(S.success.main,.62)),z(S.LinearProgress,"warningBg",qe(S.warning.main,.62)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.11)`),z(S.Slider,"primaryTrack",qe(S.primary.main,.62)),z(S.Slider,"secondaryTrack",qe(S.secondary.main,.62)),z(S.Slider,"errorTrack",qe(S.error.main,.62)),z(S.Slider,"infoTrack",qe(S.info.main,.62)),z(S.Slider,"successTrack",qe(S.success.main,.62)),z(S.Slider,"warningTrack",qe(S.warning.main,.62));const ne=Is(S.background.default,.8);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Is(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-400")),z(S.StepContent,"border",U("palette-grey-400")),z(S.Switch,"defaultColor",U("palette-common-white")),z(S.Switch,"defaultDisabledColor",U("palette-grey-100")),z(S.Switch,"primaryDisabledColor",qe(S.primary.main,.62)),z(S.Switch,"secondaryDisabledColor",qe(S.secondary.main,.62)),z(S.Switch,"errorDisabledColor",qe(S.error.main,.62)),z(S.Switch,"infoDisabledColor",qe(S.info.main,.62)),z(S.Switch,"successDisabledColor",qe(S.success.main,.62)),z(S.Switch,"warningDisabledColor",qe(S.warning.main,.62)),z(S.TableCell,"border",qe(Os(S.divider,1),.88)),z(S.Tooltip,"bg",Os(S.grey[700],.92))}if(S.mode==="dark"){z(S.Alert,"errorColor",qe(S.error.light,.6)),z(S.Alert,"infoColor",qe(S.info.light,.6)),z(S.Alert,"successColor",qe(S.success.light,.6)),z(S.Alert,"warningColor",qe(S.warning.light,.6)),z(S.Alert,"errorFilledBg",U("palette-error-dark")),z(S.Alert,"infoFilledBg",U("palette-info-dark")),z(S.Alert,"successFilledBg",U("palette-success-dark")),z(S.Alert,"warningFilledBg",U("palette-warning-dark")),z(S.Alert,"errorFilledColor",$n(()=>S.getContrastText(S.error.dark))),z(S.Alert,"infoFilledColor",$n(()=>S.getContrastText(S.info.dark))),z(S.Alert,"successFilledColor",$n(()=>S.getContrastText(S.success.dark))),z(S.Alert,"warningFilledColor",$n(()=>S.getContrastText(S.warning.dark))),z(S.Alert,"errorStandardBg",Ye(S.error.light,.9)),z(S.Alert,"infoStandardBg",Ye(S.info.light,.9)),z(S.Alert,"successStandardBg",Ye(S.success.light,.9)),z(S.Alert,"warningStandardBg",Ye(S.warning.light,.9)),z(S.Alert,"errorIconColor",U("palette-error-main")),z(S.Alert,"infoIconColor",U("palette-info-main")),z(S.Alert,"successIconColor",U("palette-success-main")),z(S.Alert,"warningIconColor",U("palette-warning-main")),z(S.AppBar,"defaultBg",U("palette-grey-900")),z(S.AppBar,"darkBg",U("palette-background-paper")),z(S.AppBar,"darkColor",U("palette-text-primary")),z(S.Avatar,"defaultBg",U("palette-grey-600")),z(S.Button,"inheritContainedBg",U("palette-grey-800")),z(S.Button,"inheritContainedHoverBg",U("palette-grey-700")),z(S.Chip,"defaultBorder",U("palette-grey-700")),z(S.Chip,"defaultAvatarColor",U("palette-grey-300")),z(S.Chip,"defaultIconColor",U("palette-grey-300")),z(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),z(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),z(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),z(S.LinearProgress,"primaryBg",Ye(S.primary.main,.5)),z(S.LinearProgress,"secondaryBg",Ye(S.secondary.main,.5)),z(S.LinearProgress,"errorBg",Ye(S.error.main,.5)),z(S.LinearProgress,"infoBg",Ye(S.info.main,.5)),z(S.LinearProgress,"successBg",Ye(S.success.main,.5)),z(S.LinearProgress,"warningBg",Ye(S.warning.main,.5)),z(S.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.13)`),z(S.Slider,"primaryTrack",Ye(S.primary.main,.5)),z(S.Slider,"secondaryTrack",Ye(S.secondary.main,.5)),z(S.Slider,"errorTrack",Ye(S.error.main,.5)),z(S.Slider,"infoTrack",Ye(S.info.main,.5)),z(S.Slider,"successTrack",Ye(S.success.main,.5)),z(S.Slider,"warningTrack",Ye(S.warning.main,.5));const ne=Is(S.background.default,.98);z(S.SnackbarContent,"bg",ne),z(S.SnackbarContent,"color",$n(()=>S.getContrastText(ne))),z(S.SpeedDialAction,"fabHoverBg",Is(S.background.paper,.15)),z(S.StepConnector,"border",U("palette-grey-600")),z(S.StepContent,"border",U("palette-grey-600")),z(S.Switch,"defaultColor",U("palette-grey-300")),z(S.Switch,"defaultDisabledColor",U("palette-grey-600")),z(S.Switch,"primaryDisabledColor",Ye(S.primary.main,.55)),z(S.Switch,"secondaryDisabledColor",Ye(S.secondary.main,.55)),z(S.Switch,"errorDisabledColor",Ye(S.error.main,.55)),z(S.Switch,"infoDisabledColor",Ye(S.info.main,.55)),z(S.Switch,"successDisabledColor",Ye(S.success.main,.55)),z(S.Switch,"warningDisabledColor",Ye(S.warning.main,.55)),z(S.TableCell,"border",Ye(Os(S.divider,1),.68)),z(S.Tooltip,"bg",Os(S.grey[700],.92))}Hn(S.background,"default"),Hn(S.background,"paper"),Hn(S.common,"background"),Hn(S.common,"onBackground"),Hn(S,"divider"),Object.keys(S).forEach(ne=>{const fe=S[ne];ne!=="tonalOffset"&&fe&&typeof fe=="object"&&(fe.main&&z(S[ne],"mainChannel",ao(co(fe.main))),fe.light&&z(S[ne],"lightChannel",ao(co(fe.light))),fe.dark&&z(S[ne],"darkChannel",ao(co(fe.dark))),fe.contrastText&&z(S[ne],"contrastTextChannel",ao(co(fe.contrastText))),ne==="text"&&(Hn(S[ne],"primary"),Hn(S[ne],"secondary")),ne==="action"&&(fe.active&&Hn(S[ne],"active"),fe.selected&&Hn(S[ne],"selected")))})}),B=t.reduce((ie,S)=>Kt(ie,S),B);const D={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:u,getSelector:px(B)},{vars:k,generateThemeVars:G,generateStyleSheets:ae}=zE(B,D);return B.vars=k,Object.entries(B.colorSchemes[B.defaultColorScheme]).forEach(([ie,S])=>{B[ie]=S}),B.generateThemeVars=G,B.generateStyleSheets=ae,B.generateSpacing=function(){return Mp(p.spacing,su(this))},B.getColorSchemeSelector=UE(c),B.spacing=B.generateSpacing(),B.shouldSkipGeneratingVar=u,B.unstable_sxConfig={...Es,...p==null?void 0:p.unstable_sxConfig},B.unstable_sx=function(S){return ci({sx:S,theme:this})},B.toRuntimeSource=Kp,B}function Zp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:yu({...n===!0?{}:n.palette,mode:t})})}function bx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...u}=e,c=a||"light",h=s==null?void 0:s[c],p={...s,...n?{[c]:{...typeof h!="boolean"&&h,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return vu(e,...t);let m=n;"palette"in e||p[c]&&(p[c]!==!0?m=p[c].palette:c==="dark"&&(m={mode:"dark"}));const y=vu({...e,palette:m},...t);return y.defaultColorScheme=c,y.colorSchemes=p,y.palette.mode==="light"&&(y.colorSchemes.light={...p.light!==!0&&p.light,palette:y.palette},Zp(y,"dark",p.dark)),y.palette.mode==="dark"&&(y.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:y.palette},Zp(y,"light",p.light)),y}return!n&&!("light"in p)&&c==="light"&&(p.light=!0),vx({...u,colorSchemes:p,defaultColorScheme:c,...typeof o!="boolean"&&o},...t)}const _x=bx(),Tx="$$material";function wx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sx=SE({themeId:Tx,defaultTheme:_x,rootShouldForwardProp:e=>wx(e)&&e!=="classes"}),Cx=kE;process.env.NODE_ENV!=="production"&&(Ne.node,Ne.object.isRequired);function Ex(e){return DE(e)}function xx(e){return ou("MuiSvgIcon",e)}tC("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ax=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${Lr(t)}`,`fontSize${Lr(n)}`]};return XS(s,xx,o)},Ox=Sx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Lr(n.color)}`],t[`fontSize${Lr(n.fontSize)}`]]}})(Cx(({theme:e})=>{var t,n,o,s,a,u,c,h,p,m,y,_,C,E;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:w=>!w.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((u=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:u.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:h.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((m=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,w])=>w&&w.main).map(([w])=>{var $,N;return{props:{color:w},style:{color:(N=($=(e.vars??e).palette)==null?void 0:$[w])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(_=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:_.active}},{props:{color:"disabled"},style:{color:(E=(C=(e.vars??e).palette)==null?void 0:C.action)==null?void 0:E.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ps=Ft.forwardRef(function(t,n){const o=Ex({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:u="inherit",component:c="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:m=!1,titleAccess:y,viewBox:_="0 0 24 24",...C}=o,E=Ft.isValidElement(s)&&s.type==="svg",w={...o,color:u,component:c,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:m,viewBox:_,hasSvgAsChild:E},$={};m||($.viewBox=_);const N=Ax(w);return d.jsxs(Ox,{as:c,className:Pr(N.root,a),focusable:"false",color:p,"aria-hidden":y?void 0:!0,role:y?"img":void 0,ref:n,...$,...C,...E&&s.props,ownerState:w,children:[E?s.props.children:s,y?d.jsx("title",{children:y}):null]})});process.env.NODE_ENV!=="production"&&(Ps.propTypes={children:Ne.node,classes:Ne.object,className:Ne.string,color:Ne.oneOfType([Ne.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Ne.string]),component:Ne.elementType,fontSize:Ne.oneOfType([Ne.oneOf(["inherit","large","medium","small"]),Ne.string]),htmlColor:Ne.string,inheritViewBox:Ne.bool,shapeRendering:Ne.string,sx:Ne.oneOfType([Ne.arrayOf(Ne.oneOfType([Ne.func,Ne.object,Ne.bool])),Ne.func,Ne.object]),titleAccess:Ne.string,viewBox:Ne.string}),Ps.muiName="SvgIcon";function _u(e,t){function n(o,s){return d.jsx(Ps,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ps.muiName,Ft.memo(Ft.forwardRef(n))}const Ix=_u(d.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),Px=_u(d.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),$x=_u(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete");function Mx(){this.__data__=[],this.size=0}var Fx=Mx;function Dx(e,t){return e===t||e!==e&&t!==t}var $s=Dx,kx=$s;function Nx(e,t){for(var n=e.length;n--;)if(kx(e[n][0],t))return n;return-1}var Ms=Nx,Lx=Ms,Bx=Array.prototype,zx=Bx.splice;function Ux(e){var t=this.__data__,n=Lx(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():zx.call(t,n,1),--this.size,!0}var jx=Ux,Wx=Ms;function Vx(e){var t=this.__data__,n=Wx(t,e);return n<0?void 0:t[n][1]}var Gx=Vx,Hx=Ms;function Yx(e){return Hx(this.__data__,e)>-1}var qx=Yx,Kx=Ms;function Jx(e,t){var n=this.__data__,o=Kx(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}var Rx=Jx,Zx=Fx,Xx=jx,Qx=Gx,eA=qx,tA=Rx;function mi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}mi.prototype.clear=Zx,mi.prototype.delete=Xx,mi.prototype.get=Qx,mi.prototype.has=eA,mi.prototype.set=tA;var Fs=mi,nA=Fs;function rA(){this.__data__=new nA,this.size=0}var iA=rA;function oA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var sA=oA;function aA(e){return this.__data__.get(e)}var lA=aA;function uA(e){return this.__data__.has(e)}var cA=uA,fA=kr,dA=fA(Object,"create"),Ds=dA,Xp=Ds;function hA(){this.__data__=Xp?Xp(null):{},this.size=0}var pA=hA;function gA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mA=gA,yA=Ds,vA="__lodash_hash_undefined__",bA=Object.prototype,_A=bA.hasOwnProperty;function TA(e){var t=this.__data__;if(yA){var n=t[e];return n===vA?void 0:n}return _A.call(t,e)?t[e]:void 0}var wA=TA,SA=Ds,CA=Object.prototype,EA=CA.hasOwnProperty;function xA(e){var t=this.__data__;return SA?t[e]!==void 0:EA.call(t,e)}var AA=xA,OA=Ds,IA="__lodash_hash_undefined__";function PA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=OA&&t===void 0?IA:t,this}var $A=PA,MA=pA,FA=mA,DA=wA,kA=AA,NA=$A;function yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}yi.prototype.clear=MA,yi.prototype.delete=FA,yi.prototype.get=DA,yi.prototype.has=kA,yi.prototype.set=NA;var LA=yi,Qp=LA,BA=Fs,zA=Dl;function UA(){this.size=0,this.__data__={hash:new Qp,map:new(zA||BA),string:new Qp}}var jA=UA;function WA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var VA=WA,GA=VA;function HA(e,t){var n=e.__data__;return GA(t)?n[typeof t=="string"?"string":"hash"]:n.map}var ks=HA,YA=ks;function qA(e){var t=YA(this,e).delete(e);return this.size-=t?1:0,t}var KA=qA,JA=ks;function RA(e){return JA(this,e).get(e)}var ZA=RA,XA=ks;function QA(e){return XA(this,e).has(e)}var eO=QA,tO=ks;function nO(e,t){var n=tO(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}var rO=nO,iO=jA,oO=KA,sO=ZA,aO=eO,lO=rO;function vi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}vi.prototype.clear=iO,vi.prototype.delete=oO,vi.prototype.get=sO,vi.prototype.has=aO,vi.prototype.set=lO;var eg=vi,uO=Fs,cO=Dl,fO=eg,dO=200;function hO(e,t){var n=this.__data__;if(n instanceof uO){var o=n.__data__;if(!cO||o.length<dO-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new fO(o)}return n.set(e,t),this.size=n.size,this}var pO=hO,gO=Fs,mO=iA,yO=sA,vO=lA,bO=cA,_O=pO;function bi(e){var t=this.__data__=new gO(e);this.size=t.size}bi.prototype.clear=mO,bi.prototype.delete=yO,bi.prototype.get=vO,bi.prototype.has=bO,bi.prototype.set=_O;var TO=bi,wO=kr,SO=function(){try{var e=wO(Object,"defineProperty");return e({},"",{}),e}catch{}}(),tg=SO,ng=tg;function CO(e,t,n){t=="__proto__"&&ng?ng(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Tu=CO,EO=Tu,xO=$s;function AO(e,t,n){(n!==void 0&&!xO(e[t],n)||n===void 0&&!(t in e))&&EO(e,t,n)}var rg=AO;function OO(e){return function(t,n,o){for(var s=-1,a=Object(t),u=o(t),c=u.length;c--;){var h=u[e?c:++s];if(n(a[h],h,a)===!1)break}return t}}var IO=OO,PO=IO,$O=PO(),MO=$O,Ns={exports:{}};Ns.exports,function(e,t){var n=bn,o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a?n.Buffer:void 0,c=u?u.allocUnsafe:void 0;function h(p,m){if(m)return p.slice();var y=p.length,_=c?c(y):new p.constructor(y);return p.copy(_),_}e.exports=h}(Ns,Ns.exports);var FO=Ns.exports,DO=bn,kO=DO.Uint8Array,NO=kO,ig=NO;function LO(e){var t=new e.constructor(e.byteLength);return new ig(t).set(new ig(e)),t}var BO=LO,zO=BO;function UO(e,t){var n=t?zO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var jO=UO;function WO(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var VO=WO,GO=Wn,og=Object.create,HO=function(){function e(){}return function(t){if(!GO(t))return{};if(og)return og(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),YO=HO,qO=ph,KO=qO(Object.getPrototypeOf,Object),sg=KO,JO=YO,RO=sg,ZO=is;function XO(e){return typeof e.constructor=="function"&&!ZO(e)?JO(RO(e)):{}}var QO=XO,e2=ss,t2=ai;function n2(e){return t2(e)&&e2(e)}var ag=n2,r2=si,i2=sg,o2=ai,s2="[object Object]",a2=Function.prototype,l2=Object.prototype,lg=a2.toString,u2=l2.hasOwnProperty,c2=lg.call(Object);function f2(e){if(!o2(e)||r2(e)!=s2)return!1;var t=i2(e);if(t===null)return!0;var n=u2.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&lg.call(n)==c2}var d2=f2;function h2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var ug=h2,p2=Tu,g2=$s,m2=Object.prototype,y2=m2.hasOwnProperty;function v2(e,t,n){var o=e[t];(!(y2.call(e,t)&&g2(o,n))||n===void 0&&!(t in e))&&p2(e,t,n)}var b2=v2,_2=b2,T2=Tu;function w2(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var c=t[a],h=o?o(n[c],e[c],c,n,e):void 0;h===void 0&&(h=e[c]),s?T2(n,c,h):_2(n,c,h)}return n}var S2=w2;function C2(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var E2=C2,x2=9007199254740991,A2=/^(?:0|[1-9]\d*)$/;function O2(e,t){var n=typeof e;return t=t??x2,!!t&&(n=="number"||n!="symbol"&&A2.test(e))&&e>-1&&e%1==0&&e<t}var cg=O2,I2=E2,P2=os,$2=to,M2=Ul,F2=cg,D2=jl,k2=Object.prototype,N2=k2.hasOwnProperty;function L2(e,t){var n=$2(e),o=!n&&P2(e),s=!n&&!o&&M2(e),a=!n&&!o&&!s&&D2(e),u=n||o||s||a,c=u?I2(e.length,String):[],h=c.length;for(var p in e)(t||N2.call(e,p))&&!(u&&(p=="length"||s&&(p=="offset"||p=="parent")||a&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||F2(p,h)))&&c.push(p);return c}var B2=L2;function z2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var U2=z2,j2=Wn,W2=is,V2=U2,G2=Object.prototype,H2=G2.hasOwnProperty;function Y2(e){if(!j2(e))return V2(e);var t=W2(e),n=[];for(var o in e)o=="constructor"&&(t||!H2.call(e,o))||n.push(o);return n}var q2=Y2,K2=B2,J2=q2,R2=ss;function Z2(e){return R2(e)?K2(e,!0):J2(e)}var fg=Z2,X2=S2,Q2=fg;function eI(e){return X2(e,Q2(e))}var tI=eI,dg=rg,nI=FO,rI=jO,iI=VO,oI=QO,hg=os,pg=to,sI=ag,aI=Ul,lI=Ml,uI=Wn,cI=d2,fI=jl,gg=ug,dI=tI;function hI(e,t,n,o,s,a,u){var c=gg(e,n),h=gg(t,n),p=u.get(h);if(p){dg(e,n,p);return}var m=a?a(c,h,n+"",e,t,u):void 0,y=m===void 0;if(y){var _=pg(h),C=!_&&aI(h),E=!_&&!C&&fI(h);m=h,_||C||E?pg(c)?m=c:sI(c)?m=iI(c):C?(y=!1,m=nI(h,!0)):E?(y=!1,m=rI(h,!0)):m=[]:cI(h)||hg(h)?(m=c,hg(c)?m=dI(c):(!uI(c)||lI(c))&&(m=oI(h))):y=!1}y&&(u.set(h,m),s(m,h,o,a,u),u.delete(h)),dg(e,n,m)}var pI=hI,gI=TO,mI=rg,yI=MO,vI=pI,bI=Wn,_I=fg,TI=ug;function mg(e,t,n,o,s){e!==t&&yI(t,function(a,u){if(s||(s=new gI),bI(a))vI(e,t,u,n,mg,o,s);else{var c=o?o(TI(e,u),a,u+"",e,t,s):void 0;c===void 0&&(c=a),mI(e,u,c)}},_I)}var wI=mg;function SI(e){return e}var yg=SI;function CI(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var EI=CI,xI=EI,vg=Math.max;function AI(e,t,n){return t=vg(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=vg(o.length-t,0),u=Array(a);++s<a;)u[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(u),xI(e,this,c)}}var OI=AI;function II(e){return function(){return e}}var PI=II,$I=PI,bg=tg,MI=yg,FI=bg?function(e,t){return bg(e,"toString",{configurable:!0,enumerable:!1,value:$I(t),writable:!0})}:MI,DI=FI,kI=800,NI=16,LI=Date.now;function BI(e){var t=0,n=0;return function(){var o=LI(),s=NI-(o-n);if(n=o,s>0){if(++t>=kI)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var zI=BI,UI=DI,jI=zI,WI=jI(UI),VI=WI,GI=yg,HI=OI,YI=VI;function qI(e,t){return YI(HI(e,t,GI),e+"")}var _g=qI,KI=$s,JI=ss,RI=cg,ZI=Wn;function XI(e,t,n){if(!ZI(n))return!1;var o=typeof t;return(o=="number"?JI(n)&&RI(t,n.length):o=="string"&&t in n)?KI(n[t],e):!1}var Tg=XI,QI=_g,eP=Tg;function tP(e){return QI(function(t,n){var o=-1,s=n.length,a=s>1?n[s-1]:void 0,u=s>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(s--,a):void 0,u&&eP(n[0],n[1],u)&&(a=s<3?void 0:a,s=1),t=Object(t);++o<s;){var c=n[o];c&&e(t,c,o,a)}return t})}var nP=tP,rP=wI,iP=nP,oP=iP(function(e,t,n){rP(e,t,n)}),sP=oP;const aP=ir(sP);var lP=Math.ceil,uP=Math.max;function cP(e,t,n,o){for(var s=-1,a=uP(lP((t-e)/(n||1)),0),u=Array(a);a--;)u[o?a:++s]=e,e+=n;return u}var fP=cP,dP=dh,hP=1/0,pP=17976931348623157e292;function gP(e){if(!e)return e===0?e:0;if(e=dP(e),e===hP||e===-1/0){var t=e<0?-1:1;return t*pP}return e===e?e:0}var mP=gP,yP=fP,vP=Tg,wu=mP;function bP(e){return function(t,n,o){return o&&typeof o!="number"&&vP(t,n,o)&&(n=o=void 0),t=wu(t),n===void 0?(n=t,t=0):n=wu(n),o=o===void 0?t<n?1:-1:wu(o),yP(t,n,o,e)}}var _P=bP,TP=_P,wP=TP(),SP=wP;const CP=ir(SP);function EP(e,t,n,o){var s=-1,a=e==null?0:e.length;for(o&&a&&(n=e[++s]);++s<a;)n=t(n,e[s],s,e);return n}var xP=EP;function AP(e){return function(t){return e==null?void 0:e[t]}}var OP=AP,IP=OP,PP={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},$P=IP(PP),MP=$P;function FP(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var DP=FP,wg=rs,kP=DP,NP=to,LP=uh,Sg=wg?wg.prototype:void 0,Cg=Sg?Sg.toString:void 0;function Eg(e){if(typeof e=="string")return e;if(NP(e))return kP(e,Eg)+"";if(LP(e))return Cg?Cg.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var BP=Eg,zP=BP;function UP(e){return e==null?"":zP(e)}var Su=UP,jP=MP,WP=Su,VP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,GP="\\u0300-\\u036f",HP="\\ufe20-\\ufe2f",YP="\\u20d0-\\u20ff",qP=GP+HP+YP,KP="["+qP+"]",JP=RegExp(KP,"g");function RP(e){return e=WP(e),e&&e.replace(VP,jP).replace(JP,"")}var ZP=RP,XP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function QP(e){return e.match(XP)||[]}var e$=QP,t$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n$(e){return t$.test(e)}var r$=n$,xg="\\ud800-\\udfff",i$="\\u0300-\\u036f",o$="\\ufe20-\\ufe2f",s$="\\u20d0-\\u20ff",a$=i$+o$+s$,Ag="\\u2700-\\u27bf",Og="a-z\\xdf-\\xf6\\xf8-\\xff",l$="\\xac\\xb1\\xd7\\xf7",u$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c$="\\u2000-\\u206f",f$=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ig="A-Z\\xc0-\\xd6\\xd8-\\xde",d$="\\ufe0e\\ufe0f",Pg=l$+u$+c$+f$,$g="['’]",Mg="["+Pg+"]",h$="["+a$+"]",Fg="\\d+",p$="["+Ag+"]",Dg="["+Og+"]",kg="[^"+xg+Pg+Fg+Ag+Og+Ig+"]",g$="\\ud83c[\\udffb-\\udfff]",m$="(?:"+h$+"|"+g$+")",y$="[^"+xg+"]",Ng="(?:\\ud83c[\\udde6-\\uddff]){2}",Lg="[\\ud800-\\udbff][\\udc00-\\udfff]",_i="["+Ig+"]",v$="\\u200d",Bg="(?:"+Dg+"|"+kg+")",b$="(?:"+_i+"|"+kg+")",zg="(?:"+$g+"(?:d|ll|m|re|s|t|ve))?",Ug="(?:"+$g+"(?:D|LL|M|RE|S|T|VE))?",jg=m$+"?",Wg="["+d$+"]?",_$="(?:"+v$+"(?:"+[y$,Ng,Lg].join("|")+")"+Wg+jg+")*",T$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",S$=Wg+jg+_$,C$="(?:"+[p$,Ng,Lg].join("|")+")"+S$,E$=RegExp([_i+"?"+Dg+"+"+zg+"(?="+[Mg,_i,"$"].join("|")+")",b$+"+"+Ug+"(?="+[Mg,_i+Bg,"$"].join("|")+")",_i+"?"+Bg+"+"+zg,_i+"+"+Ug,w$,T$,Fg,C$].join("|"),"g");function x$(e){return e.match(E$)||[]}var A$=x$,O$=e$,I$=r$,P$=Su,$$=A$;function M$(e,t,n){return e=P$(e),t=n?void 0:t,t===void 0?I$(e)?$$(e):O$(e):e.match(t)||[]}var F$=M$,D$=xP,k$=ZP,N$=F$,L$="['’]",B$=RegExp(L$,"g");function z$(e){return function(t){return D$(N$(k$(t).replace(B$,"")),e,"")}}var U$=z$;function j$(e,t,n){var o=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(s);++o<s;)a[o]=e[o+t];return a}var W$=j$,V$=W$;function G$(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:V$(e,t,n)}var H$=G$,Y$="\\ud800-\\udfff",q$="\\u0300-\\u036f",K$="\\ufe20-\\ufe2f",J$="\\u20d0-\\u20ff",R$=q$+K$+J$,Z$="\\ufe0e\\ufe0f",X$="\\u200d",Q$=RegExp("["+X$+Y$+R$+Z$+"]");function eM(e){return Q$.test(e)}var Vg=eM;function tM(e){return e.split("")}var nM=tM,Gg="\\ud800-\\udfff",rM="\\u0300-\\u036f",iM="\\ufe20-\\ufe2f",oM="\\u20d0-\\u20ff",sM=rM+iM+oM,aM="\\ufe0e\\ufe0f",lM="["+Gg+"]",Cu="["+sM+"]",Eu="\\ud83c[\\udffb-\\udfff]",uM="(?:"+Cu+"|"+Eu+")",Hg="[^"+Gg+"]",Yg="(?:\\ud83c[\\udde6-\\uddff]){2}",qg="[\\ud800-\\udbff][\\udc00-\\udfff]",cM="\\u200d",Kg=uM+"?",Jg="["+aM+"]?",fM="(?:"+cM+"(?:"+[Hg,Yg,qg].join("|")+")"+Jg+Kg+")*",dM=Jg+Kg+fM,hM="(?:"+[Hg+Cu+"?",Cu,Yg,qg,lM].join("|")+")",pM=RegExp(Eu+"(?="+Eu+")|"+hM+dM,"g");function gM(e){return e.match(pM)||[]}var mM=gM,yM=nM,vM=Vg,bM=mM;function _M(e){return vM(e)?bM(e):yM(e)}var TM=_M,wM=H$,SM=Vg,CM=TM,EM=Su;function xM(e){return function(t){t=EM(t);var n=SM(t)?CM(t):void 0,o=n?n[0]:t.charAt(0),s=n?wM(n,1).join(""):t.slice(1);return o[e]()+s}}var AM=xM,OM=AM,IM=OM("toUpperCase"),PM=IM,$M=U$,MM=PM,FM=$M(function(e,t,n){return e+(n?" ":"")+MM(t)}),DM=FM;const kM=ir(DM);function NM(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var LM=NM,Rg=rs,BM=os,zM=to,Zg=Rg?Rg.isConcatSpreadable:void 0;function UM(e){return zM(e)||BM(e)||!!(Zg&&e&&e[Zg])}var jM=UM,WM=LM,VM=jM;function Xg(e,t,n,o,s){var a=-1,u=e.length;for(n||(n=VM),s||(s=[]);++a<u;){var c=e[a];t>0&&n(c)?t>1?Xg(c,t-1,n,o,s):WM(s,c):o||(s[s.length]=c)}return s}var GM=Xg,HM="__lodash_hash_undefined__";function YM(e){return this.__data__.set(e,HM),this}var qM=YM;function KM(e){return this.__data__.has(e)}var JM=KM,RM=eg,ZM=qM,XM=JM;function Ls(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new RM;++t<n;)this.add(e[t])}Ls.prototype.add=Ls.prototype.push=ZM,Ls.prototype.has=XM;var QM=Ls;function eF(e,t,n,o){for(var s=e.length,a=n+(o?1:-1);o?a--:++a<s;)if(t(e[a],a,e))return a;return-1}var tF=eF;function nF(e){return e!==e}var rF=nF;function iF(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}var oF=iF,sF=tF,aF=rF,lF=oF;function uF(e,t,n){return t===t?lF(e,t,n):sF(e,aF,n)}var cF=uF,fF=cF;function dF(e,t){var n=e==null?0:e.length;return!!n&&fF(e,t,0)>-1}var hF=dF;function pF(e,t,n){for(var o=-1,s=e==null?0:e.length;++o<s;)if(n(t,e[o]))return!0;return!1}var gF=pF;function mF(e,t){return e.has(t)}var yF=mF;function vF(){}var bF=vF;function _F(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var Qg=_F,xu=yh,TF=bF,wF=Qg,SF=1/0,CF=xu&&1/wF(new xu([,-0]))[1]==SF?function(e){return new xu(e)}:TF,EF=CF,xF=QM,AF=hF,OF=gF,IF=yF,PF=EF,$F=Qg,MF=200;function FF(e,t,n){var o=-1,s=AF,a=e.length,u=!0,c=[],h=c;if(n)u=!1,s=OF;else if(a>=MF){var p=t?null:PF(e);if(p)return $F(p);u=!1,s=IF,h=new xF}else h=t?[]:c;e:for(;++o<a;){var m=e[o],y=t?t(m):m;if(m=n||m!==0?m:0,u&&y===y){for(var _=h.length;_--;)if(h[_]===y)continue e;t&&h.push(y),c.push(m)}else s(h,y,n)||(h!==c&&h.push(y),c.push(m))}return c}var DF=FF,kF=GM,NF=_g,LF=DF,BF=ag,zF=NF(function(e){return LF(kF(e,1,BF,!0))}),UF=zF;const jF=ir(UF),Ti=({children:e,...t})=>d.jsx(v.Table.Td,{...t,children:e}),em=({errorMessages:e,id:t})=>d.jsx(v.Tooltip,{id:t,title:e,children:d.jsx(v.Indicator,{label:e.split(`
225
+ `).length,children:d.jsx(r1,{})})}),WF={paddingLeft:0,paddingRight:0},tm=x.memo(function({numColumns:t,errors:n,label:o,description:s,path:a,addItem:u,schema:c,enabled:h,translations:p,rootSchema:m}){const y={bg:"transparent",size:"sm",c:"gray"},_=v.useProps("ActionIcon",y,{});return d.jsxs(v.Table.Tr,{children:[d.jsx(Ti,{colSpan:t,children:d.jsxs(v.Stack,{children:[d.jsxs(v.Grid,{justify:"flex-start",align:"center",gutter:"sm",children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Text,{children:o})}),d.jsx(v.Grid.Col,{span:"content",children:n.length!==0?d.jsx(v.Grid.Col,{span:"content",children:d.jsx(em,{id:"tooltip-validation",errorMessages:n})}):null})]}),s&&d.jsx(v.Text,{size:"sm",children:s})]})}),h?d.jsx(Ti,{align:"right",style:WF,children:d.jsx(v.Tooltip,{id:"tooltip-add",title:p.addTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:_.bg,size:_.size,c:_.c,onClick:u(a,ue.createDefaultValue(c,m)),children:d.jsx(bl,{})})})}):null]})}),nm={fixedCell:{width:"150px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"},fixedCellSmall:{width:"50px",height:"50px",paddingLeft:0,paddingRight:0,textAlign:"center"}},rm=(e,t,n,o,s)=>{if(t.type==="object")return im(t).map(a=>{var h,p;const u=ue.Paths.compose(n,a),c={propName:a,schema:t,title:((p=(h=t.properties)==null?void 0:h[a])==null?void 0:p.title)??kM(a),rowPath:n,cellPath:u,enabled:o,cells:s};return d.jsx(e,{...c},u)});{const a={schema:t,rowPath:n,cellPath:n,enabled:o};return d.jsx(e,{...a},n)}},im=e=>e.type==="object"&&typeof e.properties=="object"?Object.keys(e.properties).filter(t=>e.properties[t].type!=="array"):[""],VF=({numColumns:e,translations:t})=>d.jsx(v.Table.Tr,{children:d.jsx(Ti,{colSpan:e,children:d.jsx(v.Text,{align:"center",children:t.noDataMessage})})}),GF=x.memo(function({title:t}){return d.jsx(v.Table.Th,{children:t})}),HF=(e,t)=>{const n=t.rowPath+(t.schema.type==="object"?"."+t.propName:""),o=ue.formatErrorMessage(jF(ue.errorsAt(n,t.schema,s=>s===n)(e.core.errors).map(s=>s.message)));return{rowPath:t.rowPath,propName:t.propName,schema:t.schema,rootSchema:e.core.schema,errors:o,path:n,enabled:t.enabled,cells:t.cells||e.cells,renderers:t.renderers||e.renderers}},om=e=>({type:"Control",scope:e,label:!1}),YF=x.memo(function({path:t,propName:n,schema:o,rootSchema:s,errors:a,enabled:u,renderers:c,cells:h,isValid:p}){return d.jsxs(Ti,{children:[o.properties?d.jsx(De.DispatchCell,{schema:ue.Resolve.schema(o,`#/properties/${ue.encode(n)}`,s),uischema:om(`#/properties/${ue.encode(n)}`),path:t,enabled:u,renderers:c,cells:h}):d.jsx(De.DispatchCell,{schema:o,uischema:om("#"),path:t,enabled:u,renderers:c,cells:h}),d.jsx(v.Text,{size:"xs",children:p?"":a})]})}),qF=e=>{const t=De.useJsonForms(),n=HF(t,e),o=Ih(n.errors);return d.jsx(YF,{...n,isValid:o})},KF=({childPath:e,schema:t,rowIndex:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:u,enableDown:c,showSortButtons:h,enabled:p,cells:m,path:y,translations:_})=>{const C={bg:"transparent",size:"sm",c:"gray"},E=v.useProps("ActionIcon",C,{}),w=x.useMemo(()=>s(y,n),[s,y,n]),$=x.useMemo(()=>a(y,n),[a,y,n]);return d.jsxs(v.Table.Tr,{children:[rm(qF,t,e,p,m),p?d.jsx(Ti,{style:h?nm.fixedCell:nm.fixedCellSmall,children:d.jsxs(v.Grid,{justify:"flex-end",align:"center",children:[h?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-up",title:_.up,position:"bottom",opened:u?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.upAriaLabel,onClick:w,disabled:!u,children:d.jsx(Px,{})})})}),d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-down",title:_.down,position:"bottom",opened:c?void 0:!1,children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.downAriaLabel,onClick:$,disabled:!c,children:d.jsx(Ix,{})})})})]}):null,d.jsx(v.Grid.Col,{span:"content",children:d.jsx(v.Tooltip,{id:"tooltip-remove",title:_.removeTooltip,position:"bottom",children:d.jsx(v.ActionIcon,{bg:E.bg,size:E.size,c:E.c,"aria-label":_.removeAriaLabel,onClick:()=>o(e,n),children:d.jsx($x,{})})})})]})}):null]},e)},sm=x.memo(KF),JF=({data:e,path:t,schema:n,openDeleteDialog:o,moveUp:s,moveDown:a,uischema:u,config:c,enabled:h,cells:p,translations:m})=>{if(e===0)return d.jsx(VF,{numColumns:im(n).length+1,translations:m});const _=aP({},c,u.options);return d.jsx(x.Fragment,{children:CP(e).map(C=>{const E=ue.Paths.compose(t,`${C}`);return d.jsx(sm,{childPath:E,rowIndex:C,schema:n,openDeleteDialog:o,moveUpCreator:s,moveDownCreator:a,enableUp:C!==0,enableDown:C!==e-1,showSortButtons:_.showSortButtons||_.showArrayTableSortButtons,enabled:h,cells:p,path:t,translations:m},E)})})};class am extends x.Component{constructor(){super(...arguments);rb(this,"addItem",(n,o)=>this.props.addItem(n,o))}render(){const{label:n,description:o,path:s,schema:a,rootSchema:u,uischema:c,errors:h,openDeleteDialog:p,visible:m,enabled:y,cells:_,translations:C}=this.props,E=c,w=a.type==="object",$=w?rm(GF,a,s,y,_):void 0;return m?d.jsxs(v.Table,{children:[d.jsxs(v.Table.Thead,{children:[d.jsx(tm,{errors:h,label:n,description:o,addItem:this.addItem,numColumns:w?$.length:1,path:s,uischema:E,schema:a,rootSchema:u,enabled:y,translations:C}),w&&d.jsxs(v.Table.Tr,{children:[$,y?d.jsx(v.Table.Th,{}):null]})]}),d.jsx(v.Table.Tbody,{children:d.jsx(JF,{openDeleteDialog:p,translations:C,...this.props})})]}):null}}const RF=e=>{const[t,n]=x.useState(!1),[o,s]=x.useState(void 0),[a,u]=x.useState(void 0),{removeItems:c,visible:h}=e,p=x.useCallback((C,E)=>{n(!0),s(C),u(E)},[n,s,u]),m=x.useCallback(()=>n(!1),[n]),y=x.useCallback(()=>{const C=o.substring(0,o.lastIndexOf("."));c(C,[a])(),n(!1)},[n,o,a]),_=x.useCallback(()=>n(!1),[n]);return h?d.jsxs(d.Fragment,{children:[d.jsx(am,{...e,openDeleteDialog:p}),d.jsx(ep,{open:t,onCancel:m,onConfirm:y,onClose:_,acceptText:e.translations.deleteDialogAccept,declineText:e.translations.deleteDialogDecline,title:e.translations.deleteDialogTitle,message:e.translations.deleteDialogMessage})]}):null},lm=ue.rankWith(1,ue.or(ue.isObjectArrayControl,ue.isPrimitiveArrayControl)),um=De.withJsonFormsArrayLayoutProps(RF),ZF=e=>e.oneOf!==void 0&&e.oneOf.length>0&&e.oneOf.every(t=>t.const!==void 0),XF=e=>e.type==="string"&&e.enum!==void 0;function cm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"array")&&!Array.isArray(n.items)&&n.uniqueItems===!0&&(ZF(n.items)||XF(n.items)))}function fm(e,t){if(!e.scope||e.type!=="Control")return!1;const n=ue.resolveSchema(t,e.scope);return!!(lr(n.type,"object")&&!n.properties)}const dm=ue.rankWith(1,cm),hm=De.withJsonFormsMultiEnumProps(e=>d.jsx(kh,{...e})),pm=ue.rankWith(1,ue.isObjectControl),gm=De.withJsonFormsDetailProps(e=>d.jsx(Lh,{...e})),mm=ue.rankWith(1,ue.isBooleanControl),ym=De.withJsonFormsControlProps(e=>d.jsx(Vl,{...e})),vm=ue.rankWith(1,ue.isDateControl),bm=De.withJsonFormsControlProps(e=>d.jsx(Gl,{...e})),_m=ue.rankWith(1,ue.isDateTimeControl),Tm=De.withJsonFormsControlProps(e=>d.jsx(Hl,{...e})),wm=ue.rankWith(2,ue.isEnumControl),Sm=De.withJsonFormsEnumProps(De.withTranslateProps(e=>d.jsx(Yl,{...e})),!1),Cm=ue.rankWith(1,ue.isIntegerControl),Em=De.withJsonFormsControlProps(e=>d.jsx(no,{...e})),xm=ue.rankWith(2,fm),Am=De.withJsonFormsControlProps(e=>d.jsx(Nh,{...e})),Om=ue.rankWith(1,ue.isNumberControl),Im=De.withJsonFormsControlProps(e=>d.jsx(no,{...e})),Pm=ue.rankWith(2,ue.isOneOfControl),$m=De.withJsonFormsOneOfEnumProps(De.withTranslateProps(e=>d.jsx(ql,{...e})),!1),Mm=ue.rankWith(1,ue.isStringControl),Fm=De.withJsonFormsControlProps(e=>d.jsx(Kl,{...e})),QF=e=>{const{text:t,visible:n}=e;return n?d.jsx(v.Title,{fw:"bold",size:"xl",children:t}):null},Dm=ue.rankWith(1,ue.isLabelable),km=De.withJsonFormsLabelProps(QF),eD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a,label:u})=>{const h={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(v.Fieldset,{legend:u,children:d.jsx(us,{...h,renderers:s,cells:a})})},Nm=ue.rankWith(1,ue.uiTypeIs("Group")),Lm=De.withJsonFormsLayoutProps(eD),tD=({uischema:e,renderers:t,cells:n,schema:o,path:s,enabled:a})=>{const c={elements:e.elements,schema:o,path:s,enabled:a,direction:"row"};return d.jsx(us,{...c,renderers:t,cells:n})},Bm=ue.rankWith(1,ue.uiTypeIs("HorizontalLayout")),zm=De.withJsonFormsLayoutProps(tD),nD=({uischema:e,schema:t,path:n,enabled:o,renderers:s,cells:a})=>{const c={elements:e.elements,schema:t,path:n,enabled:o,direction:"column"};return d.jsx(us,{...c,renderers:s,cells:a})},Um=ue.rankWith(1,ue.uiTypeIs("VerticalLayout")),jm=De.withJsonFormsLayoutProps(nD),Wm=[{tester:Xh,cell:Qh},{tester:Kh,cell:Jh},{tester:Yh,cell:qh},{tester:Bh,cell:zh},{tester:Uh,cell:jh},{tester:Wh,cell:Vh},{tester:Gh,cell:Hh},{tester:Rh,cell:Zh}],Vm=[{tester:vm,renderer:bm},{tester:_m,renderer:Tm},{tester:Om,renderer:Im},{tester:Cm,renderer:Em},{tester:Mm,renderer:Fm},{tester:mm,renderer:ym},{tester:wm,renderer:Sm},{tester:Pm,renderer:$m},{tester:xm,renderer:Am},{tester:lm,renderer:um},{tester:dm,renderer:hm},{tester:pm,renderer:gm},{tester:Bm,renderer:zm},{tester:Um,renderer:jm},{tester:Nm,renderer:Lm},{tester:Dm,renderer:km}];function Au({schema:e,uischema:t,state:n,setState:o,view:s,setView:a,jsonForms:u,onSubmit:c,buttonText:h,loading:p,...m}){const y=x.useMemo(()=>v.createTheme({components:{...Object.entries(u||{}).reduce((_,[C,E])=>(_[C]||(_[C]={defaultProps:{}}),_[C].defaultProps=E,_),{})}}),[u]);return d.jsx(v.Modal,{size:"lg",centered:!0,fullScreen:s===mt.FULL_SCREEN,radius:s!==mt.NORMAL?0:void 0,transitionProps:s!==mt.NORMAL?{transition:"fade",duration:200}:void 0,...m,title:d.jsxs(d.Fragment,{children:[m.title,d.jsx(v.Group,{children:d.jsxs(v.Group,{gap:"xs",pr:"xs",children:[d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.OVERLAY?mt.OVERLAY:mt.NORMAL),title:s!==mt.OVERLAY?"Overlay":"Exit overlay",icon:d.jsx(Pl,{icon:s!==mt.OVERLAY?"tabler:stack-forward":"tabler:stack",fontSize:"1.25rem"})}),d.jsx(v.CloseButton,{onClick:()=>a(s!==mt.FULL_SCREEN?mt.FULL_SCREEN:mt.NORMAL),title:s!==mt.FULL_SCREEN?"Full screen":"Exit full screen",icon:d.jsx(Pl,{icon:s!==mt.FULL_SCREEN?"tabler:maximize":"tabler:minimize",fontSize:"1.25rem"})})]})})]}),classNames:{content:"mrt-table-container"},styles:Bn(m.styles,{title:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"}}),children:d.jsxs(v.Box,{component:"form",pos:"relative",onSubmit:c,children:[d.jsx(v.LoadingOverlay,{visible:p}),d.jsx(v.MantineThemeProvider,{inherit:!0,theme:y,children:d.jsx(De.JsonForms,{schema:e,uischema:t??void 0,renderers:Vm,cells:Wm,data:n.data,onChange:o})}),d.jsx(v.Group,{justify:"end",mt:"xl",children:d.jsx(v.Button,{type:"submit",children:h})})]})})}const Ou={styles:{content:{height:450}}},Iu={withinPortal:!1,h:"100%",w:"100%",pos:"absolute",styles:{overlay:{display:"none"},inner:{position:"relative",height:"100%",width:"100%",padding:0},content:{position:"absolute",height:"100%",width:"100%"}}};function Gm(e,t){const n={};return Object.entries(t.properties||{}).forEach(([o,s])=>{var c,h;const a=s.items?s.items:s,u=a.oneOf?a.oneOf.map(p=>({value:p.const,label:p.title})):a.enum;if(u){const p=u.map(m=>m.value);if(lr(s.type,"array")){const m=((c=e[o])==null?void 0:c.map(y=>y.id_||y))||[];n[o]=p.filter(y=>m.includes(y))}else n[o]=p.find(m=>{var y;return m===(((y=e[o])==null?void 0:y.id_)||e[o])})}else n[o]=(((h=e[o])==null?void 0:h.id_)||e[o])??void 0}),n}function Pu({jsonForms:e,...t}){const{info:n,updateEntry:o}=Ae(),{opened:s,setOpened:a,item:u,itemLoading:c,state:h,setState:p,reset:m,view:y,setView:_}=zn("edit"),{jsonForms:C}=v.useProps("EditDialog",{},{}),E=x.useMemo(()=>Bn({__:{setNull:!0}},C,e),[C,e]),w=x.useCallback(async N=>{N==null||N.preventDefault(),await o(u==null?void 0:u.id,h.data),a(!1)},[o,u==null?void 0:u.id,h.data,a]),$=x.useMemo(()=>({...jo,data:Gm((u==null?void 0:u.result)||{},n.edit_schema)}),[n.edit_schema,u==null?void 0:u.result]);return x.useEffect(()=>{p({data:$.data})},[$,p]),d.jsx(Au,{schema:n.edit_schema,uischema:n.edit_uischema,state:h,setState:p,view:y,setView:_,jsonForms:E,onSubmit:w,buttonText:"Edit",loading:c,opened:s,onClose:()=>a(!1),onExitTransitionEnd:m,...y===mt.OVERLAY?Iu:{},...y===mt.NORMAL?Ou:{},...t,title:t.title??(n==null?void 0:n.edit_title)})}function $u(){const{error:e,resetError:t}=Ae();return d.jsx(v.Modal,{opened:e,onClose:t,title:d.jsxs(v.Group,{children:[d.jsx(e1,{size:16,color:"red"}),d.jsx(v.Text,{children:e?e.originalError.detail||e.originalError.message:"Error"})]}),centered:!0,children:e?d.jsx(v.Text,{children:e.message}):null})}/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:Hm,setPrototypeOf:Ym,isFrozen:rD,getPrototypeOf:iD,getOwnPropertyDescriptor:oD}=Object;let{freeze:Dt,seal:sn,create:qm}=Object,{apply:Mu,construct:Fu}=typeof Reflect<"u"&&Reflect;Dt||(Dt=function(t){return t}),sn||(sn=function(t){return t}),Mu||(Mu=function(t,n,o){return t.apply(n,o)}),Fu||(Fu=function(t,n){return new t(...n)});const Bs=Nt(Array.prototype.forEach),sD=Nt(Array.prototype.lastIndexOf),Km=Nt(Array.prototype.pop),fo=Nt(Array.prototype.push),aD=Nt(Array.prototype.splice),zs=Nt(String.prototype.toLowerCase),Du=Nt(String.prototype.toString),Jm=Nt(String.prototype.match),ho=Nt(String.prototype.replace),lD=Nt(String.prototype.indexOf),uD=Nt(String.prototype.trim),Tn=Nt(Object.prototype.hasOwnProperty),kt=Nt(RegExp.prototype.test),po=cD(TypeError);function Nt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return Mu(e,t,o)}}function cD(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Fu(e,n)}}function Oe(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zs;Ym&&Ym(e,null);let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(rD(t)||(t[o]=a),s=a)}e[s]=!0}return e}function fD(e){for(let t=0;t<e.length;t++)Tn(e,t)||(e[t]=null);return e}function Br(e){const t=qm(null);for(const[n,o]of Hm(e))Tn(e,n)&&(Array.isArray(o)?t[n]=fD(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=Br(o):t[n]=o);return t}function go(e,t){for(;e!==null;){const o=oD(e,t);if(o){if(o.get)return Nt(o.get);if(typeof o.value=="function")return Nt(o.value)}e=iD(e)}function n(){return null}return n}const Rm=Dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ku=Dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Nu=Dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dD=Dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Lu=Dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hD=Dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zm=Dt(["#text"]),Xm=Dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Bu=Dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Qm=Dt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Us=Dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pD=sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),gD=sn(/<%[\w\W]*|[\w\W]*%>/gm),mD=sn(/\$\{[\w\W]*/gm),yD=sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),vD=sn(/^aria-[\-\w]+$/),e0=sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bD=sn(/^(?:\w+script|data):/i),_D=sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),t0=sn(/^html$/i),TD=sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var n0=Object.freeze({__proto__:null,ARIA_ATTR:vD,ATTR_WHITESPACE:_D,CUSTOM_ELEMENT:TD,DATA_ATTR:yD,DOCTYPE_NAME:t0,ERB_EXPR:gD,IS_ALLOWED_URI:e0,IS_SCRIPT_OR_DATA:bD,MUSTACHE_EXPR:pD,TMPLIT_EXPR:mD});const mo={element:1,text:3,progressingInstruction:7,comment:8,document:9},wD=function(){return typeof window>"u"?null:window},SD=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(u){return u},createScriptURL(u){return u}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},r0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function i0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wD();const t=de=>i0(de);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==mo.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:c,Element:h,NodeFilter:p,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:y,DOMParser:_,trustedTypes:C}=e,E=h.prototype,w=go(E,"cloneNode"),$=go(E,"remove"),N=go(E,"nextSibling"),Q=go(E,"childNodes"),H=go(E,"parentNode");if(typeof u=="function"){const de=n.createElement("template");de.content&&de.content.ownerDocument&&(n=de.content.ownerDocument)}let B,D="";const{implementation:k,createNodeIterator:G,createDocumentFragment:ae,getElementsByTagName:ie}=n,{importNode:S}=o;let U=r0();t.isSupported=typeof Hm=="function"&&typeof H=="function"&&k&&k.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ne,ERB_EXPR:fe,TMPLIT_EXPR:ye,DATA_ATTR:Me,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:Le,ATTR_WHITESPACE:Ie,CUSTOM_ELEMENT:lt}=n0;let{IS_ALLOWED_URI:q}=n0,K=null;const Z=Oe({},[...Rm,...ku,...Nu,...Lu,...Zm]);let R=null;const Y=Oe({},[...Xm,...Bu,...Qm,...Us]);let ee=Object.seal(qm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,ve=null,be=!0,pe=!0,Ce=!1,tt=!0,te=!1,yt=!0,Je=!1,Lt=!1,dr=!1,vt=!1,ke=!1,Yn=!1,hr=!0,Wt=!1;const Ur="user-content-";let pr=!0,jr=!1,an={},gr=null;const mr=Oe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let qn=null;const Ci=Oe({},["audio","video","img","source","image","track"]);let Wr=null;const Ei=Oe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yr="http://www.w3.org/1998/Math/MathML",vr="http://www.w3.org/2000/svg",Rt="http://www.w3.org/1999/xhtml";let Fn=Rt,Vr=!1,Gr=null;const oc=Oe({},[yr,vr,Rt],Du);let xi=Oe({},["mi","mo","mn","ms","mtext"]),Ai=Oe({},["annotation-xml"]);const Ws=Oe({},["title","style","font","a","script"]);let br=null;const sc=["application/xhtml+xml","text/html"],ac="text/html";let gt=null,_r=null;const Vs=n.createElement("form"),Gs=function(P){return P instanceof RegExp||P instanceof Function},_o=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(_r&&_r===P)){if((!P||typeof P!="object")&&(P={}),P=Br(P),br=sc.indexOf(P.PARSER_MEDIA_TYPE)===-1?ac:P.PARSER_MEDIA_TYPE,gt=br==="application/xhtml+xml"?Du:zs,K=Tn(P,"ALLOWED_TAGS")?Oe({},P.ALLOWED_TAGS,gt):Z,R=Tn(P,"ALLOWED_ATTR")?Oe({},P.ALLOWED_ATTR,gt):Y,Gr=Tn(P,"ALLOWED_NAMESPACES")?Oe({},P.ALLOWED_NAMESPACES,Du):oc,Wr=Tn(P,"ADD_URI_SAFE_ATTR")?Oe(Br(Ei),P.ADD_URI_SAFE_ATTR,gt):Ei,qn=Tn(P,"ADD_DATA_URI_TAGS")?Oe(Br(Ci),P.ADD_DATA_URI_TAGS,gt):Ci,gr=Tn(P,"FORBID_CONTENTS")?Oe({},P.FORBID_CONTENTS,gt):mr,oe=Tn(P,"FORBID_TAGS")?Oe({},P.FORBID_TAGS,gt):{},ve=Tn(P,"FORBID_ATTR")?Oe({},P.FORBID_ATTR,gt):{},an=Tn(P,"USE_PROFILES")?P.USE_PROFILES:!1,be=P.ALLOW_ARIA_ATTR!==!1,pe=P.ALLOW_DATA_ATTR!==!1,Ce=P.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,te=P.SAFE_FOR_TEMPLATES||!1,yt=P.SAFE_FOR_XML!==!1,Je=P.WHOLE_DOCUMENT||!1,vt=P.RETURN_DOM||!1,ke=P.RETURN_DOM_FRAGMENT||!1,Yn=P.RETURN_TRUSTED_TYPE||!1,dr=P.FORCE_BODY||!1,hr=P.SANITIZE_DOM!==!1,Wt=P.SANITIZE_NAMED_PROPS||!1,pr=P.KEEP_CONTENT!==!1,jr=P.IN_PLACE||!1,q=P.ALLOWED_URI_REGEXP||e0,Fn=P.NAMESPACE||Rt,xi=P.MATHML_TEXT_INTEGRATION_POINTS||xi,Ai=P.HTML_INTEGRATION_POINTS||Ai,ee=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&Gs(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&Gs(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),te&&(pe=!1),ke&&(vt=!0),an&&(K=Oe({},Zm),R=[],an.html===!0&&(Oe(K,Rm),Oe(R,Xm)),an.svg===!0&&(Oe(K,ku),Oe(R,Bu),Oe(R,Us)),an.svgFilters===!0&&(Oe(K,Nu),Oe(R,Bu),Oe(R,Us)),an.mathMl===!0&&(Oe(K,Lu),Oe(R,Qm),Oe(R,Us))),P.ADD_TAGS&&(K===Z&&(K=Br(K)),Oe(K,P.ADD_TAGS,gt)),P.ADD_ATTR&&(R===Y&&(R=Br(R)),Oe(R,P.ADD_ATTR,gt)),P.ADD_URI_SAFE_ATTR&&Oe(Wr,P.ADD_URI_SAFE_ATTR,gt),P.FORBID_CONTENTS&&(gr===mr&&(gr=Br(gr)),Oe(gr,P.FORBID_CONTENTS,gt)),pr&&(K["#text"]=!0),Je&&Oe(K,["html","head","body"]),K.table&&(Oe(K,["tbody"]),delete oe.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw po('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw po('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=P.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=SD(C,s)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Dt&&Dt(P),_r=P}},Hs=Oe({},[...ku,...Nu,...dD]),Oi=Oe({},[...Lu,...hD]),lc=function(P){let X=H(P);(!X||!X.tagName)&&(X={namespaceURI:Fn,tagName:"template"});const le=zs(P.tagName),We=zs(X.tagName);return Gr[P.namespaceURI]?P.namespaceURI===vr?X.namespaceURI===Rt?le==="svg":X.namespaceURI===yr?le==="svg"&&(We==="annotation-xml"||xi[We]):!!Hs[le]:P.namespaceURI===yr?X.namespaceURI===Rt?le==="math":X.namespaceURI===vr?le==="math"&&Ai[We]:!!Oi[le]:P.namespaceURI===Rt?X.namespaceURI===vr&&!Ai[We]||X.namespaceURI===yr&&!xi[We]?!1:!Oi[le]&&(Ws[le]||!Hs[le]):!!(br==="application/xhtml+xml"&&Gr[P.namespaceURI]):!1},Vt=function(P){fo(t.removed,{element:P});try{H(P).removeChild(P)}catch{$(P)}},Ii=function(P,X){try{fo(t.removed,{attribute:X.getAttributeNode(P),from:X})}catch{fo(t.removed,{attribute:null,from:X})}if(X.removeAttribute(P),P==="is")if(vt||ke)try{Vt(X)}catch{}else try{X.setAttribute(P,"")}catch{}},Ys=function(P){let X=null,le=null;if(dr)P="<remove></remove>"+P;else{const ut=Jm(P,/^[\r\n\t ]+/);le=ut&&ut[0]}br==="application/xhtml+xml"&&Fn===Rt&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const We=B?B.createHTML(P):P;if(Fn===Rt)try{X=new _().parseFromString(We,br)}catch{}if(!X||!X.documentElement){X=k.createDocument(Fn,"template",null);try{X.documentElement.innerHTML=Vr?D:We}catch{}}const St=X.body||X.documentElement;return P&&le&&St.insertBefore(n.createTextNode(le),St.childNodes[0]||null),Fn===Rt?ie.call(X,Je?"html":"body")[0]:Je?X.documentElement:St},qs=function(P){return G.call(P.ownerDocument||P,P,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},To=function(P){return P instanceof y&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof m)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},Ks=function(P){return typeof c=="function"&&P instanceof c};function wn(de,P,X){Bs(de,le=>{le.call(t,P,X,_r)})}const Js=function(P){let X=null;if(wn(U.beforeSanitizeElements,P,null),To(P))return Vt(P),!0;const le=gt(P.nodeName);if(wn(U.uponSanitizeElement,P,{tagName:le,allowedTags:K}),P.hasChildNodes()&&!Ks(P.firstElementChild)&&kt(/<[/\w!]/g,P.innerHTML)&&kt(/<[/\w!]/g,P.textContent)||P.nodeType===mo.progressingInstruction||yt&&P.nodeType===mo.comment&&kt(/<[/\w]/g,P.data))return Vt(P),!0;if(!K[le]||oe[le]){if(!oe[le]&&wo(le)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le)))return!1;if(pr&&!gr[le]){const We=H(P)||P.parentNode,St=Q(P)||P.childNodes;if(St&&We){const ut=St.length;for(let Pt=ut-1;Pt>=0;--Pt){const ln=w(St[Pt],!0);ln.__removalCount=(P.__removalCount||0)+1,We.insertBefore(ln,N(P))}}}return Vt(P),!0}return P instanceof h&&!lc(P)||(le==="noscript"||le==="noembed"||le==="noframes")&&kt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Vt(P),!0):(te&&P.nodeType===mo.text&&(X=P.textContent,Bs([ne,fe,ye],We=>{X=ho(X,We," ")}),P.textContent!==X&&(fo(t.removed,{element:P.cloneNode()}),P.textContent=X)),wn(U.afterSanitizeElements,P,null),!1)},Rs=function(P,X,le){if(hr&&(X==="id"||X==="name")&&(le in n||le in Vs))return!1;if(!(pe&&!ve[X]&&kt(Me,X))){if(!(be&&kt(we,X))){if(!R[X]||ve[X]){if(!(wo(P)&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,P)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(P))&&(ee.attributeNameCheck instanceof RegExp&&kt(ee.attributeNameCheck,X)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(X))||X==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&kt(ee.tagNameCheck,le)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(le))))return!1}else if(!Wr[X]){if(!kt(q,ho(le,Ie,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&P!=="script"&&lD(le,"data:")===0&&qn[P])){if(!(Ce&&!kt(Le,ho(le,Ie,"")))){if(le)return!1}}}}}}return!0},wo=function(P){return P!=="annotation-xml"&&Jm(P,lt)},Zs=function(P){wn(U.beforeSanitizeAttributes,P,null);const{attributes:X}=P;if(!X||To(P))return;const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let We=X.length;for(;We--;){const St=X[We],{name:ut,namespaceURI:Pt,value:ln}=St,Hr=gt(ut);let Ct=ut==="value"?ln:uD(ln);if(le.attrName=Hr,le.attrValue=Ct,le.keepAttr=!0,le.forceKeepAttr=void 0,wn(U.uponSanitizeAttribute,P,le),Ct=le.attrValue,Wt&&(Hr==="id"||Hr==="name")&&(Ii(ut,P),Ct=Ur+Ct),yt&&kt(/((--!?|])>)|<\/(style|title)/i,Ct)){Ii(ut,P);continue}if(le.forceKeepAttr||(Ii(ut,P),!le.keepAttr))continue;if(!tt&&kt(/\/>/i,Ct)){Ii(ut,P);continue}te&&Bs([ne,fe,ye],Co=>{Ct=ho(Ct,Co," ")});const So=gt(P.nodeName);if(Rs(So,Hr,Ct)){if(B&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!Pt)switch(C.getAttributeType(So,Hr)){case"TrustedHTML":{Ct=B.createHTML(Ct);break}case"TrustedScriptURL":{Ct=B.createScriptURL(Ct);break}}try{Pt?P.setAttributeNS(Pt,ut,Ct):P.setAttribute(ut,Ct),To(P)?Vt(P):Km(t.removed)}catch{}}}wn(U.afterSanitizeAttributes,P,null)},uc=function de(P){let X=null;const le=qs(P);for(wn(U.beforeSanitizeShadowDOM,P,null);X=le.nextNode();)wn(U.uponSanitizeShadowNode,X,null),Js(X),Zs(X),X.content instanceof a&&de(X.content);wn(U.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(de){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,le=null,We=null,St=null;if(Vr=!de,Vr&&(de="<!-->"),typeof de!="string"&&!Ks(de))if(typeof de.toString=="function"){if(de=de.toString(),typeof de!="string")throw po("dirty is not a string, aborting")}else throw po("toString is not a function");if(!t.isSupported)return de;if(Lt||_o(P),t.removed=[],typeof de=="string"&&(jr=!1),jr){if(de.nodeName){const ln=gt(de.nodeName);if(!K[ln]||oe[ln])throw po("root node is forbidden and cannot be sanitized in-place")}}else if(de instanceof c)X=Ys("<!---->"),le=X.ownerDocument.importNode(de,!0),le.nodeType===mo.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?X=le:X.appendChild(le);else{if(!vt&&!te&&!Je&&de.indexOf("<")===-1)return B&&Yn?B.createHTML(de):de;if(X=Ys(de),!X)return vt?null:Yn?D:""}X&&dr&&Vt(X.firstChild);const ut=qs(jr?de:X);for(;We=ut.nextNode();)Js(We),Zs(We),We.content instanceof a&&uc(We.content);if(jr)return de;if(vt){if(ke)for(St=ae.call(X.ownerDocument);X.firstChild;)St.appendChild(X.firstChild);else St=X;return(R.shadowroot||R.shadowrootmode)&&(St=S.call(o,St,!0)),St}let Pt=Je?X.outerHTML:X.innerHTML;return Je&&K["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&kt(t0,X.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
226
+ `+Pt),te&&Bs([ne,fe,ye],ln=>{Pt=ho(Pt,ln," ")}),B&&Yn?B.createHTML(Pt):Pt},t.setConfig=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_o(de),Lt=!0},t.clearConfig=function(){_r=null,Lt=!1},t.isValidAttribute=function(de,P,X){_r||_o({});const le=gt(de),We=gt(P);return Rs(le,We,X)},t.addHook=function(de,P){typeof P=="function"&&fo(U[de],P)},t.removeHook=function(de,P){if(P!==void 0){const X=sD(U[de],P);return X===-1?void 0:aD(U[de],X,1)[0]}return Km(U[de])},t.removeHooks=function(de){U[de]=[]},t.removeAllHooks=function(){U=r0()},t}var o0=i0();const Mn=x.forwardRef(({fallback:e,functionProps:t,children:n},o)=>{if(n=ft(n,t),n===null)return null;const s=n||e;return x.isValidElement(s)?x.cloneElement(s,{ref:o}):s});Mn.displayName="FallbackWrapper";const CD={field:"_field_zdaf7_1",rtl:"_rtl_zdaf7_7",borderRight:"_borderRight_zdaf7_12"},yo=x.memo(({id:e,entry:t,loading:n,rightBorder:o,children:s,onClickEntry:a,customElement:u,sanitize:c,...h})=>{const p={text:{style:{whiteSpace:"nowrap",overflow:"ellipsis"}}},{text:m}=v.useProps("Field",p,h),y={};Object.entries(m).forEach(([C,E])=>{typeof E=="function"&&(y[C]=E(t))});const _=v.useStyles({name:"Field",props:h,classes:CD});return d.jsx(v.Table.Td,{..._("field"),onClick:a?()=>a(e,t):null,...h,children:d.jsx(v.Box,{w:"100%",children:d.jsx(v.Skeleton,{visible:n,children:d.jsx(Mn,{fallback:Array.isArray(s)?s.map((C,E)=>d.jsx(v.Text,{...m,...y,children:c?o0.sanitize(C):C},E)):x.isValidElement(s)?s:d.jsx(v.Text,{...m,...y,children:c?o0.sanitize(s):s}),functionProps:t,children:u})})})})});yo.displayName="Field";const s0={row:"_row_138r2_1",selected:"_selected_138r2_5"};function a0({entry:e,selected:t,children:n}){const o=v.useStyles({name:"Row",classes:s0}),s=v.useProps("Row",{},{});Object.entries(s).forEach(([c,h])=>{typeof h=="function"&&(s[c]=h(e))});var{className:a,style:u}=o("row");return a=`${a} ${t?s0.selected:""}`,d.jsx(v.Table.Tr,{className:a,style:{...u},...s,children:n})}function ED({bodyCustomizer:e,actionColumn:t,id:n,entry:o}){let s=e==null?void 0:e[t];return typeof s=="function"&&(s=s({id:n,...o})),s===null?null:s||d.jsx(Ku,{id:n})}function l0({data:e,loading:t,hideActions:n,hideCheckbox:o,selection:s,toggleRow:a,onClickEntry:u,bodyCustomizer:c,bodySeparator:h}){const p=e.list_columns.includes("actions")?"_actions":"actions",m=x.useMemo(()=>e!=null&&e.list_columns.includes("all")?"_all":"all",[e==null?void 0:e.list_columns]);return d.jsx(v.Table.Tbody,{children:e.result.length?e.result.map((y,_)=>{const C=e.ids[_];return d.jsxs(a0,{entry:{...y,id:C},children:[o?null:d.jsx(yo,{loading:t,children:d.jsx(v.Checkbox,{pl:2,checked:s.includes(C),onChange:()=>{a(C)}})},_),n?null:d.jsx(yo,{loading:t,children:d.jsx(ED,{bodyCustomizer:c,actionColumn:p,id:xt(C),entry:y})}),e.list_columns.map((E,w)=>{let $=c==null?void 0:c[E];typeof $=="function"&&($=$({id:C,...y}));let N=Yi(y,E);typeof N=="number"?N=N.toLocaleString():N==null&&(N="");const Q=(h==null?void 0:h[E])||(h==null?void 0:h[m]);return Q&&(N=N.split(Q)),$===null?null:d.jsx(yo,{id:C,entry:y,loading:t,onClickEntry:u,customElement:$,sanitize:!0,children:N},w)})]},xt(C))}):d.jsx("tr",{children:d.jsx("td",{style:{padding:"8px"},colSpan:n?e.list_columns.length:e.list_columns.length+1,children:d.jsx(v.Text,{style:{fontStyle:"italic"},size:"sm",c:"dimmed",children:"No data available"})})})})}const u0={root:"_root_1kmay_1",wrapper:"_wrapper_1kmay_7",icon:"_icon_1kmay_18"};function js({column:e,label:t,orderColumn:n,related:o,toggleAll:s,allChecked:a,classNames:u,styles:c,customElement:h,...p}){const{queryParams:m,setQueryParams:y,loading:_}=Ae(),C={fw:700,size:"sm",color:"gray.8",hoverColor:"gray.6",selectedColor:"blue"},E=v.useStyles({name:"FieldTitle",classes:u0,classNames:u,styles:c,props:p}),w=v.useProps("FieldTitle",C,p),{hovered:$,ref:N}=Ze.useHover(),Q=n&&m.order_column===n,H=E("wrapper");return H.style.cursor=n?H.style.cursor:"auto",d.jsx(v.Table.Th,{className:u0.fieldTitleRoot,...E("root"),onClick:n&&!_?()=>y({order_column:n,order_direction:m.order_direction==="asc"?"desc":"asc"}):null,children:d.jsx(v.Box,{ref:N,...H,children:e==="Checkbox"?d.jsx(v.Checkbox,{pb:5,pl:2,onChange:s,checked:a}):d.jsxs(d.Fragment,{children:[d.jsx(v.Box,{w:"100%",fw:w.fw,size:"xl",c:$&&n?w.hoverColor:Q?w.selectedColor:w.color,children:h||t||e}),o?d.jsx(v.Tooltip,{label:"Related Field",children:d.jsx(v.Indicator,{label:"rel",style:{indicator:{top:"-1px !important",right:"-2px !important",padding:"4px"}},children:d.jsx(v.Box,{...E("icon"),children:Q?m.order_direction==="asc"?d.jsx(vl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})})}):d.jsx(v.Box,{...E("icon"),children:Q?m.order_direction==="asc"?d.jsx(vl,{size:14,strokeWidth:1.5}):d.jsx(wd,{size:14,strokeWidth:1.5}):null})]})})})}const zu=x.memo(({data:e,info:t,settings:n,hideActions:o,hideCheckbox:s,allChecked:a,toggleAll:u,headerCustomizer:c})=>{const h=e.list_columns.includes("actions")?"_actions":"actions";let p=c==null?void 0:c[h];return typeof p=="function"&&(p=p()),d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[s?null:d.jsx(js,{data:e,column:"Checkbox",allChecked:a,toggleAll:u}),o?null:d.jsx(js,{column:"Actions",customElement:p}),e.list_columns.map((m,y)=>{var C;let _=c==null?void 0:c[m];return typeof _=="function"&&(_=_(e.label_columns[m])),_===null?null:d.jsx(js,{column:m,label:e.label_columns[m],orderColumn:e.order_columns.find(E=>E===m)||e.order_columns.find(E=>E.startsWith(`${m}.`)),related:((C=t.filters[m])==null?void 0:C.schema.type)==="Nested",customElement:_},m)})]})})});zu.displayName="Header";const xD={scrollbar:"_scrollbar_isyo2_1"};function c0({bulkActions:e,hideActions:t,loading:n,onSelectCheckbox:o,onClickEntry:s,hideCheckbox:a,hideDownload:u,headerCustomizer:c,bodyCustomizer:h,bodySeparator:p,...m}){const y=v.useMantineTheme(),_=v.Table.extend({highlightOnHover:!0,striped:!0,horizontalSpacing:"md",verticalSpacing:"sm"}),C=v.useProps("DatagridTable",_,m),{data:E,info:w}=Ae(),[$,N]=x.useState([]),[Q,H]=x.useState(!1),B=k=>{N(G=>G.includes(k)?G.filter(ae=>ae!==k):[...G,k])},D=()=>{N(k=>k.length===E.ids.length?[]:E.ids.map((G,ae)=>G))};return x.useEffect(()=>{H($.length===E.result.length&&$.length>0),o&&o($),e==null||e.setSelectedIds($.map(k=>k))},[$]),x.useEffect(()=>{N([]),o&&o([])},[E]),d.jsx(v.ScrollArea,{options:{className:y.colorScheme==="dark"?"os-theme-light":void 0},style:{flex:1,flexDirection:"column"},classNames:xD,children:d.jsxs(v.Table,{stickyHeader:!0,...C,children:[d.jsx(zu,{data:E,info:w,hideActions:t,hideCheckbox:a,allChecked:Q,setSelection:N,toggleAll:D,headerCustomizer:c}),d.jsx(l0,{data:E,loading:n,hideActions:t,hideCheckbox:a,selection:$,setSelection:N,toggleRow:B,onClickEntry:s,bodyCustomizer:h,bodySeparator:p})]})})}const Uu=x.memo(({counter:e,...t})=>{const{data:n,queryParams:o,setQueryParams:s}=Ae(),a=v.useMantineTheme(),u=[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"}],c=String(o.page_size),[h,p]=x.useState(o.page);x.useEffect(()=>{p(o.page)},[o.page]);const m=_=>{p(_-1),s({page:_-1})},y=_=>{s({page_size:parseInt(_,10),page:0})};return d.jsxs(d.Fragment,{children:[d.jsx(v.Divider,{}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between",alignItems:"center",height:54,border:"none",borderTopWidth:"1px",padding:"var(--mantine-spacing-md)"},children:[d.jsxs(v.Box,{style:{display:"flex",alignItems:"center",gap:"var(--mantine-spacing-sm)"},children:[d.jsx(v.Text,{children:"Rows per page:"}),d.jsx(v.Select,{value:c,defaultValue:c,onChange:_=>y(_),data:u,allowDeselect:!1,w:80,size:"xs",styles:()=>({input:{fontSize:"14px",fontWeight:"250",lineHeight:"52px",border:"1px solid #E6E8ED"},item:{"&[data-selected]":{"&, &:hover":{outline:"none !important"}}}})})]}),d.jsx(v.Pagination,{size:"sm",total:Math.ceil(n.count/c),value:h+1,onChange:m,...t}),e&&n?d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{c:a.primaryColor,size:"xs",fw:400,pl:20,children:"Total Records"}),d.jsx(v.Text,{c:a.primaryColor,size:"md",fw:700,pl:10,children:n.count})]}):null]})]})});Uu.displayName="Pagination";function AD(e){return t=>{try{return e.validateSync(t,{abortEarly:!1}),{}}catch(n){const o={};return n instanceof wt&&n.inner.forEach(s=>{o[s.path.replaceAll("[",".").replaceAll("]","")]=s.message}),o}}}function OD({form:e,name:t,items:n,...o}){return d.jsx(v.Autocomplete,{data:n,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function f0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateInput,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o.getTime()-o.getTimezoneOffset()*6e4);e.setFieldValue(t,s.toISOString().substring(0,10))}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function d0({form:e,name:t,...n}){return d.jsx(d.Fragment,{children:d.jsx(Gi.DateTimePicker,{...e.getInputProps(t),onChange:o=>{if(o instanceof Date){const s=new Date(o);e.setFieldValue(t,s.toISOString())}},value:e.getInputProps(t).value?new Date(e.getInputProps(t).value):null,...n})})}function vo({form:e,name:t,...n}){const o=e.getInputProps(t).value,s=x.useMemo(()=>o&&typeof o=="object"?JSON.stringify(o):o||"",[o]);return t==="password"?d.jsx(v.PasswordInput,{...e.getInputProps(t),value:s,...n}):d.jsx(v.TextInput,{...e.getInputProps(t),value:s,...n})}function ju({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(""),u=e.getInputProps(t).value,c=x.useMemo(()=>u?typeof u=="object"?JSON.stringify(u,null,2):u:"",[u]);return x.useEffect(()=>{a(c)},[c]),n?d.jsx(vo,{form:e,name:t,...o}):d.jsx(v.JsonInput,{autosize:!0,minRows:4,maxRows:12,validationError:"Invalid JSON",...e.getInputProps(t),...o,value:s,onChange:h=>{if(a(h),!h){e.getInputProps(t).onChange(null);return}try{const p=JSON.parse(h);e.getInputProps(t).onChange(p)}catch{}}})}function h0({form:e,name:t,filter:n,...o}){const[s,a]=x.useState(!!n);return d.jsxs(v.InputWrapper,{label:o.label,description:o.description,children:[!n&&d.jsxs(v.Group,{align:"center",gap:"xs",py:"0.25rem",children:[d.jsx(v.Checkbox,{checked:s,onChange:u=>a(u.currentTarget.checked)}),d.jsx(v.Text,{size:"xs",children:"WKT"})]}),s?d.jsx(vo,{form:e,name:t,...o,label:void 0,description:void 0}):d.jsx(ju,{form:e,name:t,...o,label:void 0,description:void 0})]})}function p0({form:e,name:t,items:n,...o}){const s=n.map(u=>({value:String(xt(u.id)),label:u.value})),a=Array.isArray(e.getInputProps(t).value)?e.getInputProps(t).value.map(u=>String(typeof u=="object"?xt(u.id):u)):[];return d.jsx(v.MultiSelect,{data:s,searchable:!0,...e.getInputProps(t),value:a||[],...o})}function g0({form:e,name:t,items:n,filter:o,...s}){var u;const a=n.map(c=>({value:String(xt(c.id)),label:c.value}));return d.jsx(v.Select,{data:a,searchable:!0,...e.getInputProps(t),onChange:c=>{if(o){e.setFieldValue(t,c);return}const h=n.find(p=>String(xt(p.id))===c)||null;e.setFieldValue(t,h)},value:o?e.getInputProps(t).value:String(xt((u=e.getInputProps(t).value)==null?void 0:u.id))||"",...s})}function Wu({form:e,name:t,items:n,...o}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),value:String(e.getInputProps(t).value)||"",...o})}function Vu({form:e,name:t,schema:n,filter:o,withinPortal:s=!0,...a}){if(!n.type)return null;switch(n.type){case"Boolean":return d.jsx(Wu,{form:e,name:t,items:[{label:"true",value:o?"1":"true"},{label:"false",value:o?"0":"false"}],...a});case"RelatedList":return d.jsx(p0,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});case"Related":return d.jsx(g0,{form:e,name:t,items:n.values,filter:o,comboboxProps:{withinPortal:s},...a});case"DateTime":return d.jsx(d0,{form:e,name:t,valueFormat:"DD.MM.YYYY HH:mm:ss",schema:n,popoverProps:{withinPortal:s},...a});case"Date":return d.jsx(f0,{form:e,name:t,valueFormat:"DD.MM.YYYY",schema:n,popoverProps:{withinPortal:s},...a});case"Geometry":return d.jsx(h0,{form:e,name:t,filter:o,...a});case"Raw":return d.jsx(ju,{form:e,name:t,filter:o,...a});case"Integer":case"Float":return d.jsx(vo,{form:e,name:t,...a});case"Enum":return d.jsx(Wu,{form:e,name:t,items:n.values,comboboxProps:{withinPortal:s},...a});default:return d.jsx(vo,{form:e,name:t,...a})}}function ID({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function Gu({form:e,name:t,label:n,comboboxProps:o,...s}){const a=v.useCombobox({onDropdownClose:()=>a.resetSelectedOption(),onDropdownOpen:()=>a.updateSelectedOptionIndex("active")}),[u,c]=x.useState([]),[h,p]=x.useState(""),m=C=>{h!==""&&(u.includes(h)||c(E=>[...E,h]),p(""))},y=C=>c(E=>E.filter(w=>w!==C)),_=u.map(C=>d.jsx(v.Pill,{withRemoveButton:!0,onRemove:()=>y(C),children:C},C));return x.useEffect(()=>{const C=e.getInputProps(t).value;if(C)try{c([...C])}catch(E){console.error("Error parsing JSON:",E)}},[]),x.useEffect(()=>{e.getInputProps(t).onChange(u)},[u]),d.jsx(v.InputWrapper,{label:n,children:d.jsxs(v.Combobox,{store:a,onOptionSubmit:m,...o,children:[d.jsx(v.Combobox.DropdownTarget,{children:d.jsx(v.PillsInput,{onClick:()=>a.openDropdown(),children:d.jsxs(v.Pill.Group,{children:[_,d.jsx(v.Combobox.EventsTarget,{children:d.jsx(v.PillsInput.Field,{onFocus:()=>a.openDropdown(),onBlur:()=>a.closeDropdown(),value:h,placeholder:"Search values",onChange:C=>{a.updateSelectedOptionIndex(),p(C.currentTarget.value)},onKeyDown:C=>{C.key==="Backspace"&&h.length===0&&(C.preventDefault(),y(u[u.length-1]))}})})]})})}),d.jsx(v.Combobox.Dropdown,{children:d.jsx(v.Combobox.Options,{children:d.jsxs(v.Combobox.Option,{value:"$create",children:["+ Create ",h]})})})]})})}function PD({form:e,name:t,items:n,onChange:o,...s}){return d.jsx(v.Select,{data:n,searchable:!0,...e.getInputProps(t),onChange:o,...s})}function m0({onClose:e,...t}){const{info:n,queryParams:o,setQueryParams:s,path:a}=Ae(),u=Ba.useForm({initialValues:{filters:[]},validate:AD(Ki({filters:hl().of(Ki({col:Ro().transform(y=>y||void 0).required("Field is required"),opr:Ro().transform(y=>y||void 0).required("col is required"),value:Jo().when("col",{is:y=>y&&n.filters[y].schema.required,then:()=>Jo().required("Value is required")})}))}))}),c={bg:"transparent",size:"sm",c:"gray"},h=v.useProps("ActionIcon",c,t);x.useEffect(()=>{u.setValues({filters:[]}),u.reset()},[a]),x.useEffect(()=>{if(o.filters&&o.filters.length){const y=o.filters.filter(_=>!_.id).map(_=>({..._,key:Ze.randomId()}));u.setFieldValue("filters",y)}},[o.filters]);const p=y=>{const _=y.filters.map(({key:E,...w})=>w),C=JSON.parse(JSON.stringify(_));s({filters:C,page:0}),e()},m=u.values.filters.map((y,_)=>d.jsxs(v.Box,{px:"sm",children:[d.jsxs(v.Flex,{my:"md",gap:"md",style:{whiteSpace:"nowrap"},children:[d.jsx(v.Box,{style:{width:"192px"},children:n&&n.filters&&d.jsx(ID,{form:u,name:`filters.${_}.col`,items:Object.entries(n.filters).map(([C,E])=>({label:E.label,value:String(C)})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:C,opr:"",value:"",key:Ze.randomId()})}})}),d.jsx(v.Box,{style:{width:"192px"},children:y.col?d.jsx(PD,{form:u,name:`filters.${_}.opr`,items:n.filters[y.col].filters.filter(C=>!C.id).map(C=>({label:C.name,value:C.operator})),onChange:C=>{u.setFieldValue(`filters.${_}`,{col:u.values.filters[_].col,opr:C,value:"",key:Ze.randomId()})}}):null}),d.jsx(v.Box,{style:{width:"192px"},children:y.col?y.opr==="in"?d.jsx(Gu,{form:u,name:`filters.${_}.value`}):d.jsx(Vu,{form:u,name:`filters.${_}.value`,schema:n.filters[y.col].schema,filter:!0}):null}),d.jsx(v.ActionIcon,{bg:h.bg,size:h.size,c:h.c,onClick:()=>{u.removeListItem("filters",_)},children:d.jsx(Ad,{})})]}),u.values.filters.length>1&&_<u.values.filters.length-1?d.jsx(v.Divider,{my:"md",labelPosition:"center",label:"AND"}):null]},y.key));return d.jsxs(v.Box,{component:"form",onSubmit:u.onSubmit(p),children:[m.length===0&&d.jsx(v.Box,{style:{width:"642px"},children:d.jsx(v.Text,{style:{fontStyle:"italic",padding:"7px"},size:"sm",c:"dimmed",children:"No filters selected..."})}),d.jsx(v.ScrollArea.Autosize,{mah:"40vh",mt:20,children:m}),d.jsx(v.Divider,{my:"sm"}),d.jsxs(v.Box,{style:{display:"flex",justifyContent:"space-between"},children:[d.jsx(v.Button,{variant:"subtle",leftSection:d.jsx(bl,{}),onClick:()=>{u.insertListItem("filters",{col:"",opr:"",value:"",key:Ze.randomId()})},children:"Add Filter"}),d.jsx(v.Group,{spacing:"md",children:d.jsx(v.Button,{type:"submit",children:"Apply"})})]})]})}function y0(...e){const{queryParams:t}=Ae(),n={bg:"transparent",size:"sm",c:"gray"},o=v.useProps("ActionIcon",n,e),[s,a]=x.useState(!1);return d.jsxs(v.Popover,{opened:s,position:"bottom-end",onClose:()=>a(!1),closeOnClickOutside:!1,children:[d.jsx(v.Popover.Target,{children:d.jsx(v.Tooltip,{opened:s?!1:null,label:"Filter",children:(t==null?void 0:t.filters.filter(u=>!u.id).length)!=0?d.jsx(v.Indicator,{zIndex:20,size:16,label:t==null?void 0:t.filters.length,children:d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})}):d.jsx(v.ActionIcon,{bg:o.bg,size:o.size,c:o.c,onClick:()=>a(!0),children:d.jsx(Sd,{})})})}),d.jsxs(v.Popover.Dropdown,{px:"xs",children:[d.jsx(v.Box,{style:{position:"absolute",top:4,right:4},children:d.jsx(v.CloseButton,{title:"Filters",onClick:()=>a(!1)})}),d.jsx(m0,{onClose:()=>{a(!1)}})]})]})}const Hu=x.memo(({hideAdd:e,hideFilter:t,hideDownload:n,toolbarCustomizer:o})=>{const{info:s}=Ae(),a=x.useMemo(()=>{const c={};return Object.entries(o).forEach(([h,p])=>{c[h]=p,typeof c[h]=="function"&&(c[h]=c[h]())}),c},[o]),u=s.permissions.includes("can_post");return d.jsxs(v.Flex,{justify:"flex-end",p:"md",gap:"sm",children:[!n&&(a.download||d.jsx(Zu,{size:"sm"})),u&&!e?a.add||d.jsx(Ju,{size:"sm"}):null,t?null:a.filter||d.jsx(y0,{})]})});Hu.displayName="Toolbar";function Yu({children:e,cond:t}){return Id(t)?e:null}const qu=x.forwardRef((e,t)=>{const{path:n,data:o,loading:s,info:a,setQueryParams:u}=Ae(),{hideToolbar:c=!1,hideFilter:h=!1,hideAdd:p=!1,hideSettings:m=!1,hideActions:y=!1,hidePagination:_=!1,hideError:C=!1,hideDownload:E=!0,onSelectCheckbox:w=null,onClickEntry:$=null,fetchOnMount:N=!0,bulkActions:Q=null,styles:H,headerCustomizer:B={},bodyCustomizer:D={},toolbarCustomizer:k={},counter:G=!1,bodySeparator:ae,form:ie}=e;x.useEffect(()=>{!o&&N&&u({})},[o]);const{setView:S}=zn("add"),{setView:U}=zn("edit");if(x.useEffect(()=>{var fe,ye;(fe=ie==null?void 0:ie.add)!=null&&fe.initialView&&S(ie.add.initialView),(ye=ie==null?void 0:ie.edit)!=null&&ye.initialView&&U(ie.edit.initialView)},[]),!a)return;const ne=Q===null;return d.jsxs(v.Paper,{ref:t,h:"100%",display:"flex",pos:"relative",style:{flexDirection:"column",...H},children:[d.jsxs(Yu,{cond:!!a,children:[d.jsx(Ru,{jsonForms:ie==null?void 0:ie.add}),d.jsx(Pu,{jsonForms:ie==null?void 0:ie.edit})]}),c?null:d.jsx(Hu,{hideFilter:h,hideAdd:p,hideSettings:m,hideDownload:E,toolbarCustomizer:k}),o?d.jsx(c0,{bulkActions:Q,hideActions:y,loading:s,onSelectCheckbox:w,onClickEntry:$,hideCheckbox:ne,hideDownload:E,headerCustomizer:B,bodyCustomizer:D,bodySeparator:ae}):null,!_&&o?d.jsx(Uu,{counter:G}):null,C?null:d.jsx($u,{})]})});qu.displayName="DataGrid";function $D({relatedPath:e,...t}){const{path:n}=Ae();return it(n?n.substring(0,n.lastIndexOf("/")):"",e.substring(0,e.lastIndexOf("/"))),d.jsx(Td,{resource_name:e.replace("/",""),relation:t,children:d.jsx(qu,{hideToolbar:!0,hideDownload:!1})})}const MD=x.memo($D);function v0({item:e,info:t,loading:n,opened:o,onClose:s,...a}){const u={modal:{},tabs:{},tabsList:{},tabsPanel:{}},{modal:c,tabs:h,tabsList:p,tabsPanel:m}=v.useProps("ViewDialog",u,a);return d.jsxs(v.Modal,{opened:o,onClose:s,title:`${e==null?void 0:e.show_title} (#${xt(e==null?void 0:e.id)})`,size:"lg",centered:!0,zIndex:1e3,...c,children:[d.jsx(v.LoadingOverlay,{visible:n}),!n&&e?d.jsxs(v.Tabs,{defaultValue:"details",...h,children:[d.jsxs(v.Tabs.List,{...p,children:[d.jsx(v.Tabs.Tab,{value:"details",children:"Details"}),t.relations.map((y,_)=>d.jsx(v.Tabs.Tab,{value:y.name,children:y.name},_))]}),d.jsx(v.Tabs.Panel,{pt:"xs",value:"details",...m,children:d.jsx(v.Paper,{p:"xs",withBorder:!0,children:d.jsx(v.Stack,{spacing:"md",children:d.jsx(v.ScrollArea,{h:450,type:"auto",children:e.show_columns.map((y,_)=>d.jsxs(v.Grid,{maw:500,children:[d.jsx(v.Grid.Col,{span:4,children:d.jsx(v.Text,{size:"md",children:e.label_columns[y]})}),d.jsx(v.Grid.Col,{span:1,children:d.jsx(v.Text,{size:"xs",children:":"})}),d.jsx(v.Grid.Col,{span:6,children:d.jsx(v.Text,{size:"md",children:Yi(e.result,y)})})]},_))})})})}),t.relations.map((y,_)=>d.jsx(v.Tabs.Panel,{pt:"xs",value:y.name,children:d.jsx(v.Paper,{withBorder:!0,children:d.jsx(MD,{relatedPath:y.path,id:xt(e.id),foreign_key:y.foreign_key,type:y.type})})},_))]}):null]})}function b0({id:e,...t}){const{info:n,getEntry:o}=Ae(),[s,a]=x.useState(null),[u,c]=x.useState(!1),[h,p]=x.useState(!1),m=ar({onClick:()=>{c(!0),o(e).then(y=>{y&&(a(y),p(!0))}).finally(()=>c(!1))},size:"sm",...t});return d.jsxs(d.Fragment,{children:[d.jsx(v.Tooltip,{label:"Details",children:d.jsx(v.ActionIcon,{...m,children:d.jsx(i1,{})})}),d.jsx(v0,{item:s,info:n,loading:u,opened:h,onClose:()=>p(!1)})]})}function Ku({id:e}){const{info:t}=Ae();return d.jsxs(v.Flex,{style:{gap:4,whiteSpace:"nowrap"},children:[t!=null&&t.permissions.includes("can_get")?d.jsx(b0,{id:e}):null,t!=null&&t.permissions.includes("can_put")?d.jsx(Md,{id:e}):null,t!=null&&t.permissions.includes("can_delete")?d.jsx($d,{id:e}):null]})}function Ju({tooltipProps:e,...t}){const{setOpened:n}=zn("add"),o=ar({onClick:()=>n(!0),...t});return d.jsx(d.Fragment,{children:d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Add Item",children:d.jsx(v.ActionIcon,{...o,children:d.jsx(bl,{})})})})}function Ru({jsonForms:e,...t}){const{info:n,addEntry:o}=Ae(),{opened:s,setOpened:a,state:u,setState:c,reset:h,view:p,setView:m}=zn("add"),{jsonForms:y}=v.useProps("AddDialog",{},{}),_=x.useMemo(()=>Bn(y,e),[y,e]),C=x.useCallback(async E=>{E==null||E.preventDefault(),await o(u.data),a(!1)},[o,a,u.data]);return d.jsx(Au,{schema:n.add_schema,uischema:n.add_uischema,state:u,setState:c,view:p,setView:m,jsonForms:_,onSubmit:C,buttonText:"Add",opened:s,onClose:()=>a(!1),onExitTransitionEnd:h,...p===mt.OVERLAY?Iu:{},...p===mt.NORMAL?Ou:{},...t,title:t.title??(n==null?void 0:n.add_title)})}const _0=[{name:"John Doe",age:25,friend:"Jane Doe","friend.name":"Jane Doe","friend.age":30},{name:"Jane Doe",age:30,friend:"John Doe","friend.name":"John Doe","friend.age":25}];function Zu({tooltipProps:e,...t}){const{download:n}=Ae(),[o,{toggle:s,close:a}]=Ze.useDisclosure(),[u,c]=x.useState(!1),[h,p]=x.useState(Hi),m=ar({onClick:s,...t}),y=({label:E,export_mode:w,delimiter:$})=>{c(!0),n({label:E,export_mode:w,delimiter:$}).then(()=>{a()}).finally(()=>c(!1))},_=_0.map(E=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:E.name}),d.jsx(v.Table.Td,{p:4,children:E.age}),d.jsx(v.Table.Td,{p:4,children:E.friend})]},E.name)),C=_0.map(E=>d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Td,{p:4,children:E.name}),d.jsx(v.Table.Td,{p:4,children:E.age}),d.jsx(v.Table.Td,{p:4,children:E["friend.name"]}),d.jsx(v.Table.Td,{p:4,children:E["friend.age"]})]},E.name));return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Download data",centered:!0,size:"xl",opened:o,onClose:a,children:d.jsxs(v.Stack,{children:[d.jsx(v.Select,{label:"Delimiter",description:"Select the delimiter used in the CSV file",value:h,onChange:p,data:Ua,placeholder:"Select delimiter",leftSection:d.jsx(xd,{})}),d.jsxs(v.Group,{grow:!0,children:[d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Simplified version of the data"}),d.jsx(v.Tooltip,{label:"This is a simplified version of the data. It shows only the properties of the elements and their relationships",children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"Name"}),d.jsx(v.Table.Th,{p:4,children:"Age"}),d.jsx(v.Table.Th,{p:4,children:"Friend"})]})}),d.jsx(v.Table.Tbody,{children:_})]}),d.jsx(v.Button,{mt:"md",onClick:()=>y({label:"",export_mode:"simplified",delimiter:h}),children:"Download simplified"})]}),d.jsxs(v.Card,{shadow:"md",withBorder:!0,children:[d.jsxs(v.Group,{justify:"space-between",children:[d.jsx(v.Text,{children:"Detailed version of the data"}),d.jsx(v.Tooltip,{label:d.jsxs(d.Fragment,{children:[d.jsx(v.Text,{children:"This is a detailed version of the data. It shows all the properties of the elements including all the properties of their relationships"}),d.jsx(v.Text,{children:"It can also be used as a CSV file to be imported into a database"})]}),children:d.jsx(v.ThemeIcon,{variant:"transparent",size:"sm",style:{cursor:"pointer"},children:d.jsx(Cd,{})})})]}),d.jsxs(v.Table,{withColumnBorders:!0,children:[d.jsx(v.Table.Thead,{children:d.jsxs(v.Table.Tr,{children:[d.jsx(v.Table.Th,{p:4,children:"name"}),d.jsx(v.Table.Th,{p:4,children:"age"}),d.jsx(v.Table.Th,{p:4,children:"friend.name"}),d.jsx(v.Table.Th,{p:4,children:"friend.age"})]})}),d.jsx(v.Table.Tbody,{children:C})]}),d.jsx(v.Button,{mt:"md",onClick:()=>y({label:"",export_mode:"detailed",delimiter:h}),children:"Download detailed"})]})]})]})}),u?d.jsx(v.ThemeIcon,{variant:"transparent",size:m.size,c:m.c,children:d.jsx(v.Loader,{size:"100%",color:m.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Download",children:d.jsx(v.ActionIcon,{...m,children:d.jsx(n1,{})})})]})}function T0({tooltipProps:e,...t}){const[n,o]=x.useState(!1),{loading:s,refetch:a}=Ae(),u=ar({onClick:()=>{o(!0),a()},...t});return x.useEffect(()=>{s||o(!1)},[s]),n?d.jsx(v.ThemeIcon,{variant:"transparent",size:u.size,c:u.c,children:d.jsx(v.Loader,{size:"100%",color:u.c})}):d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.refresh)??"Refresh",children:d.jsx(v.ActionIcon,{...u,children:d.jsx(c1,{})})})}function w0({tooltipProps:e,...t}){const{upload:n,refetch:o}=Ae(),[s,{toggle:a,close:u}]=Ze.useDisclosure(),[c,h]=x.useState(),[p,m]=x.useState(Hi),y=ar({onClick:a,...t}),_=x.useCallback(async()=>{await n(c,{delimiter:p})&&o(),u()},[u,p,c,o,n]);return d.jsxs(d.Fragment,{children:[d.jsx(v.Modal,{title:"Import data",centered:!0,opened:s,onClose:u,onExitTransitionEnd:()=>{h(null),m(Hi)},children:d.jsxs(v.Stack,{children:[d.jsx(v.Select,{label:"Delimiter",description:"Select the delimiter used in the CSV file",value:p,onChange:m,data:Ua,placeholder:"Select delimiter",leftSection:d.jsx(xd,{})}),d.jsx(v.FileInput,{label:"CSV file",description:"CSV file containing the data to import",value:c,onChange:h,accept:"text/csv",placeholder:"Upload CSV file",leftSection:d.jsx(o1,{}),clearable:!0}),d.jsx(v.Group,{justify:"end",children:d.jsx(v.Button,{onClick:_,disabled:!c,children:"Upload"})})]})}),d.jsx(v.Tooltip,{...e,label:(e==null?void 0:e.label)??"Upload CSV",children:d.jsx(v.ActionIcon,{...y,children:d.jsx(f1,{})})})]})}function FD({children:e,fetch:t=!0,loading:n=d.jsx(v.Center,{children:d.jsx(v.Loader,{})}),end:o=d.jsx(v.Center,{children:"End of data"}),fetchWrapper:s=v.Center,fetchWrapperProps:a}){const{streaming:u,loading:c}=Ae(),{ref:h,inViewport:p}=Ze.useInViewport(),m=x.useMemo(()=>Object.values(u.data).flat(),[u.data]),y=x.useMemo(()=>typeof e=="function"?e(m):e,[e,m]);return x.useEffect(()=>{p&&t&&u.fetch()},[p]),d.jsxs(d.Fragment,{children:[y,c&&n,u.isEnd&&o,d.jsx(s,{ref:h,id:"IS-load-trigger",mih:"1%",...a})]})}function DD(e,t){const n=Ae(),o=$r(),s=x.useCallback(({row:a,...u})=>d.jsx(Mn,{fallback:d.jsx(Ku,{id:a.original.id}),functionProps:{api:n,auth:o,data:a.original,mrtProps:{row:a,...u}},children:t}),[n,o,t]);return{enableEditing:!e,editDisplayMode:"modal",renderRowActions:s}}function kD(e,t){return{enableRowSelection:!!e||!!t}}const zr=(e={},...t)=>t.reduce((n,o)=>Bn(n,e[o]),{}),bo=(e,t,n=!1)=>{let o="";n&&(o+="filter");const s=n?e[0].toUpperCase():e[0].toLowerCase();return o+=s+e.slice(1),`${o}.${t}`},S0=(e="")=>{e.startsWith("filter")&&(e=e.slice(6));const[t="",n=""]=e.split(".");return{col:t,operator:n}};function ND({col:e,colFilter:t,onClick:n,...o}){return d.jsxs(v.Menu,{shadow:"md",width:"target",...o,children:[d.jsx(v.Menu.Target,{children:d.jsx(v.Button,{children:"Add filter"})}),d.jsx(v.Menu.Dropdown,{children:t.filters.filter(s=>!s.id).map(s=>d.jsx(v.Menu.Item,{onClick:()=>n({col:e,opr:s.operator,value:""}),children:s.name},`${t.label}-${s.name}`))})]})}function LD({col:e}){const{info:t,queryParams:n,setQueryParams:o}=Ae(),s=Ba.useForm({initialValues:{filters:(n==null?void 0:n.filters)||[]}}),a=x.useMemo(()=>(t==null?void 0:t.filters[e])||{},[e,t==null?void 0:t.filters]),u=x.useMemo(()=>{var m;return((m=a==null?void 0:a.filters)==null?void 0:m.reduce((y,_)=>({...y,[_.operator]:_.name}),{}))||{}},[a==null?void 0:a.filters]),[c]=Ze.useDebouncedValue(s.getValues(),rr);Ze.useDidUpdate(()=>{const m=c.filters.filter(y=>y.value);o({filters:m})},[c]);const h=s.getValues().filters,p=h.map((m,y)=>m.col===e&&!m.id?d.jsxs(x.Fragment,{children:[d.jsx(v.Grid.Col,{span:1.5,py:0,children:d.jsx(v.Center,{h:"100%",w:"100%",children:d.jsx(v.CloseButton,{onClick:()=>s.removeListItem("filters",y),size:"md",title:"Remove filter",variant:"outline"})})}),d.jsx(v.Grid.Col,{span:10.5,py:0,children:m.opr==="in"?d.jsx(Gu,{form:s,name:`filters.${y}.value`,label:u[m.opr],comboboxProps:{withinPortal:!1}}):d.jsx(Vu,{form:s,name:`filters.${y}.value`,label:u[m.opr],schema:a.schema,withinPortal:!1,filter:!0})}),y>=0&&y+1<h.length&&d.jsx(v.Grid.Col,{span:12,py:0,children:d.jsx(v.Divider,{my:"sm",label:"AND",align:"center"})})]},`${m.col}-${y}`):null).filter(Boolean);return d.jsxs(v.Grid,{w:p.length?"25rem":"100%",gap:"md",gutter:"xs",children:[p.length?p:d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Text,{align:"center",c:"gray",style:{fontStyle:"italic"},children:"No filters"})}),d.jsx(v.Grid.Col,{span:12,children:d.jsx(v.Stack,{children:d.jsx(ND,{col:e,colFilter:a||{filters:[]},onClick:m=>s.insertListItem("filters",m),withinPortal:!1})})})]})}function BD({filters:e,col:t,opr:n,table:o}){const s=v.useMantineTheme();return e.map(a=>{const u=a.operator===n;return d.jsx(v.Menu.Item,{color:u?s.primaryColor:void 0,leftSection:d.jsx(v.Text,{size:"xl",ta:"center",w:"2ch",style:{transform:"translateY(-0.1em)"},children:a.name[0]}),onClick:()=>o.setColumnFilterFns(c=>({...c,[t]:bo(t,a.operator)})),value:a.opr,children:a.name},a.operator)})}function zD({enableAdvancedFilters:e,mode:t,setMode:n,col:o,opr:s,filters:a,table:u}){return d.jsxs(d.Fragment,{children:[e&&d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Item,{component:"div",p:0,children:d.jsx(v.SegmentedControl,{fullWidth:!0,size:"sm",data:["Basic","Advanced"],value:t,onChange:n})}),d.jsx(v.Menu.Divider,{})]}),t==="Basic"&&d.jsx(BD,{filters:a,col:o,opr:s,table:u}),t==="Advanced"&&d.jsx(LD,{col:o})]})}const wi=e=>e!=null&&e!=="",C0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>{const{value:s,onChange:a,leftInputProps:u,rightInputProps:c,groupProps:h,cleariconprops:p,...m}=n,[y,_]=x.useState([null,null]);x.useEffect(()=>{s||_([null,null])},[s]),x.useEffect(()=>{const B=JSON.stringify(y);let D=null;return y.every(wi)&&B!==s?D=setTimeout(()=>{a(JSON.stringify(y))},rr):y.every(k=>!wi(k))&&(D=setTimeout(()=>{a(void 0)},rr)),()=>clearTimeout(D)},[y]);const C=x.useCallback((B,D)=>{_(k=>{const G=[...k];return G[D]=B,G})},[]);let[E,w]=y;const $=wi(w)&&!wi(E),N=wi(E)&&!wi(w),Q=typeof E=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[null,B[1]]),children:d.jsx(Od,{})}):null,H=typeof w=="number"?d.jsx(v.ActionIcon,{...p,onClick:()=>_(B=>[B[0],null]),children:d.jsx(Od,{})}):null;return d.jsxs(v.Group,{w:"100%",wrap:"nowrap",align:"center",gap:"xs",...h,children:[d.jsx(v.NumberInput,{ref:o,styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:Q,...m,...t,value:E??"",onChange:B=>C(B,0),placeholder:$?"Start value is required":"Start value",error:$&&" ",...u}),d.jsx(v.NumberInput,{styles:{wrapper:{marginBottom:0}},hideControls:!0,rightSection:H,...m,...t,value:w??"",onChange:B=>C(B,1),placeholder:N?"End value is required":"End value",error:N&&" ",...c})]})});C0.displayName="HeaderBetweenInput";const E0=x.forwardRef(({clearIcon:e,mrtprops:{selectprops:t},...n},o)=>d.jsx(v.Select,{ref:o,data:[{value:String(!0),label:"True"},{value:String(!1),label:"False"}],...t,...n,value:ti(n.value)?String(n.value):null,onChange:s=>n.onChange(ti(s)?s===String(!0):void 0)}));E0.displayName="HeaderBooleanInput";const Xu=e=>e==="range"?[null,null]:null,x0=(e,t)=>e==="range"?t.every(n=>n!==null):t!==null,Qu=x.forwardRef(({type:e,clearIcon:t,mrtprops:{dateinputprops:n},...o},s)=>{const{value:a,onChange:u,...c}=o,[h,p]=x.useState(Xu(e));return x.useEffect(()=>{p(Xu(e))},[e]),x.useEffect(()=>{a||p(Xu(e))},[e,a]),x.useEffect(()=>{const m=JSON.stringify(e==="range"?h.map(_=>_?_.toISOString():null):(h==null?void 0:h.toISOString())??null);let y=null;return x0(e,h)&&m!==a?y=setTimeout(()=>{u(m)},rr):x0(e,h)||(y=setTimeout(()=>{u(void 0)},rr)),()=>clearTimeout(y)},[h]),d.jsx(Gi.DatePickerInput,{ref:s,type:e,clearable:!0,valueFormat:"DD.MM.YYYY",...c,...n,value:e==="range"?Array.isArray(h)?h:[null,null]:Array.isArray(h)?null:h,onChange:p})});Qu.displayName="HeaderDateInput";const A0=x.forwardRef(({data:e,clearIcon:t,mrtprops:{multiselectprops:n},placeholder:o,...s},a)=>{const u=Array.isArray(s.value)?s.value.map(c=>String(typeof c=="object"?xt(c.id):c)):[];return d.jsxs(v.Box,{...s,children:[!u.length&&d.jsx(v.TextInput,{pos:"absolute",placeholder:o,...s,value:void 0,onChange:void 0}),d.jsx(v.MultiSelect,{ref:a,styles:{pill:{maxWidth:"5rem"}},data:e,...n,...s,value:u})]})});A0.displayName="HeaderMultiSelectInput";const O0=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.NumberInput,{ref:o,rightSection:e,...t,...n,value:n.value??""}));O0.displayName="HeaderNumberInput";const ec=x.forwardRef(({data:e,clearIcon:t,mrtprops:{selectprops:n},...o},s)=>d.jsx(v.Select,{ref:s,data:e,searchable:!0,...n,...o,value:o.value??null}));ec.displayName="HeaderSelectInput";const tc=x.forwardRef(({clearIcon:e,mrtprops:{multiselectprops:t},...n},o)=>d.jsx(v.TagsInput,{ref:o,styles:{pill:{maxWidth:"5rem"}},...t,...n,value:n.value??[],onChange:s=>n.onChange(s.length?s:void 0)}));tc.displayName="HeaderTagsInput";const nc=x.forwardRef((e,t)=>{const[n,o]=x.useState();return d.jsx(tc,{ref:t,...e,searchValue:n?n.toString():"",onSearchChange:s=>{if(!s){o(void 0);return}const a=Number(s);isNaN(a)||o(a)}})});nc.displayName="HeaderTagsNumberInput";const rc=x.forwardRef(({clearIcon:e,mrtprops:{textinputprops:t},...n},o)=>d.jsx(v.TextInput,{ref:o,rightSection:e,...t,...n,value:n.value||""}));rc.displayName="HeaderTextInput";const I0=x.forwardRef(({component:e,...t},n)=>{const o=Ae(),s=$r(),a=x.useMemo(()=>({api:o,auth:s,componentProps:{...t,ref:n}}),[o,s,t,n]);return d.jsx(Mn,{ref:n,fallback:d.jsx(rc,{...t}),functionProps:a,children:e})});I0.displayName="HeaderInput";const UD=(e,t)=>{if(!(!e||!t)){switch(e){case"tc":return({componentProps:n})=>d.jsx(rc,{...n});case"in":switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(nc,{...n});case"Enum":return({componentProps:n})=>d.jsx(nc,{data:t.values,...n})}return({componentProps:n})=>d.jsx(tc,{...n});case"bw":switch(t.type){case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Qu,{type:"range",...n});default:return({componentProps:n})=>d.jsx(C0,{...n})}case"eq":case"neq":switch(t.type){case"Boolean":return({componentProps:n})=>d.jsx(E0,{...n})}break;case"rel_o_m":case"nrel_o_m":return({componentProps:n})=>d.jsx(ec,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n});case"rel_m_m":case"nrel_m_m":return({componentProps:n})=>d.jsx(A0,{data:t.values.map(o=>({value:String(xt(o.id)),label:o.value})),...n})}switch(t.type){case"Integer":return({componentProps:n})=>d.jsx(O0,{...n});case"Enum":return({componentProps:n})=>d.jsx(ec,{data:t.values,...n});case"Date":case"DateTime":return({componentProps:n})=>d.jsx(Qu,{...n})}}},Si={root:"_root_yn5fy_1","date-filter":"_date-filter_yn5fy_5"},P0=x.forwardRef(({label:e,disabled:t,children:n,...o},s)=>t?x.cloneElement(n,{ref:s}):d.jsx(v.Tooltip,{label:e,...o,children:x.cloneElement(n,{ref:s})}));P0.displayName="FilterIconWrapper";const $0=x.forwardRef(({indicator:e,children:t,...n},o)=>{const{height:s,ref:a}=Ze.useElementSize(),u=Ze.useMergedRef(o,a);if(!e)return x.cloneElement(t,{ref:u});const c=2;//! This is the height offset between the button from ActionIcon and the icon itself
227
+ return d.jsx(v.Indicator,{zIndex:20,size:16,label:e,styles:{root:{height:s+c}},...n,children:x.cloneElement(t,{ref:u})})});$0.displayName="FilterIndicatorWrapper";function jD({children:e,enableFilterModes:t,enableAdvancedFilters:n,filterProps:o,filterModeDescription:s,filterMenu:a,filters:u,filterFn:c,mrtProps:{column:h,table:p,...m}}){var R;const{info:y,queryParams:_,setQueryParams:C}=Ae(),E=Ae(),w=$r(),$=x.useMemo(()=>{var Y,ee;return(ee=(Y=y==null?void 0:y.filters)==null?void 0:Y[h.id])==null?void 0:ee.schema},[h.id,y==null?void 0:y.filters]),[N,Q]=x.useState("Basic"),[H,{toggle:B}]=Ze.useDisclosure(),D=((R=p.getState().columnFilterFns)==null?void 0:R[h.id])||c,k=x.useMemo(()=>S0(D).operator,[D]),G=x.useMemo(()=>{var Y;return(Y=u==null?void 0:u.find(ee=>ee.operator===k))==null?void 0:Y.name},[u,k]),ae=Ba.useField({mode:"controlled"}),ie=x.useRef(k),S=x.useMemo(()=>(_==null?void 0:_.filters.filter(Y=>Y.id!==h.id&&Y.col===h.id).map(Y=>({...Y})))||[],[_,h.id]);ie.current!==k&&(ie.current=k,ae.reset());const U=x.useCallback(()=>{ae.reset(),h.setFilterValue(void 0)},[]),[ne]=Ze.useDebouncedValue(ae.getInputProps().value,rr),fe=Ze.useMounted(),ye=x.useMemo(()=>_==null?void 0:_.filters.find(Y=>Y.col===h.id&&Y.opr===k),[h.id,k,_==null?void 0:_.filters]);x.useEffect(()=>{fe&&h.setFilterValue(ne??void 0)},[ne]),x.useEffect(()=>{if(!fe)return;const Y=h.getFilterValue();Y===void 0?U():ae.getInputProps().onChange(Y)},[h.getFilterValue()]),x.useEffect(()=>{fe&&(ye||U())},[ye]),Ze.useDidUpdate(()=>{var ee;const Y=(ee=_==null?void 0:_.filters)==null?void 0:ee.filter(oe=>oe.id!==h.id);ti(ne)&&ne!==""&&Y.push({id:h.id,col:h.id,opr:k,value:ne}),C({filters:Y})},[ne]);const Me=x.useMemo(()=>{const Y={variant:"subtle"};return!(u!=null&&u.length)&&(Y.disabled=!0,Y.c="gray"),Y},[u==null?void 0:u.length]),we=x.useMemo(()=>Wa(t?e==null?void 0:e[k]:e,UD(k,$)),[e,t,k,$]),Le=x.useMemo(()=>({...Me,variant:"transparent",c:void 0,size:"sm",onClick:U}),[Me,U]),Ie=x.useMemo(()=>({api:E,auth:w,mrtProps:{column:h,table:p,...m}}),[E,w,h,m,p]),lt=x.useMemo(()=>({...Ie,componentProps:{label:p.options.localization.changeFilterMode,disabled:!(u!=null&&u.length),indicator:S.length,aiProps:Me,onClick:B}}),[Me,S.length,u==null?void 0:u.length,Ie,p.options.localization.changeFilterMode,B]),q=x.useMemo(()=>({...Ie,componentProps:{filterMode:G}}),[G,Ie]),K=ft(t?zr(o,k):o,Ie),Z=x.useMemo(()=>{var Y,ee;return{w:"100%",variant:"unstyled",disabled:!(u!=null&&u.length),title:u.length?void 0:"No filters",placeholder:(Y=p.options.localization.filterByColumn)==null?void 0:Y.replace("{column}",String(h.columnDef.header)),"aria-label":(ee=p.options.localization.filterByColumn)==null?void 0:ee.replace("{column}",String(h.columnDef.header)),style:{fontWeight:"normal"},mrtprops:{column:h,table:p,...m,textinputprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterTextInputProps,[{column:h,table:p,...m}]),...ft(h.columnDef.mantineFilterTextInputProps,[{column:h,table:p,...m}])},selectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterSelectProps||{clearable:!0},{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterSelectProps,{column:h,table:p,...m})},multiselectprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterMultiSelectProps||{clearable:!0},{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterMultiSelectProps,{column:h,table:p,...m})},dateinputprops:{className:Pr("mrt-filter-text-input",Si.root,Si["date-filter"]),...ft(p.mantineFilterDateInputProps,{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterDateInputProps,{column:h,table:p,...m})},autocompleteprops:{className:Pr("mrt-filter-text-input",Si.root),...ft(p.mantineFilterAutocompleteProps,{column:h,table:p,...m}),...ft(h.columnDef.mantineFilterAutocompleteProps,{column:h,table:p,...m})}},ref:oe=>{oe&&(p.refs.filterInputRefs.current[`${h.id}-0`]=oe)},clearIcon:ae.isDirty()&&d.jsx(v.CloseButton,{...Le}),...K,cleariconprops:Le}},[Le,h,K,ae,u.length,m,p]);return d.jsxs(v.Menu,{opened:H,closeOnClickOutside:!0,onChange:B,children:[d.jsxs(v.Stack,{w:"100%",gap:"0.25rem",children:[d.jsxs(v.Flex,{align:"flex-end",children:[d.jsx(I0,{component:we,field:ae,...ae.getInputProps(),...Z}),t&&d.jsx(v.Menu.Target,{children:d.jsx(Mn,{fallback:u.length?d.jsx(P0,{label:p.options.localization.changeFilterMode,position:"bottom-start",withArrow:!0,arrowPosition:"side",children:d.jsx($0,{indicator:n?S.length:void 0,children:d.jsx(v.ActionIcon,{...Me,onClick:B,children:d.jsx(s1,{})})})}):null,functionProps:lt,children:a})})]}),t&&d.jsx(Mn,{fallback:u.length?d.jsx(v.Input.Description,{size:"xs",children:p.options.localization.filterMode.replace("{filterType}",yn.localizedFilterOption(zr(p.options.localization,h.id),G)||yn.localizedFilterOption(p.options.localization,G)||G)}):null,functionProps:q,children:s})]}),d.jsx(v.Menu.Dropdown,{children:d.jsx(zD,{enableAdvancedFilters:n,mode:N,setMode:Q,col:h.id,opr:k,filters:u,table:p})})]})}function WD({highlight:e,truncate:t,children:n}){return Array.isArray(n)?n.map((o,s)=>{var a;return(a=t==null?void 0:t[s])!=null&&a.truncated?d.jsx(v.Tooltip,{label:t[s].original,children:d.jsx(v.Highlight,{highlight:e,children:t[s].truncated},s)},s):d.jsx(v.Highlight,{highlight:e,children:o},s)}):t!=null&&t.truncated?d.jsx(v.Tooltip,{label:t.original,children:d.jsx(v.Highlight,{highlight:e,children:t.truncated})}):d.jsx(v.Highlight,{highlight:e,children:n})}function VD(e,t,n,o){const{path:s,info:a,data:u,specialKey:c}=Ae(),h=Ae(),p=$r(),m=x.useMemo(()=>(u==null?void 0:u.list_columns.map(C=>{var ie,S,U,ne,fe,ye,Me;const{component:E,enableFilterModes:w,enableAdvancedFilters:$,filterComponent:N,filterProps:Q,filterModeDescription:H,filterMenu:B,defaultOpr:D=((ne=(U=(S=(ie=a==null?void 0:a.filters)==null?void 0:ie[C])==null?void 0:S.filters)==null?void 0:U[0])==null?void 0:ne.operator)||""}=zr(t,c.all,C),k=bo(C,D),G=((ye=(fe=a==null?void 0:a.filters)==null?void 0:fe[C])==null?void 0:ye.filters)||[],ae={};return E!==void 0&&(ae.Header=we=>ft(E,{api:h,auth:p,mrtProps:we})),{accessorKey:C,accessorFn:we=>Yi(we,C),header:(Me=u==null?void 0:u.label_columns)==null?void 0:Me[C],Filter:we=>d.jsx(jD,{enableFilterModes:w,enableAdvancedFilters:$,filterProps:Q,filterModeDescription:H,filterMenu:B,filters:G,filterFn:k,mrtProps:we,children:N}),enableSorting:(u==null?void 0:u.order_columns.includes(C))||(u==null?void 0:u.order_columns.includes(`${C}.id`)),filterFn:G.length?k:void 0,columnFilterModeOptions:G.map(we=>bo(C,we.operator)),Cell:({cell:we,table:Le,column:Ie,...lt})=>{const q=Le.getState().globalFilter,K=Ie.getFilterValue()||"",{component:Z,separator:R,truncate:Y}=zr(n,c.all,C);let ee=[];q&&ee.push(...q.split(o).map(pe=>pe.trim())),K&&typeof K=="string"&&ee.push(...K.split(o).map(pe=>pe.trim()));let oe=we.getValue();typeof oe=="number"?oe=oe.toLocaleString():oe==null&&(oe=""),R&&(oe=oe.split(R));let ve={};Y&&(Array.isArray(oe)?ve=oe.map(pe=>({original:pe,truncated:pe.length>Y?`${pe.slice(0,Y)}...`:null})):ve={original:oe,truncated:oe.length>Y?`${oe.slice(0,Y)}...`:null});const be={api:h,auth:p,data:we.row.original,highlight:ee,componentProps:{value:oe},mrtProps:{cell:we,table:Le,column:Ie,...lt}};return d.jsx(Mn,{fallback:d.jsx(WD,{highlight:ee,truncate:ve,children:oe}),functionProps:be,children:Z})},...ae,...zr(e,c.all,C)}}))||[],[u==null?void 0:u.list_columns,u==null?void 0:u.label_columns,u==null?void 0:u.order_columns,a,e,c.all,h,p,t,n,o]),[y,_]=Ze.useSetState({});return x.useEffect(()=>{m.length&&_({[u.path]:m})},[m]),{columns:m.length?m:(y==null?void 0:y[s])||m,manualFiltering:!0}}function GD(){const{data:e,loading:t}=Ae();return{data:(e==null?void 0:e.result)||[],rowCount:(e==null?void 0:e.count)||0,state:{showLoadingOverlay:t}}}function HD(e){const{data:t}=Ae();return e?{mantineTableBodyRowProps:({row:n})=>({onClick:()=>{const o=t.ids[n.id];e(o,n.original)},style:{cursor:"pointer"}})}:null}function YD(){const{info:e}=Ae();return{filterFns:x.useMemo(()=>Object.entries((e==null?void 0:e.filters)||{}).reduce((t,[n,o])=>(o.filters.filter(s=>s.operator.startsWith("header:")).forEach(s=>t[bo(n,s.operator)]=null),t),{}),[e==null?void 0:e.filters])}}function qD(){const{queryParams:e,setQueryParams:t}=Ae(),n=x.useMemo(()=>e==null?void 0:e.global_filter,[e==null?void 0:e.global_filter]),[o,s]=x.useState(n||""),[a]=Ze.useDebouncedValue(o,rr);return Ze.useDidUpdate(()=>{n&&n!==a&&s(n)},[n]),Ze.useDidUpdate(()=>{a?t({page:0,global_filter:a}):e!=null&&e.global_filter&&t({page:0,global_filter:void 0})},[a]),{manualFiltering:!0,onGlobalFilterChange:s,state:{globalFilter:o}}}function KD(e){const{data:t,queryParams:n,setQueryParams:o}=Ae(),s=x.useMemo(()=>({pageIndex:(n==null?void 0:n.page)||Cf,pageSize:(n==null?void 0:n.page_size)||Ef}),[n==null?void 0:n.page,n==null?void 0:n.page_size]),a=x.useCallback(u=>{const c=u(s);!(t!=null&&t.count)&&c.pageIndex===0||o({page:c.pageIndex,page_size:c.pageSize})},[t==null?void 0:t.count,s,o]);return{enablePagination:!e,manualPagination:!0,state:{pagination:s},onPaginationChange:a}}function JD(e){const{ref:t,height:n}=Ze.useElementSize(),{ref:o,height:s}=Ze.useElementSize(),a=x.useMemo(()=>{const p={h:"100%",withBorder:e};return e||(p.shadow=void 0),p},[e]),u=x.useMemo(()=>({ref:o}),[o]),c=x.useMemo(()=>({ref:t,pos:"sticky",bottom:0}),[t]),h=x.useMemo(()=>({h:`calc(100% - ${s+n}px)`}),[s,n]);return{mantinePaperProps:a,mantineTopToolbarProps:u,mantineBottomToolbarProps:c,mantineTableContainerProps:h}}function RD(){const{queryParams:e,setQueryParams:t,data:n}=Ae(),o=x.useMemo(()=>e!=null&&e.order_column?[{id:e.order_column.split(".id")[0],desc:e.order_direction==="desc"}]:[],[e==null?void 0:e.order_column,e==null?void 0:e.order_direction]),s=x.useCallback(a=>{const u=a(o);if(!u.length){t({order_column:null,order_direction:null});return}const c=u[0];t({order_column:n.order_columns.includes(c.id)?c.id:`${c.id}.id`,order_direction:c.desc?"desc":"asc"})},[n==null?void 0:n.order_columns,t,o]);return{manualSorting:!0,state:{sorting:o},onSortingChange:s}}function ZD(e,t){return{toggleGlobalFilter:d.jsx(yn.MRT_ToggleGlobalFilterButton,{table:e,disabled:!1},"basic-toggleGlobalFilter"),filter:d.jsx(yn.MRT_ToggleFiltersButton,{table:e},"basic-filter"),refresh:d.jsx(T0,{tooltipProps:{label:e.options.localization.refresh}},"basic-refresh"),add:(t==null?void 0:t.add)&&d.jsx(Ju,{tooltipProps:{label:e.options.localization.add}},"basic-add"),download:(t==null?void 0:t.download)&&d.jsx(Zu,{tooltipProps:{label:e.options.localization.download}},"basic-download"),upload:(t==null?void 0:t.upload)&&d.jsx(w0,{tooltipProps:{label:e.options.localization.upload}},"basic-upload"),showHideColumns:d.jsx(yn.MRT_ShowHideColumnsButton,{table:e},"basic-showHideColumns"),toggleDensePadding:d.jsx(yn.MRT_ToggleDensePaddingButton,{table:e},"basic-toggleDensePadding"),toggleFullScreen:d.jsx(yn.MRT_ToggleFullScreenButton,{table:e},"basic-toggleFullScreen")}}function M0(e,t,n,o){Object.entries(e||{}).forEach(([a,u])=>{a in t&&(t[a]=d.jsx(Mn,{fallback:t[a],functionProps:n,children:u},`custom-${a}`))});let s=Object.values(t);return Object.entries(o||{}).forEach(([a,u])=>{a=Number(a)-1;const c=d.jsx(Mn,{functionProps:n,children:u},`order-${a}`);a>s.length?s.push(c):s=[...s.slice(0,a),c,...s.slice(a)]}),d.jsx(v.Flex,{gap:"0.125rem",align:"center",children:s})}function XD(e={},t,n){const{info:o,queryParams:s,setQueryParams:a}=Ae(),u=Ae(),c=$r(),{customizer:h,custom:p,leftToolbar:m}=e,y=x.useMemo(()=>t?[{label:"All",value:"[]"},...t.map(E=>({label:E.name,value:JSON.stringify(E.value)}))]:[],[t]),_=x.useMemo(()=>y.length?d.jsx(v.SegmentedControl,{value:JSON.stringify((s==null?void 0:s.filters)||[]),onChange:E=>a({filters:JSON.parse(E)}),data:y}):null,[s==null?void 0:s.filters,y,a]);return{renderToolbarInternalActions:x.useCallback(({table:E})=>{const w={api:u,auth:c,mrtProps:{table:E}},$={add:o==null?void 0:o.permissions.includes("can_post"),download:o==null?void 0:o.permissions.includes("can_download"),upload:o==null?void 0:o.permissions.includes("can_upload")},N=ZD(E,$);return M0(h,N,w,p)},[u,c,p,h,o==null?void 0:o.permissions]),enableTopToolbar:!n,enableFilters:(h==null?void 0:h.filter)!==null,...x.useMemo(()=>{if(_&&m)throw new Error("quickFilters and toolbar.leftToolbar are mutually exclusive, please use only one of them");const E={};if(_&&(E.renderTopToolbarCustomActions=()=>d.jsx(v.Group,{justify:"space-between",children:d.jsx(v.Box,{children:_})}),E.positionToolbarAlertBanner="bottom"),m){const{custom:w}=m;E.renderTopToolbarCustomActions=({table:$})=>M0(void 0,{},{api:u,auth:c,mrtProps:{table:$}},w),E.positionToolbarAlertBanner="bottom"}return E},[u,c,m,_])}}const F0={"toolbar-alert":"_toolbar-alert_bw71q_25","head-overlay":"_head-overlay_bw71q_28"},QD=({alertBanner:e,table:t,...n})=>{var we,Le;const{getFilteredSelectedRowModel:o,getPrePaginationRowModel:s,getState:a,resetRowSelection:u,options:{enableRowSelection:c,enableSelectAll:h,icons:{IconX:p},localization:m,mantineToolbarAlertBannerBadgeProps:y,mantineToolbarAlertBannerProps:_,manualPagination:C,positionToolbarAlertBanner:E,rowCount:w}}=t,{density:$,grouping:N,rowSelection:Q}=a(),{left:H,right:B,renderToolbarAlertBannerContent:D,wrapperProps:k}=e??{},{flex:G,group:ae,stack:ie}=k??{},S={...ft(_,{table:t}),...n},U=ft(y,{table:t}),ne=w??s().flatRows.length,fe=x.useMemo(()=>C?Object.values(Q).filter(Boolean).length:o().rows.length,[Q,ne,C]),ye=fe?d.jsxs(v.Flex,{align:"center",gap:"sm",children:[(Le=(we=m.selectedCountOfRowCountRowsSelected)==null?void 0:we.replace("{selectedCount}",fe.toString()))==null?void 0:Le.replace("{rowCount}",ne.toString()),d.jsx(v.Button,{onClick:u,size:"compact-xs",variant:"subtle",children:m.clearSelection}),d.jsx(v.Button,{onClick:Ie=>yn.getMRT_SelectAllHandler({table:t})(Ie,!1,!0),size:"compact-xs",variant:"subtle",children:m.clearSelectionOnThisPage??"Clear selection on this page"})]}):null,Me=N.length>0?d.jsxs(v.Group,{gap:"xs",children:[m.groupedBy,N.map((Ie,lt)=>d.jsxs(x.Fragment,{children:[lt>0?m.thenBy:"",d.jsxs(v.Badge,{className:"alert-badge",rightSection:d.jsx(v.ActionIcon,{color:"white",onClick:()=>t.getColumn(Ie).toggleGrouping(),size:"xs",variant:"subtle",children:d.jsx(p,{style:{transform:"scale(0.8)"}})}),variant:"filled",...U,children:[t.getColumn(Ie).columnDef.header," "]})]},`${lt}-${Ie}`))]}):null;return d.jsxs(v.Flex,{className:Pr(F0["toolbar-alert"],E==="head-overlay"&&F0["head-overlay"],$),...G,children:[c&&h&&E==="head-overlay"&&d.jsx(yn.MRT_SelectCheckbox,{table:t}),d.jsxs(v.Group,{align:"flex-start",gap:"xs",...ae,children:[ft(H,{table:t}),Wa(ft(D,{selectedAlert:ye,groupedAlert:Me,table:t}),d.jsxs(v.Stack,{gap:"xs",...ie,children:[S==null?void 0:S.children,ye,Me]})),ft(B,{table:t})]})]})};function ek(e){const{alertBanner:t}=e;return{renderToolbarAlertBannerContent:({table:n})=>d.jsx(QD,{alertBanner:t,table:n})}}function tk(){const{data:e}=Ae();return x.useMemo(()=>(e==null?void 0:e.result.length)>=1e3,[e])?{enableRowVirtualization:!0,rowVirtualizerOptions:{overscan:5}}:{}}const nk={enableStickyHeader:!0,enableColumnPinning:!0},D0=x.forwardRef((e,t)=>{var Lt,dr,vt;const{info:n,data:o,queryParams:s,refetch:a,specialKey:u}=Ae(),c=v.useProps("NextGenDataGrid",{},{}),{fetchOnMount:h=!0,hideToolbar:p,hideActions:m,hidePagination:y,hideError:_,onSelectCheckbox:C,onClickEntry:E,bulkActions:w,table:$,quickFilters:N,withBorder:Q,columnProps:H,header:B,body:D,form:k,toolbar:G={},textFilterSeparator:ae=";",bodySeparator:ie,bodyTruncate:S,headerCustomizer:U,bodyCustomizer:ne,toolbarCustomizer:fe,hideAdd:ye,hideDownload:Me,hideFilter:we,...Le}=x.useMemo(()=>Bn(c,e),[e,c]);ie&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].separator=D[ke].separator||ie}),S&&Object.keys(D).forEach(ke=>{D[ke]=D[ke]||{},D[ke].truncate=D[ke].truncate||S}),U&&Object.keys(U).forEach(ke=>{B[ke]=B[ke]||{},B[ke].component=U[ke].component||U[ke]}),ne&&Object.keys(ne).forEach(ke=>{D[ke]=D[ke]||{},D[ke].component=ne[ke].component||ne[ke]}),fe&&(G.custom=G.custom||fe),ye&&(G.customizer=G.customizer||{},G.customizer.add=G.customizer.add||null),Me&&(G.customizer=G.customizer||{},G.customizer.download=G.customizer.download||null),we&&(G.customizer=G.customizer||{},G.customizer.filter=G.customizer.filter||null),x.useEffect(()=>{process.env.NODE_ENV==="development"&&(ie&&console.warn("bodySeparator is deprecated, please use body.[col].separator instead"),S&&console.warn("bodyTruncate is deprecated, please use body.[col].truncate instead"),U&&console.warn("headerCustomizer is deprecated, please use header.[col].component instead"),ne&&console.warn("bodyCustomizer is deprecated, please use body.[col].component instead"),fe&&console.warn("toolbarCustomizer is deprecated, please use toolbar.custom instead"),ye&&console.warn("hideAdd is deprecated, please use toolbar.customizer.add instead"),Me&&console.warn("hideDownload is deprecated, please use toolbar.customizer.download instead"),we&&console.warn("hideFilter is deprecated, please use toolbar.customizer.filter instead"))},[]);const Ie=GD(),lt=RD(),q=KD(y),K=VD(H,B,D,ae),Z=JD(Q),R=DD(m,(Lt=zr(D,u.actions))==null?void 0:Lt.component),Y=qD(),ee=tk(),oe=XD(G,N,p),ve=HD(E),be=kD(C,w),pe=YD(),Ce=ek(G),tt=x.useMemo(()=>Bn(nk,{mantinePaperProps:{ref:t},getRowId:ke=>ke.id},K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$),[t,K,Ie,lt,q,Z,R,Y,ee,oe,ve,be,pe,Ce,$]),te=yn.useMantineReactTable(tt);x.useEffect(()=>{!s&&h&&a()},[]),x.useEffect(()=>{C==null||C(Object.keys(te.getState().rowSelection)),w==null||w.setSelectedIds(Object.keys(te.getState().rowSelection))},[w,o==null?void 0:o.ids,te.getState().rowSelection,C]);const{setView:yt}=zn("add"),{setView:Je}=zn("edit");return x.useEffect(()=>{var ke,Yn;(ke=k==null?void 0:k.add)!=null&&ke.initialView&&yt(k.add.initialView),(Yn=k==null?void 0:k.edit)!=null&&Yn.initialView&&Je(k.edit.initialView)},[]),d.jsxs(v.Box,{h:"100%",w:"100%",pos:"relative",children:[d.jsxs(Yu,{cond:!!n,children:[d.jsx(Ru,{jsonForms:k==null?void 0:k.add,...(dr=k==null?void 0:k.add)==null?void 0:dr.dialogProps}),d.jsx(Pu,{jsonForms:k==null?void 0:k.edit,...(vt=k==null?void 0:k.edit)==null?void 0:vt.dialogProps})]}),d.jsx(yn.MantineReactTable,{table:te,...Le}),_?null:d.jsx($u,{})]})});D0.displayName="NextGenDataGrid";const ic={iconSmall:"_iconSmall_sxv3z_1",btn:"_btn_sxv3z_17"};function rk({basePath:e="/security",Target:t,children:n}){const o=Tf.useNavigate(),{user:s,signout:a}=$r(),[u,c]=x.useState(!1),p=[{resource_name:e+"/users",label:"Users",name:"UsersApi",Icon:d1},{resource_name:e+"/roles",label:"Roles",name:"RolesApi",Icon:a1},{resource_name:e+"/permissions",label:"Base Permissions",name:"PermissionsApi",Icon:Ed},{resource_name:e+"/permissionviews",label:"Permission on Views",name:"PermissionViewApi",Icon:Ed},{resource_name:e+"/viewsmenus",label:"Views/Menus",name:"ViewsMenusApi",Icon:t1}].filter(m=>s.permissions.includes(m.name));return d.jsxs(v.Menu,{width:260,position:"bottom-end",transition:"pop-top-right",withinPortal:!0,opened:u,onClose:()=>c(!1),onOpen:()=>c(!0),children:[d.jsx(v.Menu.Target,{children:t||d.jsx(v.UnstyledButton,{className:ic.btn,style:{borderRadius:4},p:"xs",children:d.jsxs(v.Group,{style:{flexWrap:"nowrap"},spacing:7,children:[d.jsx(v.Text,{weight:500,size:"sm",style:{lineHeight:1,whiteSpace:"nowrap"},mr:3,children:`${s.first_name} ${s.last_name}`}),d.jsx(vl,{size:12})]})})}),d.jsxs(v.Menu.Dropdown,{children:[p.length?d.jsxs(d.Fragment,{children:[d.jsx(v.Menu.Label,{children:"Security"}),p.map((m,y)=>d.jsx(v.Menu.Item,{p:12,leftSection:d.jsx(m.Icon,{className:ic.iconSmall}),onClick:()=>o(m.resource_name),children:m.label},y)),d.jsx(v.Menu.Divider,{})]}):null,n,d.jsx(v.Menu.Item,{leftSection:d.jsx(l1,{p:12,className:ic.iconSmall}),onClick:a,children:"Logout"})]})]})}O.Actions=Ku,O.Add=Ju,O.AddDialog=Ru,O.AlertDialog=Pd,O.ApiContext=za,O.ApiProvider=Td,O.AuthContext=Va,O.Body=l0,O.BulkActionsContext=Ha,O.CommonModal=Au,O.DEBOUNCE_DELAY=rr,O.DEFAULT_DELIMITER=Hi,O.DEFAULT_PAGE=Cf,O.DEFAULT_PAGE_SIZE=Ef,O.DELIMITER_DATA=Ua,O.DataGrid=qu,O.Delete=$d,O.DeleteDialog=ep,O.Download=Zu,O.Edit=Md,O.EditDialog=Pu,O.ErrorDialog=$u,O.FallbackWrapper=Mn,O.Field=yo,O.FieldTitle=js,O.Filter=y0,O.FilterMenu=m0,O.FormAutocomplete=OD,O.FormContextAdd=Ya,O.FormContextEdit=qa,O.FormDatePicker=f0,O.FormDateTimePicker=d0,O.FormField=Vu,O.FormFilterIn=Gu,O.FormGeometryField=h0,O.FormJsonField=ju,O.FormRelatedListSelect=p0,O.FormRelatedSelect=g0,O.FormSelect=Wu,O.FormTextField=vo,O.Header=zu,O.InfiniteScroll=FD,O.InfoContext=Ga,O.LazyLoadWrapper=Yu,O.Main=c0,O.MantineArrayControlRenderer=um,O.MantineBooleanCell=zh,O.MantineBooleanControl=ym,O.MantineBooleanInput=Vl,O.MantineDateCell=jh,O.MantineDateControl=bm,O.MantineDateInput=Gl,O.MantineDateTimeCell=Vh,O.MantineDateTimeControl=Tm,O.MantineDateTimeInput=Hl,O.MantineEnumArrayInput=kh,O.MantineEnumArrayRenderer=hm,O.MantineEnumCell=Hh,O.MantineEnumControl=Sm,O.MantineEnumInput=Yl,O.MantineGroupLayoutRenderer=Lm,O.MantineGroupLayoutTester=Nm,O.MantineHorizontalLayoutRenderer=zm,O.MantineIntegerCell=qh,O.MantineIntegerControl=Em,O.MantineJsonControl=Am,O.MantineJsonInput=Nh,O.MantineLabelRenderer=km,O.MantineLabelTester=Dm,O.MantineLayoutRenderer=us,O.MantineNumberCell=Jh,O.MantineNumberControl=Im,O.MantineNumberInput=no,O.MantineObjectControl=gm,O.MantineObjectControlTester=pm,O.MantineObjectInput=Lh,O.MantineOneOfEnumCell=Zh,O.MantineOneOfEnumControl=$m,O.MantineOneOfEnumInput=ql,O.MantineTableControl=am,O.MantineTextCell=Qh,O.MantineTextControl=Fm,O.MantineTextInput=Kl,O.MantineVerticalLayoutRenderer=jm,O.NextGenDataGrid=D0,O.NoBorderTableCell=Ti,O.NonEmptyRow=sm,O.Pagination=Uu,O.Provider=ab,O.Refresh=T0,O.Row=a0,O.TableToolbar=tm,O.Toolbar=Hu,O.Upload=w0,O.UserMenu=rk,O.VIEW_MODE=mt,O.ValidationIcon=em,O.View=b0,O.ViewDialog=v0,O.authInfo=Ff,O.authOAuthSignin=Mf,O.authResetPassword=$f,O.authSignin=If,O.authSignout=Pf,O.compareStateWithStore=Af,O.convertId=xt,O.convertInfo=vd,O.convertLocalToUTCISOString=Wl,O.convertToFormInputs=Gm,O.convertUTCISOStringToLocal=Ph,O.createFetchParams=Tt,O.createItem=zf,O.createProxy=Uo,O.createQueryParams=Ji,O.deepMerge=Bn,O.deleteItem=Uf,O.downloadItems=jf,O.fromFilterFnToFilter=S0,O.fromFilterToFilterFn=bo,O.getDefaultValues=Ka,O.getInfo=Wf,O.getItem=Vf,O.getItems=Gf,O.getProps=zr,O.getUser=Df,O.getValidationSchema=ml,O.getValue=Yi,O.getValueOrDefault=Wa,O.initialState=jo,O.isEnumArrayControl=cm,O.isJsonControl=fm,O.isSchemaTypeInclude=lr,O.isTruthy=ti,O.mantineArrayControlTester=lm,O.mantineBooleanCellTester=Bh,O.mantineBooleanControlTester=mm,O.mantineCells=Wm,O.mantineDateCellTester=Uh,O.mantineDateControlTester=vm,O.mantineDateTimeCellTester=Wh,O.mantineDateTimeControlTester=_m,O.mantineEnumArrayRendererTester=dm,O.mantineEnumCellTester=Gh,O.mantineEnumControlTester=wm,O.mantineHorizontalLayoutTester=Bm,O.mantineIntegerCellTester=Yh,O.mantineIntegerControlTester=Cm,O.mantineJsonControlTester=xm,O.mantineNumberCellTester=Kh,O.mantineNumberControlTester=Om,O.mantineOneOfEnumCellTester=Rh,O.mantineOneOfEnumControlTester=Pm,O.mantineRenderers=Vm,O.mantineTextCellTester=Xh,O.mantineTextControlTester=Mm,O.mantineVerticalLayoutTester=Um,O.normalProps=Ou,O.normalize=xf,O.overlayProps=Iu,O.parseFromValuesOrFunc=ft,O.parseValue=ja,O.postBulk=qf,O.updateItem=Hf,O.updateUser=kf,O.uploadItems=Yf,O.urlJoin=it,O.useActionIcon=ar,O.useApi=Ae,O.useAuth=$r,O.useBooleanProps=rh,O.useBulkActions=lb,O.useCommonProps=In,O.useContextProps=_n,O.useCustomFetch=h1,O.useDateProps=cs,O.useDebouncedChange=lT,O.useForms=zn,O.useInfo=Of,O.useJsonProps=$h,O.useMultiSelectProps=Mh,O.useNumberProps=Fh,O.useProvideApi=bd,O.useProvideAuth=Nf,O.useProvideBulk=_d,O.useProvideForm=yl,O.useProvideInfo=Lf,O.useProxy=qi,O.useSelectProps=fs,O.useTextProps=Dh,O.useTrueOnce=Id,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});