@actual-app/web 23.12.0 → 24.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +13 -15
- package/build/data/migrations/1632571489012_remove_cache.js +18 -17
- package/build/index.html +1 -1
- package/build/kcab/{kcab.worker.676aa69de34599d64b7b.js → kcab.worker.26846256cb1531298b26.js} +61 -56
- package/build/kcab/kcab.worker.26846256cb1531298b26.js.map +1 -0
- package/build/static/js/231.e37c027b.chunk.js +2 -0
- package/build/static/js/231.e37c027b.chunk.js.map +1 -0
- package/build/static/js/553.e06509f6.chunk.js +2 -0
- package/build/static/js/553.e06509f6.chunk.js.map +1 -0
- package/build/static/js/main.eea3298c.js +201 -0
- package/build/static/js/main.eea3298c.js.map +1 -0
- package/build/static/js/narrow-components.574c7b46.chunk.js +2 -0
- package/build/static/js/narrow-components.574c7b46.chunk.js.map +1 -0
- package/build/static/js/reports.892e778c.chunk.js +2 -0
- package/build/static/js/reports.892e778c.chunk.js.map +1 -0
- package/build/static/js/wide-components.8ded5c13.chunk.js +2 -0
- package/build/static/js/wide-components.8ded5c13.chunk.js.map +1 -0
- package/package.json +1 -2
- package/build/kcab/kcab.worker.676aa69de34599d64b7b.js.map +0 -1
- package/build/static/js/226.8132a539.chunk.js +0 -2
- package/build/static/js/226.8132a539.chunk.js.map +0 -1
- package/build/static/js/231.370f17f8.chunk.js +0 -2
- package/build/static/js/231.370f17f8.chunk.js.map +0 -1
- package/build/static/js/444.301f7ece.chunk.js +0 -15
- package/build/static/js/444.301f7ece.chunk.js.map +0 -1
- package/build/static/js/main.39d3269d.js +0 -188
- package/build/static/js/main.39d3269d.js.map +0 -1
- package/build/static/js/narrow-components.b0c96dd8.chunk.js +0 -2
- package/build/static/js/narrow-components.b0c96dd8.chunk.js.map +0 -1
- package/build/static/js/reports.dec86016.chunk.js +0 -2
- package/build/static/js/reports.dec86016.chunk.js.map +0 -1
- package/build/static/js/wide-components.eb0a5f91.chunk.js +0 -2
- package/build/static/js/wide-components.eb0a5f91.chunk.js.map +0 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
(function(){var e={45058:function(e,t,n){"use strict";n.d(t,{Ep:function(){return g},J0:function(){return u},LX:function(){return Z},RQ:function(){return q},WK:function(){return ea},X3:function(){return J},Zn:function(){return H},Zq:function(){return U},aU:function(){return o},cP:function(){return v},fp:function(){return S},lX:function(){return s},pC:function(){return $}});/**
|
|
2
|
+
* @remix-run/router v1.6.2
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/function r(){r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return r.apply(this,arguments)}var o;(function(e){e["Pop"]="POP";e["Push"]="PUSH";e["Replace"]="REPLACE"})(o||(o={}));const i="popstate";function a(e){if(e===void 0){e={}}let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=false}=e;let i;i=t.map((e,t)=>h(e,typeof e==="string"?null:e.state,t===0?"default":undefined));let a=u(n==null?i.length-1:n);let s=o.Pop;let l=null;function u(e){return Math.min(Math.max(e,0),i.length-1)}function f(){return i[a]}function h(e,t,n){if(t===void 0){t=null}let r=p(i?f().pathname:"/",e,t,n);c(r.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(e));return r}function m(e){return typeof e==="string"?e:g(e)}let y={get index(){return a},get action(){return s},get location(){return f()},createHref:m,createURL(e){return new URL(m(e),"http://localhost")},encodeLocation(e){let t=typeof e==="string"?v(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,t){s=o.Push;let n=h(e,t);a+=1;i.splice(a,i.length,n);if(r&&l){l({action:s,location:n,delta:1})}},replace(e,t){s=o.Replace;let n=h(e,t);i[a]=n;if(r&&l){l({action:s,location:n,delta:0})}},go(e){s=o.Pop;let t=u(a+e);let n=i[t];a=t;if(l){l({action:s,location:n,delta:e})}},listen(e){l=e;return()=>{l=null}}};return y}function s(e){if(e===void 0){e={}}function t(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function n(e,t){return typeof t==="string"?t:g(t)}return m(t,n,null,e)}function l(e){if(e===void 0){e={}}function t(e,t){let{pathname:n="/",search:r="",hash:o=""}=v(e.location.hash.substr(1));return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function n(e,t){let n=e.document.querySelector("base");let r="";if(n&&n.getAttribute("href")){let t=e.location.href;let n=t.indexOf("#");r=n===-1?t:t.slice(0,n)}return r+"#"+(typeof t==="string"?t:g(t))}function r(e,t){c(e.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}return m(t,n,r,e)}function u(e,t){if(e===false||e===null||typeof e==="undefined"){throw new Error(t)}}function c(e,t){if(!e){if(typeof console!=="undefined")console.warn(t);try{throw new Error(t)}catch(e){}}}function f(){return Math.random().toString(36).substr(2,8)}function h(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,o){if(n===void 0){n=null}let i=r({pathname:typeof e==="string"?e:e.pathname,search:"",hash:""},typeof t==="string"?v(t):t,{state:n,key:t&&t.key||o||f()});return i}function g(e){let{pathname:t="/",search:n="",hash:r=""}=e;if(n&&n!=="?")t+=n.charAt(0)==="?"?n:"?"+n;if(r&&r!=="#")t+=r.charAt(0)==="#"?r:"#"+r;return t}function v(e){let t={};if(e){let n=e.indexOf("#");if(n>=0){t.hash=e.substr(n);e=e.substr(0,n)}let r=e.indexOf("?");if(r>=0){t.search=e.substr(r);e=e.substr(0,r)}if(e){t.pathname=e}}return t}function m(e,t,n,a){if(a===void 0){a={}}let{window:s=document.defaultView,v5Compat:l=false}=a;let c=s.history;let f=o.Pop;let v=null;let m=y();if(m==null){m=0;c.replaceState(r({},c.state,{idx:m}),"")}function y(){let e=c.state||{idx:null};return e.idx}function x(){f=o.Pop;let e=y();let t=e==null?null:e-m;m=e;if(v){v({action:f,location:k.location,delta:t})}}function w(e,t){f=o.Push;let r=p(k.location,e,t);if(n)n(r,e);m=y()+1;let i=h(r,m);let a=k.createHref(r);try{c.pushState(i,"",a)}catch(e){s.location.assign(a)}if(l&&v){v({action:f,location:k.location,delta:1})}}function b(e,t){f=o.Replace;let r=p(k.location,e,t);if(n)n(r,e);m=y();let i=h(r,m);let a=k.createHref(r);c.replaceState(i,"",a);if(l&&v){v({action:f,location:k.location,delta:0})}}function S(e){let t=s.location.origin!=="null"?s.location.origin:s.location.href;let n=typeof e==="string"?e:g(e);u(t,"No window.location.(origin|href) available to create URL for href: "+n);return new URL(n,t)}let k={get action(){return f},get location(){return e(s,c)},listen(e){if(v){throw new Error("A history only accepts one active listener")}s.addEventListener(i,x);v=e;return()=>{s.removeEventListener(i,x);v=null}},createHref(e){return t(s,e)},createURL:S,encodeLocation(e){let t=S(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:w,replace:b,go(e){return c.go(e)}};return k}var y;(function(e){e["data"]="data";e["deferred"]="deferred";e["redirect"]="redirect";e["error"]="error"})(y||(y={}));const x=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e){return e.index===true}function b(e,t,n,o){if(n===void 0){n=[]}if(o===void 0){o={}}return e.map((e,i)=>{let a=[...n,i];let s=typeof e.id==="string"?e.id:a.join("-");u(e.index!==true||!e.children,"Cannot specify children on an index route");u(!o[s],'Found a route id collision on id "'+s+'". Route '+"id's must be globally unique within Data Router usages");if(w(e)){let n=r({},e,t(e),{id:s});o[s]=n;return n}else{let n=r({},e,t(e),{id:s,children:undefined});o[s]=n;if(e.children){n.children=b(e.children,t,a,o)}return n}})}function S(e,t,n){if(n===void 0){n="/"}let r=typeof t==="string"?v(t):t;let o=H(r.pathname||"/",n);if(o==null){return null}let i=k(e);C(i);let a=null;for(let e=0;a==null&&e<i.length;++e){a=R(i[e],N(o))}return a}function k(e,t,n,r){if(t===void 0){t=[]}if(n===void 0){n=[]}if(r===void 0){r=""}let o=(e,o,i)=>{let a={relativePath:i===undefined?e.path||"":i,caseSensitive:e.caseSensitive===true,childrenIndex:o,route:e};if(a.relativePath.startsWith("/")){u(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes.");a.relativePath=a.relativePath.slice(r.length)}let s=q([r,a.relativePath]);let l=n.concat(a);if(e.children&&e.children.length>0){u(e.index!==true,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".'));k(e.children,t,l,s)}if(e.path==null&&!e.index){return}t.push({path:s,score:A(s,e.index),routesMeta:l})};e.forEach((e,t)=>{var n;if(e.path===""||!((n=e.path)!=null&&n.includes("?"))){o(e,t)}else{for(let n of j(e.path)){o(e,t,n)}}});return t}function j(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t;let o=n.endsWith("?");let i=n.replace(/\?$/,"");if(r.length===0){return o?[i,""]:[i]}let a=j(r.join("/"));let s=[];s.push(...a.map(e=>e===""?i:[i,e].join("/")));if(o){s.push(...a)}return s.map(t=>e.startsWith("/")&&t===""?"/":t)}function C(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:O(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}const T=/^:\w+$/;const E=3;const I=2;const _=1;const M=10;const D=-2;const P=e=>e==="*";function A(e,t){let n=e.split("/");let r=n.length;if(n.some(P)){r+=D}if(t){r+=I}return n.filter(e=>!P(e)).reduce((e,t)=>e+(T.test(t)?E:t===""?_:M),r)}function O(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}function R(e,t){let{routesMeta:n}=e;let r={};let o="/";let i=[];for(let e=0;e<n.length;++e){let a=n[e];let s=e===n.length-1;let l=o==="/"?t:t.slice(o.length)||"/";let u=Z({path:a.relativePath,caseSensitive:a.caseSensitive,end:s},l);if(!u)return null;Object.assign(r,u.params);let c=a.route;i.push({params:r,pathname:q([o,u.pathname]),pathnameBase:Y(q([o,u.pathnameBase])),route:c});if(u.pathnameBase!=="/"){o=q([o,u.pathnameBase])}}return i}function z(e,t){if(t===void 0){t={}}let n=e;if(n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")){c(false,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));n=n.replace(/\*$/,"/*")}const r=n.startsWith("/")?"/":"";const o=n.split(/\/+/).map((e,n,r)=>{const o=n===r.length-1;if(o&&e==="*"){const e="*";const n=t[e];return n}const i=e.match(/^:(\w+)(\??)$/);if(i){const[,e,n]=i;let r=t[e];if(n==="?"){return r==null?"":r}if(r==null){u(false,'Missing ":'+e+'" param')}return r}return e.replace(/\?$/g,"")}).filter(e=>!!e);return r+o.join("/")}function Z(e,t){if(typeof e==="string"){e={path:e,caseSensitive:false,end:true}}let[n,r]=L(e.path,e.caseSensitive,e.end);let o=t.match(n);if(!o)return null;let i=o[0];let a=i.replace(/(.)\/+$/,"$1");let s=o.slice(1);let l=r.reduce((e,t,n)=>{if(t==="*"){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}e[t]=B(s[n]||"",t);return e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function L(e,t,n){if(t===void 0){t=false}if(n===void 0){n=true}c(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[];let o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(e,t)=>{r.push(t);return"/([^\\/]+)"});if(e.endsWith("*")){r.push("*");o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"}else if(n){o+="\\/*$"}else if(e!==""&&e!=="/"){o+="(?:(?=\\/|$))"}else;let i=new RegExp(o,t?undefined:"i");return[i,r]}function N(e){try{return decodeURI(e)}catch(t){c(false,'The URL path "'+e+'" could not be decoded because it is is a '+"malformed URL segment. This is probably due to a bad percent "+("encoding ("+t+")."));return e}}function B(e,t){try{return decodeURIComponent(e)}catch(n){c(false,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+")."));return e}}function H(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase())){return null}let n=t.endsWith("/")?t.length-1:t.length;let r=e.charAt(n);if(r&&r!=="/"){return null}return e.slice(n)||"/"}function F(e,t){if(t===void 0){t="/"}let{pathname:n,search:r="",hash:o=""}=typeof e==="string"?v(e):e;let i=n?n.startsWith("/")?n:V(n,t):t;return{pathname:i,search:G(r),hash:X(o)}}function V(e,t){let n=t.replace(/\/+$/,"").split("/");let r=e.split("/");r.forEach(e=>{if(e===".."){if(n.length>1)n.pop()}else if(e!=="."){n.push(e)}});return n.length>1?n.join("/"):"/"}function W(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function U(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function $(e,t,n,o){if(o===void 0){o=false}let i;if(typeof e==="string"){i=v(e)}else{i=r({},e);u(!i.pathname||!i.pathname.includes("?"),W("?","pathname","search",i));u(!i.pathname||!i.pathname.includes("#"),W("#","pathname","hash",i));u(!i.search||!i.search.includes("#"),W("#","search","hash",i))}let a=e===""||i.pathname==="";let s=a?"/":i.pathname;let l;if(o||s==null){l=n}else{let e=t.length-1;if(s.startsWith("..")){let t=s.split("/");while(t[0]===".."){t.shift();e-=1}i.pathname=t.join("/")}l=e>=0?t[e]:"/"}let c=F(i,l);let f=s&&s!=="/"&&s.endsWith("/");let h=(a||s===".")&&n.endsWith("/");if(!c.pathname.endsWith("/")&&(f||h)){c.pathname+="/"}return c}function K(e){return e===""||e.pathname===""?"/":typeof e==="string"?v(e).pathname:e.pathname}const q=e=>e.join("/").replace(/\/\/+/g,"/");const Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");const G=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e;const X=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;const Q=function e(e,t){if(t===void 0){t={}}let n=typeof t==="number"?{status:t}:t;let o=new Headers(n.headers);if(!o.has("Content-Type")){o.set("Content-Type","application/json; charset=utf-8")}return new Response(JSON.stringify(e),r({},n,{headers:o}))};class J extends Error{}class ee{constructor(e,t){this.pendingKeysSet=new Set;this.subscribers=new Set;this.deferredKeys=[];u(e&&typeof e==="object"&&!Array.isArray(e),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((e,t)=>n=t);this.controller=new AbortController;let r=()=>n(new J("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r);this.controller.signal.addEventListener("abort",r);this.data=Object.entries(e).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})},{});if(this.done){this.unlistenAbortSignal()}this.init=t}trackPromise(e,t){if(!(t instanceof Promise)){return t}this.deferredKeys.push(e);this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(n,e,null,t),t=>this.onSettle(n,e,t));n.catch(()=>{});Object.defineProperty(n,"_tracked",{get:()=>true});return n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof J){this.unlistenAbortSignal();Object.defineProperty(e,"_error",{get:()=>n});return Promise.reject(n)}this.pendingKeysSet.delete(t);if(this.done){this.unlistenAbortSignal()}if(n){Object.defineProperty(e,"_error",{get:()=>n});this.emit(false,t);return Promise.reject(n)}Object.defineProperty(e,"_data",{get:()=>r});this.emit(false,t);return r}emit(e,t){this.subscribers.forEach(n=>n(e,t))}subscribe(e){this.subscribers.add(e);return()=>this.subscribers.delete(e)}cancel(){this.controller.abort();this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t));this.emit(true)}async resolveData(e){let t=false;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n);t=await new Promise(t=>{this.subscribe(r=>{e.removeEventListener("abort",n);if(r||this.done){t(r)}})})}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){u(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds");return Object.entries(this.data).reduce((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:en(r)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function et(e){return e instanceof Promise&&e._tracked===true}function en(e){if(!et(e)){return e}if(e._error){throw e._error}return e._data}const er=function e(e,t){if(t===void 0){t={}}let n=typeof t==="number"?{status:t}:t;return new ee(e,n)};const eo=function e(e,t){if(t===void 0){t=302}let n=t;if(typeof n==="number"){n={status:n}}else if(typeof n.status==="undefined"){n.status=302}let o=new Headers(n.headers);o.set("Location",e);return new Response(null,r({},n,{headers:o}))};class ei{constructor(e,t,n,r){if(r===void 0){r=false}this.status=e;this.statusText=t||"";this.internal=r;if(n instanceof Error){this.data=n.toString();this.error=n}else{this.data=n}}}function ea(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.internal==="boolean"&&"data"in e}const es=["post","put","patch","delete"];const el=new Set(es);const eu=["get",...es];const ec=new Set(eu);const ed=new Set([301,302,303,307,308]);const ef=new Set([307,308]);const eh={state:"idle",location:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};const ep={state:"idle",data:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined};const eg={state:"unblocked",proceed:undefined,reset:undefined,location:undefined};const ev=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;const em=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined";const ey=!em;const ex=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});function ew(e){u(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t;if(e.mapRouteProperties){t=e.mapRouteProperties}else if(e.detectErrorBoundary){let n=e.detectErrorBoundary;t=e=>({hasErrorBoundary:n(e)})}else{t=ex}let n={};let i=b(e.routes,t,undefined,n);let a;let s=e.basename||"/";let l=r({v7_normalizeFormMethod:false,v7_prependBasename:false},e.future);let f=null;let h=new Set;let g=null;let v=null;let m=null;let x=e.hydrationData!=null;let w=S(i,e.history.location,s);let k=null;if(w==null){let t=eH(404,{pathname:e.history.location.pathname});let{matches:n,route:r}=eB(i);w=n;k={[r.id]:t}}let j=!w.some(e=>e.route.lazy)&&(!w.some(e=>e.route.loader)||e.hydrationData!=null);let C;let T={historyAction:e.history.action,location:e.history.location,matches:w,initialized:j,navigation:eh,restoreScrollPosition:e.hydrationData!=null?false:null,preventScrollReset:false,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map};let E=o.Pop;let I=false;let _;let M=false;let D=false;let P=[];let A=[];let O=new Map;let R=0;let z=-1;let Z=new Map;let L=new Set;let N=new Map;let B=new Map;let F=new Map;let V=false;function W(){f=e.history.listen(t=>{let{action:n,location:r,delta:o}=t;if(V){V=false;return}c(F.size===0||o!=null,"You are trying to use a blocker on a POP navigation to a location "+"that was not created by @remix-run/router. This will fail silently in "+"production. This can happen if you are navigating outside the router "+"via `window.history.pushState`/`window.location.hash` instead of using "+"router navigation APIs. This can also happen if you are using "+"createHashRouter and the user manually changes the URL.");let i=ej({currentLocation:T.location,nextLocation:r,historyAction:n});if(i&&o!=null){V=true;e.history.go(o*-1);ek(i,{state:"blocked",location:r,proceed(){ek(i,{state:"proceeding",proceed:undefined,reset:undefined,location:r});e.history.go(o)},reset(){eS(i);K({blockers:new Map(C.state.blockers)})}});return}return X(n,r)});if(!T.initialized){X(o.Pop,T.location)}return C}function U(){if(f){f()}h.clear();_&&_.abort();T.fetchers.forEach((e,t)=>el(t));T.blockers.forEach((e,t)=>eS(t))}function $(e){h.add(e);return()=>h.delete(e)}function K(e){T=r({},T,e);h.forEach(e=>e(T))}function q(t,n){var s,l;let u=T.actionData!=null&&T.navigation.formMethod!=null&&eJ(T.navigation.formMethod)&&T.navigation.state==="loading"&&((s=t.state)==null?void 0:s._isRedirect)!==true;let c;if(n.actionData){if(Object.keys(n.actionData).length>0){c=n.actionData}else{c=null}}else if(u){c=T.actionData}else{c=null}let f=n.loaderData?eL(T.loaderData,n.loaderData,n.matches||[],n.errors):T.loaderData;for(let[e]of F){eS(e)}let h=I===true||T.navigation.formMethod!=null&&eJ(T.navigation.formMethod)&&((l=t.state)==null?void 0:l._isRedirect)!==true;if(a){i=a;a=undefined}K(r({},n,{actionData:c,loaderData:f,historyAction:E,location:t,initialized:true,navigation:eh,revalidation:"idle",restoreScrollPosition:eD(t,n.matches||T.matches),preventScrollReset:h,blockers:new Map(T.blockers)}));if(M);else if(E===o.Pop);else if(E===o.Push){e.history.push(t,t.state)}else if(E===o.Replace){e.history.replace(t,t.state)}E=o.Pop;I=false;M=false;D=false;P=[];A=[]}async function Y(t,n){if(typeof t==="number"){e.history.go(t);return}let i=eC(T.location,T.matches,s,l.v7_prependBasename,t,n==null?void 0:n.fromRouteId,n==null?void 0:n.relative);let{path:a,submission:u,error:c}=eT(l.v7_normalizeFormMethod,false,i,n);let f=T.location;let h=p(T.location,a,n&&n.state);h=r({},h,e.history.encodeLocation(h));let g=n&&n.replace!=null?n.replace:undefined;let v=o.Push;if(g===true){v=o.Replace}else if(g===false);else if(u!=null&&eJ(u.formMethod)&&u.formAction===T.location.pathname+T.location.search){v=o.Replace}let m=n&&"preventScrollReset"in n?n.preventScrollReset===true:undefined;let y=ej({currentLocation:f,nextLocation:h,historyAction:v});if(y){ek(y,{state:"blocked",location:h,proceed(){ek(y,{state:"proceeding",proceed:undefined,reset:undefined,location:h});Y(t,n)},reset(){eS(y);K({blockers:new Map(T.blockers)})}});return}return await X(v,h,{submission:u,pendingError:c,preventScrollReset:m,replace:n&&n.replace})}function G(){ea();K({revalidation:"loading"});if(T.navigation.state==="submitting"){return}if(T.navigation.state==="idle"){X(T.historyAction,T.location,{startUninterruptedRevalidation:true});return}X(E||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation})}async function X(t,n,o){_&&_.abort();_=null;E=t;M=(o&&o.startUninterruptedRevalidation)===true;eM(T.location,T.matches);I=(o&&o.preventScrollReset)===true;let l=a||i;let u=o&&o.overrideNavigation;let c=S(l,n,s);if(!c){let e=eH(404,{pathname:n.pathname});let{matches:t,route:r}=eB(l);eE();q(n,{matches:t,loaderData:{},errors:{[r.id]:e}});return}if(T.initialized&&eW(T.location,n)&&!(o&&o.submission&&eJ(o.submission.formMethod))){q(n,{matches:c});return}_=new AbortController;let f=eO(e.history,n,_.signal,o&&o.submission);let h;let p;if(o&&o.pendingError){p={[eN(c).route.id]:o.pendingError}}else if(o&&o.submission&&eJ(o.submission.formMethod)){let e=await Q(f,n,o.submission,c,{replace:o.replace});if(e.shortCircuited){return}h=e.pendingActionData;p=e.pendingActionError;let t=r({state:"loading",location:n},o.submission);u=t;f=new Request(f.url,{signal:f.signal})}let{shortCircuited:g,loaderData:v,errors:m}=await J(f,n,c,u,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,h,p);if(g){return}_=null;q(n,r({matches:c},h?{actionData:h}:{},{loaderData:v,errors:m}))}async function Q(e,i,a,l,u){ea();let c=r({state:"submitting",location:i},a);K({navigation:c});let f;let h=e5(l,i);if(!h.route.action&&!h.route.lazy){f={type:y.error,error:eH(405,{method:e.method,pathname:i.pathname,routeId:h.route.id})}}else{f=await eA("action",e,h,l,n,t,s);if(e.signal.aborted){return{shortCircuited:true}}}if(eK(f)){let e;if(u&&u.replace!=null){e=u.replace}else{e=f.location===T.location.pathname+T.location.search}await eo(T,f,{submission:a,replace:e});return{shortCircuited:true}}if(e$(f)){let e=eN(l,h.route.id);if((u&&u.replace)!==true){E=o.Push}return{pendingActionData:{},pendingActionError:{[e.route.id]:f.error}}}if(eU(f)){throw eH(400,{type:"defer-action"})}return{pendingActionData:{[h.route.id]:f.data}}}async function J(t,n,o,l,u,c,f,h,p){let g=l;if(!g){let e=r({state:"loading",location:n,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},u);g=e}let v=u||c?u||c:g.formMethod&&g.formAction&&g.formData&&g.formEncType?{formMethod:g.formMethod,formAction:g.formAction,formData:g.formData,formEncType:g.formEncType}:undefined;let m=a||i;let[y,x]=eI(e.history,T,o,v,n,D,P,A,N,m,s,h,p);eE(e=>!(o&&o.some(t=>t.route.id===e))||y&&y.some(t=>t.route.id===e));if(y.length===0&&x.length===0){let e=ed();q(n,r({matches:o,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(T.fetchers)}:{}));return{shortCircuited:true}}if(!M){x.forEach(e=>{let t=T.fetchers.get(e.key);let n={state:"loading",data:t&&t.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(e.key,n)});let e=h||T.actionData;K(r({navigation:g},e?Object.keys(e).length===0?{actionData:null}:{actionData:e}:{},x.length>0?{fetchers:new Map(T.fetchers)}:{}))}z=++R;x.forEach(e=>{if(e.controller){O.set(e.key,e.controller)}});let w=()=>x.forEach(e=>eu(e.key));if(_){_.signal.addEventListener("abort",w)}let{results:b,loaderResults:S,fetcherResults:k}=await ei(T.matches,o,y,x,t);if(t.signal.aborted){return{shortCircuited:true}}if(_){_.signal.removeEventListener("abort",w)}x.forEach(e=>O.delete(e.key));let j=eF(b);if(j){await eo(T,j,{replace:f});return{shortCircuited:true}}let{loaderData:C,errors:E}=eZ(T,o,y,S,p,x,k,B);B.forEach((e,t)=>{e.subscribe(n=>{if(n||e.done){B.delete(t)}})});let I=ed();let Z=ew(z);let L=I||Z||x.length>0;return r({loaderData:C,errors:E},L?{fetchers:new Map(T.fetchers)}:{})}function ee(e){return T.fetchers.get(e)||ep}function et(e,t,n,r){if(ey){throw new Error("router.fetch() was called during the server render, but it shouldn't be. "+"You are likely calling a useFetcher() method in the body of your component. "+"Try moving it to a useEffect or a callback.")}if(O.has(e))eu(e);let o=a||i;let u=eC(T.location,T.matches,s,l.v7_prependBasename,n,t,r==null?void 0:r.relative);let c=S(o,u,s);if(!c){es(e,t,eH(404,{pathname:u}));return}let{path:f,submission:h}=eT(l.v7_normalizeFormMethod,true,u,r);let p=e5(c,f);I=(r&&r.preventScrollReset)===true;if(h&&eJ(h.formMethod)){en(e,t,f,p,c,h);return}N.set(e,{routeId:t,path:f});er(e,t,f,p,c,h)}async function en(o,l,c,f,h,p){ea();N.delete(o);if(!f.route.action&&!f.route.lazy){let e=eH(405,{method:p.formMethod,pathname:c,routeId:l});es(o,l,e);return}let g=T.fetchers.get(o);let v=r({state:"submitting"},p,{data:g&&g.data," _hasFetcherDoneAnything ":true});T.fetchers.set(o,v);K({fetchers:new Map(T.fetchers)});let m=new AbortController;let y=eO(e.history,c,m.signal,p);O.set(o,m);let x=await eA("action",y,f,h,n,t,s);if(y.signal.aborted){if(O.get(o)===m){O.delete(o)}return}if(eK(x)){O.delete(o);L.add(o);let e=r({state:"loading"},p,{data:undefined," _hasFetcherDoneAnything ":true});T.fetchers.set(o,e);K({fetchers:new Map(T.fetchers)});return eo(T,x,{submission:p,isFetchActionRedirect:true})}if(e$(x)){es(o,l,x.error);return}if(eU(x)){throw eH(400,{type:"defer-action"})}let w=T.navigation.location||T.location;let b=eO(e.history,w,m.signal);let k=a||i;let j=T.navigation.state!=="idle"?S(k,T.navigation.location,s):T.matches;u(j,"Didn't find any matches after fetcher action");let C=++R;Z.set(o,C);let I=r({state:"loading",data:x.data},p,{" _hasFetcherDoneAnything ":true});T.fetchers.set(o,I);let[M,H]=eI(e.history,T,j,p,w,D,P,A,N,k,s,{[f.route.id]:x.data},undefined);H.filter(e=>e.key!==o).forEach(e=>{let t=e.key;let n=T.fetchers.get(t);let r={state:"loading",data:n&&n.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(t,r);if(e.controller){O.set(t,e.controller)}});K({fetchers:new Map(T.fetchers)});let F=()=>H.forEach(e=>eu(e.key));m.signal.addEventListener("abort",F);let{results:V,loaderResults:W,fetcherResults:U}=await ei(T.matches,j,M,H,b);if(m.signal.aborted){return}m.signal.removeEventListener("abort",F);Z.delete(o);O.delete(o);H.forEach(e=>O.delete(e.key));let $=eF(V);if($){return eo(T,$)}let{loaderData:Y,errors:G}=eZ(T,T.matches,M,W,undefined,H,U,B);let X={state:"idle",data:x.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(o,X);let Q=ew(C);if(T.navigation.state==="loading"&&C>z){u(E,"Expected pending action");_&&_.abort();q(T.navigation.location,{matches:j,loaderData:Y,errors:G,fetchers:new Map(T.fetchers)})}else{K(r({errors:G,loaderData:eL(T.loaderData,Y,j,G)},Q?{fetchers:new Map(T.fetchers)}:{}));D=false}}async function er(o,i,a,l,c,f){let h=T.fetchers.get(o);let p=r({state:"loading",formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},f,{data:h&&h.data," _hasFetcherDoneAnything ":true});T.fetchers.set(o,p);K({fetchers:new Map(T.fetchers)});let g=new AbortController;let v=eO(e.history,a,g.signal);O.set(o,g);let m=await eA("loader",v,l,c,n,t,s);if(eU(m)){m=await e1(m,v.signal,true)||m}if(O.get(o)===g){O.delete(o)}if(v.signal.aborted){return}if(eK(m)){L.add(o);await eo(T,m);return}if(e$(m)){let e=eN(T.matches,i);T.fetchers.delete(o);K({fetchers:new Map(T.fetchers),errors:{[e.route.id]:m.error}});return}u(!eU(m),"Unhandled fetcher deferred data");let y={state:"idle",data:m.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(o,y);K({fetchers:new Map(T.fetchers)})}async function eo(t,n,i){var a;let{submission:l,replace:c,isFetchActionRedirect:f}=i===void 0?{}:i;if(n.revalidate){D=true}let h=p(t.location,n.location,r({_isRedirect:true},f?{_isFetchActionRedirect:true}:{}));u(h,"Expected a location on the redirect navigation");if(ev.test(n.location)&&em&&typeof((a=window)==null?void 0:a.location)!=="undefined"){let t=e.history.createURL(n.location);let r=H(t.pathname,s)==null;if(window.location.origin!==t.origin||r){if(c){window.location.replace(n.location)}else{window.location.assign(n.location)}return}}_=null;let g=c===true?o.Replace:o.Push;let{formMethod:v,formAction:m,formEncType:y,formData:x}=t.navigation;if(!l&&v&&m&&x&&y){l={formMethod:v,formAction:m,formEncType:y,formData:x}}if(ef.has(n.status)&&l&&eJ(l.formMethod)){await X(g,h,{submission:r({},l,{formAction:n.location}),preventScrollReset:I})}else if(f){await X(g,h,{overrideNavigation:{state:"loading",location:h,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined},fetcherSubmission:l,preventScrollReset:I})}else{await X(g,h,{overrideNavigation:{state:"loading",location:h,formMethod:l?l.formMethod:undefined,formAction:l?l.formAction:undefined,formEncType:l?l.formEncType:undefined,formData:l?l.formData:undefined},preventScrollReset:I})}}async function ei(r,o,i,a,l){let u=await Promise.all([...i.map(e=>eA("loader",l,e,o,n,t,s)),...a.map(r=>{if(r.matches&&r.match&&r.controller){return eA("loader",eO(e.history,r.path,r.controller.signal),r.match,r.matches,n,t,s)}else{let e={type:y.error,error:eH(404,{pathname:r.path})};return e}})]);let c=u.slice(0,i.length);let f=u.slice(i.length);await Promise.all([e0(r,i,c,c.map(()=>l.signal),false,T.loaderData),e0(r,a.map(e=>e.match),f,a.map(e=>e.controller?e.controller.signal:null),true)]);return{results:u,loaderResults:c,fetcherResults:f}}function ea(){D=true;P.push(...eE());N.forEach((e,t)=>{if(O.has(t)){A.push(t);eu(t)}})}function es(e,t,n){let r=eN(T.matches,t);el(e);K({errors:{[r.route.id]:n},fetchers:new Map(T.fetchers)})}function el(e){if(O.has(e))eu(e);N.delete(e);Z.delete(e);L.delete(e);T.fetchers.delete(e)}function eu(e){let t=O.get(e);u(t,"Expected fetch controller: "+e);t.abort();O.delete(e)}function ec(e){for(let t of e){let e=ee(t);let n={state:"idle",data:e.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};T.fetchers.set(t,n)}}function ed(){let e=[];let t=false;for(let n of L){let r=T.fetchers.get(n);u(r,"Expected fetcher: "+n);if(r.state==="loading"){L.delete(n);e.push(n);t=true}}ec(e);return t}function ew(e){let t=[];for(let[n,r]of Z){if(r<e){let e=T.fetchers.get(n);u(e,"Expected fetcher: "+n);if(e.state==="loading"){eu(n);Z.delete(n);t.push(n)}}}ec(t);return t.length>0}function eb(e,t){let n=T.blockers.get(e)||eg;if(F.get(e)!==t){F.set(e,t)}return n}function eS(e){T.blockers.delete(e);F.delete(e)}function ek(e,t){let n=T.blockers.get(e)||eg;u(n.state==="unblocked"&&t.state==="blocked"||n.state==="blocked"&&t.state==="blocked"||n.state==="blocked"&&t.state==="proceeding"||n.state==="blocked"&&t.state==="unblocked"||n.state==="proceeding"&&t.state==="unblocked","Invalid blocker state transition: "+n.state+" -> "+t.state);T.blockers.set(e,t);K({blockers:new Map(T.blockers)})}function ej(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(F.size===0){return}if(F.size>1){c(false,"A router only supports one blocker at a time")}let o=Array.from(F.entries());let[i,a]=o[o.length-1];let s=T.blockers.get(i);if(s&&s.state==="proceeding"){return}if(a({currentLocation:t,nextLocation:n,historyAction:r})){return i}}function eE(e){let t=[];B.forEach((n,r)=>{if(!e||e(r)){n.cancel();t.push(r);B.delete(r)}});return t}function e_(e,t,n){g=e;m=t;v=n||(e=>e.key);if(!x&&T.navigation===eh){x=true;let e=eD(T.location,T.matches);if(e!=null){K({restoreScrollPosition:e})}}return()=>{g=null;m=null;v=null}}function eM(e,t){if(g&&v&&m){let n=t.map(e=>e4(e,T.loaderData));let r=v(e,n)||e.key;g[r]=m()}}function eD(e,t){if(g&&v&&m){let n=t.map(e=>e4(e,T.loaderData));let r=v(e,n)||e.key;let o=g[r];if(typeof o==="number"){return o}}return null}function eP(e){n={};a=b(e,t,undefined,n)}C={get basename(){return s},get state(){return T},get routes(){return i},initialize:W,subscribe:$,enableScrollRestoration:e_,navigate:Y,fetch:et,revalidate:G,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ee,deleteFetcher:el,dispose:U,getBlocker:eb,deleteBlocker:eS,_internalFetchControllers:O,_internalActiveDeferreds:B,_internalSetRoutes:eP};return C}const eb=Symbol("deferred");function eS(e,t){u(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={};let o=(t?t.basename:null)||"/";let i;if(t!=null&&t.mapRouteProperties){i=t.mapRouteProperties}else if(t!=null&&t.detectErrorBoundary){let e=t.detectErrorBoundary;i=t=>({hasErrorBoundary:e(t)})}else{i=ex}let a=b(e,i,undefined,n);async function s(e,t){let{requestContext:n}=t===void 0?{}:t;let i=new URL(e.url);let s=e.method;let l=p("",g(i),null,"default");let u=S(a,l,o);if(!eQ(s)&&s!=="HEAD"){let e=eH(405,{method:s});let{matches:t,route:n}=eB(a);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!u){let e=eH(404,{pathname:l.pathname});let{matches:t,route:n}=eB(a);return{basename:o,location:l,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let f=await c(e,l,u,n);if(eY(f)){return f}return r({location:l,basename:o},f)}async function l(e,t){let{routeId:n,requestContext:r}=t===void 0?{}:t;let i=new URL(e.url);let s=e.method;let l=p("",g(i),null,"default");let u=S(a,l,o);if(!eQ(s)&&s!=="HEAD"&&s!=="OPTIONS"){throw eH(405,{method:s})}else if(!u){throw eH(404,{pathname:l.pathname})}let f=n?u.find(e=>e.route.id===n):e5(u,l);if(n&&!f){throw eH(403,{pathname:l.pathname,routeId:n})}else if(!f){throw eH(404,{pathname:l.pathname})}let h=await c(e,l,u,r,f);if(eY(h)){return h}let v=h.errors?Object.values(h.errors)[0]:undefined;if(v!==undefined){throw v}if(h.actionData){return Object.values(h.actionData)[0]}if(h.loaderData){var m;let e=Object.values(h.loaderData)[0];if((m=h.activeDeferreds)!=null&&m[f.route.id]){e[eb]=h.activeDeferreds[f.route.id]}return e}return undefined}async function c(e,t,n,o,i){u(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(eJ(e.method.toLowerCase())){let r=await f(e,n,i||e5(n,t),o,i!=null);return r}let a=await h(e,n,o,i);return eY(a)?a:r({},a,{actionData:null,actionHeaders:{}})}catch(e){if(eX(e)){if(e.type===y.error&&!eG(e.response)){throw e.response}return e.response}if(eG(e)){return e}throw e}}async function f(e,t,a,s,l){let u;if(!a.route.action&&!a.route.lazy){let t=eH(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:a.route.id});if(l){throw t}u={type:y.error,error:t}}else{u=await eA("action",e,a,t,n,i,o,true,l,s);if(e.signal.aborted){let e=l?"queryRoute":"query";throw new Error(e+"() call aborted")}}if(eK(u)){throw new Response(null,{status:u.status,headers:{Location:u.location}})}if(eU(u)){let e=eH(400,{type:"defer-action"});if(l){throw e}u={type:y.error,error:e}}if(l){if(e$(u)){throw u.error}return{matches:[a],loaderData:{},actionData:{[a.route.id]:u.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(e$(u)){let n=eN(t,a.route.id);let o=await h(e,t,s,undefined,{[n.route.id]:u.error});return r({},o,{statusCode:ea(u.error)?u.error.status:500,actionData:null,actionHeaders:r({},u.headers?{[a.route.id]:u.headers}:{})})}let c=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});let f=await h(c,t,s);return r({},f,u.statusCode?{statusCode:u.statusCode}:{},{actionData:{[a.route.id]:u.data},actionHeaders:r({},u.headers?{[a.route.id]:u.headers}:{})})}async function h(e,t,a,s,l){let u=s!=null;if(u&&!(s!=null&&s.route.loader)&&!(s!=null&&s.route.lazy)){throw eH(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s==null?void 0:s.route.id})}let c=s?[s]:eE(t,Object.keys(l||{})[0]);let f=c.filter(e=>e.route.loader||e.route.lazy);if(f.length===0){return{matches:t,loaderData:t.reduce((e,t)=>Object.assign(e,{[t.route.id]:null}),{}),errors:l||null,statusCode:200,loaderHeaders:{},activeDeferreds:null}}let h=await Promise.all([...f.map(r=>eA("loader",e,r,t,n,i,o,true,u,a))]);if(e.signal.aborted){let e=u?"queryRoute":"query";throw new Error(e+"() call aborted")}let p=new Map;let g=ez(t,f,h,l,p);let v=new Set(f.map(e=>e.route.id));t.forEach(e=>{if(!v.has(e.route.id)){g.loaderData[e.route.id]=null}});return r({},g,{matches:t,activeDeferreds:p.size>0?Object.fromEntries(p.entries()):null})}return{dataRoutes:a,query:s,queryRoute:l}}function ek(e,t,n){let o=r({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:n}});return o}function ej(e){return e!=null&&"formData"in e}function eC(e,t,n,r,o,i,a){let s;let l;if(i!=null&&a!=="path"){s=[];for(let e of t){s.push(e);if(e.route.id===i){l=e;break}}}else{s=t;l=t[t.length-1]}let u=$(o?o:".",U(s).map(e=>e.pathnameBase),H(e.pathname,n)||e.pathname,a==="path");if(o==null){u.search=e.search;u.hash=e.hash}if((o==null||o===""||o===".")&&l&&l.route.index&&!e2(u.search)){u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"}if(r&&n!=="/"){u.pathname=u.pathname==="/"?n:q([n,u.pathname])}return g(u)}function eT(e,t,n,r){if(!r||!ej(r)){return{path:n}}if(r.formMethod&&!eQ(r.formMethod)){return{path:n,error:eH(405,{method:r.formMethod})}}let o;if(r.formData){let t=r.formMethod||"get";o={formMethod:e?t.toUpperCase():t.toLowerCase(),formAction:eV(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData};if(eJ(o.formMethod)){return{path:n,submission:o}}}let i=v(n);let a=eR(r.formData);if(t&&i.search&&e2(i.search)){a.append("index","")}i.search="?"+a;return{path:g(i),submission:o}}function eE(e,t){let n=e;if(t){let r=e.findIndex(e=>e.route.id===t);if(r>=0){n=e.slice(0,r)}}return n}function eI(e,t,n,o,i,a,s,l,u,c,f,h,p){let g=p?Object.values(p)[0]:h?Object.values(h)[0]:undefined;let v=e.createURL(t.location);let m=e.createURL(i);let y=p?Object.keys(p)[0]:undefined;let x=eE(n,y);let w=x.filter((e,n)=>{if(e.route.lazy){return true}if(e.route.loader==null){return false}if(e_(t.loaderData,t.matches[n],e)||s.some(t=>t===e.route.id)){return true}let i=t.matches[n];let l=e;return eD(e,r({currentUrl:v,currentParams:i.params,nextUrl:m,nextParams:l.params},o,{actionResult:g,defaultShouldRevalidate:a||v.pathname+v.search===m.pathname+m.search||v.search!==m.search||eM(i,l)}))});let b=[];u.forEach((e,i)=>{if(!n.some(t=>t.route.id===e.routeId)){return}let s=S(c,e.path,f);if(!s){b.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let u=e5(s,e.path);if(l.includes(i)){b.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:u,controller:new AbortController});return}let h=eD(u,r({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},o,{actionResult:g,defaultShouldRevalidate:a}));if(h){b.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:u,controller:new AbortController})}});return[w,b]}function e_(e,t,n){let r=!t||n.route.id!==t.route.id;let o=e[n.route.id]===undefined;return r||o}function eM(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function eD(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==="boolean"){return n}}return t.defaultShouldRevalidate}async function eP(e,t,n){if(!e.lazy){return}let o=await e.lazy();if(!e.lazy){return}let i=n[e.id];u(i,"No route found in manifest");let a={};for(let e in o){let t=i[e];let n=t!==undefined&&e!=="hasErrorBoundary";c(!n,'Route "'+i.id+'" has a static property "'+e+'" '+"defined but its lazy function is also returning a value for this property. "+('The lazy route property "'+e+'" will be ignored.'));if(!n&&!x.has(e)){a[e]=o[e]}}Object.assign(i,a);Object.assign(i,r({},t(i),{lazy:undefined}))}async function eA(e,t,n,r,o,i,a,s,l,c){if(s===void 0){s=false}if(l===void 0){l=false}let f;let h;let p;let g=e=>{let r;let o=new Promise((e,t)=>r=t);p=()=>r();t.signal.addEventListener("abort",p);return Promise.race([e({request:t,params:n.params,context:c}),o])};try{let r=n.route[e];if(n.route.lazy){if(r){let e=await Promise.all([g(r),eP(n.route,i,o)]);h=e[0]}else{await eP(n.route,i,o);r=n.route[e];if(r){h=await g(r)}else if(e==="action"){let e=new URL(t.url);let r=e.pathname+e.search;throw eH(405,{method:t.method,pathname:r,routeId:n.route.id})}else{return{type:y.data,data:undefined}}}}else if(!r){let e=new URL(t.url);let n=e.pathname+e.search;throw eH(404,{pathname:n})}else{h=await g(r)}u(h!==undefined,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(e){f=y.error;h=e}finally{if(p){t.signal.removeEventListener("abort",p)}}if(eY(h)){let e=h.status;if(ed.has(e)){let o=h.headers.get("Location");u(o,"Redirects returned/thrown from loaders/actions must have a Location header");if(!ev.test(o)){o=eC(new URL(t.url),r.slice(0,r.indexOf(n)+1),a,true,o)}else if(!s){let e=new URL(t.url);let n=o.startsWith("//")?new URL(e.protocol+o):new URL(o);let r=H(n.pathname,a)!=null;if(n.origin===e.origin&&r){o=n.pathname+n.search+n.hash}}if(s){h.headers.set("Location",o);throw h}return{type:y.redirect,status:e,location:o,revalidate:h.headers.get("X-Remix-Revalidate")!==null}}if(l){throw{type:f||y.data,response:h}}let o;let i=h.headers.get("Content-Type");if(i&&/\bapplication\/json\b/.test(i)){o=await h.json()}else{o=await h.text()}if(f===y.error){return{type:f,error:new ei(e,h.statusText,o),headers:h.headers}}return{type:y.data,data:o,statusCode:h.status,headers:h.headers}}if(f===y.error){return{type:f,error:h}}if(eq(h)){var v,m;return{type:y.deferred,deferredData:h,statusCode:(v=h.init)==null?void 0:v.status,headers:((m=h.init)==null?void 0:m.headers)&&new Headers(h.init.headers)}}return{type:y.data,data:h}}function eO(e,t,n,r){let o=e.createURL(eV(t)).toString();let i={signal:n};if(r&&eJ(r.formMethod)){let{formMethod:e,formEncType:t,formData:n}=r;i.method=e.toUpperCase();i.body=t==="application/x-www-form-urlencoded"?eR(n):n}return new Request(o,i)}function eR(e){let t=new URLSearchParams;for(let[n,r]of e.entries()){t.append(n,r instanceof File?r.name:r)}return t}function ez(e,t,n,r,o){let i={};let a=null;let s;let l=false;let c={};n.forEach((n,f)=>{let h=t[f].route.id;u(!eK(n),"Cannot handle redirect results in processLoaderData");if(e$(n)){let t=eN(e,h);let o=n.error;if(r){o=Object.values(r)[0];r=undefined}a=a||{};if(a[t.route.id]==null){a[t.route.id]=o}i[h]=undefined;if(!l){l=true;s=ea(n.error)?n.error.status:500}if(n.headers){c[h]=n.headers}}else{if(eU(n)){o.set(h,n.deferredData);i[h]=n.deferredData.data}else{i[h]=n.data}if(n.statusCode!=null&&n.statusCode!==200&&!l){s=n.statusCode}if(n.headers){c[h]=n.headers}}});if(r){a=r;i[Object.keys(r)[0]]=undefined}return{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function eZ(e,t,n,o,i,a,s,l){let{loaderData:c,errors:f}=ez(t,n,o,i,l);for(let t=0;t<a.length;t++){let{key:n,match:o,controller:i}=a[t];u(s!==undefined&&s[t]!==undefined,"Did not find corresponding fetcher result");let l=s[t];if(i&&i.signal.aborted){continue}else if(e$(l)){let t=eN(e.matches,o==null?void 0:o.route.id);if(!(f&&f[t.route.id])){f=r({},f,{[t.route.id]:l.error})}e.fetchers.delete(n)}else if(eK(l)){u(false,"Unhandled fetcher revalidation redirect")}else if(eU(l)){u(false,"Unhandled fetcher deferred data")}else{let t={state:"idle",data:l.data,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined," _hasFetcherDoneAnything ":true};e.fetchers.set(n,t)}}return{loaderData:c,errors:f}}function eL(e,t,n,o){let i=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)){if(t[n]!==undefined){i[n]=t[n]}}else if(e[n]!==undefined&&r.route.loader){i[n]=e[n]}if(o&&o.hasOwnProperty(n)){break}}return i}function eN(e,t){let n=t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e];return n.reverse().find(e=>e.route.hasErrorBoundary===true)||e[0]}function eB(e){let t=e.find(e=>e.index||!e.path||e.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eH(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t;let a="Unknown Server Error";let s="Unknown @remix-run/router error";if(e===400){a="Bad Request";if(o&&n&&r){s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request."}else if(i==="defer-action"){s="defer() is not supported in actions"}}else if(e===403){a="Forbidden";s='Route "'+r+'" does not match URL "'+n+'"'}else if(e===404){a="Not Found";s='No route matches URL "'+n+'"'}else if(e===405){a="Method Not Allowed";if(o&&n&&r){s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request."}else if(o){s='Invalid request method "'+o.toUpperCase()+'"'}}return new ei(e||500,a,new Error(s),true)}function eF(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(eK(n)){return n}}}function eV(e){let t=typeof e==="string"?v(e):e;return g(r({},t,{hash:""}))}function eW(e,t){if(e.pathname!==t.pathname||e.search!==t.search){return false}if(e.hash===""){return t.hash!==""}else if(e.hash===t.hash){return true}else if(t.hash!==""){return true}return false}function eU(e){return e.type===y.deferred}function e$(e){return e.type===y.error}function eK(e){return(e&&e.type)===y.redirect}function eq(e){let t=e;return t&&typeof t==="object"&&typeof t.data==="object"&&typeof t.subscribe==="function"&&typeof t.cancel==="function"&&typeof t.resolveData==="function"}function eY(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.headers==="object"&&typeof e.body!=="undefined"}function eG(e){if(!eY(e)){return false}let t=e.status;let n=e.headers.get("Location");return t>=300&&t<=399&&n!=null}function eX(e){return e&&eY(e.response)&&(e.type===y.data||y.error)}function eQ(e){return ec.has(e.toLowerCase())}function eJ(e){return el.has(e.toLowerCase())}async function e0(e,t,n,r,o,i){for(let a=0;a<n.length;a++){let s=n[a];let l=t[a];if(!l){continue}let c=e.find(e=>e.route.id===l.route.id);let f=c!=null&&!eM(c,l)&&(i&&i[l.route.id])!==undefined;if(eU(s)&&(o||f)){let e=r[a];u(e,"Expected an AbortSignal for revalidating fetcher deferred result");await e1(s,e,o).then(e=>{if(e){n[a]=e||n[a]}})}}}async function e1(e,t,n){if(n===void 0){n=false}let r=await e.deferredData.resolveData(t);if(r){return}if(n){try{return{type:y.data,data:e.deferredData.unwrappedData}}catch(e){return{type:y.error,error:e}}}return{type:y.data,data:e.deferredData.data}}function e2(e){return new URLSearchParams(e).getAll("index").some(e=>e==="")}function e4(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function e5(e,t){let n=typeof t==="string"?v(t).search:t.search;if(e[e.length-1].route.index&&e2(n||"")){return e[e.length-1]}let r=U(e);return r[r.length-1]}},66111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=a;var r=n(60357);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(0,o.default)(e)}e.exports=t["default"]},68052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=r;var n=/-webkit-|-moz-|-ms-/;function r(e){return typeof e==="string"&&n.test(e)}e.exports=t["default"]},15717:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};var o=function e(e,t,n){var o;var i=r[e];if(typeof i==="string"){o=i}else if(t===1){o=i.one}else{o=i.other.replace("{{count}}",t.toString())}if(n!==null&&n!==void 0&&n.addSuffix){if(n.comparison&&n.comparison>0){return"in "+o}else{return o+" ago"}}return o};var i=o;function a(e){return function(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var n=t.width?String(t.width):e.defaultWidth;var r=e.formats[n]||e.formats[e.defaultWidth];return r}};var s={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"};var l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"};var u={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};var c={date:a({formats:s,defaultWidth:"full"}),time:a({formats:l,defaultWidth:"full"}),dateTime:a({formats:u,defaultWidth:"full"})};var f=c;var h={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var p=function e(e,t,n,r){return h[e]};var g=p;function v(e){return function(t,n){var r=n!==null&&n!==void 0&&n.context?String(n.context):"standalone";var o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth;var a=n!==null&&n!==void 0&&n.width?String(n.width):i;o=e.formattingValues[a]||e.formattingValues[i]}else{var s=e.defaultWidth;var l=n!==null&&n!==void 0&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}};var m={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]};var y={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]};var x={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]};var w={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]};var b={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}};var S={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};var k=function e(e,t){var n=Number(e);var r=n%100;if(r>20||r<10){switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}}return n+"th"};var j={ordinalNumber:k,era:v({values:m,defaultWidth:"wide"}),quarter:v({values:y,defaultWidth:"wide",argumentCallback:function e(e){return e-1}}),month:v({values:x,defaultWidth:"wide"}),day:v({values:w,defaultWidth:"wide"}),dayPeriod:v({values:b,defaultWidth:"wide",formattingValues:S,defaultFormattingWidth:"wide"})};var C=j;function T(e){return function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=n.width;var o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth];var i=t.match(o);if(!i){return null}var a=i[0];var s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth];var l=Array.isArray(s)?I(s,function(e){return e.test(a)}):E(s,function(e){return e.test(a)});var u;u=e.valueCallback?e.valueCallback(l):l;u=n.valueCallback?n.valueCallback(u):u;var c=t.slice(a.length);return{value:u,rest:c}}}function E(e,t){for(var n in e){if(e.hasOwnProperty(n)&&t(e[n])){return n}}return undefined}function I(e,t){for(var n=0;n<e.length;n++){if(t(e[n])){return n}}return undefined};function _(e){return function(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=t.match(e.matchPattern);if(!r)return null;var o=r[0];var i=t.match(e.parsePattern);if(!i)return null;var a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(o.length);return{value:a,rest:s}}};var M=/^(\d+)(th|st|nd|rd)?/i;var D=/\d+/i;var P={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i};var A={any:[/^b/i,/^(a|c)/i]};var O={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i};var R={any:[/1/i,/2/i,/3/i,/4/i]};var z={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i};var Z={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]};var L={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i};var N={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]};var B={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i};var H={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};var F={ordinalNumber:_({matchPattern:M,parsePattern:D,valueCallback:function e(e){return parseInt(e,10)}}),era:T({matchPatterns:P,defaultMatchWidth:"wide",parsePatterns:A,defaultParseWidth:"any"}),quarter:T({matchPatterns:O,defaultMatchWidth:"wide",parsePatterns:R,defaultParseWidth:"any",valueCallback:function e(e){return e+1}}),month:T({matchPatterns:z,defaultMatchWidth:"wide",parsePatterns:Z,defaultParseWidth:"any"}),day:T({matchPatterns:L,defaultMatchWidth:"wide",parsePatterns:N,defaultParseWidth:"any"}),dayPeriod:T({matchPatterns:B,defaultMatchWidth:"any",parsePatterns:H,defaultParseWidth:"any"})};var V=F;var W={code:"en-US",formatDistance:i,formatLong:f,formatRelative:g,localize:C,match:V,options:{weekStartsOn:0,firstWeekContainsDate:1}};var U=W;var $=U},8064:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});var r={};function o(){return r}function i(e){r=e}},48187:function(e,t){"use strict";var n=function e(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}};var r=function e(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}};var o=function e(e,t){var o=e.match(/(P+)(p+)?/)||[];var i=o[1];var a=o[2];if(!a){return n(e,t)}var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",n(i,t)).replace("{{time}}",r(a,t))};var i={p:r,P:o};t.Z=i},33989:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));t.setUTCFullYear(e.getFullYear());return e.getTime()-t.getTime()}},7993:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(2864);var o=n(56925);var i=n(99340);var a=n(78354);function s(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);var n=new Date(0);n.setUTCFullYear(t,0,4);n.setUTCHours(0,0,0,0);var r=(0,o.Z)(n);return r};var l=6048e5;function u(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e);var n=(0,o.Z)(t).getTime()-s(t).getTime();return Math.round(n/l)+1}},99340:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2864);var o=n(78354);var i=n(56925);function a(e){(0,o.Z)(1,arguments);var t=(0,r.Z)(e);var n=t.getUTCFullYear();var a=new Date(0);a.setUTCFullYear(n+1,0,4);a.setUTCHours(0,0,0,0);var s=(0,i.Z)(a);var l=new Date(0);l.setUTCFullYear(n,0,4);l.setUTCHours(0,0,0,0);var u=(0,i.Z)(l);if(t.getTime()>=s.getTime()){return n+1}else if(t.getTime()>=u.getTime()){return n}else{return n-1}}},26168:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(2864);var o=n(87147);var i=n(72493);var a=n(78354);var s=n(71578);var l=n(8064);function u(e,t){var n,r,u,c,f,h,p,g;(0,a.Z)(1,arguments);var v=(0,l.j)();var m=(0,s.Z)((n=(r=(u=(c=t===null||t===void 0?void 0:t.firstWeekContainsDate)!==null&&c!==void 0?c:t===null||t===void 0?void 0:(f=t.locale)===null||f===void 0?void 0:(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:v.firstWeekContainsDate)!==null&&r!==void 0?r:(p=v.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);var y=(0,i.Z)(e,t);var x=new Date(0);x.setUTCFullYear(y,0,m);x.setUTCHours(0,0,0,0);var w=(0,o.Z)(x,t);return w};var c=6048e5;function f(e,t){(0,a.Z)(1,arguments);var n=(0,r.Z)(e);var i=(0,o.Z)(n,t).getTime()-u(n,t).getTime();return Math.round(i/c)+1}},72493:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(2864);var o=n(78354);var i=n(87147);var a=n(71578);var s=n(8064);function l(e,t){var n,l,u,c,f,h,p,g;(0,o.Z)(1,arguments);var v=(0,r.Z)(e);var m=v.getUTCFullYear();var y=(0,s.j)();var x=(0,a.Z)((n=(l=(u=(c=t===null||t===void 0?void 0:t.firstWeekContainsDate)!==null&&c!==void 0?c:t===null||t===void 0?void 0:(f=t.locale)===null||f===void 0?void 0:(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:y.firstWeekContainsDate)!==null&&l!==void 0?l:(p=y.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(x>=1&&x<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var w=new Date(0);w.setUTCFullYear(m+1,0,x);w.setUTCHours(0,0,0,0);var b=(0,i.Z)(w,t);var S=new Date(0);S.setUTCFullYear(m,0,x);S.setUTCHours(0,0,0,0);var k=(0,i.Z)(S,t);if(v.getTime()>=b.getTime()){return m+1}else if(v.getTime()>=k.getTime()){return m}else{return m-1}}},21161:function(e,t,n){"use strict";n.d(t,{Do:function(){return a},Iu:function(){return i},qp:function(){return s}});var r=["D","DD"];var o=["YY","YYYY"];function i(e){return r.indexOf(e)!==-1}function a(e){return o.indexOf(e)!==-1}function s(e,t,n){if(e==="YYYY"){throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="YY"){throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="D"){throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}else if(e==="DD"){throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}}},78354:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){if(t.length<e){throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}}},56925:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2864);var o=n(78354);function i(e){(0,o.Z)(1,arguments);var t=1;var n=(0,r.Z)(e);var i=n.getUTCDay();var a=(i<t?7:0)+i-t;n.setUTCDate(n.getUTCDate()-a);n.setUTCHours(0,0,0,0);return n}},87147:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2864);var o=n(78354);var i=n(71578);var a=n(8064);function s(e,t){var n,s,l,u,c,f,h,p;(0,o.Z)(1,arguments);var g=(0,a.j)();var v=(0,i.Z)((n=(s=(l=(u=t===null||t===void 0?void 0:t.weekStartsOn)!==null&&u!==void 0?u:t===null||t===void 0?void 0:(c=t.locale)===null||c===void 0?void 0:(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&l!==void 0?l:g.weekStartsOn)!==null&&s!==void 0?s:(h=g.locale)===null||h===void 0?void 0:(p=h.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(v>=0&&v<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var m=(0,r.Z)(e);var y=m.getUTCDay();var x=(y<v?7:0)+y-v;m.setUTCDate(m.getUTCDate()-x);m.setUTCHours(0,0,0,0);return m}},71578:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){if(e===null||e===true||e===false){return NaN}var t=Number(e);if(isNaN(t)){return t}return t<0?Math.ceil(t):Math.floor(t)}},82862:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(71578);var o=n(2864);var i=n(78354);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e);var a=(0,r.Z)(t);if(isNaN(a)){return new Date(NaN)}if(!a){return n}n.setDate(n.getDate()+a);return n}},69939:function(e,t,n){"use strict";n.d(t,{qk:function(){return l},vh:function(){return s},yJ:function(){return a}});var r=7;var o=365.2425;var i=Math.pow(10,8)*24*60*60*1e3;var a=6e4;var s=36e5;var l=1e3;var u=-i;var c=60;var f=3;var h=12;var p=4;var g=3600;var v=60;var m=g*24;var y=m*7;var x=m*o;var w=x/12;var b=w*3},79982:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(25432);var o=n(94352);var i=n(2864);var a=n(78354);var s=864e5;function l(e){(0,a.Z)(1,arguments);var t=(0,i.Z)(e);var n=t.getTime();t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0);var r=t.getTime();var o=n-r;return Math.floor(o/s)+1}var u=n(7993);var c=n(99340);var f=n(26168);var h=n(72493);function p(e,t){var n=e<0?"-":"";var r=Math.abs(e).toString();while(r.length<t){r="0"+r}return n+r};var g={y:function e(e,t){var n=e.getUTCFullYear();var r=n>0?n:1-n;return p(t==="yy"?r%100:r,t.length)},M:function e(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):p(n+1,2)},d:function e(e,t){return p(e.getUTCDate(),t.length)},a:function e(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function e(e,t){return p(e.getUTCHours()%12||12,t.length)},H:function e(e,t){return p(e.getUTCHours(),t.length)},m:function e(e,t){return p(e.getUTCMinutes(),t.length)},s:function e(e,t){return p(e.getUTCSeconds(),t.length)},S:function e(e,t){var n=t.length;var r=e.getUTCMilliseconds();var o=Math.floor(r*Math.pow(10,n-3));return p(o,t.length)}};var v=g;var m={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};var y={G:function e(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function e(e,t,n){if(t==="yo"){var r=e.getUTCFullYear();var o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return v.y(e,t)},Y:function e(e,t,n,r){var o=(0,h.Z)(e,r);var i=o>0?o:1-o;if(t==="YY"){var a=i%100;return p(a,2)}if(t==="Yo"){return n.ordinalNumber(i,{unit:"year"})}return p(i,t.length)},R:function e(e,t){var n=(0,c.Z)(e);return p(n,t.length)},u:function e(e,t){var n=e.getUTCFullYear();return p(n,t.length)},Q:function e(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return p(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function e(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return p(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function e(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function e(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return p(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function e(e,t,n,r){var o=(0,f.Z)(e,r);if(t==="wo"){return n.ordinalNumber(o,{unit:"week"})}return p(o,t.length)},I:function e(e,t,n){var r=(0,u.Z)(e);if(t==="Io"){return n.ordinalNumber(r,{unit:"week"})}return p(r,t.length)},d:function e(e,t,n){if(t==="do"){return n.ordinalNumber(e.getUTCDate(),{unit:"date"})}return v.d(e,t)},D:function e(e,t,n){var r=l(e);if(t==="Do"){return n.ordinalNumber(r,{unit:"dayOfYear"})}return p(r,t.length)},E:function e(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function e(e,t,n,r){var o=e.getUTCDay();var i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return p(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function e(e,t,n,r){var o=e.getUTCDay();var i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return p(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function e(e,t,n){var r=e.getUTCDay();var o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return p(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function e(e,t,n){var r=e.getUTCHours();var o=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function e(e,t,n){var r=e.getUTCHours();var o;if(r===12){o=m.noon}else if(r===0){o=m.midnight}else{o=r/12>=1?"pm":"am"}switch(t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function e(e,t,n){var r=e.getUTCHours();var o;if(r>=17){o=m.evening}else if(r>=12){o=m.afternoon}else if(r>=4){o=m.morning}else{o=m.night}switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function e(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;if(r===0)r=12;return n.ordinalNumber(r,{unit:"hour"})}return v.h(e,t)},H:function e(e,t,n){if(t==="Ho"){return n.ordinalNumber(e.getUTCHours(),{unit:"hour"})}return v.H(e,t)},K:function e(e,t,n){var r=e.getUTCHours()%12;if(t==="Ko"){return n.ordinalNumber(r,{unit:"hour"})}return p(r,t.length)},k:function e(e,t,n){var r=e.getUTCHours();if(r===0)r=24;if(t==="ko"){return n.ordinalNumber(r,{unit:"hour"})}return p(r,t.length)},m:function e(e,t,n){if(t==="mo"){return n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"})}return v.m(e,t)},s:function e(e,t,n){if(t==="so"){return n.ordinalNumber(e.getUTCSeconds(),{unit:"second"})}return v.s(e,t)},S:function e(e,t){return v.S(e,t)},X:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();if(i===0){return"Z"}switch(t){case"X":return w(i);case"XXXX":case"XX":return b(i);case"XXXXX":case"XXX":default:return b(i,":")}},x:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"x":return w(i);case"xxxx":case"xx":return b(i);case"xxxxx":case"xxx":default:return b(i,":")}},O:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+x(i,":");case"OOOO":default:return"GMT"+b(i,":")}},z:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+x(i,":");case"zzzz":default:return"GMT"+b(i,":")}},t:function e(e,t,n,r){var o=r._originalDate||e;var i=Math.floor(o.getTime()/1e3);return p(i,t.length)},T:function e(e,t,n,r){var o=r._originalDate||e;var i=o.getTime();return p(i,t.length)}};function x(e,t){var n=e>0?"-":"+";var r=Math.abs(e);var o=Math.floor(r/60);var i=r%60;if(i===0){return n+String(o)}var a=t||"";return n+String(o)+a+p(i,2)}function w(e,t){if(e%60===0){var n=e>0?"-":"+";return n+p(Math.abs(e)/60,2)}return b(e,t)}function b(e,t){var n=t||"";var r=e>0?"-":"+";var o=Math.abs(e);var i=p(Math.floor(o/60),2);var a=p(o%60,2);return r+i+n+a}var S=y;var k=n(48187);var j=n(33989);var C=n(21161);var T=n(71578);var E=n(8064);var I=n(15717);var _=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var M=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var D=/^'([^]*?)'?$/;var P=/''/g;var A=/[a-zA-Z]/;function O(e,t,n){var s,l,u,c,f,h,p,g,v,m,y,x,w,b,D,P,O,z;(0,a.Z)(2,arguments);var Z=String(t);var L=(0,E.j)();var N=(s=(l=n===null||n===void 0?void 0:n.locale)!==null&&l!==void 0?l:L.locale)!==null&&s!==void 0?s:I.Z;var B=(0,T.Z)((u=(c=(f=(h=n===null||n===void 0?void 0:n.firstWeekContainsDate)!==null&&h!==void 0?h:n===null||n===void 0?void 0:(p=n.locale)===null||p===void 0?void 0:(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&f!==void 0?f:L.firstWeekContainsDate)!==null&&c!==void 0?c:(v=L.locale)===null||v===void 0?void 0:(m=v.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&u!==void 0?u:1);if(!(B>=1&&B<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var H=(0,T.Z)((y=(x=(w=(b=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&b!==void 0?b:n===null||n===void 0?void 0:(D=n.locale)===null||D===void 0?void 0:(P=D.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&w!==void 0?w:L.weekStartsOn)!==null&&x!==void 0?x:(O=L.locale)===null||O===void 0?void 0:(z=O.options)===null||z===void 0?void 0:z.weekStartsOn)!==null&&y!==void 0?y:0);if(!(H>=0&&H<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(!N.localize){throw new RangeError("locale must contain localize property")}if(!N.formatLong){throw new RangeError("locale must contain formatLong property")}var F=(0,i.Z)(e);if(!(0,r.Z)(F)){throw new RangeError("Invalid time value")}var V=(0,j.Z)(F);var W=(0,o.Z)(F,V);var U={firstWeekContainsDate:B,weekStartsOn:H,locale:N,_originalDate:F};var $=Z.match(M).map(function(e){var t=e[0];if(t==="p"||t==="P"){var n=k.Z[t];return n(e,N.formatLong)}return e}).join("").match(_).map(function(r){if(r==="''"){return"'"}var o=r[0];if(o==="'"){return R(r)}var i=S[o];if(i){if(!(n!==null&&n!==void 0&&n.useAdditionalWeekYearTokens)&&(0,C.Do)(r)){(0,C.qp)(r,t,String(e))}if(!(n!==null&&n!==void 0&&n.useAdditionalDayOfYearTokens)&&(0,C.Iu)(r)){(0,C.qp)(r,t,String(e))}return i(W,r,N.localize,U)}if(o.match(A)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`")}return r}).join("");return $}function R(e){var t=e.match(D);if(!t){return e}return t[1].replace(P,"'")}},25432:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(86522);var o=n(78354);function i(e){(0,o.Z)(1,arguments);return e instanceof Date||(0,r.Z)(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}var a=n(2864);function s(e){(0,o.Z)(1,arguments);if(!i(e)&&typeof e!=="number"){return false}var t=(0,a.Z)(e);return!isNaN(Number(t))}},8780:function(e,t,n){"use strict";n.d(t,{Z:function(){return eF}});var r=n(86522);function o(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r};function i(e,t){if(!e)return;if(typeof e==="string")return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)};function a(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=i(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var o=function e(){};return{s:o,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function e(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,s=false,l;return{s:function t(){n=n.call(e)},n:function e(){var e=n.next();a=e.done;return e},e:function e(e){s=true;l=e},f:function e(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(s)throw l}}}}var s=n(15717);var l=n(94352);var u=n(2864);function c(e,t){if(e==null){throw new TypeError("assign requires that input parameter not be null or undefined")}for(var n in t){if(Object.prototype.hasOwnProperty.call(t,n)){;e[n]=t[n]}}return e}var f=n(48187);var h=n(33989);var p=n(21161);var g=n(71578);var v=n(78354);var m=n(80753);var y=n(88960);function x(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});Object.defineProperty(e,"prototype",{writable:false});if(t)(0,y.Z)(e,t)};function w(e){w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function e(e){return e.__proto__||Object.getPrototypeOf(e)};return w(e)};function b(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(e){return false}};function S(e,t){if(t&&((0,r.Z)(t)==="object"||typeof t==="function")){return t}else if(t!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return(0,m.Z)(e)};function k(e){var t=b();return function n(){var n=w(e),r;if(t){var o=w(this).constructor;r=Reflect.construct(n,arguments,o)}else{r=n.apply(this,arguments)}return S(this,r)}};function j(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var C=n(45850);function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,(0,C.Z)(r.key),r)}}function E(e,t,n){if(t)T(e.prototype,t);if(n)T(e,n);Object.defineProperty(e,"prototype",{writable:false});return e}var I=n(56666);var _=10;var M=function(){function e(){j(this,e);(0,I.Z)(this,"priority",void 0);(0,I.Z)(this,"subPriority",0)}E(e,[{key:"validate",value:function e(e,t){return true}}]);return e}();var D=function(e){x(n,e);var t=k(n);function n(e,r,o,i,a){var s;j(this,n);s=t.call(this);s.value=e;s.validateValue=r;s.setValue=o;s.priority=i;if(a){s.subPriority=a}return s}E(n,[{key:"validate",value:function e(e,t){return this.validateValue(e,this.value,t)}},{key:"set",value:function e(e,t,n){return this.setValue(e,t,this.value,n)}}]);return n}(M);var P=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",_);(0,I.Z)((0,m.Z)(e),"subPriority",-1);return e}E(n,[{key:"set",value:function e(e,t){if(t.timestampIsSet){return e}var n=new Date(0);n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate());n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return n}}]);return n}(M);var A=function(){function e(){j(this,e);(0,I.Z)(this,"incompatibleTokens",void 0);(0,I.Z)(this,"priority",void 0);(0,I.Z)(this,"subPriority",void 0)}E(e,[{key:"run",value:function e(e,t,n,r){var o=this.parse(e,t,n,r);if(!o){return null}return{setter:new D(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}}},{key:"validate",value:function e(e,t,n){return true}}]);return e}();var O=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",140);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["R","u","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function e(e,t,n){t.era=n;e.setUTCFullYear(n,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var R=n(69939);var z={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/};var Z={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function L(e,t){if(!e){return e}return{value:t(e.value),rest:e.rest}}function N(e,t){var n=t.match(e);if(!n){return null}return{value:parseInt(n[0],10),rest:t.slice(n[0].length)}}function B(e,t){var n=t.match(e);if(!n){return null}if(n[0]==="Z"){return{value:0,rest:t.slice(1)}}var r=n[1]==="+"?1:-1;var o=n[2]?parseInt(n[2],10):0;var i=n[3]?parseInt(n[3],10):0;var a=n[5]?parseInt(n[5],10):0;return{value:r*(o*R.vh+i*R.yJ+a*R.qk),rest:t.slice(n[0].length)}}function H(e){return N(z.anyDigitsSigned,e)}function F(e,t){switch(e){case 1:return N(z.singleDigit,t);case 2:return N(z.twoDigits,t);case 3:return N(z.threeDigits,t);case 4:return N(z.fourDigits,t);default:return N(new RegExp("^\\d{1,"+e+"}"),t)}}function V(e,t){switch(e){case 1:return N(z.singleDigitSigned,t);case 2:return N(z.twoDigitsSigned,t);case 3:return N(z.threeDigitsSigned,t);case 4:return N(z.fourDigitsSigned,t);default:return N(new RegExp("^-?\\d{1,"+e+"}"),t)}}function W(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function U(e,t){var n=t>0;var r=n?t:1-t;var o;if(r<=50){o=e||100}else{var i=r+50;var a=Math.floor(i/100)*100;var s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function $(e){return e%400===0||e%4===0&&e%100!==0};var K=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",130);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return{year:e,isTwoDigitYear:t==="yy"}};switch(t){case"y":return L(F(4,e),r);case"yo":return L(n.ordinalNumber(e,{unit:"year"}),r);default:return L(F(t.length,e),r)}}},{key:"validate",value:function e(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function e(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=U(n.year,r);e.setUTCFullYear(o,0,1);e.setUTCHours(0,0,0,0);return e}var i=!("era"in t)||t.era===1?n.year:1-n.year;e.setUTCFullYear(i,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var q=n(72493);var Y=n(87147);var G=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",130);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return{year:e,isTwoDigitYear:t==="YY"}};switch(t){case"Y":return L(F(4,e),r);case"Yo":return L(n.ordinalNumber(e,{unit:"year"}),r);default:return L(F(t.length,e),r)}}},{key:"validate",value:function e(e,t){return t.isTwoDigitYear||t.year>0}},{key:"set",value:function e(e,t,n,r){var o=(0,q.Z)(e,r);if(n.isTwoDigitYear){var i=U(n.year,o);e.setUTCFullYear(i,0,r.firstWeekContainsDate);e.setUTCHours(0,0,0,0);return(0,Y.Z)(e,r)}var a=!("era"in t)||t.era===1?n.year:1-n.year;e.setUTCFullYear(a,0,r.firstWeekContainsDate);e.setUTCHours(0,0,0,0);return(0,Y.Z)(e,r)}}]);return n}(A);var X=n(56925);var Q=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",130);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){if(t==="R"){return V(4,e)}return V(t.length,e)}},{key:"set",value:function e(e,t,n){var r=new Date(0);r.setUTCFullYear(n,0,4);r.setUTCHours(0,0,0,0);return(0,X.Z)(r)}}]);return n}(A);var J=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",130);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){if(t==="u"){return V(4,e)}return V(t.length,e)}},{key:"set",value:function e(e,t,n){e.setUTCFullYear(n,0,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var ee=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",120);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"Q":case"QQ":return F(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=1&&t<=4}},{key:"set",value:function e(e,t,n){e.setUTCMonth((n-1)*3,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var et=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",120);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"q":case"qq":return F(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=1&&t<=4}},{key:"set",value:function e(e,t,n){e.setUTCMonth((n-1)*3,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var en=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);(0,I.Z)((0,m.Z)(e),"priority",110);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return e-1};switch(t){case"M":return L(N(z.month,e),r);case"MM":return L(F(2,e),r);case"Mo":return L(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){e.setUTCMonth(n,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var er=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",110);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){return e-1};switch(t){case"L":return L(N(z.month,e),r);case"LL":return L(F(2,e),r);case"Lo":return L(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){e.setUTCMonth(n,1);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var eo=n(26168);function ei(e,t,n){(0,v.Z)(2,arguments);var r=(0,u.Z)(e);var o=(0,g.Z)(t);var i=(0,eo.Z)(r,n)-o;r.setUTCDate(r.getUTCDate()-i*7);return r};var ea=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",100);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"w":return N(z.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=53}},{key:"set",value:function e(e,t,n,r){return(0,Y.Z)(ei(e,n,r),r)}}]);return n}(A);var es=n(7993);function el(e,t){(0,v.Z)(2,arguments);var n=(0,u.Z)(e);var r=(0,g.Z)(t);var o=(0,es.Z)(n)-r;n.setUTCDate(n.getUTCDate()-o*7);return n};var eu=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",100);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"I":return N(z.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=53}},{key:"set",value:function e(e,t,n){return(0,X.Z)(el(e,n))}}]);return n}(A);var ec=[31,28,31,30,31,30,31,31,30,31,30,31];var ed=[31,29,31,30,31,30,31,31,30,31,30,31];var ef=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"subPriority",1);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"d":return N(z.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){var n=e.getUTCFullYear();var r=$(n);var o=e.getUTCMonth();if(r){return t>=1&&t<=ed[o]}else{return t>=1&&t<=ec[o]}}},{key:"set",value:function e(e,t,n){e.setUTCDate(n);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var eh=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"subpriority",1);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"D":case"DD":return N(z.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){var n=e.getUTCFullYear();var r=$(n);if(r){return t>=1&&t<=366}else{return t>=1&&t<=365}}},{key:"set",value:function e(e,t,n){e.setUTCMonth(0,n);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var ep=n(8064);function eg(e,t,n){var r,o,i,a,s,l,c,f;(0,v.Z)(2,arguments);var h=(0,ep.j)();var p=(0,g.Z)((r=(o=(i=(a=n===null||n===void 0?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n===null||n===void 0?void 0:(s=n.locale)===null||s===void 0?void 0:(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&o!==void 0?o:(c=h.locale)===null||c===void 0?void 0:(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}var m=(0,u.Z)(e);var y=(0,g.Z)(t);var x=m.getUTCDay();var w=y%7;var b=(w+7)%7;var S=(b<p?7:0)+y-x;m.setUTCDate(m.getUTCDate()+S);return m};var ev=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["D","i","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var em=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n,r){var o=function e(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return L(F(t.length,e),o);case"eo":return L(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var ey=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n,r){var o=function e(e){var t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return L(F(t.length,e),o);case"co":return L(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function e(e,t){return t>=0&&t<=6}},{key:"set",value:function e(e,t,n,r){e=eg(e,n,r);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);function ex(e,t){(0,v.Z)(2,arguments);var n=(0,g.Z)(t);if(n%7===0){n=n-7}var r=1;var o=(0,u.Z)(e);var i=o.getUTCDay();var a=n%7;var s=(a+7)%7;var l=(s<r?7:0)+n-i;o.setUTCDate(o.getUTCDate()+l);return o};var ew=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",90);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){var r=function e(e){if(e===0){return 7}return e};switch(t){case"i":case"ii":return F(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return L(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return L(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return L(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiii":default:return L(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=7}},{key:"set",value:function e(e,t,n){e=ex(e,n);e.setUTCHours(0,0,0,0);return e}}]);return n}(A);var eb=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",80);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["b","B","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(A);var eS=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",80);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["a","B","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(A);var ek=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",80);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}},{key:"set",value:function e(e,t,n){e.setUTCHours(W(n),0,0,0);return e}}]);return n}(A);var ej=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",70);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["H","K","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"h":return N(z.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=12}},{key:"set",value:function e(e,t,n){var r=e.getUTCHours()>=12;if(r&&n<12){e.setUTCHours(n+12,0,0,0)}else if(!r&&n===12){e.setUTCHours(0,0,0,0)}else{e.setUTCHours(n,0,0,0)}return e}}]);return n}(A);var eC=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",70);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","h","K","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"H":return N(z.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=23}},{key:"set",value:function e(e,t,n){e.setUTCHours(n,0,0,0);return e}}]);return n}(A);var eT=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",70);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["h","H","k","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"K":return N(z.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=11}},{key:"set",value:function e(e,t,n){var r=e.getUTCHours()>=12;if(r&&n<12){e.setUTCHours(n+12,0,0,0)}else{e.setUTCHours(n,0,0,0)}return e}}]);return n}(A);var eE=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",70);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["a","b","h","H","K","t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"k":return N(z.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=1&&t<=24}},{key:"set",value:function e(e,t,n){var r=n<=24?n%24:n;e.setUTCHours(r,0,0,0);return e}}]);return n}(A);var eI=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",60);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"m":return N(z.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=59}},{key:"set",value:function e(e,t,n){e.setUTCMinutes(n,0,0);return e}}]);return n}(A);var e_=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",50);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t,n){switch(t){case"s":return N(z.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return F(t.length,e)}}},{key:"validate",value:function e(e,t){return t>=0&&t<=59}},{key:"set",value:function e(e,t,n){e.setUTCSeconds(n,0);return e}}]);return n}(A);var eM=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",30);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["t","T"]);return e}E(n,[{key:"parse",value:function e(e,t){var n=function e(e){return Math.floor(e*Math.pow(10,-t.length+3))};return L(F(t.length,e),n)}},{key:"set",value:function e(e,t,n){e.setUTCMilliseconds(n);return e}}]);return n}(A);var eD=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",10);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["t","T","x"]);return e}E(n,[{key:"parse",value:function e(e,t){switch(t){case"X":return B(Z.basicOptionalMinutes,e);case"XX":return B(Z.basic,e);case"XXXX":return B(Z.basicOptionalSeconds,e);case"XXXXX":return B(Z.extendedOptionalSeconds,e);case"XXX":default:return B(Z.extended,e)}}},{key:"set",value:function e(e,t,n){if(t.timestampIsSet){return e}return new Date(e.getTime()-n)}}]);return n}(A);var eP=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",10);(0,I.Z)((0,m.Z)(e),"incompatibleTokens",["t","T","X"]);return e}E(n,[{key:"parse",value:function e(e,t){switch(t){case"x":return B(Z.basicOptionalMinutes,e);case"xx":return B(Z.basic,e);case"xxxx":return B(Z.basicOptionalSeconds,e);case"xxxxx":return B(Z.extendedOptionalSeconds,e);case"xxx":default:return B(Z.extended,e)}}},{key:"set",value:function e(e,t,n){if(t.timestampIsSet){return e}return new Date(e.getTime()-n)}}]);return n}(A);var eA=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",40);(0,I.Z)((0,m.Z)(e),"incompatibleTokens","*");return e}E(n,[{key:"parse",value:function e(e){return H(e)}},{key:"set",value:function e(e,t,n){return[new Date(n*1e3),{timestampIsSet:true}]}}]);return n}(A);var eO=function(e){x(n,e);var t=k(n);function n(){var e;j(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}e=t.call.apply(t,[this].concat(o));(0,I.Z)((0,m.Z)(e),"priority",20);(0,I.Z)((0,m.Z)(e),"incompatibleTokens","*");return e}E(n,[{key:"parse",value:function e(e){return H(e)}},{key:"set",value:function e(e,t,n){return[new Date(n),{timestampIsSet:true}]}}]);return n}(A);var eR={G:new O,y:new K,Y:new G,R:new Q,u:new J,Q:new ee,q:new et,M:new en,L:new er,w:new ea,I:new eu,d:new ef,D:new eh,E:new ev,e:new em,c:new ey,i:new ew,a:new eb,b:new eS,B:new ek,h:new ej,H:new eC,K:new eT,k:new eE,m:new eI,s:new e_,S:new eM,X:new eD,x:new eP,t:new eA,T:new eO};var ez=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g;var eZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;var eL=/^'([^]*?)'?$/;var eN=/''/g;var eB=/\S/;var eH=/[a-zA-Z]/;function eF(e,t,n,o){var i,m,y,x,w,b,S,k,j,C,T,E,I,_,M,D,A,O;(0,v.Z)(3,arguments);var R=String(e);var z=String(t);var Z=(0,ep.j)();var L=(i=(m=o===null||o===void 0?void 0:o.locale)!==null&&m!==void 0?m:Z.locale)!==null&&i!==void 0?i:s.Z;if(!L.match){throw new RangeError("locale must contain match property")}var N=(0,g.Z)((y=(x=(w=(b=o===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&b!==void 0?b:o===null||o===void 0?void 0:(S=o.locale)===null||S===void 0?void 0:(k=S.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&w!==void 0?w:Z.firstWeekContainsDate)!==null&&x!==void 0?x:(j=Z.locale)===null||j===void 0?void 0:(C=j.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&y!==void 0?y:1);if(!(N>=1&&N<=7)){throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}var B=(0,g.Z)((T=(E=(I=(_=o===null||o===void 0?void 0:o.weekStartsOn)!==null&&_!==void 0?_:o===null||o===void 0?void 0:(M=o.locale)===null||M===void 0?void 0:(D=M.options)===null||D===void 0?void 0:D.weekStartsOn)!==null&&I!==void 0?I:Z.weekStartsOn)!==null&&E!==void 0?E:(A=Z.locale)===null||A===void 0?void 0:(O=A.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&T!==void 0?T:0);if(!(B>=0&&B<=6)){throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}if(z===""){if(R===""){return(0,u.Z)(n)}else{return new Date(NaN)}}var H={firstWeekContainsDate:N,weekStartsOn:B,locale:L};var F=[new P];var V=z.match(eZ).map(function(e){var t=e[0];if(t in f.Z){var n=f.Z[t];return n(e,L.formatLong)}return e}).join("").match(ez);var W=[];var U=a(V),$;try{var K=function t(){var t=$.value;if(!(o!==null&&o!==void 0&&o.useAdditionalWeekYearTokens)&&(0,p.Do)(t)){(0,p.qp)(t,z,e)}if(!(o!==null&&o!==void 0&&o.useAdditionalDayOfYearTokens)&&(0,p.Iu)(t)){(0,p.qp)(t,z,e)}var n=t[0];var r=eR[n];if(r){var i=r.incompatibleTokens;if(Array.isArray(i)){var a=W.find(function(e){return i.includes(e.token)||e.token===n});if(a){throw new RangeError("The format string mustn't contain `".concat(a.fullToken,"` and `").concat(t,"` at the same time"))}}else if(r.incompatibleTokens==="*"&&W.length>0){throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"))}W.push({token:n,fullToken:t});var s=r.run(R,t,L.match,H);if(!s){return{v:new Date(NaN)}}F.push(s.setter);R=s.rest}else{if(n.match(eH)){throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`")}if(t==="''"){t="'"}else if(n==="'"){t=eV(t)}if(R.indexOf(t)===0){R=R.slice(t.length)}else{return{v:new Date(NaN)}}}};for(U.s();!($=U.n()).done;){var q=K();if((0,r.Z)(q)==="object")return q.v}}catch(e){U.e(e)}finally{U.f()}if(R.length>0&&eB.test(R)){return new Date(NaN)}var Y=F.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return F.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]});var G=(0,u.Z)(n);if(isNaN(G.getTime())){return new Date(NaN)}var X=(0,l.Z)(G,(0,h.Z)(G));var Q={};var J=a(Y),ee;try{for(J.s();!(ee=J.n()).done;){var et=ee.value;if(!et.validate(X,H)){return new Date(NaN)}var en=et.set(X,Q,H);if(Array.isArray(en)){X=en[0];c(Q,en[1])}else{X=en}}}catch(e){J.e(e)}finally{J.f()}return X}function eV(e){return e.match(eL)[1].replace(eN,"'")}},41071:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(69939);var o=n(78354);var i=n(71578);function a(e,t){var n;(0,o.Z)(1,arguments);var r=(0,i.Z)((n=t===null||t===void 0?void 0:t.additionalDigits)!==null&&n!==void 0?n:2);if(r!==2&&r!==1&&r!==0){throw new RangeError("additionalDigits must be 0, 1 or 2")}if(!(typeof e==="string"||Object.prototype.toString.call(e)==="[object String]")){return new Date(NaN)}var a=f(e);var s;if(a.date){var l=h(a.date,r);s=p(l.restDateString,l.year)}if(!s||isNaN(s.getTime())){return new Date(NaN)}var u=s.getTime();var c=0;var g;if(a.time){c=v(a.time);if(isNaN(c)){return new Date(NaN)}}if(a.timezone){g=y(a.timezone);if(isNaN(g)){return new Date(NaN)}}else{var m=new Date(u+c);var x=new Date(0);x.setFullYear(m.getUTCFullYear(),m.getUTCMonth(),m.getUTCDate());x.setHours(m.getUTCHours(),m.getUTCMinutes(),m.getUTCSeconds(),m.getUTCMilliseconds());return x}return new Date(u+c+g)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/};var l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/;var u=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/;var c=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){var t={};var n=e.split(s.dateTimeDelimiter);var r;if(n.length>2){return t}if(/:/.test(n[0])){r=n[0]}else{t.date=n[0];r=n[1];if(s.timeZoneDelimiter.test(t.date)){t.date=e.split(s.timeZoneDelimiter)[0];r=e.substr(t.date.length,e.length)}}if(r){var o=s.timezone.exec(r);if(o){t.time=r.replace(o[1],"");t.timezone=o[1]}else{t.time=r}}return t}function h(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)");var r=e.match(n);if(!r)return{year:NaN,restDateString:""};var o=r[1]?parseInt(r[1]):null;var i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function p(e,t){if(t===null)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4];var o=g(n[1]);var i=g(n[2])-1;var a=g(n[3]);var s=g(n[4]);var u=g(n[5])-1;if(r){if(!j(t,s,u)){return new Date(NaN)}return x(t,s,u)}else{var c=new Date(0);if(!S(t,i,a)||!k(t,o)){return new Date(NaN)}c.setUTCFullYear(t,i,Math.max(o,a));return c}}function g(e){return e?parseInt(e):1}function v(e){var t=e.match(u);if(!t)return NaN;var n=m(t[1]);var o=m(t[2]);var i=m(t[3]);if(!C(n,o,i)){return NaN}return n*r.vh+o*r.yJ+i*1e3}function m(e){return e&&parseFloat(e.replace(",","."))||0}function y(e){if(e==="Z")return 0;var t=e.match(c);if(!t)return 0;var n=t[1]==="+"?-1:1;var o=parseInt(t[2]);var i=t[3]&&parseInt(t[3])||0;if(!T(o,i)){return NaN}return n*(o*r.vh+i*r.yJ)}function x(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var o=r.getUTCDay()||7;var i=(t-1)*7+n+1-o;r.setUTCDate(r.getUTCDate()+i);return r}var w=[31,null,31,30,31,30,31,31,30,31,30,31];function b(e){return e%400===0||e%4===0&&e%100!==0}function S(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(w[t]||(b(e)?29:28))}function k(e,t){return t>=1&&t<=(b(e)?366:365)}function j(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function C(e,t,n){if(e===24){return t===0&&n===0}return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function T(e,t){return t>=0&&t<=59}},28548:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(82862);var o=n(78354);var i=n(71578);function a(e,t){(0,o.Z)(2,arguments);var n=(0,i.Z)(t);return(0,r.Z)(e,-n)}},94352:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(71578);var o=n(2864);var i=n(78354);function a(e,t){(0,i.Z)(2,arguments);var n=(0,o.Z)(e).getTime();var a=(0,r.Z)(t);return new Date(n+a)};function s(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(t);return a(e,-n)}},2864:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86522);var o=n(78354);function i(e){(0,o.Z)(1,arguments);var t=Object.prototype.toString.call(e);if(e instanceof Date||(0,r.Z)(e)==="object"&&t==="[object Date]"){return new Date(e.getTime())}else if(typeof e==="number"||t==="[object Number]"){return new Date(e)}else{if((typeof e==="string"||t==="[object String]")&&typeof console!=="undefined"){console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");console.warn(new Error().stack)}return new Date(NaN)}}},82478:function(e){function t(e,t,n){var r,o,i,a,s;if(null==t)t=100;function l(){var u=Date.now()-a;if(u<t&&u>=0){r=setTimeout(l,t-u)}else{r=null;if(!n){s=e.apply(i,o);i=o=null}}};var u=function(){i=this;o=arguments;a=Date.now();var u=n&&!r;if(!r)r=setTimeout(l,t);if(u){s=e.apply(i,o);i=o=null}return s};u.clear=function(){if(r){clearTimeout(r);r=null}};u.flush=function(){if(r){s=e.apply(i,o);i=o=null;clearTimeout(r);r=null}};return u};t.debounce=t;e.exports=t},44510:function(e,t){"use strict";var n;/** @license React v17.0.2
|
|
11
|
+
* react-is.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var r=60103,o=60106,i=60107,a=60108,s=60114,l=60109,u=60110,c=60112,f=60113,h=60120,p=60115,g=60116,v=60121,m=60122,y=60117,x=60129,w=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;r=b("react.element");o=b("react.portal");i=b("react.fragment");a=b("react.strict_mode");s=b("react.profiler");l=b("react.provider");u=b("react.context");c=b("react.forward_ref");f=b("react.suspense");h=b("react.suspense_list");p=b("react.memo");g=b("react.lazy");v=b("react.block");m=b("react.server.block");y=b("react.fundamental");x=b("react.debug_trace_mode");w=b("react.legacy_hidden")}function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type,e){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof,e){case u:case c:case g:case p:case l:return e;default:return t}}case o:return t}}}var k=l,j=r,C=c,T=i,E=g,I=p,_=o,M=s,D=a,P=f;n=u;n=k;n=j;n=C;n=T;n=E;n=I;n=_;n=M;n=D;n=P;n=function(){return!1};n=function(){return!1};n=function(e){return S(e)===u};n=function(e){return S(e)===l};n=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};n=function(e){return S(e)===c};n=function(e){return S(e)===i};n=function(e){return S(e)===g};n=function(e){return S(e)===p};n=function(e){return S(e)===o};n=function(e){return S(e)===s};n=function(e){return S(e)===a};n=function(e){return S(e)===f};n=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===x||e===a||e===f||e===h||e===w||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===c||e.$$typeof===y||e.$$typeof===v||e[0]===m)?!0:!1};n=S},55815:function(e,t,n){"use strict";if(true){n(44510)}else{}},53797:function(e,t,n){var r;/*!
|
|
18
|
+
Copyright (c) 2015 Jed Watson.
|
|
19
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
20
|
+
All rights reserved.
|
|
21
|
+
*/(function(){"use strict";var o=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var i={canUseDOM:o,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:o&&!!(window.addEventListener||window.attachEvent),canUseViewport:o&&!!window.screen};if(true){!(r=(function(){return i}).call(t,n,t,e),r!==undefined&&(e.exports=r))}else{}})()},51302:function(e){"use strict";var t=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;var r=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var i=function e(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return n.call(e)==="[object Array]"};var a=function e(e){if(!e||n.call(e)!=="[object Object]"){return false}var r=t.call(e,"constructor");var o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o){return false}var i;for(i in e){}return typeof i==="undefined"||t.call(e,i)};var s=function e(e,t){if(r&&t.name==="__proto__"){r(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var l=function e(e,n){if(n==="__proto__"){if(!t.call(e,n)){return void 0}else if(o){return o(e,n).value}}return e[n]};e.exports=function e(){var t,n,r,o,u,c;var f=arguments[0];var h=1;var p=arguments.length;var g=false;if(typeof f==="boolean"){g=f;f=arguments[1]||{};h=2}if(f==null||typeof f!=="object"&&typeof f!=="function"){f={}}for(;h<p;++h){t=arguments[h];if(t!=null){for(n in t){r=l(f,n);o=l(t,n);if(f!==o){if(g&&o&&(a(o)||(u=i(o)))){if(u){u=false;c=r&&i(r)?r:[]}else{c=r&&a(r)?r:{}}s(f,{name:n,newValue:e(g,c,o)})}else if(typeof o!=="undefined"){s(f,{name:n,newValue:o})}}}}}return f}},28926:function(e){"use strict";e.exports=function e(t,n){if(t===n)return true;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return false;var r,o,i;if(Array.isArray(t)){r=t.length;if(r!=n.length)return false;for(o=r;o--!==0;)if(!e(t[o],n[o]))return false;return true}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();i=Object.keys(t);r=i.length;if(r!==Object.keys(n).length)return false;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return false;for(o=r;o--!==0;){var a=i[o];if(!e(t[a],n[a]))return false}return true}return t!==t&&n!==n}},98765:function(e){"use strict";var t=/-(.)/g;function n(e){return e.replace(t,function(e,t){return t.toUpperCase()})}e.exports=n},29024:function(e,t,n){"use strict";var r=n(98765);var o=/^-ms-/;function i(e){return r(e.replace(o,"ms-"))}e.exports=i},57285:function(e){"use strict";function t(e){return function(){return e}}var n=function e(){};n.thatReturns=t;n.thatReturnsFalse=t(false);n.thatReturnsTrue=t(true);n.thatReturnsNull=t(null);n.thatReturnsThis=function(){return this};n.thatReturnsArgument=function(e){return e};e.exports=n},49879:function(e){"use strict";var t=/([A-Z])/g;function n(e){return e.replace(t,"-$1").toLowerCase()}e.exports=n},76278:function(e,t,n){"use strict";var r=n(49879);var o=/^ms-/;function i(e){return r(e).replace(o,"-ms-")}e.exports=i},62246:function(e){"use strict";function t(e){var t={};return function(n){if(!t.hasOwnProperty(n)){t[n]=e.call(this,n)}return t[n]}}e.exports=t},17679:function(e,t,n){"use strict";var r=n(57285);var o=r;if(false){var i}e.exports=o},17401:function(){(function(e,t){true?t():0})(this,function(){"use strict";function e(){var e=true;var t=false;var n=null;var r={text:true,search:true,url:true,tel:true,email:true,password:true,number:true,date:true,month:true,week:true,time:true,datetime:true,"datetime-local":true};function o(e){if(e&&e!==document&&e.nodeName!=="HTML"&&e.nodeName!=="BODY"&&"classList"in e&&"contains"in e.classList){return true}return false}function i(e){var t=e.type;var n=e.tagName;if(n=="INPUT"&&r[t]&&!e.readOnly){return true}if(n=="TEXTAREA"&&!e.readOnly){return true}if(e.isContentEditable){return true}return false}function a(e){if(e.classList.contains("focus-visible")){return}e.classList.add("focus-visible");e.setAttribute("data-focus-visible-added","")}function s(e){if(!e.hasAttribute("data-focus-visible-added")){return}e.classList.remove("focus-visible");e.removeAttribute("data-focus-visible-added")}function l(t){if(o(document.activeElement)){a(document.activeElement)}e=true}function u(t){e=false}function c(t){if(!o(t.target)){return}if(e||i(t.target)){a(t.target)}}function f(e){if(!o(e.target)){return}if(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added")){t=true;window.clearTimeout(n);n=window.setTimeout(function(){t=false;window.clearTimeout(n)},100);s(e.target)}}function h(n){if(document.visibilityState=="hidden"){if(t){e=true}p()}}function p(){document.addEventListener("mousemove",v);document.addEventListener("mousedown",v);document.addEventListener("mouseup",v);document.addEventListener("pointermove",v);document.addEventListener("pointerdown",v);document.addEventListener("pointerup",v);document.addEventListener("touchmove",v);document.addEventListener("touchstart",v);document.addEventListener("touchend",v)}function g(){document.removeEventListener("mousemove",v);document.removeEventListener("mousedown",v);document.removeEventListener("mouseup",v);document.removeEventListener("pointermove",v);document.removeEventListener("pointerdown",v);document.removeEventListener("pointerup",v);document.removeEventListener("touchmove",v);document.removeEventListener("touchstart",v);document.removeEventListener("touchend",v)}function v(t){if(t.target.nodeName.toLowerCase()==="html"){return}e=false;g()}document.addEventListener("keydown",l,true);document.addEventListener("mousedown",u,true);document.addEventListener("pointerdown",u,true);document.addEventListener("touchstart",u,true);document.addEventListener("focus",c,true);document.addEventListener("blur",f,true);document.addEventListener("visibilitychange",h,true);p();document.body.classList.add("js-focus-visible")}function t(e){var t;function n(){if(!t){t=true;e()}}if(["interactive","complete"].indexOf(document.readyState)>=0){e()}else{t=false;document.addEventListener("DOMContentLoaded",n,false);window.addEventListener("load",n,false)}}if(typeof document!=="undefined"){t(e)}})},45260:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n={animationIterationCount:true,borderImageOutset:true,borderImageSlice:true,borderImageWidth:true,boxFlex:true,boxFlexGroup:true,boxOrdinalGroup:true,columnCount:true,flex:true,flexGrow:true,flexPositive:true,flexShrink:true,flexNegative:true,flexOrder:true,gridRow:true,gridRowStart:true,gridRowEnd:true,gridColumn:true,gridColumnStart:true,gridColumnEnd:true,fontWeight:true,lineClamp:true,lineHeight:true,opacity:true,order:true,orphans:true,tabSize:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeDasharray:true,strokeDashoffset:true,strokeMiterlimit:true,strokeOpacity:true,strokeWidth:true};function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o=["Webkit","ms","Moz","O"];Object.keys(n).forEach(function(e){o.forEach(function(t){n[r(t,e)]=n[e]})});var i={background:{backgroundAttachment:true,backgroundColor:true,backgroundImage:true,backgroundPositionX:true,backgroundPositionY:true,backgroundRepeat:true},backgroundPosition:{backgroundPositionX:true,backgroundPositionY:true},border:{borderWidth:true,borderStyle:true,borderColor:true},borderBottom:{borderBottomWidth:true,borderBottomStyle:true,borderBottomColor:true},borderLeft:{borderLeftWidth:true,borderLeftStyle:true,borderLeftColor:true},borderRight:{borderRightWidth:true,borderRightStyle:true,borderRightColor:true},borderTop:{borderTopWidth:true,borderTopStyle:true,borderTopColor:true},font:{fontStyle:true,fontVariant:true,fontWeight:true,fontSize:true,lineHeight:true,fontFamily:true},outline:{outlineWidth:true,outlineStyle:true,outlineColor:true}};var a={isUnitlessNumber:n,shorthandPropertyExpansions:i};t["default"]=a},13349:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(45260);var o=s(r);var i=n(17679);var a=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var l=o.default.isUnitlessNumber;var u={};function c(e,t,n){var r=t==null||typeof t==="boolean"||t==="";if(r){return""}var o=isNaN(t);if(o||t===0||l.hasOwnProperty(e)&&l[e]){return""+t}if(typeof t==="string"){if(false){var i,a,s,u}t=t.trim()}return t+"px"}t["default"]=c},88565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.processStyleName=undefined;t.createMarkupForStyles=E;var r=n(29024);var o=p(r);var i=n(13349);var a=p(i);var s=n(76278);var l=p(s);var u=n(62246);var c=p(u);var f=n(17679);var h=p(f);function p(e){return e&&e.__esModule?e:{default:e}}var g=t.processStyleName=(0,c.default)(l.default);if(false){var v,m,y,x,w,b,S,k,j,C,T}function E(e,t){var n="";for(var r in e){var o=r.indexOf("--")===0;if(!e.hasOwnProperty(r)){continue}if(r==="label"){continue}var i=e[r];if(false){}if(i!=null){if(o){n+=r+":"+i+";"}else{n+=g(r)+":";n+=(0,a.default)(r,i,t)+";"}}}return n||null}},57141:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=a;function r(e){return e===null||e===undefined||e===false||(typeof e==="undefined"?"undefined":n(e))==="object"&&Object.keys(e).length===0}function o(e){if(r(e))return null;if((typeof e==="undefined"?"undefined":n(e))!=="object")return e;var t={},o=Object.keys(e),i=false;for(var s=0;s<o.length;s++){var l=e[o[s]];var u=a(l);if(u===null||u!==l){i=true}if(u!==null){t[o[s]]=u}}return Object.keys(t).length===0?null:i?t:e}function i(e){var t=false;var n=[];e.forEach(function(e){var r=a(e);if(r===null||r!==e){t=true}if(r!==null){n.push(r)}});return n.length==0?null:t?n:e}function a(e){return Array.isArray(e)?i(e):o(e)}},96881:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t){var n=1540483477;var a=24;var s=t^e.length;var l=e.length;var u=0;while(l>=4){var c=r(e,u);c=i(c,n);c^=c>>>a;c=i(c,n);s=i(s,n);s^=c;u+=4;l-=4}switch(l){case 3:s^=o(e,u);s^=e.charCodeAt(u+2)<<16;s=i(s,n);break;case 2:s^=o(e,u);s=i(s,n);break;case 1:s^=e.charCodeAt(u);s=i(s,n);break}s^=s>>>13;s=i(s,n);s^=s>>>15;return s>>>0}function r(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function o(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function i(e,t){e=e|0;t=t|0;var n=e&65535;var r=e>>>16;var o=n*t+((r*t&65535)<<16)|0;return o}},99818:function(e,t,n){"use strict";var r;r={value:true};r=r=r=r=r=t.F4=r=r=r=r=r=undefined;r=y;r=T;r=E;r=_;r=P;r=A;t.iv=eu;r=ev;r=em;r=ew;r=eS;t.BC=eC;r=eT;r=eE;r=eI;r=e_;r=eM;r=eD;r=eP;r=eA;r=eO;r=eR;r=ez;r=eZ;r=eL;r=eN;r=eB;r=eH;r=eF;r=eV;r=eW;r=eU;r=e$;r=eK;r=eq;r=eY;r=eG;r=eX;r=eQ;r=eJ;r=e0;r=e1;r=e2;r=e4;r=e5;r=e3;r=e6;r=e8;r=e7;r=e9;r=te;r=tt;r=tn;r=tr;t.bb=to;r=ti;r=ta;r=ts;r=tl;r=tu;r=tc;r=td;var o=n(4439);var i=p(o);var a=n(6278);var s=n(88565);var l=n(57141);var u=p(l);var c=n(20713);var f=n(96881);var h=p(f);function p(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function v(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var m=r=new a.StyleSheet;m.inject();function y(e){return m.speedy(e)}var x=r=m.plugins=new c.PluginSet([c.prefixes,c.contentWrap,c.fallbacks]);x.media=new c.PluginSet;x.fontFace=new c.PluginSet;x.keyframes=new c.PluginSet([c.prefixes,c.fallbacks]);var w=false||!"production";var b="production"==="test";var S=typeof window!=="undefined";var k=w;var j=false,C=false;function T(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;k=!!e}function E(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);if(!t)return{};if(!k){if(!j){console.warn("can't simulate without once calling simulations(true)");j=true}if(!w&&!b&&!C){console.warn("don't use simulation outside dev");C=true}return{}}return t.reduce(function(e,t){return e["data-simulate-"+M(t)]="",e},{})}var I=w;function _(e){I=!!e}function M(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return e.toLowerCase().replace(/[^a-z0-9]/g,t)}function D(e){var t=JSON.stringify(e);var n=(0,h.default)(t).toString(36);if(e.label&&e.label.length>0&&w){return M(e.label.join("."),"-")+"-"+n}return n}function P(e){var t=Object.keys(e).filter(function(e){return e!=="toString"});if(t.length!==1){return false}return!!/data\-css\-([a-zA-Z0-9\-_]+)/.exec(t[0])}function A(e){var t=Object.keys(e).filter(function(e){return e!=="toString"});if(t.length!==1)throw new Error("not a rule");var n=/data\-css\-([a-zA-Z0-9\-_]+)/;var r=n.exec(t[0]);if(!r)throw new Error("not a rule");return r[1]}var O=/[(),]|"(?:\\.|[^"\n])*"|'(?:\\.|[^'\n])*'|\/\*[\s\S]*?\*\//g;function R(e){if(e.indexOf(",")===-1){return[e]}var t=[],n=[],r=0,o;while(o=O.exec(e)){switch(o[0]){case"(":r++;break;case")":r--;break;case",":if(r)break;t.push(o.index)}}for(o=t.length;o--;){n.unshift(e.slice(t[o]+1));e=e.slice(0,t[o])}n.unshift(e);return n}function z(e,t){if(!e){return t.replace(/\&/g,"")}if(!t)return".css-"+e+",[data-css-"+e+"]";var n=R(t).map(function(t){return t.indexOf("&")>=0?[t.replace(/\&/mg,".css-"+e),t.replace(/\&/mg,"[data-css-"+e+"]")].join(","):".css-"+e+t+",[data-css-"+e+"]"+t}).join(",");if(k&&/^\&\:/.exec(t)&&!/\s/.exec(t)){n+=",.css-"+e+"[data-simulate-"+M(t)+"],[data-css-"+e+"][data-simulate-"+M(t)+"]"}return n}function Z(e){var t=e.selector,n=e.style;var r=x.transform({selector:t,style:n});return r.selector+"{"+(0,s.createMarkupForStyles)(r.style)+"}"}function L(e){var t=void 0,n=void 0,r=void 0,o=void 0;Object.keys(e).forEach(function(i){if(i.indexOf("&")>=0){n=n||{};n[i]=e[i]}else if(i.indexOf("@media")===0){r=r||{};r[i]=L(e[i])}else if(i.indexOf("@supports")===0){o=o||{};o[i]=L(e[i])}else if(i==="label"){if(e.label.length>0){t=t||{};t.label=I?e.label.join("."):""}}else{t=t||{};t[i]=e[i]}});return{plain:t,selects:n,medias:r,supports:o}}function N(e,t){var n=[];var r=t.plain,o=t.selects,i=t.medias,a=t.supports;if(r){n.push(Z({style:r,selector:z(e)}))}if(o){Object.keys(o).forEach(function(t){return n.push(Z({style:o[t],selector:z(e,t)}))})}if(i){Object.keys(i).forEach(function(t){return n.push(t+"{"+N(e,i[t]).join("")+"}")})}if(a){Object.keys(a).forEach(function(t){return n.push(t+"{"+N(e,a[t]).join("")+"}")})}return n}var B=m.inserted={};function H(e){if(!B[e.id]){B[e.id]=true;var t=L(e.style);var n=N(e.id,t);B[e.id]=S?true:n;n.forEach(function(e){return m.insert(e)})}}var F=m.registered={};function V(e){if(!F[e.id]){F[e.id]=e}}function W(e){if(P(e)){var t=F[A(e)];if(t==null){throw new Error("[glamor] an unexpected rule cache miss occurred. This is probably a sign of multiple glamor instances in your app. See https://github.com/threepointone/glamor/issues/79")}return t}return e}var U={};function $(e){V(e);H(e);if(U[e.id]){return U[e.id]}var t=v({},"data-css-"+e.id,I?e.label||"":"");Object.defineProperty(t,"toString",{enumerable:false,value:function t(){return"css-"+e.id}});U[e.id]=t;return t}function K(){console.log(this);return this}function q(e){var t=[":",".","[",">"," "],n=false,r=e.charAt(0);for(var o=0;o<t.length;o++){if(r===t[o]){n=true;break}}return n||e.indexOf("&")>=0}function Y(e,t){var n=R(e).map(function(e){return!(e.indexOf("&")>=0)?"&"+e:e});var r=R(t).map(function(e){return!(e.indexOf("&")>=0)?"&"+e:e});return r.reduce(function(e,t){return e.concat(n.map(function(e){return t.replace(/\&/g,e)}))},[]).join(",")}function G(e,t){return e?"@media "+e.substring(6)+" and "+t.substring(6):t}function X(e){return e.indexOf("@media")===0}function Q(e){return e.indexOf("@supports")===0}function J(e,t){return e?"@supports "+e.substring(9)+" and "+t.substring(9):t}function ee(e){var t=[];for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))t=t.concat(ee(e[n]));else t=t.concat(e[n])}return t}var et={"::placeholder":["::-webkit-input-placeholder","::-moz-placeholder","::-ms-input-placeholder"],":fullscreen":[":-webkit-full-screen",":-moz-full-screen",":-ms-fullscreen"]};function en(e,t){var n=t.selector,r=n===undefined?"":n,o=t.mq,i=o===undefined?"":o,a=t.supp,s=a===undefined?"":a,l=t.src,c=l===undefined?{}:l;if(!Array.isArray(c)){c=[c]}c=ee(c);c.forEach(function(t){if(P(t)){var n=W(t);if(n.type!=="css"){throw new Error("cannot merge this rule")}t=n.style}t=(0,u.default)(t);if(t&&t.composes){en(e,{selector:r,mq:i,supp:s,src:t.composes})}Object.keys(t||{}).forEach(function(n){if(q(n)){if(et[n]){et[n].forEach(function(o){return en(e,{selector:Y(r,o),mq:i,supp:s,src:t[n]})})}en(e,{selector:Y(r,n),mq:i,supp:s,src:t[n]})}else if(X(n)){en(e,{selector:r,mq:G(i,n),supp:s,src:t[n]})}else if(Q(n)){en(e,{selector:r,mq:i,supp:J(s,n),src:t[n]})}else if(n==="composes"){}else{var o=e;if(s){o[s]=o[s]||{};o=o[s]}if(i){o[i]=o[i]||{};o=o[i]}if(r){o[r]=o[r]||{};o=o[r]}if(n==="label"){if(I){e.label=e.label.concat(t.label)}}else{o[n]=t[n]}}})})}function er(e){var t={label:[]};en(t,{src:e});var n={id:D(t),style:t,label:I?t.label.join("."):"",type:"css"};return $(n)}var eo={};Object.defineProperty(eo,"toString",{enumerable:false,value:function e(){return"css-nil"}});var ei=typeof WeakMap!=="undefined"?[eo,new WeakMap,new WeakMap,new WeakMap]:[eo];var ea=false;function es(e){return function(t){if(ei[t.length]){var n=ei[t.length];var r=0;while(r<t.length-1){if(!n.has(t[r])){n.set(t[r],new WeakMap)}n=n.get(t[r]);r++}if(n.has(t[t.length-1])){var o=n.get(t[r]);if(F[o.toString().substring(4)]){return o}}}var i=e(t);if(ei[t.length]){var a=0,s=ei[t.length];while(a<t.length-1){s=s.get(t[a]);a++}try{s.set(t[a],i)}catch(e){if(w&&!ea){var l;ea=true;(l=console).warn.apply(l,["failed setting the WeakMap cache for args:"].concat(g(t)));console.warn("this should NOT happen, please file a bug on the github repo.")}}}return i}}var el=typeof WeakMap!=="undefined"?es(er):er;function eu(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t[0]&&t[0].length&&t[0].raw){throw new Error("you forgot to include glamor/babel in your babel plugins.")}t=(0,u.default)(t);if(!t){return eo}return el(t)}eu.insert=function(e){var t={id:D(e),css:e,type:"raw"};V(t);if(!B[t.id]){m.insert(t.css);B[t.id]=S?true:[t.css]}};var ec=r=eu.insert;eu.global=function(e,t){t=(0,u.default)(t);if(t){return eu.insert(Z({selector:e,style:t}))}};var ed=r=eu.global;function ef(e){if(!B[e.id]){var t=Object.keys(e.keyframes).map(function(t){var n=x.keyframes.transform({id:e.id,name:t,style:e.keyframes[t]});return n.name+"{"+(0,s.createMarkupForStyles)(n.style)+"}"}).join("");var n=["-webkit-","-moz-","-o-",""].map(function(n){return"@"+n+"keyframes "+(e.name+"_"+e.id)+"{"+t+"}"});n.forEach(function(e){return m.insert(e)});B[e.id]=S?true:n}}eu.keyframes=function(e,t){if(!t){t=e,e="animation"}t=(0,u.default)(t)||{};var n={id:D({name:e,kfs:t}),type:"keyframes",name:e,keyframes:t};V(n);ef(n);return e+"_"+n.id};eu.fontFace=function(e){e=(0,u.default)(e);var t={id:D(e),type:"font-face",font:e};V(t);eg(t);return e.fontFamily};var eh=r=eu.fontFace;var ep=t.F4=eu.keyframes;function eg(e){if(!B[e.id]){var t="@font-face{"+(0,s.createMarkupForStyles)(e.font)+"}";m.insert(t);B[e.id]=S?true:[t]}}function ev(e){(0,i.default)(B,e.reduce(function(e,t){return e[t]=true,e},{}))}function em(){B=m.inserted={};F=m.registered={};U={};m.flush();m.inject()}var ey=r={mobile:"(min-width: 400px)",Mobile:"@media (min-width: 400px)",phablet:"(min-width: 550px)",Phablet:"@media (min-width: 550px)",tablet:"(min-width: 750px)",Tablet:"@media (min-width: 750px)",desktop:"(min-width: 1000px)",Desktop:"@media (min-width: 1000px)",hd:"(min-width: 1200px)",Hd:"@media (min-width: 1200px)"};var ex=r=eu;function ew(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}if(!e){return ex(n)}return eu(v({},e,n))}var eb=r=ew;function eS(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},e+" &",n))}var ek=r=eu;var ej=r=eu;function eC(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},"@media "+e,n))}function eT(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}return eu(v({},e,n))}function eE(e){return eT(":active",e)}function eI(e){return eT(":any",e)}function e_(e){return eT(":checked",e)}function eM(e){return eT(":disabled",e)}function eD(e){return eT(":empty",e)}function eP(e){return eT(":enabled",e)}function eA(e){return eT(":default",e)}function eO(e){return eT(":first",e)}function eR(e){return eT(":first-child",e)}function ez(e){return eT(":first-of-type",e)}function eZ(e){return eT(":fullscreen",e)}function eL(e){return eT(":focus",e)}function eN(e){return eT(":hover",e)}function eB(e){return eT(":indeterminate",e)}function eH(e){return eT(":in-range",e)}function eF(e){return eT(":invalid",e)}function eV(e){return eT(":last-child",e)}function eW(e){return eT(":last-of-type",e)}function eU(e){return eT(":left",e)}function e$(e){return eT(":link",e)}function eK(e){return eT(":only-child",e)}function eq(e){return eT(":only-of-type",e)}function eY(e){return eT(":optional",e)}function eG(e){return eT(":out-of-range",e)}function eX(e){return eT(":read-only",e)}function eQ(e){return eT(":read-write",e)}function eJ(e){return eT(":required",e)}function e0(e){return eT(":right",e)}function e1(e){return eT(":root",e)}function e2(e){return eT(":scope",e)}function e4(e){return eT(":target",e)}function e5(e){return eT(":valid",e)}function e3(e){return eT(":visited",e)}function e6(e,t){return eT(":dir("+e+")",t)}function e8(e,t){return eT(":lang("+e+")",t)}function e7(e,t){var n=e.split(",").map(function(e){return e.trim()}).map(function(e){return":not("+e+")"});if(n.length===1){return eT(":not("+e+")",t)}return ew(n.join(""),t)}function e9(e,t){return eT(":nth-child("+e+")",t)}function te(e,t){return eT(":nth-last-child("+e+")",t)}function tt(e,t){return eT(":nth-last-of-type("+e+")",t)}function tn(e,t){return eT(":nth-of-type("+e+")",t)}function tr(e){return eT("::after",e)}function to(e){return eT("::before",e)}function ti(e){return eT("::first-letter",e)}function ta(e){return eT("::first-line",e)}function ts(e){return eT("::selection",e)}function tl(e){return eT("::backdrop",e)}function tu(e){return eu({"::placeholder":e})}function tc(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);return t?t.map(function(e){var t={label:[]};en(t,{src:e});return N(D(t),L(t)).join("")}).join(""):""}function td(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++){t[n]=arguments[n]}t=(0,u.default)(t);var r=t?t.map(function(e){A(e);var t=Object.keys(e)[0],n=e[t];return t+'="'+(n||"")+'"'}).join(" "):"";return r}},20713:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};t.PluginSet=f;t.fallbacks=h;t.contentWrap=g;t.prefixes=v;var o=n(4439);var i=u(o);var a=n(88565);var s=n(25355);var l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){return e==="development"||!e}("production");function f(e){this.fns=e||[]}(0,i.default)(f.prototype,{add:function e(){var e=this;for(var t=arguments.length,n=Array(t),r=0;r<t;r++){n[r]=arguments[r]}n.forEach(function(t){if(e.fns.indexOf(t)>=0){if(c){console.warn("adding the same plugin again, ignoring")}}else{e.fns=[t].concat(e.fns)}})},remove:function e(e){this.fns=this.fns.filter(function(t){return t!==e})},clear:function e(){this.fns=[]},transform:function e(e){return this.fns.reduce(function(e,t){return t(e)},e)}});function h(e){var t=Object.keys(e.style).map(function(t){return Array.isArray(e.style[t])}).indexOf(true)>=0;if(t){var n=e.style;var r=Object.keys(n).reduce(function(e,t){e[t]=Array.isArray(n[t])?n[t].join("; "+(0,a.processStyleName)(t)+": "):n[t];return e},{});return(0,i.default)({},e,{style:r})}return e}var p=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit"];function g(e){if(e.style.content){var t=e.style.content;if(p.indexOf(t)>=0){return e}if(/^(attr|calc|counters?|url)\(/.test(t)){return e}if(t.charAt(0)===t.charAt(t.length-1)&&(t.charAt(0)==='"'||t.charAt(0)==="'")){return e}return r({},e,{style:r({},e.style,{content:'"'+t+'"'})})}return e}function v(e){return(0,i.default)({},e,{style:(0,l.default)(r({},e.style))})}},25355:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=A;var r=n(19572);var o=M(r);var i=n(20740);var a=M(i);var s=n(64641);var l=M(s);var u=n(26054);var c=M(u);var f=n(13534);var h=M(f);var p=n(24382);var g=M(p);var v=n(58055);var m=M(v);var y=n(58617);var x=M(y);var w=n(63574);var b=M(w);var S=n(91247);var k=M(S);var j=n(34867);var C=M(j);var T=n(98904);var E=M(T);var I=n(29604);var _=M(I);function M(e){return e&&e.__esModule?e:{default:e}}var D=[h.default,c.default,g.default,x.default,b.default,k.default,C.default,E.default,_.default,m.default];var P=o.default.prefixMap;function A(e){for(var t in e){var n=e[t];var r=(0,l.default)(D,t,n,e,P);if(r){e[t]=r}(0,a.default)(P,t,e)}return e}},6278:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StyleSheet=g;var r=n(4439);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++){n[t]=e[t]}return n}else{return Array.from(e)}}function s(e){return e[e.length-1]}function l(e){if(e.sheet){return e.sheet}for(var t=0;t<document.styleSheets.length;t++){if(document.styleSheets[t].ownerNode===e){return document.styleSheets[t]}}}var u=typeof window!=="undefined";var c=false||!"production";var f="production"==="test";var h=function(){if(u){var e=document.createElement("div");e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->";return e.getElementsByTagName("i").length===1}}();function p(){var e=document.createElement("style");e.type="text/css";e.setAttribute("data-glamor","");e.appendChild(document.createTextNode(""));(document.head||document.getElementsByTagName("head")[0]).appendChild(e);return e}function g(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=e.speedy,n=t===undefined?!c&&!f:t,r=e.maxLength,o=r===undefined?u&&h?4e3:65e3:r;this.isSpeedy=n;this.sheet=undefined;this.tags=[];this.maxLength=o;this.ctr=0}(0,o.default)(g.prototype,{getSheet:function e(){return l(s(this.tags))},inject:function e(){var e=this;if(this.injected){throw new Error("already injected stylesheet!")}if(u){this.tags[0]=p()}else{this.sheet={cssRules:[],insertRule:function t(t){e.sheet.cssRules.push({cssText:t})}}}this.injected=true},speedy:function e(e){if(this.ctr!==0){throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy("+e+") earlier in your app, or call flush() before speedy("+e+")")}this.isSpeedy=!!e},_insert:function e(e){try{var t=this.getSheet();t.insertRule(e,e.indexOf("@import")!==-1?0:t.cssRules.length)}catch(t){if(c){console.warn("whoops, illegal rule inserted",e)}}},insert:function e(e){if(u){if(this.isSpeedy&&this.getSheet().insertRule){this._insert(e)}else{if(e.indexOf("@import")!==-1){var t=s(this.tags);t.insertBefore(document.createTextNode(e),t.firstChild)}else{s(this.tags).appendChild(document.createTextNode(e))}}}else{this.sheet.insertRule(e,e.indexOf("@import")!==-1?0:this.sheet.cssRules.length)}this.ctr++;if(u&&this.ctr%this.maxLength===0){this.tags.push(p())}return this.ctr-1},delete:function e(e){return this.replace(e,"")},flush:function e(){if(u){this.tags.forEach(function(e){return e.parentNode.removeChild(e)});this.tags=[];this.sheet=null;this.ctr=0}else{this.sheet.cssRules=[]}this.injected=false},rules:function e(){if(!u){return this.sheet.cssRules}var e=[];this.tags.forEach(function(t){return e.splice.apply(e,[e.length,0].concat(a(Array.from(l(t).cssRules))))});return e}})},69060:function(e,t,n){"use strict";var r=n(5356);var o={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var i={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var a={"$$typeof":true,render:true,defaultProps:true,displayName:true,propTypes:true};var s={"$$typeof":true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var l={};l[r.ForwardRef]=a;l[r.Memo]=s;function u(e){if(r.isMemo(e)){return s}return l[e["$$typeof"]]||o}var c=Object.defineProperty;var f=Object.getOwnPropertyNames;var h=Object.getOwnPropertySymbols;var p=Object.getOwnPropertyDescriptor;var g=Object.getPrototypeOf;var v=Object.prototype;function m(e,t,n){if(typeof t!=="string"){if(v){var r=g(t);if(r&&r!==v){m(e,r,n)}}var o=f(t);if(h){o=o.concat(h(t))}var a=u(e);var s=u(t);for(var l=0;l<o.length;++l){var y=o[l];if(!i[y]&&!(n&&n[y])&&!(s&&s[y])&&!(a&&a[y])){var x=p(t,y);try{c(e,y,x)}catch(e){}}}}return e}e.exports=m},81113:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=typeof navigator!=="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:false;function o(e,t,n,r){if(e.addEventListener){e.addEventListener(t,n,r)}else if(e.attachEvent){e.attachEvent("on".concat(t),function(){n(window.event)})}}function i(e,t){var n=t.slice(0,t.length-1);for(var r=0;r<n.length;r++){n[r]=e[n[r].toLowerCase()]}return n}function a(e){if(typeof e!=="string")e="";e=e.replace(/\s/g,"");var t=e.split(",");var n=t.lastIndexOf("");for(;n>=0;){t[n-1]+=",";t.splice(n,1);n=t.lastIndexOf("")}return t}function s(e,t){var n=e.length>=t.length?e:t;var r=e.length>=t.length?t:e;var o=true;for(var i=0;i<n.length;i++){if(r.indexOf(n[i])===-1)o=false}return o}var l={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220};var u={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91};var c={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91};var f={16:false,18:false,17:false,91:false};var h={};for(var p=1;p<20;p++){l["f".concat(p)]=111+p}var g=[];var v=false;var m="all";var y=[];var x=function e(e){return l[e.toLowerCase()]||u[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};var w=function e(e){return Object.keys(l).find(function(t){return l[t]===e})};var b=function e(e){return Object.keys(u).find(function(t){return u[t]===e})};function S(e){m=e||"all"}function k(){return m||"all"}function j(){return g.slice(0)}function C(){return g.map(function(e){return w(e)||b(e)||String.fromCharCode(e)})}function T(e){var t=e.target||e.srcElement;var n=t.tagName;var r=true;if(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly){r=false}return r}function E(e){if(typeof e==="string"){e=x(e)}return g.indexOf(e)!==-1}function I(e,t){var n;var r;if(!e)e=k();for(var o in h){if(Object.prototype.hasOwnProperty.call(h,o)){n=h[o];for(r=0;r<n.length;){if(n[r].scope===e)n.splice(r,1);else r++}}}if(k()===e)S(t||"all")}function _(e){var t=e.keyCode||e.which||e.charCode;var n=g.indexOf(t);if(n>=0){g.splice(n,1)}if(e.key&&e.key.toLowerCase()==="meta"){g.splice(0,g.length)}if(t===93||t===224)t=91;if(t in f){f[t]=false;for(var r in u){if(u[r]===t)R[r]=false}}}function M(e){if(typeof e==="undefined"){Object.keys(h).forEach(function(e){return delete h[e]})}else if(Array.isArray(e)){e.forEach(function(e){if(e.key)D(e)})}else if(typeof e==="object"){if(e.key)D(e)}else if(typeof e==="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=n[0],i=n[1];if(typeof o==="function"){i=o;o=""}D({key:e,scope:o,method:i,splitKey:"+"})}}var D=function e(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,l=o===void 0?"+":o;var c=a(t);c.forEach(function(e){var t=e.split(l);var o=t.length;var a=t[o-1];var c=a==="*"?"*":x(a);if(!h[c])return;if(!n)n=k();var f=o>1?i(u,t):[];h[c]=h[c].filter(function(e){var t=r?e.method===r:true;return!(t&&e.scope===n&&s(e.mods,f))})})};function P(e,t,n,r){if(t.element!==r){return}var o;if(t.scope===n||t.scope==="all"){o=t.mods.length>0;for(var i in f){if(Object.prototype.hasOwnProperty.call(f,i)){if(!f[i]&&t.mods.indexOf(+i)>-1||f[i]&&t.mods.indexOf(+i)===-1){o=false}}}if(t.mods.length===0&&!f[16]&&!f[18]&&!f[17]&&!f[91]||o||t.shortcut==="*"){if(t.method(e,t)===false){if(e.preventDefault)e.preventDefault();else e.returnValue=false;if(e.stopPropagation)e.stopPropagation();if(e.cancelBubble)e.cancelBubble=true}}}}function A(e,t){var n=h["*"];var r=e.keyCode||e.which||e.charCode;if(!R.filter.call(this,e))return;if(r===93||r===224)r=91;if(g.indexOf(r)===-1&&r!==229)g.push(r);["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(t){var n=c[t];if(e[t]&&g.indexOf(n)===-1){g.push(n)}else if(!e[t]&&g.indexOf(n)>-1){g.splice(g.indexOf(n),1)}else if(t==="metaKey"&&e[t]&&g.length===3){if(!(e.ctrlKey||e.shiftKey||e.altKey)){g=g.slice(g.indexOf(n))}}});if(r in f){f[r]=true;for(var o in u){if(u[o]===r)R[o]=true}if(!n)return}for(var i in f){if(Object.prototype.hasOwnProperty.call(f,i)){f[i]=e[c[i]]}}if(e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")){if(g.indexOf(17)===-1){g.push(17)}if(g.indexOf(18)===-1){g.push(18)}f[17]=true;f[18]=true}var a=k();if(n){for(var s=0;s<n.length;s++){if(n[s].scope===a&&(e.type==="keydown"&&n[s].keydown||e.type==="keyup"&&n[s].keyup)){P(e,n[s],a,t)}}}if(!(r in h))return;for(var l=0;l<h[r].length;l++){if(e.type==="keydown"&&h[r][l].keydown||e.type==="keyup"&&h[r][l].keyup){if(h[r][l].key&&h[r][l].scope===a){var p=h[r][l];var v=p.splitKey;var m=p.key.split(v);var y=[];for(var w=0;w<m.length;w++){y.push(x(m[w]))}if(y.sort().join("")===g.slice().sort().join("")){P(e,p,a,t)}}}}}function O(e){return y.indexOf(e)>-1}function R(e,t,n){g=[];var r=a(e);var s=[];var l="all";var c=document;var f=0;var p=false;var m=true;var w="+";var b=false;if(n===undefined&&typeof t==="function"){n=t}if(Object.prototype.toString.call(t)==="[object Object]"){if(t.scope)l=t.scope;if(t.element)c=t.element;if(t.keyup)p=t.keyup;if(t.keydown!==undefined)m=t.keydown;if(t.capture!==undefined)b=t.capture;if(typeof t.splitKey==="string")w=t.splitKey}if(typeof t==="string")l=t;for(;f<r.length;f++){e=r[f].split(w);s=[];if(e.length>1)s=i(u,e);e=e[e.length-1];e=e==="*"?"*":x(e);if(!(e in h))h[e]=[];h[e].push({keyup:p,keydown:m,scope:l,mods:s,shortcut:r[f],method:n,key:r[f],splitKey:w,element:c})}if(typeof c!=="undefined"&&!O(c)&&window){y.push(c);o(c,"keydown",function(e){A(e,c)},b);if(!v){v=true;o(window,"focus",function(){g=[]},b)}o(c,"keyup",function(e){A(e,c);_(e)},b)}}function z(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"all";Object.keys(h).forEach(function(n){var r=h[n].filter(function(n){return n.scope===t&&n.shortcut===e});r.forEach(function(e){if(e&&e.method){e.method()}})})}var Z={getPressedKeyString:C,setScope:S,getScope:k,deleteScope:I,getPressedKeyCodes:j,isPressed:E,filter:T,trigger:z,unbind:M,keyMap:l,modifier:u,modifierMap:c};for(var L in Z){if(Object.prototype.hasOwnProperty.call(Z,L)){R[L]=Z[L]}}if(typeof window!=="undefined"){var N=window.hotkeys;R.noConflict=function(e){if(e&&window.hotkeys===R){window.hotkeys=N}return R};window.hotkeys=R}},60357:function(e,t,n){"use strict";n.r(t);var r=/[A-Z]/g;var o=/^ms-/;var i={};function a(e){return"-"+e.toLowerCase()}function s(e){if(i.hasOwnProperty(e)){return i[e]}var t=e.replace(r,a);return i[e]=o.test(t)?"-"+t:t}t["default"]=s},91767:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;var n=/\n/g;var r=/^\s*/;var o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;var i=/^:\s*/;var a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;var s=/^[;\s]*/;var l=/^\s+|\s+$/g;var u="\n";var c="/";var f="*";var h="";var p="comment";var g="declaration";e.exports=function(e,l){if(typeof e!=="string"){throw new TypeError("First argument must be a string")}if(!e)return[];l=l||{};var m=1;var y=1;function x(e){var t=e.match(n);if(t)m+=t.length;var r=e.lastIndexOf(u);y=~r?e.length-r:y+e.length}function w(){var e={line:m,column:y};return function(t){t.position=new b(e);C();return t}}function b(e){this.start=e;this.end={line:m,column:y};this.source=l.source}b.prototype.content=e;var S=[];function k(t){var n=new Error(l.source+":"+m+":"+y+": "+t);n.reason=t;n.filename=l.source;n.line=m;n.column=y;n.source=e;if(l.silent){S.push(n)}else{throw n}}function j(t){var n=t.exec(e);if(!n)return;var r=n[0];x(r);e=e.slice(r.length);return n}function C(){j(r)}function T(e){var t;e=e||[];while(t=E()){if(t!==false){e.push(t)}}return e}function E(){var t=w();if(c!=e.charAt(0)||f!=e.charAt(1))return;var n=2;while(h!=e.charAt(n)&&(f!=e.charAt(n)||c!=e.charAt(n+1))){++n}n+=2;if(h===e.charAt(n-1)){return k("End of comment missing")}var r=e.slice(2,n-2);y+=2;x(r);e=e.slice(n);y+=2;return t({type:p,comment:r})}function I(){var e=w();var n=j(o);if(!n)return;E();if(!j(i))return k("property missing ':'");var r=j(a);var l=e({type:g,property:v(n[0].replace(t,h)),value:r?v(r[0].replace(t,h)):h});j(s);return l}function _(){var e=[];T(e);var t;while(t=I()){if(t!==false){e.push(t);T(e)}}return e}C();return _()};function v(e){return e?e.replace(l,h):h}},13534:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("cross-fade(")>-1){return a.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})}}e.exports=t["default"]},26054:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=o;var n=["-webkit-","-moz-",""];var r={"zoom-in":true,"zoom-out":true,grab:true,grabbing:true};function o(e,t){if(e==="cursor"&&r.hasOwnProperty(t)){return n.map(function(e){return e+t})}}e.exports=t["default"]},24382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("filter(")>-1){return a.map(function(e){return t.replace(/filter\(/g,e+"filter(")})}}e.exports=t["default"]},58055:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=r;var n={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function r(e,t){if(e==="display"&&n.hasOwnProperty(t)){return n[t]}}e.exports=t["default"]},58617:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=o;var n={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"};var r={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};function o(e,t,o){if(e==="flexDirection"&&typeof t==="string"){if(t.indexOf("column")>-1){o.WebkitBoxOrient="vertical"}else{o.WebkitBoxOrient="horizontal"}if(t.indexOf("reverse")>-1){o.WebkitBoxDirection="reverse"}else{o.WebkitBoxDirection="normal"}}if(r.hasOwnProperty(e)){o[r[e]]=n[t]||t}}e.exports=t["default"]},63574:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=l;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-","-moz-",""];var s=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;function l(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&s.test(t)){return a.map(function(e){return e+t})}}e.exports=t["default"]},91247:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(68052);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=["-webkit-",""];function s(e,t){if(typeof t==="string"&&!(0,o.default)(t)&&t.indexOf("image-set(")>-1){return a.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})}}e.exports=t["default"]},34867:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t){if(e==="position"&&t==="sticky"){return["-webkit-sticky","sticky"]}}e.exports=t["default"]},98904:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=i;var n=["-webkit-","-moz-",""];var r={maxHeight:true,maxWidth:true,width:true,height:true,columnWidth:true,minWidth:true,minHeight:true};var o={"min-content":true,"max-content":true,"fill-available":true,"fit-content":true,"contain-floats":true};function i(e,t){if(r.hasOwnProperty(e)&&o.hasOwnProperty(t)){return n.map(function(e){return e+t})}}e.exports=t["default"]},29604:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=p;var r=n(66111);var o=u(r);var i=n(68052);var a=u(i);var s=n(43543);var l=u(s);function u(e){return e&&e.__esModule?e:{default:e}}var c={transition:true,transitionProperty:true,WebkitTransition:true,WebkitTransitionProperty:true,MozTransition:true,MozTransitionProperty:true};var f={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function h(e,t){if((0,a.default)(e)){return e}var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g);for(var r=0,i=n.length;r<i;++r){var s=n[r];var l=[s];for(var u in t){var c=(0,o.default)(u);if(s.indexOf(c)>-1&&c!=="order"){var h=t[u];for(var p=0,g=h.length;p<g;++p){l.unshift(s.replace(c,f[h[p]]+c))}}}n[r]=l.join(",")}return n.join(",")}function p(e,t,n,r){if(typeof t==="string"&&c.hasOwnProperty(e)){var o=h(t,r);var i=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1){return i}var a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");if(e.indexOf("Moz")>-1){return a}n["Webkit"+(0,l.default)(e)]=i;n["Moz"+(0,l.default)(e)]=a;return o}}e.exports=t["default"]},19572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=["Webkit"];var r=["Moz"];var o=["ms"];var i=["Webkit","Moz"];var a=["Webkit","ms"];var s=["Webkit","Moz","ms"];t["default"]={plugins:[],prefixMap:{"appearance":i,"userSelect":s,"textEmphasisPosition":n,"textEmphasis":n,"textEmphasisStyle":n,"textEmphasisColor":n,"boxDecorationBreak":n,"clipPath":n,"maskImage":n,"maskMode":n,"maskRepeat":n,"maskPosition":n,"maskClip":n,"maskOrigin":n,"maskSize":n,"maskComposite":n,"mask":n,"maskBorderSource":n,"maskBorderMode":n,"maskBorderSlice":n,"maskBorderWidth":n,"maskBorderOutset":n,"maskBorderRepeat":n,"maskBorder":n,"maskType":n,"textDecorationStyle":n,"textDecorationSkip":n,"textDecorationLine":n,"textDecorationColor":n,"filter":n,"fontFeatureSettings":n,"breakAfter":s,"breakBefore":s,"breakInside":s,"columnCount":i,"columnFill":i,"columnGap":i,"columnRule":i,"columnRuleColor":i,"columnRuleStyle":i,"columnRuleWidth":i,"columns":i,"columnSpan":i,"columnWidth":i,"writingMode":a,"flex":n,"flexBasis":n,"flexDirection":n,"flexGrow":n,"flexFlow":n,"flexShrink":n,"flexWrap":n,"alignContent":n,"alignItems":n,"alignSelf":n,"justifyContent":n,"order":n,"transform":n,"transformOrigin":n,"transformOriginX":n,"transformOriginY":n,"backfaceVisibility":n,"perspective":n,"perspectiveOrigin":n,"transformStyle":n,"transformOriginZ":n,"animation":n,"animationDelay":n,"animationDirection":n,"animationFillMode":n,"animationDuration":n,"animationIterationCount":n,"animationName":n,"animationPlayState":n,"animationTimingFunction":n,"backdropFilter":n,"fontKerning":n,"scrollSnapType":a,"scrollSnapPointsX":a,"scrollSnapPointsY":a,"scrollSnapDestination":a,"scrollSnapCoordinate":a,"shapeImageThreshold":n,"shapeImageMargin":n,"shapeImageOutside":n,"hyphens":s,"flowInto":a,"flowFrom":a,"regionFragment":a,"textAlignLast":r,"tabSize":r,"wrapFlow":o,"wrapThrough":o,"wrapMargin":o,"gridTemplateColumns":o,"gridTemplateRows":o,"gridTemplateAreas":o,"gridTemplate":o,"gridAutoColumns":o,"gridAutoRows":o,"gridAutoFlow":o,"grid":o,"gridRowStart":o,"gridColumnStart":o,"gridRowEnd":o,"gridRow":o,"gridColumn":o,"gridColumnEnd":o,"gridColumnGap":o,"gridRowGap":o,"gridArea":o,"gridGap":o,"textSizeAdjust":a,"borderImage":n,"borderImageOutset":n,"borderImageRepeat":n,"borderImageSlice":n,"borderImageSource":n,"borderImageWidth":n,"transitionDelay":n,"transitionDuration":n,"transitionProperty":n,"transitionTimingFunction":n}};e.exports=t["default"]},43543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e){return e.charAt(0).toUpperCase()+e.slice(1)}e.exports=t["default"]},20740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=a;var r=n(43543);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){if(e.hasOwnProperty(t)){var r=e[t];for(var i=0,a=r.length;i<a;++i){n[r[i]+(0,o.default)(t)]=n[t]}}}e.exports=t["default"]},64641:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=n;function n(e,t,n,r,o){for(var i=0,a=e.length;i<a;++i){var s=e[i](t,n,r,o);if(s){return s}}}e.exports=t["default"]},56186:function(e){/*!
|
|
22
|
+
* Determine if an object is a Buffer
|
|
23
|
+
*
|
|
24
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
25
|
+
* @license MIT
|
|
26
|
+
*/e.exports=function e(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}},42696:function(e,t,n){"use strict";const r=n(66108);const o=Symbol("max");const i=Symbol("length");const a=Symbol("lengthCalculator");const s=Symbol("allowStale");const l=Symbol("maxAge");const u=Symbol("dispose");const c=Symbol("noDisposeOnSet");const f=Symbol("lruList");const h=Symbol("cache");const p=Symbol("updateAgeOnGet");const g=()=>1;class v{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[o]=e.max||Infinity;const n=e.length||g;this[a]=typeof n!=="function"?g:n;this[s]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[u]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||Infinity;x(this)}get max(){return this[o]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;x(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=g;if(e!==this[a]){this[a]=e;this[i]=0;this[f].forEach(e=>{e.length=this[a](e.value,e.key);this[i]+=e.length})}x(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;n!==null;){const r=n.prev;S(this,e,n,t);n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;n!==null;){const r=n.next;S(this,e,n,t);n=r}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){if(this[u]&&this[f]&&this[f].length){this[f].forEach(e=>this[u](e.key,e.value))}this[h]=new Map;this[f]=new r;this[i]=0}dump(){return this[f].map(e=>y(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,n){n=n||this[l];if(n&&typeof n!=="number")throw new TypeError("maxAge must be a number");const r=n?Date.now():0;const s=this[a](t,e);if(this[h].has(e)){if(s>this[o]){w(this,this[h].get(e));return false}const a=this[h].get(e);const l=a.value;if(this[u]){if(!this[c])this[u](e,l.value)}l.now=r;l.maxAge=n;l.value=t;this[i]+=s-l.length;l.length=s;this.get(e);x(this);return true}const p=new b(e,t,s,r,n);if(p.length>this[o]){if(this[u])this[u](e,t);return false}this[i]+=p.length;this[f].unshift(p);this[h].set(e,this[f].head);x(this);return true}has(e){if(!this[h].has(e))return false;const t=this[h].get(e).value;return!y(this,t)}get(e){return m(this,e,true)}peek(e){return m(this,e,false)}pop(){const e=this[f].tail;if(!e)return null;w(this,e);return e.value}del(e){w(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n];const o=r.e||0;if(o===0)this.set(r.k,r.v);else{const e=o-t;if(e>0){this.set(r.k,r.v,e)}}}}prune(){this[h].forEach((e,t)=>m(this,t,false))}}const m=(e,t,n)=>{const r=e[h].get(t);if(r){const t=r.value;if(y(e,t)){w(e,r);if(!e[s])return undefined}else{if(n){if(e[p])r.value.now=Date.now();e[f].unshiftNode(r)}}return t.value}};const y=(e,t)=>{if(!t||!t.maxAge&&!e[l])return false;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]};const x=e=>{if(e[i]>e[o]){for(let t=e[f].tail;e[i]>e[o]&&t!==null;){const n=t.prev;w(e,t);t=n}}};const w=(e,t)=>{if(t){const n=t.value;if(e[u])e[u](n.key,n.value);e[i]-=n.length;e[h].delete(n.key);e[f].removeNode(t)}};class b{constructor(e,t,n,r,o){this.key=e;this.value=t;this.length=n;this.now=r;this.maxAge=o||0}}const S=(e,t,n,r)=>{let o=n.value;if(y(e,o)){w(e,n);if(!e[s])o=undefined}if(o)t.call(r,o.value,o.key,e)};e.exports=v},21561:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},66108:function(e,t,n){"use strict";e.exports=r;r.Node=s;r.create=r;function r(e){var t=this;if(!(t instanceof r)){t=new r}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var n=0,o=arguments.length;n<o;n++){t.push(arguments[n])}}return t}r.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var n=e.prev;if(t){t.prev=n}if(n){n.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=n}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};r.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};r.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){i(this,arguments[e])}return this.length};r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){a(this,arguments[e])}return this.length};r.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};r.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;n!==null;r++){e.call(t,n.value,r,this);n=n.next}};r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;n!==null;r--){e.call(t,n.value,r,this);n=n.prev}};r.prototype.get=function(e){for(var t=0,n=this.head;n!==null&&t<e;t++){n=n.next}if(t===e&&n!==null){return n.value}};r.prototype.getReverse=function(e){for(var t=0,n=this.tail;n!==null&&t<e;t++){n=n.prev}if(t===e&&n!==null){return n.value}};r.prototype.map=function(e,t){t=t||this;var n=new r;for(var o=this.head;o!==null;){n.push(e.call(t,o.value,this));o=o.next}return n};r.prototype.mapReverse=function(e,t){t=t||this;var n=new r;for(var o=this.tail;o!==null;){n.push(e.call(t,o.value,this));o=o.prev}return n};r.prototype.reduce=function(e,t){var n;var r=this.head;if(arguments.length>1){n=t}else if(this.head){r=this.head.next;n=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=0;r!==null;o++){n=e(n,r.value,o);r=r.next}return n};r.prototype.reduceReverse=function(e,t){var n;var r=this.tail;if(arguments.length>1){n=t}else if(this.tail){r=this.tail.prev;n=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=this.length-1;r!==null;o--){n=e(n,r.value,o);r=r.prev}return n};r.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,n=this.head;n!==null;t++){e[t]=n.value;n=n.next}return e};r.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,n=this.tail;n!==null;t++){e[t]=n.value;n=n.prev}return e};r.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new r;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var o=0,i=this.head;i!==null&&o<e;o++){i=i.next}for(;i!==null&&o<t;o++,i=i.next){n.push(i.value)}return n};r.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var n=new r;if(t<e||t<0){return n}if(e<0){e=0}if(t>this.length){t=this.length}for(var o=this.length,i=this.tail;i!==null&&o>t;o--){i=i.prev}for(;i!==null&&o>e;o--,i=i.prev){n.push(i.value)}return n};r.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,r=this.head;r!==null&&n<e;n++){r=r.next}var i=[];for(var n=0;r&&n<t;n++){i.push(r.value);r=this.removeNode(r)}if(r===null){r=this.tail}if(r!==this.head&&r!==this.tail){r=r.prev}for(var n=2;n<arguments.length;n++){r=o(this,r,arguments[n])}return i};r.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var n=e;n!==null;n=n.prev){var r=n.prev;n.prev=n.next;n.next=r}this.head=t;this.tail=e;return this};function o(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);if(r.next===null){e.tail=r}if(r.prev===null){e.head=r}e.length++;return r}function i(e,t){e.tail=new s(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function a(e,t){e.head=new s(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function s(e,t,n,r){if(!(this instanceof s)){return new s(e,t,n,r)}this.list=r;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(n){n.prev=this;this.next=n}else{this.next=null}}try{n(21561)(r)}catch(e){}},99024:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=Number.isNaN||function e(e){return typeof e==="number"&&e!==e};function o(e,t){if(e===t){return true}if(r(e)&&r(t)){return true}return false}function i(e,t){if(e.length!==t.length){return false}for(var n=0;n<e.length;n++){if(!o(e[n],t[n])){return false}}return true}function a(e,t){if(t===void 0){t=i}var n=null;function r(){var r=[];for(var o=0;o<arguments.length;o++){r[o]=arguments[o]}if(n&&n.lastThis===this&&t(r,n.lastArgs)){return n.lastResult}var i=e.apply(this,r);n={lastResult:i,lastArgs:r,lastThis:this};return i}r.clear=function e(){n=null};return r}},4439:function(e){"use strict";/*
|
|
27
|
+
object-assign
|
|
28
|
+
(c) Sindre Sorhus
|
|
29
|
+
@license MIT
|
|
30
|
+
*/var t=Object.getOwnPropertySymbols;var n=Object.prototype.hasOwnProperty;var r=Object.prototype.propertyIsEnumerable;function o(e){if(e===null||e===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(e)}function i(){try{if(!Object.assign){return false}var e=new String("abc");e[5]="de";if(Object.getOwnPropertyNames(e)[0]==="5"){return false}var t={};for(var n=0;n<10;n++){t["_"+String.fromCharCode(n)]=n}var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if(r.join("")!=="0123456789"){return false}var o={};"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e});if(Object.keys(Object.assign({},o)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(e){return false}}e.exports=i()?Object.assign:function(e,i){var a;var s=o(e);var l;for(var u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var c in a){if(n.call(a,c)){s[c]=a[c]}}if(t){l=t(a);for(var f=0;f<l.length;f++){if(r.call(a,l[f])){s[l[f]]=a[l[f]]}}}}return s}},7851:function(e,t,n){/*!
|
|
31
|
+
* Pikaday
|
|
32
|
+
*
|
|
33
|
+
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
34
|
+
*/(function(t,r){"use strict";var o;if(true){try{o=n(Object(function e(){var e=new Error("Cannot find module 'moment'");e.code="MODULE_NOT_FOUND";throw e}()))}catch(e){}e.exports=r(o)}else{}})(this,function(e){"use strict";var t=typeof e==="function",n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){if(n){e.addEventListener(t,r,!!o)}else{e.attachEvent("on"+t,r)}},a=function(e,t,r,o){if(n){e.removeEventListener(t,r,!!o)}else{e.detachEvent("on"+t,r)}},s=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")!==-1},u=function(e,t){if(!l(e,t)){e.className=e.className===""?t:e.className+" "+t}},c=function(e,t){e.className=s((" "+e.className+" ").replace(" "+t+" "," "))},f=function(e){return/Array/.test(Object.prototype.toString.call(e))},h=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return t===0||t===6},g=function(e){return e%4===0&&e%100!==0||e%400===0},v=function(e,t){return[31,g(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},m=function(e){if(h(e))e.setHours(0,0,0,0)},y=function(e,t){return e.getTime()===t.getTime()},x=function(e,t,n){var r,o;for(r in t){o=e[r]!==undefined;if(o&&typeof t[r]==="object"&&t[r]!==null&&t[r].nodeName===undefined){if(h(t[r])){if(n){e[r]=new Date(t[r].getTime())}}else if(f(t[r])){if(n){e[r]=t[r].slice(0)}}else{e[r]=x({},t[r],n)}}else if(n||!o){e[r]=t[r]}}return e},w=function(e,t,n){var o;if(r.createEvent){o=r.createEvent("HTMLEvents");o.initEvent(t,true,false);o=x(o,n);e.dispatchEvent(o)}else if(r.createEventObject){o=r.createEventObject();o=x(o,n);e.fireEvent("on"+t,o)}},b=function(e){if(e.month<0){e.year-=Math.ceil(Math.abs(e.month)/12);e.month+=12}if(e.month>11){e.year+=Math.floor(Math.abs(e.month)/12);e.month-=12}return e},S={field:null,bound:undefined,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:true,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:false,firstDay:0,formatStrict:false,minDate:null,maxDate:null,yearRange:10,showWeekNumber:false,pickWholeWeek:false,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:false,yearSuffix:"",showMonthAfterYear:false,showDaysInNextAndPreviousMonths:false,enableSelectionDaysInNextAndPreviousMonths:false,numberOfMonths:1,mainCalendar:"left",container:undefined,blurFieldOnSelect:true,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:true},k=function(e,t,n){t+=e.firstDay;while(t>=7){t-=7}return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},j=function(e){var t=[];var n="false";if(e.isEmpty){if(e.showDaysInNextAndPreviousMonths){t.push("is-outside-current-month");if(!e.enableSelectionDaysInNextAndPreviousMonths){t.push("is-selection-disabled")}}else{return'<td class="is-empty"></td>'}}if(e.isDisabled){t.push("is-disabled")}if(e.isToday){t.push("is-today")}if(e.isSelected){t.push("is-selected");n="true"}if(e.hasEvent){t.push("has-event")}if(e.isInRange){t.push("is-inrange")}if(e.isStartRange){t.push("is-startrange")}if(e.isEndRange){t.push("is-endrange")}return'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'">'+'<button class="pika-button pika-day" type="button" '+'data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button>"+"</td>"},C=function(e,t,n){var r=new Date(n,0,1),o=Math.ceil(((new Date(n,t,e)-r)/864e5+r.getDay()+1)/7);return'<td class="pika-week">'+o+"</td>"},T=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},E=function(e){return"<tbody>"+e.join("")+"</tbody>"},I=function(e){var t,n=[];if(e.showWeekNumber){n.push("<th></th>")}for(t=0;t<7;t++){n.push('<th scope="col"><abbr title="'+k(e,t)+'">'+k(e,t,true)+"</abbr></th>")}return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},_=function(e,t,n,r,o,i){var a,s,l,u=e._o,c=n===u.minYear,h=n===u.maxYear,p='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',g,v,m=true,y=true;for(l=[],a=0;a<12;a++){l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(c&&a<u.minMonth||h&&a>u.maxMonth?'disabled="disabled"':"")+">"+u.i18n.months[a]+"</option>")}g='<div class="pika-label">'+u.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>";if(f(u.yearRange)){a=u.yearRange[0];s=u.yearRange[1]+1}else{a=n-u.yearRange;s=1+n+u.yearRange}for(l=[];a<s&&a<=u.maxYear;a++){if(a>=u.minYear){l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>")}}v='<div class="pika-label">'+n+u.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>";if(u.showMonthAfterYear){p+=v+g}else{p+=g+v}if(c&&(r===0||u.minMonth>=r)){m=false}if(h&&(r===11||u.maxMonth<=r)){y=false}if(t===0){p+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+u.i18n.previousMonth+"</button>"}if(t===e._o.numberOfMonths-1){p+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+u.i18n.nextMonth+"</button>"}return p+="</div>"},M=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+I(e)+E(t)+"</table>"},D=function(a){var s=this,u=s.config(a);s._onMouseDown=function(e){if(!s._v){return}e=e||window.event;var t=e.target||e.srcElement;if(!t){return}if(!l(t,"is-disabled")){if(l(t,"pika-button")&&!l(t,"is-empty")&&!l(t.parentNode,"is-disabled")){s.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day")));if(u.bound){o(function(){s.hide();if(u.blurFieldOnSelect&&u.field){u.field.blur()}},100)}}else if(l(t,"pika-prev")){s.prevMonth()}else if(l(t,"pika-next")){s.nextMonth()}}if(!l(t,"pika-select")){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false;return false}}else{s._c=true}};s._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;if(!t){return}if(l(t,"pika-select-month")){s.gotoMonth(t.value)}else if(l(t,"pika-select-year")){s.gotoYear(t.value)}};s._onKeyChange=function(e){e=e||window.event;if(s.isVisible()){switch(e.keyCode){case 13:case 27:if(u.field){u.field.blur()}break;case 37:e.preventDefault();s.adjustDate("subtract",1);break;case 38:s.adjustDate("subtract",7);break;case 39:s.adjustDate("add",1);break;case 40:s.adjustDate("add",7);break}}};s._onInputChange=function(n){var r;if(n.firedBy===s){return}if(u.parse){r=u.parse(u.field.value,u.format)}else if(t){r=e(u.field.value,u.format,u.formatStrict);r=r&&r.isValid()?r.toDate():null}else{r=new Date(Date.parse(u.field.value))}if(h(r)){s.setDate(r)}if(!s._v){s.show()}};s._onInputFocus=function(){s.show()};s._onInputClick=function(){s.show()};s._onInputBlur=function(){var e=r.activeElement;do{if(l(e,"pika-single")){return}}while(e=e.parentNode);if(!s._c){s._b=o(function(){s.hide()},50)}s._c=false};s._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,r=t;if(!t){return}if(!n&&l(t,"pika-select")){if(!t.onchange){t.setAttribute("onchange","return;");i(t,"change",s._onChange)}}do{if(l(r,"pika-single")||r===u.trigger){return}}while(r=r.parentNode);if(s._v&&t!==u.trigger&&r!==u.trigger){s.hide()}};s.el=r.createElement("div");s.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:"");i(s.el,"mousedown",s._onMouseDown,true);i(s.el,"touchend",s._onMouseDown,true);i(s.el,"change",s._onChange);if(u.keyboardInput){i(r,"keydown",s._onKeyChange)}if(u.field){if(u.container){u.container.appendChild(s.el)}else if(u.bound){r.body.appendChild(s.el)}else{u.field.parentNode.insertBefore(s.el,u.field.nextSibling)}i(u.field,"change",s._onInputChange);if(!u.defaultDate){if(t&&u.field.value){u.defaultDate=e(u.field.value,u.format).toDate()}else{u.defaultDate=new Date(Date.parse(u.field.value))}u.setDefaultDate=true}}var c=u.defaultDate;if(h(c)){if(u.setDefaultDate){s.setDate(c,true)}else{s.gotoDate(c)}}else{s.gotoDate(new Date)}if(u.bound){this.hide();s.el.className+=" is-bound";i(u.trigger,"click",s._onInputClick);i(u.trigger,"focus",s._onInputFocus);i(u.trigger,"blur",s._onInputBlur)}else{this.show()}};D.prototype={config:function(e){if(!this._o){this._o=x({},S,true)}var t=x(this._o,e,true);t.isRTL=!!t.isRTL;t.field=t.field&&t.field.nodeName?t.field:null;t.theme=typeof t.theme==="string"&&t.theme?t.theme:null;t.bound=!!(t.bound!==undefined?t.field&&t.bound:t.field);t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field;t.disableWeekends=!!t.disableWeekends;t.disableDayFn=typeof t.disableDayFn==="function"?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;t.numberOfMonths=n>4?4:n;if(!h(t.minDate)){t.minDate=false}if(!h(t.maxDate)){t.maxDate=false}if(t.minDate&&t.maxDate&&t.maxDate<t.minDate){t.maxDate=t.minDate=false}if(t.minDate){this.setMinDate(t.minDate)}if(t.maxDate){this.setMaxDate(t.maxDate)}if(f(t.yearRange)){var r=new Date().getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r;t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else{t.yearRange=Math.abs(parseInt(t.yearRange,10))||S.yearRange;if(t.yearRange>100){t.yearRange=100}}return t},toString:function(n){n=n||this._o.format;if(!h(this._d)){return""}if(this._o.toString){return this._o.toString(this._d,n)}if(t){return e(this._d).format(n)}return this._d.toDateString()},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){if(t&&e.isMoment(n)){this.setDate(n.toDate(),r)}},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e){this._d=null;if(this._o.field){this._o.field.value="";w(this._o.field,"change",{firedBy:this})}return this.draw()}if(typeof e==="string"){e=new Date(Date.parse(e))}if(!h(e)){return}var n=this._o.minDate,r=this._o.maxDate;if(h(n)&&e<n){e=n}else if(h(r)&&e>r){e=r}this._d=new Date(e.getTime());m(this._d);this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString();w(this._o.field,"change",{firedBy:this})}if(!t&&typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=true;if(!h(e)){return}if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1);r.setDate(r.getDate()-1);t=o<n.getTime()||r.getTime()<o}if(t){this.calendars=[{month:e.getMonth(),year:e.getFullYear()}];if(this._o.mainCalendar==="right"){this.calendars[0].month+=1-this._o.numberOfMonths}}this.adjustCalendars()},adjustDate:function(e,t){var n=this.getDate()||new Date;var r=parseInt(t)*24*60*60*1e3;var o;if(e==="add"){o=new Date(n.valueOf()+r)}else if(e==="subtract"){o=new Date(n.valueOf()-r)}this.setDate(o)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++){this.calendars[e]=b({month:this.calendars[0].month+e,year:this.calendars[0].year})}this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){if(!isNaN(e)){this.calendars[0].month=parseInt(e,10);this.adjustCalendars()}},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(e){if(!isNaN(e)){this.calendars[0].year=parseInt(e,10);this.adjustCalendars()}},setMinDate:function(e){if(e instanceof Date){m(e);this._o.minDate=e;this._o.minYear=e.getFullYear();this._o.minMonth=e.getMonth()}else{this._o.minDate=S.minDate;this._o.minYear=S.minYear;this._o.minMonth=S.minMonth;this._o.startRange=S.startRange}this.draw()},setMaxDate:function(e){if(e instanceof Date){m(e);this._o.maxDate=e;this._o.maxYear=e.getFullYear();this._o.maxMonth=e.getMonth()}else{this._o.maxDate=S.maxDate;this._o.maxYear=S.maxYear;this._o.maxMonth=S.maxMonth;this._o.endRange=S.endRange}this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(!this._v&&!e){return}var t=this._o,n=t.minYear,r=t.maxYear,i=t.minMonth,a=t.maxMonth,s="",l;if(this._y<=n){this._y=n;if(!isNaN(i)&&this._m<i){this._m=i}}if(this._y>=r){this._y=r;if(!isNaN(a)&&this._m>a){this._m=a}}l="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<t.numberOfMonths;u++){s+='<div class="pika-lendar">'+_(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,l)+this.render(this.calendars[u].year,this.calendars[u].month,l)+"</div>"}this.el.innerHTML=s;if(t.bound){if(t.field.type!=="hidden"){o(function(){t.trigger.focus()},1)}}if(typeof this._o.onDraw==="function"){this._o.onDraw(this)}if(t.bound){t.field.setAttribute("aria-label",t.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,l,f,h,p,g;if(this._o.container)return;this.el.style.position="absolute";e=this._o.trigger;t=e;n=this.el.offsetWidth;o=this.el.offsetHeight;i=window.innerWidth||r.documentElement.clientWidth;a=window.innerHeight||r.documentElement.clientHeight;s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop;p=true;g=true;if(typeof e.getBoundingClientRect==="function"){h=e.getBoundingClientRect();l=h.left+window.pageXOffset;f=h.bottom+window.pageYOffset}else{l=t.offsetLeft;f=t.offsetTop+t.offsetHeight;while(t=t.offsetParent){l+=t.offsetLeft;f+=t.offsetTop}}if(this._o.reposition&&l+n>i||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0){l=l-n+e.offsetWidth;p=false}if(this._o.reposition&&f+o>a+s||this._o.position.indexOf("top")>-1&&f-o-e.offsetHeight>0){f=f-o-e.offsetHeight;g=false}this.el.style.left=l+"px";this.el.style.top=f+"px";u(this.el,p?"left-aligned":"right-aligned");u(this.el,g?"bottom-aligned":"top-aligned");c(this.el,!p?"left-aligned":"right-aligned");c(this.el,!g?"bottom-aligned":"top-aligned")},render:function(e,t,n){var r=this._o,o=new Date,i=v(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];m(o);if(r.firstDay>0){a-=r.firstDay;if(a<0){a+=7}}var u=t===0?11:t-1,c=t===11?0:t+1,f=t===0?e-1:e,g=t===11?e+1:e,x=v(f,u);var w=i+a,b=w;while(b>7){b-=7}w+=7-b;var S=false;for(var k=0,E=0;k<w;k++){var I=new Date(e,t,1+(k-a)),_=h(this._d)?y(I,this._d):false,D=y(I,o),P=r.events.indexOf(I.toDateString())!==-1?true:false,A=k<a||k>=i+a,O=1+(k-a),R=t,z=e,Z=r.startRange&&y(r.startRange,I),L=r.endRange&&y(r.endRange,I),N=r.startRange&&r.endRange&&r.startRange<I&&I<r.endRange,B=r.minDate&&I<r.minDate||r.maxDate&&I>r.maxDate||r.disableWeekends&&p(I)||r.disableDayFn&&r.disableDayFn(I);if(A){if(k<a){O=x+O;R=u;z=f}else{O=O-i;R=c;z=g}}var H={day:O,month:R,year:z,hasEvent:P,isSelected:_,isToday:D,isDisabled:B,isEmpty:A,isStartRange:Z,isEndRange:L,isInRange:N,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};if(r.pickWholeWeek&&_){S=true}l.push(j(H));if(++E===7){if(r.showWeekNumber){l.unshift(C(k-a,t,e))}s.push(T(l,r.isRTL,r.pickWholeWeek,S));l=[];E=0;S=false}}return M(r,s,n)},isVisible:function(){return this._v},show:function(){if(!this.isVisible()){this._v=true;this.draw();c(this.el,"is-hidden");if(this._o.bound){i(r,"click",this._onClick);this.adjustPosition()}if(typeof this._o.onOpen==="function"){this._o.onOpen.call(this)}}},hide:function(){var e=this._v;if(e!==false){if(this._o.bound){a(r,"click",this._onClick)}this.el.style.position="static";this.el.style.left="auto";this.el.style.top="auto";u(this.el,"is-hidden");this._v=false;if(e!==undefined&&typeof this._o.onClose==="function"){this._o.onClose.call(this)}}},destroy:function(){var e=this._o;this.hide();a(this.el,"mousedown",this._onMouseDown,true);a(this.el,"touchend",this._onMouseDown,true);a(this.el,"change",this._onChange);if(e.keyboardInput){a(r,"keydown",this._onKeyChange)}if(e.field){a(e.field,"change",this._onInputChange);if(e.bound){a(e.trigger,"click",this._onInputClick);a(e.trigger,"focus",this._onInputFocus);a(e.trigger,"blur",this._onInputBlur)}}if(this.el.parentNode){this.el.parentNode.removeChild(this.el)}}};return D})},57730:function(e,t,n){"use strict";var r=n(12017);function o(){}function i(){}i.resetWarningCache=o;e.exports=function(){function e(e,t,n,o,i,a){if(a===r){return}var s=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");s.name="Invariant Violation";throw s};e.isRequired=e;function t(){return e};var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};n.PropTypes=n;return n}},97641:function(e,t,n){if(false){var r,o}else{e.exports=n(57730)()}},12017:function(e){"use strict";var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=t},33936:function(e,t,n){"use strict";/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom.production.min.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var r=n(66204),o=n(46489);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t);u(e+"Capture",t)}function u(e,t){s[e]=t;for(e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},g={};function v(e){if(f.call(g,e))return!0;if(f.call(p,e))return!1;if(h.test(e))return g[e]=!0;p[e]=!0;return!1}function m(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;e=e.toLowerCase().slice(0,5);return"data-"!==e&&"aria-"!==e;default:return!1}}function y(e,t,n,r){if(null===t||"undefined"===typeof t||m(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function x(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t;this.attributeName=r;this.attributeNamespace=o;this.mustUseProperty=n;this.propertyName=e;this.type=t;this.sanitizeURL=i;this.removeEmptyString=a}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){w[e]=new x(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];w[t]=new x(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){w[e]=new x(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){w[e]=new x(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){w[e]=new x(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){w[e]=new x(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){w[e]=new x(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){w[e]=new x(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){w[e]=new x(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(b,S);w[t]=new x(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(b,S);w[t]=new x(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(b,S);w[t]=new x(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){w[e]=new x(e,1,!1,e.toLowerCase(),null,!1,!1)});w.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){w[e]=new x(e,1,!1,e.toLowerCase(),null,!0,!0)});function k(e,t,n,r){var o=w.hasOwnProperty(t)?w[t]:null;if(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])y(t,n,o,r)&&(n=null),r||null===o?v(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3===o.type?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(o=o.type,n=3===o||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)))}var j=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),D=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),z=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var L=Symbol.iterator;function N(e){if(null===e||"object"!==typeof e)return null;e=L&&e[L]||e["@@iterator"];return"function"===typeof e?e:null}var B=Object.assign,H;function F(e){if(void 0===H)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var V=!1;function W(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"===typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s){do if(a--,s--,0>s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName));return l}while(1<=a&&0<=s)}break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function U(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case E:return"Fragment";case T:return"Portal";case _:return"Profiler";case I:return"StrictMode";case A:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case D:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;e=e.displayName;e||(e=t.displayName||t.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef");return e;case R:return t=e.displayName||null,null!==t?t:$(e.type)||"Memo";case z:t=e._payload;e=e._init;try{return $(e(t))}catch(e){}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e;i.call(this,e)}});Object.defineProperty(e,t,{enumerable:n.enumerable});return{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null;delete e[t]}}}}function X(e){e._valueTracker||(e._valueTracker=G(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue();var r="";e&&(r=Y(e)?e.checked?"true":"false":e.value);e=r;return e!==n?(t.setValue(e),!0):!1}function J(e){e=e||("undefined"!==typeof document?document:void 0);if("undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ee(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function et(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n);e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function en(e,t){t=t.checked;null!=t&&k(e,"checked",t,!1)}function er(e,t){en(e,t);var n=q(t.value),r=t.type;if(null!=n)if("number"===r){if(0===n&&""===e.value||e.value!=n)e.value=""+n}else e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}t.hasOwnProperty("value")?ei(e,t.type,n):t.hasOwnProperty("defaultValue")&&ei(e,t.type,q(t.defaultValue));null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function eo(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue;n||t===e.value||(e.value=t);e.defaultValue=t}n=e.name;""!==n&&(e.name="");e.defaultChecked=!!e._wrapperState.initialChecked;""!==n&&(e.name=n)}function ei(e,t,n){if("number"!==t||J(e.ownerDocument)!==e)null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n)}var ea=Array.isArray;function es(e,t,n,r){e=e.options;if(t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{n=""+q(n);t=null;for(o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0;r&&(e[o].defaultSelected=!0);return}null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function el(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return B({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eu(e,t){var n=t.value;if(null==n){n=t.children;t=t.defaultValue;if(null!=n){if(null!=t)throw Error(i(92));if(ea(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t="");n=t}e._wrapperState={initialValue:q(n)}}function ec(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n));null!=r&&(e.defaultValue=""+r)}function ed(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ef(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eh(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ef(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ep,eg=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{ep=ep||document.createElement("div");ep.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(t=ep.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ev(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var em={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ey=["Webkit","ms","Moz","O"];Object.keys(em).forEach(function(e){ey.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1);em[t]=em[e]})});function ex(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||em.hasOwnProperty(e)&&em[e]?(""+t).trim():t+"px"}function ew(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ex(n,t[n],r);"float"===n&&(n="cssFloat");r?e.setProperty(n,o):e[n]=o}}var eb=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function eS(e,t){if(t){if(eb[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ek(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ej=null;function eC(e){e=e.target||e.srcElement||window;e.correspondingUseElement&&(e=e.correspondingUseElement);return 3===e.nodeType?e.parentNode:e}var eT=null,eE=null,eI=null;function e_(e){if(e=oo(e)){if("function"!==typeof eT)throw Error(i(280));var t=e.stateNode;t&&(t=oa(t),eT(e.stateNode,e.type,t))}}function eM(e){eE?eI?eI.push(e):eI=[e]:eE=e}function eD(){if(eE){var e=eE,t=eI;eI=eE=null;e_(e);if(t)for(e=0;e<t.length;e++)e_(t[e])}}function eP(e,t){return e(t)}function eA(){}var eO=!1;function eR(e,t,n){if(eO)return e(t,n);eO=!0;try{return eP(e,t,n)}finally{if(eO=!1,null!==eE||null!==eI)eA(),eD()}}function ez(e,t){var n=e.stateNode;if(null===n)return null;var r=oa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e));e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var eZ=!1;if(c)try{var eL={};Object.defineProperty(eL,"passive",{get:function(){eZ=!0}});window.addEventListener("test",eL,eL);window.removeEventListener("test",eL,eL)}catch(e){eZ=!1}function eN(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var eB=!1,eH=null,eF=!1,eV=null,eW={onError:function(e){eB=!0;eH=e}};function eU(e,t,n,r,o,i,a,s,l){eB=!1;eH=null;eN.apply(eW,arguments)}function e$(e,t,n,r,o,a,s,l,u){eU.apply(this,arguments);if(eB){if(eB){var c=eH;eB=!1;eH=null}else throw Error(i(198));eF||(eF=!0,eV=c)}}function eK(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,0!==(t.flags&4098)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function eq(e){if(13===e.tag){var t=e.memoizedState;null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState));if(null!==t)return t.dehydrated}return null}function eY(e){if(eK(e)!==e)throw Error(i(188))}function eG(e){var t=e.alternate;if(!t){t=eK(e);if(null===t)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){r=o.return;if(null!==r){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return eY(o),e;if(a===r)return eY(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0;n=o;r=a;break}if(l===r){s=!0;r=o;n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0;n=a;r=o;break}if(l===r){s=!0;r=a;n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function eX(e){e=eG(e);return null!==e?eQ(e):null}function eQ(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=eQ(e);if(null!==t)return t;e=e.sibling}return null}var eJ=o.unstable_scheduleCallback,e0=o.unstable_cancelCallback,e1=o.unstable_shouldYield,e2=o.unstable_requestPaint,e4=o.unstable_now,e5=o.unstable_getCurrentPriorityLevel,e3=o.unstable_ImmediatePriority,e6=o.unstable_UserBlockingPriority,e8=o.unstable_NormalPriority,e7=o.unstable_LowPriority,e9=o.unstable_IdlePriority,te=null,tt=null;function tn(e){if(tt&&"function"===typeof tt.onCommitFiberRoot)try{tt.onCommitFiberRoot(te,e,void 0,128===(e.current.flags&128))}catch(e){}}var tr=Math.clz32?Math.clz32:ta,to=Math.log,ti=Math.LN2;function ta(e){e>>>=0;return 0===e?32:31-(to(e)/ti|0)|0}var ts=64,tl=4194304;function tu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function tc(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(0!==a){var s=a&~o;0!==s?r=tu(s):(i&=a,0!==i&&(r=tu(i)))}else a=n&~o,0!==a?r=tu(a):0!==i&&(r=tu(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&(o=r&-r,i=t&-t,o>=i||16===o&&0!==(i&4194240)))return t;0!==(r&4)&&(r|=n&16);t=e.entangledLanes;if(0!==t)for(e=e.entanglements,t&=r;0<t;)n=31-tr(t),o=1<<n,r|=e[n],t&=~o;return r}function td(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-tr(i),s=1<<a,l=o[a];if(-1===l){if(0===(s&n)||0!==(s&r))o[a]=td(s,t)}else l<=t&&(e.expiredLanes|=s);i&=~s}}function th(e){e=e.pendingLanes&-1073741825;return 0!==e?e:e&1073741824?1073741824:0}function tp(){var e=ts;ts<<=1;0===(ts&4194240)&&(ts=64);return e}function tg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tv(e,t,n){e.pendingLanes|=t;536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0);e=e.eventTimes;t=31-tr(t);e[t]=n}function tm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t;e.suspendedLanes=0;e.pingedLanes=0;e.expiredLanes&=t;e.mutableReadLanes&=t;e.entangledLanes&=t;t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-tr(n),i=1<<o;t[o]=0;r[o]=-1;e[o]=-1;n&=~i}}function ty(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-tr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t);n&=~o}}var tx=0;function tw(e){e&=-e;return 1<e?4<e?0!==(e&268435455)?16:536870912:4:1}var tb,tS,tk,tj,tC,tT=!1,tE=[],tI=null,t_=null,tM=null,tD=new Map,tP=new Map,tA=[],tO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function tR(e,t){switch(e){case"focusin":case"focusout":tI=null;break;case"dragenter":case"dragleave":t_=null;break;case"mouseover":case"mouseout":tM=null;break;case"pointerover":case"pointerout":tD.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tP.delete(t.pointerId)}}function tz(e,t,n,r,o,i){if(null===e||e.nativeEvent!==i)return e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(t=oo(t),null!==t&&tS(t)),e;e.eventSystemFlags|=r;t=e.targetContainers;null!==o&&-1===t.indexOf(o)&&t.push(o);return e}function tZ(e,t,n,r,o){switch(t){case"focusin":return tI=tz(tI,e,t,n,r,o),!0;case"dragenter":return t_=tz(t_,e,t,n,r,o),!0;case"mouseover":return tM=tz(tM,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;tD.set(i,tz(tD.get(i)||null,e,t,n,r,o));return!0;case"gotpointercapture":return i=o.pointerId,tP.set(i,tz(tP.get(i)||null,e,t,n,r,o)),!0}return!1}function tL(e){var t=on(e.target);if(null!==t){var n=eK(t);if(null!==n){if(t=n.tag,13===t){if(t=eq(n),null!==t){e.blockedOn=t;tC(e.priority,function(){tk(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tN(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=tG(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null===n){n=e.nativeEvent;var r=new n.constructor(n.type,n);ej=r;n.target.dispatchEvent(r);ej=null}else return t=oo(n),null!==t&&tS(t),e.blockedOn=n,!1;t.shift()}return!0}function tB(e,t,n){tN(e)&&n.delete(t)}function tH(){tT=!1;null!==tI&&tN(tI)&&(tI=null);null!==t_&&tN(t_)&&(t_=null);null!==tM&&tN(tM)&&(tM=null);tD.forEach(tB);tP.forEach(tB)}function tF(e,t){e.blockedOn===t&&(e.blockedOn=null,tT||(tT=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,tH)))}function tV(e){function t(t){return tF(t,e)}if(0<tE.length){tF(tE[0],e);for(var n=1;n<tE.length;n++){var r=tE[n];r.blockedOn===e&&(r.blockedOn=null)}}null!==tI&&tF(tI,e);null!==t_&&tF(t_,e);null!==tM&&tF(tM,e);tD.forEach(t);tP.forEach(t);for(n=0;n<tA.length;n++)r=tA[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tA.length&&(n=tA[0],null===n.blockedOn);)tL(n),null===n.blockedOn&&tA.shift()}var tW=j.ReactCurrentBatchConfig,tU=!0;function t$(e,t,n,r){var o=tx,i=tW.transition;tW.transition=null;try{tx=1,tq(e,t,n,r)}finally{tx=o,tW.transition=i}}function tK(e,t,n,r){var o=tx,i=tW.transition;tW.transition=null;try{tx=4,tq(e,t,n,r)}finally{tx=o,tW.transition=i}}function tq(e,t,n,r){if(tU){var o=tG(e,t,n,r);if(null===o)rL(e,t,r,tY,n),tR(e,r);else if(tZ(o,e,t,n,r))r.stopPropagation();else if(tR(e,r),t&4&&-1<tO.indexOf(e)){for(;null!==o;){var i=oo(o);null!==i&&tb(i);i=tG(e,t,n,r);null===i&&rL(e,t,r,tY,n);if(i===o)break;o=i}null!==o&&r.stopPropagation()}else rL(e,t,r,null,n)}}var tY=null;function tG(e,t,n,r){tY=null;e=eC(r);e=on(e);if(null!==e)if(t=eK(e),null===t)e=null;else if(n=t.tag,13===n){e=eq(t);if(null!==e)return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);tY=e;return null}function tX(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(e5()){case e3:return 1;case e6:return 4;case e8:case e7:return 16;case e9:return 536870912;default:return 16}default:return 16}}var tQ=null,tJ=null,t0=null;function t1(){if(t0)return t0;var e,t=tJ,n=t.length,r,o="value"in tQ?tQ.value:tQ.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return t0=o.slice(e,1<r?1-r:void 0)}function t2(e){var t=e.keyCode;"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t;10===e&&(e=13);return 32<=e||13===e?e:0}function t4(){return!0}function t5(){return!1}function t3(e){function t(t,n,r,o,i){this._reactName=t;this._targetInst=r;this.type=n;this.nativeEvent=o;this.target=i;this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?t4:t5;this.isPropagationStopped=t5;return this}B(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=t4)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=t4)},persist:function(){},isPersistent:t4});return t}var t6={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t8=t3(t6),t7=B({},t6,{view:0,detail:0}),t9=t3(t7),ne,nt,nn,no=B({},t7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nw,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;e!==nn&&(nn&&"mousemove"===e.type?(ne=e.screenX-nn.screenX,nt=e.screenY-nn.screenY):nt=ne=0,nn=e);return ne},movementY:function(e){return"movementY"in e?e.movementY:nt}}),ni=t3(no),na=B({},no,{dataTransfer:0}),ns=t3(na),nl=B({},t7,{relatedTarget:0}),nu=t3(nl),nc=B({},t6,{animationName:0,elapsedTime:0,pseudoElement:0}),nd=t3(nc),nf=B({},t6,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nh=t3(nf),np=B({},t6,{data:0}),ng=t3(np),nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ny[e])?!!t[e]:!1}function nw(){return nx}var nb=B({},t7,{key:function(e){if(e.key){var t=nv[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=t2(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?nm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nw,charCode:function(e){return"keypress"===e.type?t2(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?t2(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nS=t3(nb),nk=B({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nj=t3(nk),nC=B({},t7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nw}),nT=t3(nC),nE=B({},t6,{propertyName:0,elapsedTime:0,pseudoElement:0}),nI=t3(nE),n_=B({},no,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nM=t3(n_),nD=[9,13,27,32],nP=c&&"CompositionEvent"in window,nA=null;c&&"documentMode"in document&&(nA=document.documentMode);var nO=c&&"TextEvent"in window&&!nA,nR=c&&(!nP||nA&&8<nA&&11>=nA),nz=String.fromCharCode(32),nZ=!1;function nL(e,t){switch(e){case"keyup":return-1!==nD.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nN(e){e=e.detail;return"object"===typeof e&&"data"in e?e.data:null}var nB=!1;function nH(e,t){switch(e){case"compositionend":return nN(t);case"keypress":if(32!==t.which)return null;nZ=!0;return nz;case"textInput":return e=t.data,e===nz&&nZ?null:e;default:return null}}function nF(e,t){if(nB)return"compositionend"===e||!nP&&nL(e,t)?(e=t1(),t0=tJ=tQ=null,nB=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nR&&"ko"!==t.locale?null:t.data;default:return null}}var nV={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nW(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!nV[e.type]:"textarea"===t?!0:!1}function nU(e,t,n,r){eM(r);t=rB(t,"onChange");0<t.length&&(n=new t8("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var n$=null,nK=null;function nq(e){rP(e,0)}function nY(e){var t=oi(e);if(Q(t))return e}function nG(e,t){if("change"===e)return t}var nX=!1;if(c){var nQ;if(c){var nJ="oninput"in document;if(!nJ){var n0=document.createElement("div");n0.setAttribute("oninput","return;");nJ="function"===typeof n0.oninput}nQ=nJ}else nQ=!1;nX=nQ&&(!document.documentMode||9<document.documentMode)}function n1(){n$&&(n$.detachEvent("onpropertychange",n2),nK=n$=null)}function n2(e){if("value"===e.propertyName&&nY(nK)){var t=[];nU(t,nK,e,eC(e));eR(nq,t)}}function n4(e,t,n){"focusin"===e?(n1(),n$=t,nK=n,n$.attachEvent("onpropertychange",n2)):"focusout"===e&&n1()}function n5(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nY(nK)}function n3(e,t){if("click"===e)return nY(t)}function n6(e,t){if("input"===e||"change"===e)return nY(t)}function n8(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var n7="function"===typeof Object.is?Object.is:n8;function n9(e,t){if(n7(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!n7(e[o],t[o]))return!1}return!0}function re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rt(e,t){var n=re(e);e=0;for(var r;n;){if(3===n.nodeType){r=e+n.textContent.length;if(e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=re(n)}}function rn(e,t){return e&&t?e===t?!0:e&&3===e.nodeType?!1:t&&3===t.nodeType?rn(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ro(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=J(e.document)}return t}function ri(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ra(e){var t=ro(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rn(n.ownerDocument.documentElement,n)){if(null!==r&&ri(n)){if(t=r.start,e=r.end,void 0===e&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o);!e.extend&&i>r&&(o=r,r=i,i=o);o=rt(n,i);var a=rt(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}t=[];for(e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});"function"===typeof n.focus&&n.focus();for(n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rs=c&&"documentMode"in document&&11>=document.documentMode,rl=null,ru=null,rc=null,rd=!1;function rf(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;rd||null==rl||rl!==J(r)||(r=rl,"selectionStart"in r&&ri(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rc&&n9(rc,r)||(rc=r,r=rB(ru,"onSelect"),0<r.length&&(t=new t8("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rl)))}function rh(e,t){var n={};n[e.toLowerCase()]=t.toLowerCase();n["Webkit"+e]="webkit"+t;n["Moz"+e]="moz"+t;return n}var rp={animationend:rh("Animation","AnimationEnd"),animationiteration:rh("Animation","AnimationIteration"),animationstart:rh("Animation","AnimationStart"),transitionend:rh("Transition","TransitionEnd")},rg={},rv={};c&&(rv=document.createElement("div").style,"AnimationEvent"in window||(delete rp.animationend.animation,delete rp.animationiteration.animation,delete rp.animationstart.animation),"TransitionEvent"in window||delete rp.transitionend.transition);function rm(e){if(rg[e])return rg[e];if(!rp[e])return e;var t=rp[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rv)return rg[e]=t[n];return e}var ry=rm("animationend"),rx=rm("animationiteration"),rw=rm("animationstart"),rb=rm("transitionend"),rS=new Map,rk="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function rj(e,t){rS.set(e,t);l(t,[e])}for(var rC=0;rC<rk.length;rC++){var rT=rk[rC],rE=rT.toLowerCase(),rI=rT[0].toUpperCase()+rT.slice(1);rj(rE,"on"+rI)}rj(ry,"onAnimationEnd");rj(rx,"onAnimationIteration");rj(rw,"onAnimationStart");rj("dblclick","onDoubleClick");rj("focusin","onFocus");rj("focusout","onBlur");rj(rb,"onTransitionEnd");u("onMouseEnter",["mouseout","mouseover"]);u("onMouseLeave",["mouseout","mouseover"]);u("onPointerEnter",["pointerout","pointerover"]);u("onPointerLeave",["pointerout","pointerover"]);l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));l("onBeforeInput",["compositionend","keypress","textInput","paste"]);l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var r_="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rM=new Set("cancel close invalid load scroll toggle".split(" ").concat(r_));function rD(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n;e$(r,t,void 0,e);e.currentTarget=null}function rP(e,t){t=0!==(t&4);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;s=s.listener;if(l!==i&&o.isPropagationStopped())break e;rD(o,s,u);i=l}else for(a=0;a<r.length;a++){s=r[a];l=s.instance;u=s.currentTarget;s=s.listener;if(l!==i&&o.isPropagationStopped())break e;rD(o,s,u);i=l}}}if(eF)throw e=eV,eF=!1,eV=null,e}function rA(e,t){var n=t[r9];void 0===n&&(n=t[r9]=new Set);var r=e+"__bubble";n.has(r)||(rZ(t,e,2,!1),n.add(r))}function rO(e,t,n){var r=0;t&&(r|=4);rZ(n,e,r,t)}var rR="_reactListening"+Math.random().toString(36).slice(2);function rz(e){if(!e[rR]){e[rR]=!0;a.forEach(function(t){"selectionchange"!==t&&(rM.has(t)||rO(t,!1,e),rO(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[rR]||(t[rR]=!0,rO("selectionchange",!1,t))}}function rZ(e,t,n,r){switch(tX(t)){case 1:var o=t$;break;case 4:o=tK;break;default:o=tq}n=o.bind(null,t,n,e);o=void 0;!eZ||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0);r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function rL(e,t,n,r,o){var i=r;if(0===(t&1)&&0===(t&2)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if(3===l||4===l){if(l=a.stateNode.containerInfo,l===o||8===l.nodeType&&l.parentNode===o)return}a=a.return}for(;null!==s;){a=on(s);if(null===a)return;l=a.tag;if(5===l||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}eR(function(){var r=i,o=eC(n),a=[];e:{var s=rS.get(e);if(void 0!==s){var l=t8,u=e;switch(e){case"keypress":if(0===t2(n))break e;case"keydown":case"keyup":l=nS;break;case"focusin":u="focus";l=nu;break;case"focusout":u="blur";l=nu;break;case"beforeblur":case"afterblur":l=nu;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=ni;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ns;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=nT;break;case ry:case rx:case rw:l=nd;break;case rb:l=nI;break;case"scroll":l=t9;break;case"wheel":l=nM;break;case"copy":case"cut":case"paste":l=nh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=nj}var c=0!==(t&4),f=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var p=r,g;null!==p;){g=p;var v=g.stateNode;5===g.tag&&null!==v&&(g=v,null!==h&&(v=ez(p,h),null!=v&&c.push(rN(p,v,g))));if(f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0===(t&7)){e:{s="mouseover"===e||"pointerover"===e;l="mouseout"===e||"pointerout"===e;if(s&&n!==ej&&(u=n.relatedTarget||n.fromElement)&&(on(u)||u[r7]))break e;if(l||s){s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window;if(l){if(u=n.relatedTarget||n.toElement,l=r,u=u?on(u):null,null!==u&&(f=eK(u),u!==f||5!==u.tag&&6!==u.tag))u=null}else l=null,u=r;if(l!==u){c=ni;v="onMouseLeave";h="onMouseEnter";p="mouse";if("pointerout"===e||"pointerover"===e)c=nj,v="onPointerLeave",h="onPointerEnter",p="pointer";f=null==l?s:oi(l);g=null==u?s:oi(u);s=new c(v,p+"leave",l,n,o);s.target=f;s.relatedTarget=g;v=null;on(o)===r&&(c=new c(h,p+"enter",u,n,o),c.target=g,c.relatedTarget=f,v=c);f=v;if(l&&u)t:{c=l;h=u;p=0;for(g=c;g;g=rH(g))p++;g=0;for(v=h;v;v=rH(v))g++;for(;0<p-g;)c=rH(c),p--;for(;0<g-p;)h=rH(h),g--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break t;c=rH(c);h=rH(h)}c=null}else c=null;null!==l&&rF(a,s,l,c,!1);null!==u&&null!==f&&rF(a,f,u,c,!0)}}}e:{s=r?oi(r):window;l=s.nodeName&&s.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===s.type)var m=nG;else if(nW(s))if(nX)m=n6;else{m=n5;var y=n4}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=n3);if(m&&(m=m(e,r))){nU(a,m,n,o);break e}y&&y(e,s,r);"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ei(s,"number",s.value)}y=r?oi(r):window;switch(e){case"focusin":if(nW(y)||"true"===y.contentEditable)rl=y,ru=r,rc=null;break;case"focusout":rc=ru=rl=null;break;case"mousedown":rd=!0;break;case"contextmenu":case"mouseup":case"dragend":rd=!1;rf(a,n,o);break;case"selectionchange":if(rs)break;case"keydown":case"keyup":rf(a,n,o)}var x;if(nP)t:{switch(e){case"compositionstart":var w="onCompositionStart";break t;case"compositionend":w="onCompositionEnd";break t;case"compositionupdate":w="onCompositionUpdate";break t}w=void 0}else nB?nL(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(nR&&"ko"!==n.locale&&(nB||"onCompositionStart"!==w?"onCompositionEnd"===w&&nB&&(x=t1()):(tQ=o,tJ="value"in tQ?tQ.value:tQ.textContent,nB=!0)),y=rB(r,w),0<y.length&&(w=new ng(w,e,null,n,o),a.push({event:w,listeners:y}),x?w.data=x:(x=nN(n),null!==x&&(w.data=x))));if(x=nO?nH(e,n):nF(e,n))r=rB(r,"onBeforeInput"),0<r.length&&(o=new ng("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=x)}rP(a,t)})}function rN(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rB(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,i=ez(e,n),null!=i&&r.unshift(rN(e,i,o)),i=ez(e,t),null!=i&&r.push(rN(e,i,o)));e=e.return}return r}function rH(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag);return e?e:null}function rF(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?(l=ez(n,i),null!=l&&a.unshift(rN(n,l,s))):o||(l=ez(n,i),null!=l&&a.push(rN(n,l,s))));n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var rV=/\r\n?/g,rW=/\u0000|\uFFFD/g;function rU(e){return("string"===typeof e?e:""+e).replace(rV,"\n").replace(rW,"")}function r$(e,t,n){t=rU(t);if(rU(e)!==t&&n)throw Error(i(425))}function rK(){}var rq=null,rY=null;function rG(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rX="function"===typeof setTimeout?setTimeout:void 0,rQ="function"===typeof clearTimeout?clearTimeout:void 0,rJ="function"===typeof Promise?Promise:void 0,r0="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof rJ?function(e){return rJ.resolve(null).then(e).catch(r1)}:rX;function r1(e){setTimeout(function(){throw e})}function r2(e,t){var n=t,r=0;do{var o=n.nextSibling;e.removeChild(n);if(o&&8===o.nodeType)if(n=o.data,"/$"===n){if(0===r){e.removeChild(o);tV(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);tV(t)}function r4(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){t=e.data;if("$"===t||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function r5(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var r3=Math.random().toString(36).slice(2),r6="__reactFiber$"+r3,r8="__reactProps$"+r3,r7="__reactContainer$"+r3,r9="__reactEvents$"+r3,oe="__reactListeners$"+r3,ot="__reactHandles$"+r3;function on(e){var t=e[r6];if(t)return t;for(var n=e.parentNode;n;){if(t=n[r7]||n[r6]){n=t.alternate;if(null!==t.child||null!==n&&null!==n.child)for(e=r5(e);null!==e;){if(n=e[r6])return n;e=r5(e)}return t}e=n;n=e.parentNode}return null}function oo(e){e=e[r6]||e[r7];return!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function oa(e){return e[r8]||null}var os=[],ol=-1;function ou(e){return{current:e}}function oc(e){0>ol||(e.current=os[ol],os[ol]=null,ol--)}function od(e,t){ol++;os[ol]=e.current;e.current=t}var of={},oh=ou(of),op=ou(!1),og=of;function ov(e,t){var n=e.type.contextTypes;if(!n)return of;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o);return o}function om(e){e=e.childContextTypes;return null!==e&&void 0!==e}function oy(){oc(op);oc(oh)}function ox(e,t,n){if(oh.current!==of)throw Error(i(168));od(oh,t);od(op,n)}function ow(e,t,n){var r=e.stateNode;t=t.childContextTypes;if("function"!==typeof r.getChildContext)return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(i(108,K(e)||"Unknown",o));return B({},n,r)}function ob(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||of;og=oh.current;od(oh,e);od(op,op.current);return!0}function oS(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ow(e,t,og),r.__reactInternalMemoizedMergedChildContext=e,oc(op),oc(oh),od(oh,e)):oc(op);od(op,n)}var ok=null,oj=!1,oC=!1;function oT(e){null===ok?ok=[e]:ok.push(e)}function oE(e){oj=!0;oT(e)}function oI(){if(!oC&&null!==ok){oC=!0;var e=0,t=tx;try{var n=ok;for(tx=1;e<n.length;e++){var r=n[e];do r=r(!0);while(null!==r)}ok=null;oj=!1}catch(t){throw null!==ok&&(ok=ok.slice(e+1)),eJ(e3,oI),t}finally{tx=t,oC=!1}}return null}var o_=[],oM=0,oD=null,oP=0,oA=[],oO=0,oR=null,oz=1,oZ="";function oL(e,t){o_[oM++]=oP;o_[oM++]=oD;oD=e;oP=t}function oN(e,t,n){oA[oO++]=oz;oA[oO++]=oZ;oA[oO++]=oR;oR=e;var r=oz;e=oZ;var o=32-tr(r)-1;r&=~(1<<o);n+=1;var i=32-tr(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32);r>>=a;o-=a;oz=1<<32-tr(t)+o|n<<o|r;oZ=i+e}else oz=1<<i|n<<o|r,oZ=e}function oB(e){null!==e.return&&(oL(e,1),oN(e,1,0))}function oH(e){for(;e===oD;)oD=o_[--oM],o_[oM]=null,oP=o_[--oM],o_[oM]=null;for(;e===oR;)oR=oA[--oO],oA[oO]=null,oZ=oA[--oO],oA[oO]=null,oz=oA[--oO],oA[oO]=null}var oF=null,oV=null,oW=!1,oU=null;function o$(e,t){var n=lV(5,null,null,0);n.elementType="DELETED";n.stateNode=t;n.return=e;t=e.deletions;null===t?(e.deletions=[n],e.flags|=16):t.push(n)}function oK(e,t){switch(e.tag){case 5:var n=e.type;t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t;return null!==t?(e.stateNode=t,oF=e,oV=r4(t.firstChild),!0):!1;case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t?(e.stateNode=t,oF=e,oV=null,!0):!1;case 13:return t=8!==t.nodeType?null:t,null!==t?(n=null!==oR?{id:oz,overflow:oZ}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=lV(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,oF=e,oV=null,!0):!1;default:return!1}}function oq(e){return 0!==(e.mode&1)&&0===(e.flags&128)}function oY(e){if(oW){var t=oV;if(t){var n=t;if(!oK(e,t)){if(oq(e))throw Error(i(418));t=r4(n.nextSibling);var r=oF;t&&oK(e,t)?o$(r,n):(e.flags=e.flags&-4097|2,oW=!1,oF=e)}}else{if(oq(e))throw Error(i(418));e.flags=e.flags&-4097|2;oW=!1;oF=e}}}function oG(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oF=e}function oX(e){if(e!==oF)return!1;if(!oW)return oG(e),oW=!0,!1;var t;(t=3!==e.tag)&&!(t=5!==e.tag)&&(t=e.type,t="head"!==t&&"body"!==t&&!rG(e.type,e.memoizedProps));if(t&&(t=oV)){if(oq(e))throw oQ(),Error(i(418));for(;t;)o$(e,t),t=r4(t.nextSibling)}oG(e);if(13===e.tag){e=e.memoizedState;e=null!==e?e.dehydrated:null;if(!e)throw Error(i(317));e:{e=e.nextSibling;for(t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oV=r4(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oV=null}}else oV=oF?r4(e.stateNode.nextSibling):null;return!0}function oQ(){for(var e=oV;e;)e=r4(e.nextSibling)}function oJ(){oV=oF=null;oW=!1}function o0(e){null===oU?oU=[e]:oU.push(e)}var o1=j.ReactCurrentBatchConfig;function o2(e,t){if(e&&e.defaultProps){t=B({},t);e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t}return t}var o4=ou(null),o5=null,o3=null,o6=null;function o8(){o6=o3=o5=null}function o7(e){var t=o4.current;oc(o4);e._currentValue=t}function o9(e,t,n){for(;null!==e;){var r=e.alternate;(e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t);if(e===n)break;e=e.return}}function ie(e,t){o5=e;o6=o3=null;e=e.dependencies;null!==e&&null!==e.firstContext&&(0!==(e.lanes&t)&&(aW=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(o6!==e)if(e={context:e,memoizedValue:t,next:null},null===o3){if(null===o5)throw Error(i(308));o3=e;o5.dependencies={lanes:0,firstContext:e}}else o3=o3.next=e;return t}var io=null;function ii(e){null===io?io=[e]:io.push(e)}function ia(e,t,n,r){var o=t.interleaved;null===o?(n.next=n,ii(t)):(n.next=o.next,o.next=n);t.interleaved=n;return is(e,r)}function is(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t);n=e;for(e=e.return;null!==e;)e.childLanes|=t,n=e.alternate,null!==n&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var il=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ic(e,t){e=e.updateQueue;t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function id(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ih(e,t,n){var r=e.updateQueue;if(null===r)return null;r=r.shared;if(0!==(s$&2)){var o=r.pending;null===o?t.next=t:(t.next=o.next,o.next=t);r.pending=t;return is(e,n)}o=r.interleaved;null===o?(t.next=t,ii(r)):(t.next=o.next,o.next=t);r.interleaved=t;return is(e,n)}function ip(e,t,n){t=t.updateQueue;if(null!==t&&(t=t.shared,0!==(n&4194240))){var r=t.lanes;r&=e.pendingLanes;n|=r;t.lanes=n;ty(e,n)}}function ig(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&(r=r.updateQueue,n===r)){var o=null,i=null;n=n.firstBaseUpdate;if(null!==n){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a;n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects};e.updateQueue=n;return}e=n.lastBaseUpdate;null===e?n.firstBaseUpdate=t:e.next=t;n.lastBaseUpdate=t}function iv(e,t,n,r){var o=e.updateQueue;il=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null;null===a?i=u:a.next=u;a=l;var c=e.alternate;null!==c&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var f=o.baseState;a=0;c=u=l=null;s=i;do{var h=s.lane,p=s.eventTime;if((r&h)===h){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;h=t;p=n;switch(v.tag){case 1:g=v.payload;if("function"===typeof g){f=g.call(p,f,h);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:g=v.payload;h="function"===typeof g?g.call(p,f,h):g;if(null===h||void 0===h)break e;f=B({},f,h);break e;case 2:il=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,h=o.effects,null===h?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=f):c=c.next=p,a|=h;s=s.next;if(null===s)if(s=o.shared.pending,null===s)break;else h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}while(1);null===c&&(l=f);o.baseState=l;o.firstBaseUpdate=u;o.lastBaseUpdate=c;t=o.shared.interleaved;if(null!==t){o=t;do a|=o.lane,o=o.next;while(o!==t)}else null===i&&(o.shared.lanes=0);s0|=a;e.lanes=a;e.memoizedState=f}}function im(e,t,n){e=t.effects;t.effects=null;if(null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){r.callback=null;r=n;if("function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var iy=(new r.Component).refs;function ix(e,t,n,r){t=e.memoizedState;n=n(r,t);n=null===n||void 0===n?t:B({},t,n);e.memoizedState=n;0===e.lanes&&(e.updateQueue.baseState=n)}var iw={isMounted:function(e){return(e=e._reactInternals)?eK(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lu(),o=lc(e),i=id(r,o);i.payload=t;void 0!==n&&null!==n&&(i.callback=n);t=ih(e,i,o);null!==t&&(ld(t,e,o,r),ip(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lu(),o=lc(e),i=id(r,o);i.tag=1;i.payload=t;void 0!==n&&null!==n&&(i.callback=n);t=ih(e,i,o);null!==t&&(ld(t,e,o,r),ip(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lu(),r=lc(e),o=id(n,r);o.tag=2;void 0!==t&&null!==t&&(o.callback=t);t=ih(e,o,r);null!==t&&(ld(t,e,r,n),ip(t,e,r))}};function ib(e,t,n,r,o,i,a){e=e.stateNode;return"function"===typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!n9(n,r)||!n9(o,i):!0}function iS(e,t,n){var r=!1,o=of;var i=t.contextType;"object"===typeof i&&null!==i?i=it(i):(o=om(t)?og:oh.current,r=t.contextTypes,i=(r=null!==r&&void 0!==r)?ov(e,o):of);t=new t(n,i);e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null;t.updater=iw;e.stateNode=t;t._reactInternals=e;r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i);return t}function ik(e,t,n,r){e=t.state;"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r);"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r);t.state!==e&&iw.enqueueReplaceState(t,t.state,null)}function ij(e,t,n,r){var o=e.stateNode;o.props=n;o.state=e.memoizedState;o.refs=iy;iu(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=it(i):(i=om(t)?og:oh.current,o.context=ov(e,i));o.state=e.memoizedState;i=t.getDerivedStateFromProps;"function"===typeof i&&(ix(e,t,i,n),o.state=e.memoizedState);"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&iw.enqueueReplaceState(o,o.state,null),iv(e,n,o,r),o.state=e.memoizedState);"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function iC(e,t,n){e=n.ref;if(null!==e&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;if(n){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;if(null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a)return t.ref;t=function(e){var t=o.refs;t===iy&&(t=o.refs={});null===e?delete t[a]:t[a]=e};t._stringRef=a;return t}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function iT(e,t){e=Object.prototype.toString.call(t);throw Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iE(e){var t=e._init;return t(e._payload)}function iI(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){e=l$(e,t);e.index=0;e.sibling=null;return e}function a(t,n,r){t.index=r;if(!e)return t.flags|=1048576,n;r=t.alternate;if(null!==r)return r=r.index,r<n?(t.flags|=2,n):r;t.flags|=2;return n}function s(t){e&&null===t.alternate&&(t.flags|=2);return t}function l(e,t,n,r){if(null===t||6!==t.tag)return t=lG(n,e.mode,r),t.return=e,t;t=o(t,n);t.return=e;return t}function u(e,t,n,r){var i=n.type;if(i===E)return f(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===z&&iE(i)===t.type))return r=o(t,n.props),r.ref=iC(e,t,n),r.return=e,r;r=lK(n.type,n.key,n.props,null,e.mode,r);r.ref=iC(e,t,n);r.return=e;return r}function c(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation)return t=lX(n,e.mode,r),t.return=e,t;t=o(t,n.children||[]);t.return=e;return t}function f(e,t,n,r,i){if(null===t||7!==t.tag)return t=lq(n,e.mode,r,i),t.return=e,t;t=o(t,n);t.return=e;return t}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return t=lG(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case C:return n=lK(t.type,t.key,t.props,null,e.mode,n),n.ref=iC(e,null,t),n.return=e,n;case T:return t=lX(t,e.mode,n),t.return=e,t;case z:var r=t._init;return h(e,r(t._payload),n)}if(ea(t)||N(t))return t=lq(t,e.mode,n,null),t.return=e,t;iT(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===o?u(e,t,n,r):null;case T:return n.key===o?c(e,t,n,r):null;case z:return o=n._init,p(e,t,o(n._payload),r)}if(ea(n)||N(n))return null!==o?null:f(e,t,n,r,null);iT(e,n)}return null}function g(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return e=e.get(n)||null,l(t,e,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,u(t,e,r,o);case T:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,o);case z:var i=r._init;return g(e,t,n,i(r._payload),o)}if(ea(r)||N(r))return e=e.get(n)||null,f(t,e,r,o,null);iT(t,r)}return null}function v(o,i,s,l){for(var u=null,c=null,f=i,v=i=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(o,f,s[v],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f);i=a(y,i,v);null===c?u=y:c.sibling=y;c=y;f=m}if(v===s.length)return n(o,f),oW&&oL(o,v),u;if(null===f){for(;v<s.length;v++)f=h(o,s[v],l),null!==f&&(i=a(f,i,v),null===c?u=f:c.sibling=f,c=f);oW&&oL(o,v);return u}for(f=r(o,f);v<s.length;v++)m=g(f,o,v,s[v],l),null!==m&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=a(m,i,v),null===c?u=m:c.sibling=m,c=m);e&&f.forEach(function(e){return t(o,e)});oW&&oL(o,v);return u}function m(o,s,l,u){var c=N(l);if("function"!==typeof c)throw Error(i(150));l=c.call(l);if(null==l)throw Error(i(151));for(var f=c=null,v=s,m=s=0,y=null,x=l.next();null!==v&&!x.done;m++,x=l.next()){v.index>m?(y=v,v=null):y=v.sibling;var w=p(o,v,x.value,u);if(null===w){null===v&&(v=y);break}e&&v&&null===w.alternate&&t(o,v);s=a(w,s,m);null===f?c=w:f.sibling=w;f=w;v=y}if(x.done)return n(o,v),oW&&oL(o,m),c;if(null===v){for(;!x.done;m++,x=l.next())x=h(o,x.value,u),null!==x&&(s=a(x,s,m),null===f?c=x:f.sibling=x,f=x);oW&&oL(o,m);return c}for(v=r(o,v);!x.done;m++,x=l.next())x=g(v,o,m,x.value,u),null!==x&&(e&&null!==x.alternate&&v.delete(null===x.key?m:x.key),s=a(x,s,m),null===f?c=x:f.sibling=x,f=x);e&&v.forEach(function(e){return t(o,e)});oW&&oL(o,m);return c}function y(e,r,i,a){"object"===typeof i&&null!==i&&i.type===E&&null===i.key&&(i=i.props.children);if("object"===typeof i&&null!==i){switch(i.$$typeof){case C:e:{for(var l=i.key,u=r;null!==u;){if(u.key===l){l=i.type;if(l===E){if(7===u.tag){n(e,u.sibling);r=o(u,i.props.children);r.return=e;e=r;break e}}else if(u.elementType===l||"object"===typeof l&&null!==l&&l.$$typeof===z&&iE(l)===u.type){n(e,u.sibling);r=o(u,i.props);r.ref=iC(e,u,i);r.return=e;e=r;break e}n(e,u);break}else t(e,u);u=u.sibling}i.type===E?(r=lq(i.props.children,e.mode,a,i.key),r.return=e,e=r):(a=lK(i.type,i.key,i.props,null,e.mode,a),a.ref=iC(e,r,i),a.return=e,e=a)}return s(e);case T:e:{for(u=i.key;null!==r;){if(r.key===u)if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling);r=o(r,i.children||[]);r.return=e;e=r;break e}else{n(e,r);break}else t(e,r);r=r.sibling}r=lX(i,e.mode,a);r.return=e;e=r}return s(e);case z:return u=i._init,y(e,r,u(i._payload),a)}if(ea(i))return v(e,r,i,a);if(N(i))return m(e,r,i,a);iT(e,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,i),r.return=e,e=r):(n(e,r),r=lG(i,e.mode,a),r.return=e,e=r),s(e)):n(e,r)}return y}var i_=iI(!0),iM=iI(!1),iD={},iP=ou(iD),iA=ou(iD),iO=ou(iD);function iR(e){if(e===iD)throw Error(i(174));return e}function iz(e,t){od(iO,t);od(iA,e);od(iP,iD);e=t.nodeType;switch(e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eh(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eh(t,e)}oc(iP);od(iP,t)}function iZ(){oc(iP);oc(iA);oc(iO)}function iL(e){iR(iO.current);var t=iR(iP.current);var n=eh(t,e.type);t!==n&&(od(iA,e),od(iP,n))}function iN(e){iA.current===e&&(oc(iP),oc(iA))}var iB=ou(0);function iH(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(t.flags&128))return t}else if(null!==t.child){t.child.return=t;t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return;t=t.sibling}return null}var iF=[];function iV(){for(var e=0;e<iF.length;e++)iF[e]._workInProgressVersionPrimary=null;iF.length=0}var iW=j.ReactCurrentDispatcher,iU=j.ReactCurrentBatchConfig,i$=0,iK=null,iq=null,iY=null,iG=!1,iX=!1,iQ=0,iJ=0;function i0(){throw Error(i(321))}function i1(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!n7(e[n],t[n]))return!1;return!0}function i2(e,t,n,r,o,a){i$=a;iK=t;t.memoizedState=null;t.updateQueue=null;t.lanes=0;iW.current=null===e||null===e.memoizedState?aD:aP;e=n(r,o);if(iX){a=0;do{iX=!1;iQ=0;if(25<=a)throw Error(i(301));a+=1;iY=iq=null;t.updateQueue=null;iW.current=aA;e=n(r,o)}while(iX)}iW.current=aM;t=null!==iq&&null!==iq.next;i$=0;iY=iq=iK=null;iG=!1;if(t)throw Error(i(300));return e}function i4(){var e=0!==iQ;iQ=0;return e}function i5(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};null===iY?iK.memoizedState=iY=e:iY=iY.next=e;return iY}function i3(){if(null===iq){var e=iK.alternate;e=null!==e?e.memoizedState:null}else e=iq.next;var t=null===iY?iK.memoizedState:iY.next;if(null!==t)iY=t,iq=e;else{if(null===e)throw Error(i(310));iq=e;e={memoizedState:iq.memoizedState,baseState:iq.baseState,baseQueue:iq.baseQueue,queue:iq.queue,next:null};null===iY?iK.memoizedState=iY=e:iY=iY.next=e}return iY}function i6(e,t){return"function"===typeof t?t(e):t}function i8(e){var t=i3(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=iq,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next;a.next=s}r.baseQueue=o=a;n.pending=null}if(null!==o){a=o.next;r=r.baseState;var l=s=null,u=null,c=a;do{var f=c.lane;if((i$&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=h,s=r):u=u.next=h;iK.lanes|=f;s0|=f}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l;n7(r,t.memoizedState)||(aW=!0);t.memoizedState=r;t.baseState=s;t.baseQueue=u;n.lastRenderedState=r}e=n.interleaved;if(null!==e){o=e;do a=o.lane,iK.lanes|=a,s0|=a,o=o.next;while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function i7(e){var t=i3(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do a=e(a,s.action),s=s.next;while(s!==o);n7(a,t.memoizedState)||(aW=!0);t.memoizedState=a;null===t.baseQueue&&(t.baseState=a);n.lastRenderedState=a}return[a,r]}function i9(){}function ae(e,t){var n=iK,r=i3(),o=t(),a=!n7(r.memoizedState,o);a&&(r.memoizedState=o,aW=!0);r=r.queue;ap(ai.bind(null,n,r,e),[e]);if(r.getSnapshot!==t||a||null!==iY&&iY.memoizedState.tag&1){n.flags|=2048;au(9,ao.bind(null,n,r,o,t),void 0,null);if(null===sK)throw Error(i(349));0!==(i$&30)||at(n,t,o)}return o}function at(e,t,n){e.flags|=16384;e={getSnapshot:t,value:n};t=iK.updateQueue;null===t?(t={lastEffect:null,stores:null},iK.updateQueue=t,t.stores=[e]):(n=t.stores,null===n?t.stores=[e]:n.push(e))}function ao(e,t,n,r){t.value=n;t.getSnapshot=r;aa(t)&&as(e)}function ai(e,t,n){return n(function(){aa(t)&&as(e)})}function aa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!n7(e,n)}catch(e){return!0}}function as(e){var t=is(e,1);null!==t&&ld(t,e,1,-1)}function al(e){var t=i5();"function"===typeof e&&(e=e());t.memoizedState=t.baseState=e;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i6,lastRenderedState:e};t.queue=e;e=e.dispatch=aT.bind(null,iK,e);return[t.memoizedState,e]}function au(e,t,n,r){e={tag:e,create:t,destroy:n,deps:r,next:null};t=iK.updateQueue;null===t?(t={lastEffect:null,stores:null},iK.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e));return e}function ac(){return i3().memoizedState}function ad(e,t,n,r){var o=i5();iK.flags|=e;o.memoizedState=au(1|t,n,void 0,void 0===r?null:r)}function af(e,t,n,r){var o=i3();r=void 0===r?null:r;var i=void 0;if(null!==iq){var a=iq.memoizedState;i=a.destroy;if(null!==r&&i1(r,a.deps)){o.memoizedState=au(t,n,i,r);return}}iK.flags|=e;o.memoizedState=au(1|t,n,i,r)}function ah(e,t){return ad(8390656,8,e,t)}function ap(e,t){return af(2048,8,e,t)}function ag(e,t){return af(4,2,e,t)}function av(e,t){return af(4,4,e,t)}function am(e,t){if("function"===typeof t)return e=e(),t(e),function(){t(null)};if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ay(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null;return af(4,4,am.bind(null,t,e),n)}function ax(){}function aw(e,t){var n=i3();t=void 0===t?null:t;var r=n.memoizedState;if(null!==r&&null!==t&&i1(t,r[1]))return r[0];n.memoizedState=[e,t];return e}function ab(e,t){var n=i3();t=void 0===t?null:t;var r=n.memoizedState;if(null!==r&&null!==t&&i1(t,r[1]))return r[0];e=e();n.memoizedState=[e,t];return e}function aS(e,t,n){if(0===(i$&21))return e.baseState&&(e.baseState=!1,aW=!0),e.memoizedState=n;n7(n,t)||(n=tp(),iK.lanes|=n,s0|=n,e.baseState=!0);return t}function ak(e,t){var n=tx;tx=0!==n&&4>n?n:4;e(!0);var r=iU.transition;iU.transition={};try{e(!1),t()}finally{tx=n,iU.transition=r}}function aj(){return i3().memoizedState}function aC(e,t,n){var r=lc(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aE(e))aI(t,n);else if(n=ia(e,t,n,r),null!==n){var o=lu();ld(n,e,r,o);a_(n,t,r)}}function aT(e,t,n){var r=lc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aE(e))aI(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&(i=t.lastRenderedReducer,null!==i))try{var a=t.lastRenderedState,s=i(a,n);o.hasEagerState=!0;o.eagerState=s;if(n7(s,a)){var l=t.interleaved;null===l?(o.next=o,ii(t)):(o.next=l.next,l.next=o);t.interleaved=o;return}}catch(e){}finally{}n=ia(e,t,o,r);null!==n&&(o=lu(),ld(n,e,r,o),a_(n,t,r))}}function aE(e){var t=e.alternate;return e===iK||null!==t&&t===iK}function aI(e,t){iX=iG=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t);e.pending=t}function a_(e,t,n){if(0!==(n&4194240)){var r=t.lanes;r&=e.pendingLanes;n|=r;t.lanes=n;ty(e,n)}}var aM={readContext:it,useCallback:i0,useContext:i0,useEffect:i0,useImperativeHandle:i0,useInsertionEffect:i0,useLayoutEffect:i0,useMemo:i0,useReducer:i0,useRef:i0,useState:i0,useDebugValue:i0,useDeferredValue:i0,useTransition:i0,useMutableSource:i0,useSyncExternalStore:i0,useId:i0,unstable_isNewReconciler:!1},aD={readContext:it,useCallback:function(e,t){i5().memoizedState=[e,void 0===t?null:t];return e},useContext:it,useEffect:ah,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null;return ad(4194308,4,am.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ad(4194308,4,e,t)},useInsertionEffect:function(e,t){return ad(4,2,e,t)},useMemo:function(e,t){var n=i5();t=void 0===t?null:t;e=e();n.memoizedState=[e,t];return e},useReducer:function(e,t,n){var r=i5();t=void 0!==n?n(t):t;r.memoizedState=r.baseState=t;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t};r.queue=e;e=e.dispatch=aC.bind(null,iK,e);return[r.memoizedState,e]},useRef:function(e){var t=i5();e={current:e};return t.memoizedState=e},useState:al,useDebugValue:ax,useDeferredValue:function(e){return i5().memoizedState=e},useTransition:function(){var e=al(!1),t=e[0];e=ak.bind(null,e[1]);i5().memoizedState=e;return[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=iK,o=i5();if(oW){if(void 0===n)throw Error(i(407));n=n()}else{n=t();if(null===sK)throw Error(i(349));0!==(i$&30)||at(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};o.queue=a;ah(ai.bind(null,r,a,e),[e]);r.flags|=2048;au(9,ao.bind(null,r,a,n,t),void 0,null);return n},useId:function(){var e=i5(),t=sK.identifierPrefix;if(oW){var n=oZ;var r=oz;n=(r&~(1<<32-tr(r)-1)).toString(32)+n;t=":"+t+"R"+n;n=iQ++;0<n&&(t+="H"+n.toString(32));t+=":"}else n=iJ++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},aP={readContext:it,useCallback:aw,useContext:it,useEffect:ap,useImperativeHandle:ay,useInsertionEffect:ag,useLayoutEffect:av,useMemo:ab,useReducer:i8,useRef:ac,useState:function(){return i8(i6)},useDebugValue:ax,useDeferredValue:function(e){var t=i3();return aS(t,iq.memoizedState,e)},useTransition:function(){var e=i8(i6)[0],t=i3().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:ae,useId:aj,unstable_isNewReconciler:!1},aA={readContext:it,useCallback:aw,useContext:it,useEffect:ap,useImperativeHandle:ay,useInsertionEffect:ag,useLayoutEffect:av,useMemo:ab,useReducer:i7,useRef:ac,useState:function(){return i7(i6)},useDebugValue:ax,useDeferredValue:function(e){var t=i3();return null===iq?t.memoizedState=e:aS(t,iq.memoizedState,e)},useTransition:function(){var e=i7(i6)[0],t=i3().memoizedState;return[e,t]},useMutableSource:i9,useSyncExternalStore:ae,useId:aj,unstable_isNewReconciler:!1};function aO(e,t){try{var n="",r=t;do n+=U(r),r=r.return;while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function aR(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function az(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var aZ="function"===typeof WeakMap?WeakMap:Map;function aL(e,t,n){n=id(-1,n);n.tag=3;n.payload={element:null};var r=t.value;n.callback=function(){s7||(s7=!0,s9=r);az(e,t)};return n}function aN(e,t,n){n=id(-1,n);n.tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)};n.callback=function(){az(e,t)}}var i=e.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){az(e,t);"function"!==typeof r&&(null===le?le=new Set([this]):le.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})});return n}function aB(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new aZ;var o=new Set;r.set(t,o)}else o=r.get(t),void 0===o&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=lz.bind(null,e,t,n),t.then(e,e))}function aH(e){do{var t;if(t=13===e.tag)t=e.memoizedState,t=null!==t?null!==t.dehydrated?!0:!1:!0;if(t)return e;e=e.return}while(null!==e);return null}function aF(e,t,n,r,o){if(0===(e.mode&1))return e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:(t=id(-1,1),t.tag=2,ih(n,t,1))),n.lanes|=1),e;e.flags|=65536;e.lanes=o;return e}var aV=j.ReactCurrentOwner,aW=!1;function aU(e,t,n,r){t.child=null===e?iM(t,null,n,r):i_(t,e.child,n,r)}function a$(e,t,n,r,o){n=n.render;var i=t.ref;ie(t,o);r=i2(e,t,n,r,i,o);n=i4();if(null!==e&&!aW)return t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o);oW&&n&&oB(t);t.flags|=1;aU(e,t,r,o);return t.child}function aK(e,t,n,r,o){if(null===e){var i=n.type;if("function"===typeof i&&!lW(i)&&void 0===i.defaultProps&&null===n.compare&&void 0===n.defaultProps)return t.tag=15,t.type=i,aq(e,t,i,r,o);e=lK(n.type,null,r,t,t.mode,o);e.ref=t.ref;e.return=t;return t.child=e}i=e.child;if(0===(e.lanes&o)){var a=i.memoizedProps;n=n.compare;n=null!==n?n:n9;if(n(a,r)&&e.ref===t.ref)return sn(e,t,o)}t.flags|=1;e=l$(i,r);e.ref=t.ref;e.return=t;return t.child=e}function aq(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(n9(i,r)&&e.ref===t.ref)if(aW=!1,t.pendingProps=r=i,0!==(e.lanes&o))0!==(e.flags&131072)&&(aW=!0);else return t.lanes=e.lanes,sn(e,t,o)}return aX(e,t,n,r,o)}function aY(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},od(sX,sG),sG|=n;else{if(0===(n&1073741824))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,od(sX,sG),sG|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null};r=null!==i?i.baseLanes:n;od(sX,sG);sG|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,od(sX,sG),sG|=r;aU(e,t,o,n);return t.child}function aG(e,t){var n=t.ref;if(null===e&&null!==n||null!==e&&e.ref!==n)t.flags|=512,t.flags|=2097152}function aX(e,t,n,r,o){var i=om(n)?og:oh.current;i=ov(t,i);ie(t,o);n=i2(e,t,n,r,i,o);r=i4();if(null!==e&&!aW)return t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,sn(e,t,o);oW&&r&&oB(t);t.flags|=1;aU(e,t,n,o);return t.child}function aQ(e,t,n,r,o){if(om(n)){var i=!0;ob(t)}else i=!1;ie(t,o);if(null===t.stateNode)st(e,t),iS(t,n,r),ij(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=it(u):(u=om(n)?og:oh.current,u=ov(t,u));var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ik(t,a,r,u);il=!1;var h=t.memoizedState;a.state=h;iv(t,r,a,o);l=t.memoizedState;s!==r||h!==l||op.current||il?("function"===typeof c&&(ix(t,n,c,r),l=t.memoizedState),(s=il||ib(t,n,s,r,h,l,u))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode;ic(e,t);s=t.memoizedProps;u=t.type===t.elementType?s:o2(t.type,s);a.props=u;f=t.pendingProps;h=a.context;l=n.contextType;"object"===typeof l&&null!==l?l=it(l):(l=om(n)?og:oh.current,l=ov(t,l));var p=n.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||h!==l)&&ik(t,a,r,l);il=!1;h=t.memoizedState;a.state=h;iv(t,r,a,o);var g=t.memoizedState;s!==f||h!==g||op.current||il?("function"===typeof p&&(ix(t,n,p,r),g=t.memoizedState),(u=il||ib(t,n,u,r,h,g,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,g,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,g,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=l,r=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return aJ(e,t,n,r,i,o)}function aJ(e,t,n,r,o,i){aG(e,t);var a=0!==(t.flags&128);if(!r&&!a)return o&&oS(t,n,!1),sn(e,t,i);r=t.stateNode;aV.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();t.flags|=1;null!==e&&a?(t.child=i_(t,e.child,null,i),t.child=i_(t,null,s,i)):aU(e,t,s,i);t.memoizedState=r.state;o&&oS(t,n,!0);return t.child}function a0(e){var t=e.stateNode;t.pendingContext?ox(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ox(e,t.context,!1);iz(e,t.containerInfo)}function a1(e,t,n,r,o){oJ();o0(o);t.flags|=256;aU(e,t,n,r);return t.child}var a2={dehydrated:null,treeContext:null,retryLane:0};function a4(e){return{baseLanes:e,cachePool:null,transitions:null}}function a5(e,t,n){var r=t.pendingProps,o=iB.current,i=!1,a=0!==(t.flags&128),s;(s=a)||(s=null!==e&&null===e.memoizedState?!1:0!==(o&2));if(s)i=!0,t.flags&=-129;else if(null===e||null!==e.memoizedState)o|=1;od(iB,o&1);if(null===e){oY(t);e=t.memoizedState;if(null!==e&&(e=e.dehydrated,null!==e))return 0===(t.mode&1)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null;a=r.children;e=r.fallback;return i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},0===(r&1)&&null!==i?(i.childLanes=0,i.pendingProps=a):i=lY(a,r,0,null),e=lq(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=a4(n),t.memoizedState=a2,e):a3(t,a)}o=e.memoizedState;if(null!==o&&(s=o.dehydrated,null!==s))return a8(e,t,a,r,s,o,n);if(i){i=r.fallback;a=t.mode;o=e.child;s=o.sibling;var l={mode:"hidden",children:r.children};0===(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=l$(o,l),r.subtreeFlags=o.subtreeFlags&14680064);null!==s?i=l$(s,i):(i=lq(i,a,n,null),i.flags|=2);i.return=t;r.return=t;r.sibling=i;t.child=r;r=i;i=t.child;a=e.child.memoizedState;a=null===a?a4(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions};i.memoizedState=a;i.childLanes=e.childLanes&~n;t.memoizedState=a2;return r}i=e.child;e=i.sibling;r=l$(i,{mode:"visible",children:r.children});0===(t.mode&1)&&(r.lanes=n);r.return=t;r.sibling=null;null!==e&&(n=t.deletions,null===n?(t.deletions=[e],t.flags|=16):n.push(e));t.child=r;t.memoizedState=null;return r}function a3(e,t){t=lY({mode:"visible",children:t},e.mode,0,null);t.return=e;return e.child=t}function a6(e,t,n,r){null!==r&&o0(r);i_(t,e.child,null,n);e=a3(t,t.pendingProps.children);e.flags|=2;t.memoizedState=null;return e}function a8(e,t,n,r,o,a,s){if(n){if(t.flags&256)return t.flags&=-257,r=aR(Error(i(422))),a6(e,t,s,r);if(null!==t.memoizedState)return t.child=e.child,t.flags|=128,null;a=r.fallback;o=t.mode;r=lY({mode:"visible",children:r.children},o,0,null);a=lq(a,o,s,null);a.flags|=2;r.return=t;a.return=t;r.sibling=a;t.child=r;0!==(t.mode&1)&&i_(t,e.child,null,s);t.child.memoizedState=a4(s);t.memoizedState=a2;return a}if(0===(t.mode&1))return a6(e,t,s,null);if("$!"===o.data){r=o.nextSibling&&o.nextSibling.dataset;if(r)var l=r.dgst;r=l;a=Error(i(419));r=aR(a,r,void 0);return a6(e,t,s,r)}l=0!==(s&e.childLanes);if(aW||l){r=sK;if(null!==r){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=0!==(o&(r.suspendedLanes|s))?0:o;0!==o&&o!==a.retryLane&&(a.retryLane=o,is(e,o),ld(r,e,o,-1))}lC();r=aR(Error(i(421)));return a6(e,t,s,r)}if("$?"===o.data)return t.flags|=128,t.child=e.child,t=lL.bind(null,e),o._reactRetry=t,null;e=a.treeContext;oV=r4(o.nextSibling);oF=t;oW=!0;oU=null;null!==e&&(oA[oO++]=oz,oA[oO++]=oZ,oA[oO++]=oR,oz=e.id,oZ=e.overflow,oR=t);t=a3(t,r.children);t.flags|=4096;return t}function a7(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t);o9(e.return,t,n)}function a9(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function se(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;aU(e,t,r.children,n);r=iB.current;if(0!==(r&2))r=r&1|2,t.flags|=128;else{if(null!==e&&0!==(e.flags&128))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&a7(e,n,t);else if(19===e.tag)a7(e,n,t);else if(null!==e.child){e.child.return=e;e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return;e=e.sibling}r&=1}od(iB,r);if(0===(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":n=t.child;for(o=null;null!==n;)e=n.alternate,null!==e&&null===iH(e)&&(o=n),n=n.sibling;n=o;null===n?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null);a9(t,!1,o,n,i);break;case"backwards":n=null;o=t.child;for(t.child=null;null!==o;){e=o.alternate;if(null!==e&&null===iH(e)){t.child=o;break}e=o.sibling;o.sibling=n;n=o;o=e}a9(t,!0,n,null,i);break;case"together":a9(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function st(e,t){0===(t.mode&1)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function sn(e,t,n){null!==e&&(t.dependencies=e.dependencies);s0|=t.lanes;if(0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){e=t.child;n=l$(e,e.pendingProps);t.child=n;for(n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=l$(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function so(e,t,n){switch(t.tag){case 3:a0(t);oJ();break;case 5:iL(t);break;case 1:om(t.type)&&ob(t);break;case 4:iz(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;od(o4,r._currentValue);r._currentValue=o;break;case 13:r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return od(iB,iB.current&1),t.flags|=128,null;if(0!==(n&t.child.childLanes))return a5(e,t,n);od(iB,iB.current&1);e=sn(e,t,n);return null!==e?e.sibling:null}od(iB,iB.current&1);break;case 19:r=0!==(n&t.childLanes);if(0!==(e.flags&128)){if(r)return se(e,t,n);t.flags|=128}o=t.memoizedState;null!==o&&(o.rendering=null,o.tail=null,o.lastEffect=null);od(iB,iB.current);if(r)break;else return null;case 22:case 23:return t.lanes=0,aY(e,t,n)}return sn(e,t,n)}var si,sa,ss,sl;si=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n;n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return;n=n.sibling}};sa=function(){};ss=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode;iR(iP.current);var i=null;switch(n){case"input":o=ee(e,o);r=ee(e,r);i=[];break;case"select":o=B({},o,{value:void 0});r=B({},r,{value:void 0});i=[];break;case"textarea":o=el(e,o);r=el(e,r);i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=rK)}eS(n,r);var a;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];l=null!=o?o[c]:void 0;if(r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&rA("scroll",e),i||l===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;if(t.updateQueue=c)t.flags|=4}};sl=function(e,t,n,r){n!==r&&(t.flags|=4)};function su(e,t){if(!oW)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;e.subtreeFlags|=r;e.childLanes=n;return t}function sd(e,t,n){var r=t.pendingProps;oH(t);switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sc(t),null;case 1:return om(t.type)&&oy(),sc(t),null;case 3:r=t.stateNode;iZ();oc(op);oc(oh);iV();r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null);if(null===e||null===e.child)oX(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(t.flags&256)||(t.flags|=1024,null!==oU&&(lg(oU),oU=null));sa(e,t);sc(t);return null;case 5:iN(t);var o=iR(iO.current);n=t.type;if(null!==e&&null!=t.stateNode)ss(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));sc(t);return null}e=iR(iP.current);if(oX(t)){r=t.stateNode;n=t.type;var a=t.memoizedProps;r[r6]=t;r[r8]=a;e=0!==(t.mode&1);switch(n){case"dialog":rA("cancel",r);rA("close",r);break;case"iframe":case"object":case"embed":rA("load",r);break;case"video":case"audio":for(o=0;o<r_.length;o++)rA(r_[o],r);break;case"source":rA("error",r);break;case"img":case"image":case"link":rA("error",r);rA("load",r);break;case"details":rA("toggle",r);break;case"input":et(r,a);rA("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple};rA("invalid",r);break;case"textarea":eu(r,a),rA("invalid",r)}eS(n,a);o=null;for(var l in a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&r$(r.textContent,u,e),o=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&r$(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&rA("scroll",r)}switch(n){case"input":X(r);eo(r,a,!0);break;case"textarea":X(r);ed(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=rK)}r=o;t.updateQueue=r;null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument;"http://www.w3.org/1999/xhtml"===e&&(e=ef(n));"http://www.w3.org/1999/xhtml"===e?"script"===n?(e=l.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n);e[r6]=t;e[r8]=r;si(e,t,!1,!1);t.stateNode=e;e:{l=ek(n,r);switch(n){case"dialog":rA("cancel",e);rA("close",e);o=r;break;case"iframe":case"object":case"embed":rA("load",e);o=r;break;case"video":case"audio":for(o=0;o<r_.length;o++)rA(r_[o],e);o=r;break;case"source":rA("error",e);o=r;break;case"img":case"image":case"link":rA("error",e);rA("load",e);o=r;break;case"details":rA("toggle",e);o=r;break;case"input":et(e,r);o=ee(e,r);rA("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple};o=B({},r,{value:void 0});rA("invalid",e);break;case"textarea":eu(e,r);o=el(e,r);rA("invalid",e);break;default:o=r}eS(n,o);u=o;for(a in u)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ew(e,c):"dangerouslySetInnerHTML"===a?(c=c?c.__html:void 0,null!=c&&eg(e,c)):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&ev(e,c):"number"===typeof c&&ev(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&rA("scroll",e):null!=c&&k(e,a,c,l))}switch(n){case"input":X(e);eo(e,r,!1);break;case"textarea":X(e);ed(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple;a=r.value;null!=a?es(e,!!r.multiple,a,!1):null!=r.defaultValue&&es(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=rK)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}sc(t);return null;case 6:if(e&&null!=t.stateNode)sl(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=iR(iO.current);iR(iP.current);if(oX(t)){r=t.stateNode;n=t.memoizedProps;r[r6]=t;if(a=r.nodeValue!==n){if(e=oF,null!==e)switch(e.tag){case 3:r$(r.nodeValue,n,0!==(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&r$(r.nodeValue,n,0!==(e.mode&1))}}a&&(t.flags|=4)}else r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r),r[r6]=t,t.stateNode=r}sc(t);return null;case 13:oc(iB);r=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oW&&null!==oV&&0!==(t.mode&1)&&0===(t.flags&128))oQ(),oJ(),t.flags|=98560,a=!1;else if(a=oX(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));a=t.memoizedState;a=null!==a?a.dehydrated:null;if(!a)throw Error(i(317));a[r6]=t}else oJ(),0===(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sc(t);a=!1}else null!==oU&&(lg(oU),oU=null),a=!0;if(!a)return t.flags&65536?t:null}if(0!==(t.flags&128))return t.lanes=n,t;r=null!==r;r!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(t.mode&1)&&(null===e||0!==(iB.current&1)?0===sQ&&(sQ=3):lC()));null!==t.updateQueue&&(t.flags|=4);sc(t);return null;case 4:return iZ(),sa(e,t),null===e&&rz(t.stateNode.containerInfo),sc(t),null;case 10:return o7(t.type._context),sc(t),null;case 17:return om(t.type)&&oy(),sc(t),null;case 19:oc(iB);a=t.memoizedState;if(null===a)return sc(t),null;r=0!==(t.flags&128);l=a.rendering;if(null===l)if(r)su(a,!1);else{if(0!==sQ||null!==e&&0!==(e.flags&128))for(e=t.child;null!==e;){l=iH(e);if(null!==l){t.flags|=128;su(a,!1);r=l.updateQueue;null!==r&&(t.updateQueue=r,t.flags|=4);t.subtreeFlags=0;r=n;for(n=t.child;null!==n;)a=n,e=r,a.flags&=14680066,l=a.alternate,null===l?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;od(iB,iB.current&1|2);return t.child}e=e.sibling}null!==a.tail&&e4()>s6&&(t.flags|=128,r=!0,su(a,!1),t.lanes=4194304)}else{if(!r)if(e=iH(l),null!==e){if(t.flags|=128,r=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.flags|=4),su(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!oW)return sc(t),null}else 2*e4()-a.renderingStartTime>s6&&1073741824!==n&&(t.flags|=128,r=!0,su(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(n=a.last,null!==n?n.sibling=l:t.child=l,a.last=l)}if(null!==a.tail)return t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=e4(),t.sibling=null,n=iB.current,od(iB,r?n&1|2:n&1),t;sc(t);return null;case 22:case 23:return lb(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(t.mode&1)?0!==(sG&1073741824)&&(sc(t),t.subtreeFlags&6&&(t.flags|=8192)):sc(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function sf(e,t){oH(t);switch(t.tag){case 1:return om(t.type)&&oy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return iZ(),oc(op),oc(oh),iV(),e=t.flags,0!==(e&65536)&&0===(e&128)?(t.flags=e&-65537|128,t):null;case 5:return iN(t),null;case 13:oc(iB);e=t.memoizedState;if(null!==e&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));oJ()}e=t.flags;return e&65536?(t.flags=e&-65537|128,t):null;case 19:return oc(iB),null;case 4:return iZ(),null;case 10:return o7(t.type._context),null;case 22:case 23:return lb(),null;case 24:return null;default:return null}}var sh=!1,sp=!1,sg="function"===typeof WeakSet?WeakSet:Set,sv=null;function sm(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(n){lR(e,t,n)}else n.current=null}function sy(e,t,n){try{n()}catch(n){lR(e,t,n)}}var sx=!1;function sw(e,t){rq=tU;e=ro();if(ri(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var g;;){h!==n||0!==o&&3!==h.nodeType||(l=s+o);h!==a||0!==r&&3!==h.nodeType||(u=s+r);3===h.nodeType&&(s+=h.nodeValue.length);if(null===(g=h.firstChild))break;p=h;h=g}for(;;){if(h===e)break t;p===n&&++c===o&&(l=s);p===a&&++f===r&&(u=s);if(null!==(g=h.nextSibling))break;h=p;p=h.parentNode}h=g}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;rY={focusedElem:e,selectionRange:n};tU=!1;for(sv=t;null!==sv;)if(t=sv,e=t.child,0!==(t.subtreeFlags&1028)&&null!==e)e.return=t,sv=e;else for(;null!==sv;){t=sv;try{var v=t.alternate;if(0!==(t.flags&1024))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==v){var m=v.memoizedProps,y=v.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?m:o2(t.type,m),y);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(e){lR(t,t.return,e)}e=t.sibling;if(null!==e){e.return=t.return;sv=e;break}sv=t.return}v=sx;sx=!1;return v}function sb(e,t,n){var r=t.updateQueue;r=null!==r?r.lastEffect:null;if(null!==r){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0;void 0!==i&&sy(t,n,i)}o=o.next}while(o!==r)}}function sS(e,t){t=t.updateQueue;t=null!==t?t.lastEffect:null;if(null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function sk(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"===typeof t?t(e):t.current=e}}function sj(e){var t=e.alternate;null!==t&&(e.alternate=null,sj(t));e.child=null;e.deletions=null;e.sibling=null;5===e.tag&&(t=e.stateNode,null!==t&&(delete t[r6],delete t[r8],delete t[r9],delete t[oe],delete t[ot]));e.stateNode=null;e.return=null;e.dependencies=null;e.memoizedProps=null;e.memoizedState=null;e.pendingProps=null;e.stateNode=null;e.updateQueue=null}function sC(e){return 5===e.tag||3===e.tag||4===e.tag}function sT(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sC(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(e.flags&2)continue e;if(null===e.child||4===e.tag)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sE(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=rK));else if(4!==r&&(e=e.child,null!==e))for(sE(e,t,n),e=e.sibling;null!==e;)sE(e,t,n),e=e.sibling}function sI(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(sI(e,t,n),e=e.sibling;null!==e;)sI(e,t,n),e=e.sibling}var s_=null,sM=!1;function sD(e,t,n){for(n=n.child;null!==n;)sP(e,t,n),n=n.sibling}function sP(e,t,n){if(tt&&"function"===typeof tt.onCommitFiberUnmount)try{tt.onCommitFiberUnmount(te,n)}catch(e){}switch(n.tag){case 5:sp||sm(n,t);case 6:var r=s_,o=sM;s_=null;sD(e,t,n);s_=r;sM=o;null!==s_&&(sM?(e=s_,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):s_.removeChild(n.stateNode));break;case 18:null!==s_&&(sM?(e=s_,n=n.stateNode,8===e.nodeType?r2(e.parentNode,n):1===e.nodeType&&r2(e,n),tV(e)):r2(s_,n.stateNode));break;case 4:r=s_;o=sM;s_=n.stateNode.containerInfo;sM=!0;sD(e,t,n);s_=r;sM=o;break;case 0:case 11:case 14:case 15:if(!sp&&(r=n.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag;void 0!==a&&(0!==(i&2)?sy(n,t,a):0!==(i&4)&&sy(n,t,a));o=o.next}while(o!==r)}sD(e,t,n);break;case 1:if(!sp&&(sm(n,t),r=n.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){lR(n,t,e)}sD(e,t,n);break;case 21:sD(e,t,n);break;case 22:n.mode&1?(sp=(r=sp)||null!==n.memoizedState,sD(e,t,n),sp=r):sD(e,t,n);break;default:sD(e,t,n)}}function sA(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sg);t.forEach(function(t){var r=lN.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function sO(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:s_=l.stateNode;sM=!1;break e;case 3:s_=l.stateNode.containerInfo;sM=!0;break e;case 4:s_=l.stateNode.containerInfo;sM=!0;break e}l=l.return}if(null===s_)throw Error(i(160));sP(a,s,o);s_=null;sM=!1;var u=o.alternate;null!==u&&(u.return=null);o.return=null}catch(e){lR(o,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;null!==t;)sR(t,e),t=t.sibling}function sR(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sO(t,e);sz(e);if(r&4){try{sb(3,e,e.return),sS(3,e)}catch(t){lR(e,e.return,t)}try{sb(5,e,e.return)}catch(t){lR(e,e.return,t)}}break;case 1:sO(t,e);sz(e);r&512&&null!==n&&sm(n,n.return);break;case 5:sO(t,e);sz(e);r&512&&null!==n&&sm(n,n.return);if(e.flags&32){var o=e.stateNode;try{ev(o,"")}catch(t){lR(e,e.return,t)}}if(r&4&&(o=e.stateNode,null!=o)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;e.updateQueue=null;if(null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&en(o,a);ek(l,s);var c=ek(l,a);for(s=0;s<u.length;s+=2){var f=u[s],h=u[s+1];"style"===f?ew(o,h):"dangerouslySetInnerHTML"===f?eg(o,h):"children"===f?ev(o,h):k(o,f,h,c)}switch(l){case"input":er(o,a);break;case"textarea":ec(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var g=a.value;null!=g?es(o,!!a.multiple,g,!1):p!==!!a.multiple&&(null!=a.defaultValue?es(o,!!a.multiple,a.defaultValue,!0):es(o,!!a.multiple,a.multiple?[]:"",!1))}o[r8]=a}catch(t){lR(e,e.return,t)}}break;case 6:sO(t,e);sz(e);if(r&4){if(null===e.stateNode)throw Error(i(162));o=e.stateNode;a=e.memoizedProps;try{o.nodeValue=a}catch(t){lR(e,e.return,t)}}break;case 3:sO(t,e);sz(e);if(r&4&&null!==n&&n.memoizedState.isDehydrated)try{tV(t.containerInfo)}catch(t){lR(e,e.return,t)}break;case 4:sO(t,e);sz(e);break;case 13:sO(t,e);sz(e);o=e.child;o.flags&8192&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(s3=e4()));r&4&&sA(e);break;case 22:f=null!==n&&null!==n.memoizedState;e.mode&1?(sp=(c=sp)||f,sO(t,e),sp=c):sO(t,e);sz(e);if(r&8192){c=null!==e.memoizedState;if((e.stateNode.isHidden=c)&&!f&&0!==(e.mode&1))for(sv=e,f=e.child;null!==f;){for(h=sv=f;null!==sv;){p=sv;g=p.child;switch(p.tag){case 0:case 11:case 14:case 15:sb(4,p,p.return);break;case 1:sm(p,p.return);var v=p.stateNode;if("function"===typeof v.componentWillUnmount){r=p;n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){lR(r,n,e)}}break;case 5:sm(p,p.return);break;case 22:if(null!==p.memoizedState){sB(h);continue}}null!==g?(g.return=p,sv=g):sB(h)}f=f.sibling}e:for(f=null,h=e;;){if(5===h.tag){if(null===f){f=h;try{o=h.stateNode,c?(a=o.style,"function"===typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(l=h.stateNode,u=h.memoizedProps.style,s=void 0!==u&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ex("display",s))}catch(t){lR(e,e.return,t)}}}else if(6===h.tag){if(null===f)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(t){lR(e,e.return,t)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h;h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;f===h&&(f=null);h=h.return}f===h&&(f=null);h.sibling.return=h.return;h=h.sibling}}break;case 19:sO(t,e);sz(e);r&4&&sA(e);break;case 21:break;default:sO(t,e),sz(e)}}function sz(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;null!==n;){if(sC(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(ev(o,""),r.flags&=-33);var a=sT(e);sI(e,a,o);break;case 3:case 4:var s=r.stateNode.containerInfo,l=sT(e);sE(e,l,s);break;default:throw Error(i(161))}}catch(t){lR(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sZ(e,t,n){sv=e;sL(e,t,n)}function sL(e,t,n){for(var r=0!==(e.mode&1);null!==sv;){var o=sv,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||sh;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||sp;s=sh;var u=sp;sh=a;if((sp=l)&&!u)for(sv=o;null!==sv;)a=sv,l=a.child,22===a.tag&&null!==a.memoizedState?sH(o):null!==l?(l.return=a,sv=l):sH(o);for(;null!==i;)sv=i,sL(i,t,n),i=i.sibling;sv=o;sh=s;sp=u}sN(e,t,n)}else 0!==(o.subtreeFlags&8772)&&null!==i?(i.return=o,sv=i):sN(e,t,n)}}function sN(e){for(;null!==sv;){var t=sv;if(0!==(t.flags&8772)){var n=t.alternate;try{if(0!==(t.flags&8772))switch(t.tag){case 0:case 11:case 15:sp||sS(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!sp)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:o2(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&im(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){n=null;if(null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}im(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var h=f.dehydrated;null!==h&&tV(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}sp||t.flags&512&&sk(t)}catch(e){lR(t,t.return,e)}}if(t===e){sv=null;break}n=t.sibling;if(null!==n){n.return=t.return;sv=n;break}sv=t.return}}function sB(e){for(;null!==sv;){var t=sv;if(t===e){sv=null;break}var n=t.sibling;if(null!==n){n.return=t.return;sv=n;break}sv=t.return}}function sH(e){for(;null!==sv;){var t=sv;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sS(4,t)}catch(e){lR(t,n,e)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){lR(t,o,e)}}var i=t.return;try{sk(t)}catch(e){lR(t,i,e)}break;case 5:var a=t.return;try{sk(t)}catch(e){lR(t,a,e)}}}catch(e){lR(t,t.return,e)}if(t===e){sv=null;break}var s=t.sibling;if(null!==s){s.return=t.return;sv=s;break}sv=t.return}}var sF=Math.ceil,sV=j.ReactCurrentDispatcher,sW=j.ReactCurrentOwner,sU=j.ReactCurrentBatchConfig,s$=0,sK=null,sq=null,sY=0,sG=0,sX=ou(0),sQ=0,sJ=null,s0=0,s1=0,s2=0,s4=null,s5=null,s3=0,s6=Infinity,s8=null,s7=!1,s9=null,le=null,lt=!1,ln=null,lo=0,li=0,la=null,ls=-1,ll=0;function lu(){return 0!==(s$&6)?e4():-1!==ls?ls:ls=e4()}function lc(e){if(0===(e.mode&1))return 1;if(0!==(s$&2)&&0!==sY)return sY&-sY;if(null!==o1.transition)return 0===ll&&(ll=tp()),ll;e=tx;if(0!==e)return e;e=window.event;e=void 0===e?16:tX(e.type);return e}function ld(e,t,n,r){if(50<li)throw li=0,la=null,Error(i(185));tv(e,n,r);if(0===(s$&2)||e!==sK)e===sK&&(0===(s$&2)&&(s1|=n),4===sQ&&lm(e,sY)),lf(e,r),1===n&&0===s$&&0===(t.mode&1)&&(s6=e4()+500,oj&&oI())}function lf(e,t){var n=e.callbackNode;tf(e,t);var r=tc(e,e===sK?sY:0);if(0===r)null!==n&&e0(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){null!=n&&e0(n);if(1===t)0===e.tag?oE(ly.bind(null,e)):oT(ly.bind(null,e)),r0(function(){0===(s$&6)&&oI()}),n=null;else{switch(tw(r)){case 1:n=e3;break;case 4:n=e6;break;case 16:n=e8;break;case 536870912:n=e9;break;default:n=e8}n=lH(n,lh.bind(null,e))}e.callbackPriority=t;e.callbackNode=n}}function lh(e,t){ls=-1;ll=0;if(0!==(s$&6))throw Error(i(327));var n=e.callbackNode;if(lA()&&e.callbackNode!==n)return null;var r=tc(e,e===sK?sY:0);if(0===r)return null;if(0!==(r&30)||0!==(r&e.expiredLanes)||t)t=lT(e,r);else{t=r;var o=s$;s$|=2;var a=lj();if(sK!==e||sY!==t)s8=null,s6=e4()+500,lS(e,t);do try{lI();break}catch(t){lk(e,t)}while(1);o8();sV.current=a;s$=o;null!==sq?t=0:(sK=null,sY=0,t=sQ)}if(0!==t){2===t&&(o=th(e),0!==o&&(r=o,t=lp(e,o)));if(1===t)throw n=sJ,lS(e,0),lm(e,r),lf(e,e4()),n;if(6===t)lm(e,r);else{o=e.current.alternate;if(0===(r&30)&&!lv(o)&&(t=lT(e,r),2===t&&(a=th(e),0!==a&&(r=a,t=lp(e,a))),1===t))throw n=sJ,lS(e,0),lm(e,r),lf(e,e4()),n;e.finishedWork=o;e.finishedLanes=r;switch(t){case 0:case 1:throw Error(i(345));case 2:lD(e,s5,s8);break;case 3:lm(e,r);if((r&130023424)===r&&(t=s3+500-e4(),10<t)){if(0!==tc(e,0))break;o=e.suspendedLanes;if((o&r)!==r){lu();e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=rX(lD.bind(null,e,s5,s8),t);break}lD(e,s5,s8);break;case 4:lm(e,r);if((r&4194240)===r)break;t=e.eventTimes;for(o=-1;0<r;){var s=31-tr(r);a=1<<s;s=t[s];s>o&&(o=s);r&=~a}r=o;r=e4()-r;r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sF(r/1960))-r;if(10<r){e.timeoutHandle=rX(lD.bind(null,e,s5,s8),r);break}lD(e,s5,s8);break;case 5:lD(e,s5,s8);break;default:throw Error(i(329))}}}lf(e,e4());return e.callbackNode===n?lh.bind(null,e):null}function lp(e,t){var n=s4;e.current.memoizedState.isDehydrated&&(lS(e,t).flags|=256);e=lT(e,t);2!==e&&(t=s5,s5=n,null!==t&&lg(t));return e}function lg(e){null===s5?s5=e:s5.push.apply(s5,e)}function lv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(null!==n&&(n=n.stores,null!==n))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!n7(i(),o))return!1}catch(e){return!1}}}n=t.child;if(t.subtreeFlags&16384&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return;t=t.sibling}}return!0}function lm(e,t){t&=~s2;t&=~s1;e.suspendedLanes|=t;e.pingedLanes&=~t;for(e=e.expirationTimes;0<t;){var n=31-tr(t),r=1<<n;e[n]=-1;t&=~r}}function ly(e){if(0!==(s$&6))throw Error(i(327));lA();var t=tc(e,0);if(0===(t&1))return lf(e,e4()),null;var n=lT(e,t);if(0!==e.tag&&2===n){var r=th(e);0!==r&&(t=r,n=lp(e,r))}if(1===n)throw n=sJ,lS(e,0),lm(e,t),lf(e,e4()),n;if(6===n)throw Error(i(345));e.finishedWork=e.current.alternate;e.finishedLanes=t;lD(e,s5,s8);lf(e,e4());return null}function lx(e,t){var n=s$;s$|=1;try{return e(t)}finally{s$=n,0===s$&&(s6=e4()+500,oj&&oI())}}function lw(e){null!==ln&&0===ln.tag&&0===(s$&6)&&lA();var t=s$;s$|=1;var n=sU.transition,r=tx;try{if(sU.transition=null,tx=1,e)return e()}finally{tx=r,sU.transition=n,s$=t,0===(s$&6)&&oI()}}function lb(){sG=sX.current;oc(sX)}function lS(e,t){e.finishedWork=null;e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,rQ(n));if(null!==sq)for(n=sq.return;null!==n;){var r=n;oH(r);switch(r.tag){case 1:r=r.type.childContextTypes;null!==r&&void 0!==r&&oy();break;case 3:iZ();oc(op);oc(oh);iV();break;case 5:iN(r);break;case 4:iZ();break;case 13:oc(iB);break;case 19:oc(iB);break;case 10:o7(r.type._context);break;case 22:case 23:lb()}n=n.return}sK=e;sq=e=l$(e.current,null);sY=sG=t;sQ=0;sJ=null;s2=s1=s0=0;s5=s4=null;if(null!==io){for(t=0;t<io.length;t++)if(n=io[t],r=n.interleaved,null!==r){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o;r.next=a}n.pending=r}io=null}return e}function lk(e,t){do{var n=sq;try{o8();iW.current=aM;if(iG){for(var r=iK.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null);r=r.next}iG=!1}i$=0;iY=iq=iK=null;iX=!1;iQ=0;sW.current=null;if(null===n||null===n.return){sQ=1;sJ=t;sq=null;break}e:{var a=e,s=n.return,l=n,u=t;t=sY;l.flags|=32768;if(null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,h=f.tag;if(0===(f.mode&1)&&(0===h||11===h||15===h)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=aH(s);if(null!==g){g.flags&=-257;aF(g,s,l,a,t);g.mode&1&&aB(a,c,t);t=g;u=c;var v=t.updateQueue;if(null===v){var m=new Set;m.add(u);t.updateQueue=m}else v.add(u);break e}else{if(0===(t&1)){aB(a,c,t);lC();break e}u=Error(i(426))}}else if(oW&&l.mode&1){var y=aH(s);if(null!==y){0===(y.flags&65536)&&(y.flags|=256);aF(y,s,l,a,t);o0(aO(u,l));break e}}a=u=aO(u,l);4!==sQ&&(sQ=2);null===s4?s4=[a]:s4.push(a);a=s;do{switch(a.tag){case 3:a.flags|=65536;t&=-t;a.lanes|=t;var x=aL(a,u,t);ig(a,x);break e;case 1:l=u;var w=a.type,b=a.stateNode;if(0===(a.flags&128)&&("function"===typeof w.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===le||!le.has(b)))){a.flags|=65536;t&=-t;a.lanes|=t;var S=aN(a,l,t);ig(a,S);break e}}a=a.return}while(null!==a)}lM(n)}catch(e){t=e;sq===n&&null!==n&&(sq=n=n.return);continue}break}while(1)}function lj(){var e=sV.current;sV.current=aM;return null===e?aM:e}function lC(){if(0===sQ||3===sQ||2===sQ)sQ=4;null===sK||0===(s0&268435455)&&0===(s1&268435455)||lm(sK,sY)}function lT(e,t){var n=s$;s$|=2;var r=lj();if(sK!==e||sY!==t)s8=null,lS(e,t);do try{lE();break}catch(t){lk(e,t)}while(1);o8();s$=n;sV.current=r;if(null!==sq)throw Error(i(261));sK=null;sY=0;return sQ}function lE(){for(;null!==sq;)l_(sq)}function lI(){for(;null!==sq&&!e1();)l_(sq)}function l_(e){var t=lB(e.alternate,e,sG);e.memoizedProps=e.pendingProps;null===t?lM(e):sq=t;sW.current=null}function lM(e){var t=e;do{var n=t.alternate;e=t.return;if(0===(t.flags&32768)){if(n=sd(n,t,sG),null!==n){sq=n;return}}else{n=sf(n,t);if(null!==n){n.flags&=32767;sq=n;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sQ=6;sq=null;return}}t=t.sibling;if(null!==t){sq=t;return}sq=t=e}while(null!==t);0===sQ&&(sQ=5)}function lD(e,t,n){var r=tx,o=sU.transition;try{sU.transition=null,tx=1,lP(e,t,n,r)}finally{sU.transition=o,tx=r}return null}function lP(e,t,n,r){do lA();while(null!==ln);if(0!==(s$&6))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;e.finishedWork=null;e.finishedLanes=0;if(n===e.current)throw Error(i(177));e.callbackNode=null;e.callbackPriority=0;var a=n.lanes|n.childLanes;tm(e,a);e===sK&&(sq=sK=null,sY=0);0===(n.subtreeFlags&2064)&&0===(n.flags&2064)||lt||(lt=!0,lH(e8,function(){lA();return null}));a=0!==(n.flags&15990);if(0!==(n.subtreeFlags&15990)||a){a=sU.transition;sU.transition=null;var s=tx;tx=1;var l=s$;s$|=4;sW.current=null;sw(e,n);sR(n,e);ra(rY);tU=!!rq;rY=rq=null;e.current=n;sZ(n,e,o);e2();s$=l;tx=s;sU.transition=a}else e.current=n;lt&&(lt=!1,ln=e,lo=o);a=e.pendingLanes;0===a&&(le=null);tn(n.stateNode,r);lf(e,e4());if(null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(s7)throw s7=!1,e=s9,s9=null,e;0!==(lo&1)&&0!==e.tag&&lA();a=e.pendingLanes;0!==(a&1)?e===la?li++:(li=0,la=e):li=0;oI();return null}function lA(){if(null!==ln){var e=tw(lo),t=sU.transition,n=tx;try{sU.transition=null;tx=16>e?16:e;if(null===ln)var r=!1;else{e=ln;ln=null;lo=0;if(0!==(s$&6))throw Error(i(331));var o=s$;s$|=4;for(sv=e.current;null!==sv;){var a=sv,s=a.child;if(0!==(sv.flags&16)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(sv=c;null!==sv;){var f=sv;switch(f.tag){case 0:case 11:case 15:sb(8,f,a)}var h=f.child;if(null!==h)h.return=f,sv=h;else for(;null!==sv;){f=sv;var p=f.sibling,g=f.return;sj(f);if(f===c){sv=null;break}if(null!==p){p.return=g;sv=p;break}sv=g}}}var v=a.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var y=m.sibling;m.sibling=null;m=y}while(null!==m)}}sv=a}}if(0!==(a.subtreeFlags&2064)&&null!==s)s.return=a,sv=s;else t:for(;null!==sv;){a=sv;if(0!==(a.flags&2048))switch(a.tag){case 0:case 11:case 15:sb(9,a,a.return)}var x=a.sibling;if(null!==x){x.return=a.return;sv=x;break t}sv=a.return}}var w=e.current;for(sv=w;null!==sv;){s=sv;var b=s.child;if(0!==(s.subtreeFlags&2064)&&null!==b)b.return=s,sv=b;else t:for(s=w;null!==sv;){l=sv;if(0!==(l.flags&2048))try{switch(l.tag){case 0:case 11:case 15:sS(9,l)}}catch(e){lR(l,l.return,e)}if(l===s){sv=null;break t}var S=l.sibling;if(null!==S){S.return=l.return;sv=S;break t}sv=l.return}}s$=o;oI();if(tt&&"function"===typeof tt.onPostCommitFiberRoot)try{tt.onPostCommitFiberRoot(te,e)}catch(e){}r=!0}return r}finally{tx=n,sU.transition=t}}return!1}function lO(e,t,n){t=aO(n,t);t=aL(e,t,1);e=ih(e,t,1);t=lu();null!==e&&(tv(e,1,t),lf(e,t))}function lR(e,t,n){if(3===e.tag)lO(e,e,n);else for(;null!==t;){if(3===t.tag){lO(t,e,n);break}else if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===le||!le.has(r))){e=aO(n,e);e=aN(t,e,1);t=ih(t,e,1);e=lu();null!==t&&(tv(t,1,e),lf(t,e));break}}t=t.return}}function lz(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);t=lu();e.pingedLanes|=e.suspendedLanes&n;sK===e&&(sY&n)===n&&(4===sQ||3===sQ&&(sY&130023424)===sY&&500>e4()-s3?lS(e,0):s2|=n);lf(e,t)}function lZ(e,t){0===t&&(0===(e.mode&1)?t=1:(t=tl,tl<<=1,0===(tl&130023424)&&(tl=4194304)));var n=lu();e=is(e,t);null!==e&&(tv(e,t,n),lf(e,n))}function lL(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane);lZ(e,n)}function lN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode;var o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t);lZ(e,n)}var lB;lB=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||op.current)aW=!0;else{if(0===(e.lanes&n)&&0===(t.flags&128))return aW=!1,so(e,t,n);aW=0!==(e.flags&131072)?!0:!1}else aW=!1,oW&&0!==(t.flags&1048576)&&oN(t,oP,t.index);t.lanes=0;switch(t.tag){case 2:var r=t.type;st(e,t);e=t.pendingProps;var o=ov(t,oh.current);ie(t,n);o=i2(null,t,r,e,o,n);var a=i4();t.flags|=1;"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,om(r)?(a=!0,ob(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,iu(t),o.updater=iw,t.stateNode=o,o._reactInternals=t,ij(t,r,e,n),t=aJ(null,t,r,!0,a,n)):(t.tag=0,oW&&a&&oB(t),aU(null,t,o,n),t=t.child);return t;case 16:r=t.elementType;e:{st(e,t);e=t.pendingProps;o=r._init;r=o(r._payload);t.type=r;o=t.tag=lU(r);e=o2(r,e);switch(o){case 0:t=aX(null,t,r,e,n);break e;case 1:t=aQ(null,t,r,e,n);break e;case 11:t=a$(null,t,r,e,n);break e;case 14:t=aK(null,t,r,o2(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),aX(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),aQ(e,t,r,o,n);case 3:e:{a0(t);if(null===e)throw Error(i(387));r=t.pendingProps;a=t.memoizedState;o=a.element;ic(e,t);iv(t,r,null,n);var s=t.memoizedState;r=s.element;if(a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=aO(Error(i(423)),t);t=a1(e,t,r,n,o);break e}else if(r!==o){o=aO(Error(i(424)),t);t=a1(e,t,r,n,o);break e}else for(oV=r4(t.stateNode.containerInfo.firstChild),oF=t,oW=!0,oU=null,n=iM(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{oJ();if(r===o){t=sn(e,t,n);break e}aU(e,t,r,n)}t=t.child}return t;case 5:return iL(t),null===e&&oY(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,rG(r,o)?s=null:null!==a&&rG(r,a)&&(t.flags|=32),aG(e,t),aU(e,t,s,n),t.child;case 6:return null===e&&oY(t),null;case 13:return a5(e,t,n);case 4:return iz(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=i_(t,null,r,n):aU(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),a$(e,t,r,o,n);case 7:return aU(e,t,t.pendingProps,n),t.child;case 8:return aU(e,t,t.pendingProps.children,n),t.child;case 12:return aU(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context;o=t.pendingProps;a=t.memoizedProps;s=o.value;od(o4,r._currentValue);r._currentValue=s;if(null!==a)if(n7(a.value,s)){if(a.children===o.children&&!op.current){t=sn(e,t,n);break e}}else for(a=t.child,null!==a&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){u=id(-1,n&-n);u.tag=2;var c=a.updateQueue;if(null!==c){c=c.shared;var f=c.pending;null===f?u.next=u:(u.next=f.next,f.next=u);c.pending=u}}a.lanes|=n;u=a.alternate;null!==u&&(u.lanes|=n);o9(a.return,n,t);l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){s=a.return;if(null===s)throw Error(i(341));s.lanes|=n;l=s.alternate;null!==l&&(l.lanes|=n);o9(s,n,t);s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}a=s.sibling;if(null!==a){a.return=s.return;s=a;break}s=s.return}a=s}aU(e,t,o.children,n);t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ie(t,n),o=it(o),r=r(o),t.flags|=1,aU(e,t,r,n),t.child;case 14:return r=t.type,o=o2(r,t.pendingProps),o=o2(r.type,o),aK(e,t,r,o,n);case 15:return aq(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:o2(r,o),st(e,t),t.tag=1,om(r)?(e=!0,ob(t)):e=!1,ie(t,n),iS(t,r,o),ij(t,r,o,n),aJ(null,t,r,!0,e,n);case 19:return se(e,t,n);case 22:return aY(e,t,n)}throw Error(i(156,t.tag))};function lH(e,t){return eJ(e,t)}function lF(e,t,n,r){this.tag=e;this.key=n;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=t;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=r;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function lV(e,t,n,r){return new lF(e,t,n,r)}function lW(e){e=e.prototype;return!(!e||!e.isReactComponent)}function lU(e){if("function"===typeof e)return lW(e)?1:0;if(void 0!==e&&null!==e){e=e.$$typeof;if(e===P)return 11;if(e===R)return 14}return 2}function l$(e,t){var n=e.alternate;null===n?(n=lV(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null);n.flags=e.flags&14680064;n.childLanes=e.childLanes;n.lanes=e.lanes;n.child=e.child;n.memoizedProps=e.memoizedProps;n.memoizedState=e.memoizedState;n.updateQueue=e.updateQueue;t=e.dependencies;n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext};n.sibling=e.sibling;n.index=e.index;n.ref=e.ref;return n}function lK(e,t,n,r,o,a){var s=2;r=e;if("function"===typeof e)lW(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case E:return lq(n.children,o,a,t);case I:s=8;o|=8;break;case _:return e=lV(12,n,t,o|2),e.elementType=_,e.lanes=a,e;case A:return e=lV(13,n,t,o),e.elementType=A,e.lanes=a,e;case O:return e=lV(19,n,t,o),e.elementType=O,e.lanes=a,e;case Z:return lY(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case D:s=9;break e;case P:s=11;break e;case R:s=14;break e;case z:s=16;r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}t=lV(s,n,t,o);t.elementType=e;t.type=r;t.lanes=a;return t}function lq(e,t,n,r){e=lV(7,e,r,t);e.lanes=n;return e}function lY(e,t,n,r){e=lV(22,e,r,t);e.elementType=Z;e.lanes=n;e.stateNode={isHidden:!1};return e}function lG(e,t,n){e=lV(6,e,null,t);e.lanes=n;return e}function lX(e,t,n){t=lV(4,null!==e.children?e.children:[],e.key,t);t.lanes=n;t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation};return t}function lQ(e,t,n,r,o){this.tag=t;this.containerInfo=e;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=tg(0);this.expirationTimes=tg(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=tg(0);this.identifierPrefix=r;this.onRecoverableError=o;this.mutableSourceEagerHydrationData=null}function lJ(e,t,n,r,o,i,a,s,l){e=new lQ(e,t,n,s,l);1===t?(t=1,!0===i&&(t|=8)):t=0;i=lV(3,null,null,t);e.current=i;i.stateNode=e;i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};iu(i);return e}function l0(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:T,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function l1(e){if(!e)return of;e=e._reactInternals;e:{if(eK(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(om(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(om(n))return ow(e,n,t)}return t}function l2(e,t,n,r,o,i,a,s,l){e=lJ(n,r,!0,e,o,i,a,s,l);e.context=l1(null);n=e.current;r=lu();o=lc(n);i=id(r,o);i.callback=void 0!==t&&null!==t?t:null;ih(n,i,o);e.current.lanes=o;tv(e,o,r);lf(e,r);return e}function l4(e,t,n,r){var o=t.current,i=lu(),a=lc(o);n=l1(n);null===t.context?t.context=n:t.pendingContext=n;t=id(i,a);t.payload={element:e};r=void 0===r?null:r;null!==r&&(t.callback=r);e=ih(o,t,a);null!==e&&(ld(e,o,a,i),ip(e,o,a));return a}function l5(e){e=e.current;if(!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function l3(e,t){e=e.memoizedState;if(null!==e&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function l6(e,t){l3(e,t);(e=e.alternate)&&l3(e,t)}function l8(){return null}var l7="function"===typeof reportError?reportError:function(e){console.error(e)};function l9(e){this._internalRoot=e}ue.prototype.render=l9.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));l4(e,t,null,null)};ue.prototype.unmount=l9.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lw(function(){l4(null,e,null,null)});t[r7]=null}};function ue(e){this._internalRoot=e}ue.prototype.unstable_scheduleHydration=function(e){if(e){var t=tj();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tA.length&&0!==t&&t<tA[n].priority;n++);tA.splice(n,0,e);0===n&&tL(e)}};function ut(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function un(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function uo(){}function ui(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=l5(a);i.call(e)}}var a=l2(t,r,e,0,null,!1,!1,"",uo);e._reactRootContainer=a;e[r7]=a.current;rz(8===e.nodeType?e.parentNode:e);lw();return a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=l5(l);s.call(e)}}var l=lJ(e,0,!1,null,null,!1,!1,"",uo);e._reactRootContainer=l;e[r7]=l.current;rz(8===e.nodeType?e.parentNode:e);lw(function(){l4(t,l,n,r)});return l}function ua(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=l5(a);s.call(e)}}l4(t,a,e,o)}else a=ui(n,t,e,o,r);return l5(a)}tb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tu(t.pendingLanes);0!==n&&(ty(t,n|1),lf(t,e4()),0===(s$&6)&&(s6=e4()+500,oI()))}break;case 13:lw(function(){var t=is(e,1);if(null!==t){var n=lu();ld(t,e,1,n)}}),l6(e,1)}};tS=function(e){if(13===e.tag){var t=is(e,134217728);if(null!==t){var n=lu();ld(t,e,134217728,n)}l6(e,134217728)}};tk=function(e){if(13===e.tag){var t=lc(e),n=is(e,t);if(null!==n){var r=lu();ld(n,e,t,r)}l6(e,t)}};tj=function(){return tx};tC=function(e,t){var n=tx;try{return tx=e,t()}finally{tx=n}};eT=function(e,t,n){switch(t){case"input":er(e,n);t=n.name;if("radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]');for(t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oa(r);if(!o)throw Error(i(90));Q(r);er(r,o)}}}break;case"textarea":ec(e,n);break;case"select":t=n.value,null!=t&&es(e,!!n.multiple,t,!1)}};eP=lx;eA=lw;var us={usingClientEntryPoint:!1,Events:[oo,oi,oa,eM,eD,lx]},ul={findFiberByHostInstance:on,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"};var uu={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){e=eX(e);return null===e?null:e.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||l8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{te=uc.inject(uu),tt=uc}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=us;t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ut(t))throw Error(i(200));return l0(e,t,null,n)};t.createRoot=function(e,t){if(!ut(e))throw Error(i(299));var n=!1,r="",o=l7;null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError));t=lJ(e,1,!1,null,null,n,!1,r,o);e[r7]=t.current;rz(8===e.nodeType?e.parentNode:e);return new l9(t)};t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));e=Object.keys(e).join(",");throw Error(i(268,e))}e=eX(t);e=null===e?null:e.stateNode;return e};t.flushSync=function(e){return lw(e)};t.hydrate=function(e,t,n){if(!un(t))throw Error(i(200));return ua(null,e,t,!0,n)};t.hydrateRoot=function(e,t,n){if(!ut(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=l7;null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));t=l2(t,null,e,1,null!=n?n:null,o,!1,a,s);e[r7]=t.current;rz(e);if(r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ue(t)};t.render=function(e,t,n){if(!un(t))throw Error(i(200));return ua(null,e,t,!1,n)};t.unmountComponentAtNode=function(e){if(!un(e))throw Error(i(40));return e._reactRootContainer?(lw(function(){ua(null,null,e,!1,function(){e._reactRootContainer=null;e[r7]=null})}),!0):!1};t.unstable_batchedUpdates=lx;t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!un(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ua(e,t,n,!1,r)};t.version="18.2.0-next-9e3b772b8-20220608"},6279:function(e,t,n){"use strict";var r;var o=n(42457);if(true){t.s=o.createRoot;r=o.hydrateRoot}else{var i}},42457:function(e,t,n){"use strict";function r(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}if(true){r();e.exports=n(33936)}else{}},51996:function(e,t){"use strict";/** @license React v16.13.1
|
|
43
|
+
* react-is.production.min.js
|
|
44
|
+
*
|
|
45
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
46
|
+
*
|
|
47
|
+
* This source code is licensed under the MIT license found in the
|
|
48
|
+
* LICENSE file in the root directory of this source tree.
|
|
49
|
+
*/var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function S(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type,e){case c:case f:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof,e){case u:case h:case m:case v:case l:return e;default:return t}}case o:return t}}}function k(e){return S(e)===f}t.AsyncMode=c;t.ConcurrentMode=f;t.ContextConsumer=u;t.ContextProvider=l;t.Element=r;t.ForwardRef=h;t.Fragment=i;t.Lazy=m;t.Memo=v;t.Portal=o;t.Profiler=s;t.StrictMode=a;t.Suspense=p;t.isAsyncMode=function(e){return k(e)||S(e)===c};t.isConcurrentMode=k;t.isContextConsumer=function(e){return S(e)===u};t.isContextProvider=function(e){return S(e)===l};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};t.isForwardRef=function(e){return S(e)===h};t.isFragment=function(e){return S(e)===i};t.isLazy=function(e){return S(e)===m};t.isMemo=function(e){return S(e)===v};t.isPortal=function(e){return S(e)===o};t.isProfiler=function(e){return S(e)===s};t.isStrictMode=function(e){return S(e)===a};t.isSuspense=function(e){return S(e)===p};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===f||e===s||e===a||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===x||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)};t.typeOf=S},5356:function(e,t,n){"use strict";if(true){e.exports=n(51996)}else{}},17605:function(e,t,n){"use strict";n.r(t);n.d(t,{polyfill:function(){return a}});function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);if(e!==null&&e!==undefined){this.setState(e)}}function o(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return n!==null&&n!==undefined?n:null}this.setState(t.bind(this))}function i(e,t){try{var n=this.props;var r=this.state;this.props=e;this.state=t;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n;this.state=r}}r.__suppressDeprecationWarning=true;o.__suppressDeprecationWarning=true;i.__suppressDeprecationWarning=true;function a(e){var t=e.prototype;if(!t||!t.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof e.getDerivedStateFromProps!=="function"&&typeof t.getSnapshotBeforeUpdate!=="function"){return e}var n=null;var a=null;var s=null;if(typeof t.componentWillMount==="function"){n="componentWillMount"}else if(typeof t.UNSAFE_componentWillMount==="function"){n="UNSAFE_componentWillMount"}if(typeof t.componentWillReceiveProps==="function"){a="componentWillReceiveProps"}else if(typeof t.UNSAFE_componentWillReceiveProps==="function"){a="UNSAFE_componentWillReceiveProps"}if(typeof t.componentWillUpdate==="function"){s="componentWillUpdate"}else if(typeof t.UNSAFE_componentWillUpdate==="function"){s="UNSAFE_componentWillUpdate"}if(n!==null||a!==null||s!==null){var l=e.displayName||e.name;var u=typeof e.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(n!==null?"\n "+n:"")+(a!==null?"\n "+a:"")+(s!==null?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\n"+"https://fb.me/react-async-component-lifecycle-hooks")}if(typeof e.getDerivedStateFromProps==="function"){t.componentWillMount=r;t.componentWillReceiveProps=o}if(typeof t.getSnapshotBeforeUpdate==="function"){if(typeof t.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function e(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}},64279:function(e,t){"use strict";/**
|
|
50
|
+
* @license React
|
|
51
|
+
* react-is.production.min.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case o:case a:case i:case f:case h:return e;default:switch(e=e&&e.$$typeof,e){case u:case l:case c:case g:case p:case s:return e;default:return t}}case r:return t}}}t.ContextConsumer=l;t.ContextProvider=s;t.Element=n;t.ForwardRef=c;t.Fragment=o;t.Lazy=g;t.Memo=p;t.Portal=r;t.Profiler=a;t.StrictMode=i;t.Suspense=f;t.SuspenseList=h;t.isAsyncMode=function(){return!1};t.isConcurrentMode=function(){return!1};t.isContextConsumer=function(e){return y(e)===l};t.isContextProvider=function(e){return y(e)===s};t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n};t.isForwardRef=function(e){return y(e)===c};t.isFragment=function(e){return y(e)===o};t.isLazy=function(e){return y(e)===g};t.isMemo=function(e){return y(e)===p};t.isPortal=function(e){return y(e)===r};t.isProfiler=function(e){return y(e)===a};t.isStrictMode=function(e){return y(e)===i};t.isSuspense=function(e){return y(e)===f};t.isSuspenseList=function(e){return y(e)===h};t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===a||e===i||e===f||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===m||void 0!==e.getModuleId)?!0:!1};t.typeOf=y},28650:function(e,t,n){"use strict";if(true){e.exports=n(64279)}else{}},62151:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bodyOpenClassName=t.portalClassName=undefined;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,n,r){if(n)e(t.prototype,n);if(r)e(t,r);return t}}();var i=n(66204);var a=w(i);var s=n(42457);var l=w(s);var u=n(97641);var c=w(u);var f=n(65434);var h=w(f);var p=n(80377);var g=x(p);var v=n(71384);var m=w(v);var y=n(17605);function x(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function w(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function S(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function k(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var j=t.portalClassName="ReactModalPortal";var C=t.bodyOpenClassName="ReactModal__Body--open";var T=v.canUseDOM&&l.default.createPortal!==undefined;var E=function e(e){return document.createElement(e)};var I=function e(){return T?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var M=function(e){k(t,e);function t(){var e;var n,o,i;b(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++){u[c]=arguments[c]}return i=(n=(o=S(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),o),o.removePortal=function(){!T&&l.default.unmountComponentAtNode(o.node);var e=_(o.props.parentSelector);if(e&&e.contains(o.node)){e.removeChild(o.node)}else{console.warn('React-Modal: "parentSelector" prop did not returned any DOM '+"element. Make sure that the parent element is unmounted to "+"avoid any memory leaks.")}},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=I();var i=n(o,a.default.createElement(h.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(i)},n),S(o,i)}o(t,[{key:"componentDidMount",value:function e(){if(!v.canUseDOM)return;if(!T){this.node=E("div")}this.node.className=this.props.portalClassName;var e=_(this.props.parentSelector);e.appendChild(this.node);!T&&this.renderPortal(this.props)}},{key:"getSnapshotBeforeUpdate",value:function e(e){var t=_(e.parentSelector);var n=_(this.props.parentSelector);return{prevParent:t,nextParent:n}}},{key:"componentDidUpdate",value:function e(e,t,n){if(!v.canUseDOM)return;var r=this.props,o=r.isOpen,i=r.portalClassName;if(e.portalClassName!==i){this.node.className=i}var a=n.prevParent,s=n.nextParent;if(s!==a){a.removeChild(this.node);s.appendChild(this.node)}if(!e.isOpen&&!o)return;!T&&this.renderPortal(this.props)}},{key:"componentWillUnmount",value:function e(){if(!v.canUseDOM||!this.node||!this.portal)return;var e=this.portal.state;var t=Date.now();var n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);if(n){if(!e.beforeClose){this.portal.closeWithTimeout()}setTimeout(this.removePortal,n-t)}else{this.removePortal()}}},{key:"render",value:function e(){if(!v.canUseDOM||!T){return null}if(!this.node&&T){this.node=E("div")}var e=I();return e(a.default.createElement(h.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function e(e){g.setElement(e)}}]);return t}(i.Component);M.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.oneOfType([c.default.instanceOf(m.default),c.default.instanceOf(v.SafeHTMLCollection),c.default.instanceOf(v.SafeNodeList),c.default.arrayOf(c.default.instanceOf(m.default))]),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func};M.defaultProps={isOpen:false,portalClassName:j,bodyOpenClassName:C,role:"dialog",ariaHideApp:true,closeTimeoutMS:0,shouldFocusAfterRender:true,shouldCloseOnEsc:true,shouldCloseOnOverlayClick:true,shouldReturnFocusAfterClose:true,preventScroll:false,parentSelector:function e(){return document.body},overlayElement:function e(e,t){return a.default.createElement("div",e,t)},contentElement:function e(e,t){return a.default.createElement("div",e,t)}};M.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,y.polyfill)(M);if(false){}t["default"]=M},65434:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};var o=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}return function(t,n,r){if(n)e(t.prototype,n);if(r)e(t,r);return t}}();var a=n(66204);var s=n(97641);var l=k(s);var u=n(50313);var c=S(u);var f=n(73273);var h=k(f);var p=n(80377);var g=S(p);var v=n(53576);var m=S(v);var y=n(71384);var x=k(y);var w=n(48598);var b=k(w);n(57631);function S(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]}}t.default=e;return t}}function k(e){return e&&e.__esModule?e:{default:e}}function j(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function C(e,t){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t&&(typeof t==="object"||typeof t==="function")?t:e}function T(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof t)}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});if(t)Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t}var E={overlay:"ReactModal__Overlay",content:"ReactModal__Content"};var I=function e(e){return e.code==="Tab"||e.keyCode===9};var _=function e(e){return e.code==="Escape"||e.keyCode===27};var M=0;var D=function(e){T(t,e);function t(e){j(this,t);var n=C(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.setOverlayRef=function(e){n.overlay=e;n.props.overlayRef&&n.props.overlayRef(e)};n.setContentRef=function(e){n.content=e;n.props.contentRef&&n.props.contentRef(e)};n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector;var s=a&&a().ownerDocument||document;i&&m.remove(s.body,i);o&&m.remove(s.getElementsByTagName("html")[0],o);if(r&&M>0){M-=1;if(M===0){g.show(t)}}if(n.props.shouldFocusAfterRender){if(n.props.shouldReturnFocusAfterClose){c.returnFocus(n.props.preventScroll);c.teardownScopedFocus()}else{c.popWithoutFocus()}}if(n.props.onAfterClose){n.props.onAfterClose()}b.default.deregister(n)};n.open=function(){n.beforeOpen();if(n.state.afterOpen&&n.state.beforeClose){clearTimeout(n.closeTimer);n.setState({beforeClose:false})}else{if(n.props.shouldFocusAfterRender){c.setupScopedFocus(n.node);c.markForFocusLater()}n.setState({isOpen:true},function(){n.openAnimationFrame=requestAnimationFrame(function(){n.setState({afterOpen:true});if(n.props.isOpen&&n.props.onAfterOpen){n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}})})}};n.close=function(){if(n.props.closeTimeoutMS>0){n.closeWithTimeout()}else{n.closeWithoutTimeout()}};n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:true})};n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:true,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})};n.closeWithoutTimeout=function(){n.setState({beforeClose:false,isOpen:false,afterOpen:false,closesAt:null},n.afterClose)};n.handleKeyDown=function(e){if(I(e)){(0,h.default)(n.content,e)}if(n.props.shouldCloseOnEsc&&_(e)){e.stopPropagation();n.requestClose(e)}};n.handleOverlayOnClick=function(e){if(n.shouldClose===null){n.shouldClose=true}if(n.shouldClose&&n.props.shouldCloseOnOverlayClick){if(n.ownerHandlesClose()){n.requestClose(e)}else{n.focusContent()}}n.shouldClose=null};n.handleContentOnMouseUp=function(){n.shouldClose=false};n.handleOverlayOnMouseDown=function(e){if(!n.props.shouldCloseOnOverlayClick&&e.target==n.overlay){e.preventDefault()}};n.handleContentOnClick=function(){n.shouldClose=false};n.handleContentOnMouseDown=function(){n.shouldClose=false};n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)};n.ownerHandlesClose=function(){return n.props.onRequestClose};n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose};n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)};n.buildClassName=function(e,t){var r=(typeof t==="undefined"?"undefined":o(t))==="object"?t:{base:E[e],afterOpen:E[e]+"--after-open",beforeClose:E[e]+"--before-close"};var i=r.base;if(n.state.afterOpen){i=i+" "+r.afterOpen}if(n.state.beforeClose){i=i+" "+r.beforeClose}return typeof t==="string"&&t?i+" "+t:i};n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){n[e+"-"+r]=t[r];return n},{})};n.state={afterOpen:false,beforeClose:false};n.shouldClose=null;n.moveFromContentToOverlay=null;return n}i(t,[{key:"componentDidMount",value:function e(){if(this.props.isOpen){this.open()}}},{key:"componentDidUpdate",value:function e(e,t){if(false){}if(this.props.isOpen&&!e.isOpen){this.open()}else if(!this.props.isOpen&&e.isOpen){this.close()}if(this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen){this.focusContent()}}},{key:"componentWillUnmount",value:function e(){if(this.state.isOpen){this.afterClose()}clearTimeout(this.closeTimer);cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function e(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector;var a=i&&i().ownerDocument||document;o&&m.add(a.body,o);r&&m.add(a.getElementsByTagName("html")[0],r);if(n){M+=1;g.hide(t)}b.default.register(this)}},{key:"render",value:function e(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children;var s=n?{}:i.content;var l=o?{}:i.overlay;if(this.shouldBeClosed()){return null}var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown};var c=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:true},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId});var f=this.props.contentElement(c,a);return this.props.overlayElement(u,f)}}]);return t}(a.Component);D.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}};D.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(x.default),l.default.instanceOf(y.SafeHTMLCollection),l.default.instanceOf(y.SafeNodeList),l.default.arrayOf(l.default.instanceOf(x.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string};t["default"]=D;e.exports=t["default"]},80377:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=l;t.log=u;t.assertNodeList=c;t.setElement=f;t.validateElement=h;t.hide=p;t.show=g;t.documentNotReadyOrSSRTesting=v;var r=n(92879);var o=a(r);var i=n(71384);function a(e){return e&&e.__esModule?e:{default:e}}var s=null;function l(){if(s){if(s.removeAttribute){s.removeAttribute("aria-hidden")}else if(s.length!=null){s.forEach(function(e){return e.removeAttribute("aria-hidden")})}else{document.querySelectorAll(s).forEach(function(e){return e.removeAttribute("aria-hidden")})}}s=null}function u(){if(false){var e}}function c(e,t){if(!e||!e.length){throw new Error("react-modal: No elements were found for selector "+t+".")}}function f(e){var t=e;if(typeof t==="string"&&i.canUseDOM){var n=document.querySelectorAll(t);c(n,t);t=n}s=t||s;return s}function h(e){var t=e||s;if(t){return Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]}else{(0,o.default)(false,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" "));return[]}}function p(e){var t=true;var n=false;var r=undefined;try{for(var o=h(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=true){var a=i.value;a.setAttribute("aria-hidden","true")}}catch(e){n=true;r=e}finally{try{if(!t&&o.return){o.return()}}finally{if(n){throw r}}}}function g(e){var t=true;var n=false;var r=undefined;try{for(var o=h(e)[Symbol.iterator](),i;!(t=(i=o.next()).done);t=true){var a=i.value;a.removeAttribute("aria-hidden")}}catch(e){n=true;r=e}finally{try{if(!t&&o.return){o.return()}}finally{if(n){throw r}}}}function v(){s=null}},57631:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=u;t.log=c;var r=n(48598);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=void 0,s=void 0,l=[];function u(){var e=[a,s];for(var t=0;t<e.length;t++){var n=e[t];if(!n)continue;n.parentNode&&n.parentNode.removeChild(n)}a=s=null;l=[]}function c(){console.log("bodyTrap ----------");console.log(l.length);var e=[a,s];for(var t=0;t<e.length;t++){var n=e[t];var r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function f(){if(l.length===0){if(false){}return}l[l.length-1].focusContent()}function h(e,t){if(!a&&!s){a=document.createElement("div");a.setAttribute("data-react-modal-body-trap","");a.style.position="absolute";a.style.opacity="0";a.setAttribute("tabindex","0");a.addEventListener("focus",f);s=a.cloneNode();s.addEventListener("focus",f)}l=t;if(l.length>0){if(document.body.firstChild!==a){document.body.insertBefore(a,document.body.firstChild)}if(document.body.lastChild!==s){document.body.appendChild(s)}}else{if(a.parentElement){a.parentElement.removeChild(a)}if(s.parentElement){s.parentElement.removeChild(s)}}}o.default.subscribe(h)},53576:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=i;t.log=a;var n={};var r={};function o(e,t){e.classList.remove(t)}function i(){var e=document.getElementsByTagName("html")[0];for(var t in n){o(e,n[t])}var i=document.body;for(var a in r){o(i,r[a])}n={};r={}}function a(){if(false){var e,t,n,r}}var s=function e(e,t){if(!e[t]){e[t]=0}e[t]+=1;return t};var l=function e(e,t){if(e[t]){e[t]-=1}return t};var u=function e(e,t,n){n.forEach(function(n){s(t,n);e.add(n)})};var c=function e(e,t,n){n.forEach(function(n){l(t,n);t[n]===0&&e.remove(n)})};var f=t.add=function e(e,t){return u(e.classList,e.nodeName.toLowerCase()=="html"?n:r,t.split(" "))};var h=t.remove=function e(e,t){return c(e.classList,e.nodeName.toLowerCase()=="html"?n:r,t.split(" "))}},50313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resetState=u;t.log=c;t.handleBlur=f;t.handleFocus=h;t.markForFocusLater=p;t.returnFocus=g;t.popWithoutFocus=v;t.setupScopedFocus=m;t.teardownScopedFocus=y;var r=n(43674);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=[];var s=null;var l=false;function u(){a=[]}function c(){if(false){}}function f(){l=true}function h(){if(l){l=false;if(!s){return}setTimeout(function(){if(s.contains(document.activeElement)){return}var e=(0,o.default)(s)[0]||s;e.focus()},0)}}function p(){a.push(document.activeElement)}function g(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=null;try{if(a.length!==0){t=a.pop();t.focus({preventScroll:e})}return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function v(){a.length>0&&a.pop()}function m(e){s=e;if(window.addEventListener){window.addEventListener("blur",f,false);document.addEventListener("focus",h,true)}else{window.attachEvent("onBlur",f);document.attachEvent("onFocus",h)}}function y(){s=null;if(window.addEventListener){window.removeEventListener("blur",f);document.removeEventListener("focus",h)}else{window.detachEvent("onBlur",f);document.detachEvent("onFocus",h)}}},48598:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.log=i;t.resetState=a;function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=function e(){var t=this;n(this,e);this.register=function(e){if(t.openInstances.indexOf(e)!==-1){if(false){}return}t.openInstances.push(e);t.emit("register")};this.deregister=function(e){var n=t.openInstances.indexOf(e);if(n===-1){if(false){}return}t.openInstances.splice(n,1);t.emit("deregister")};this.subscribe=function(e){t.subscribers.push(e)};this.emit=function(e){t.subscribers.forEach(function(n){return n(e,t.openInstances.slice())})};this.openInstances=[];this.subscribers=[]};var o=new r;function i(){console.log("portalOpenInstances ----------");console.log(o.openInstances.length);o.openInstances.forEach(function(e){return console.log(e)});console.log("end portalOpenInstances ----------")}function a(){o=new r}t["default"]=o},71384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=undefined;var r=n(53797);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}var a=o.default;var s=a.canUseDOM?window.HTMLElement:{};var l=t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{};var u=t.SafeNodeList=a.canUseDOM?window.NodeList:{};var c=t.canUseDOM=a.canUseDOM;t["default"]=s},73273:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=s;var r=n(43674);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function a(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}function s(e,t){var n=(0,o.default)(e);if(!n.length){t.preventDefault();return}var r=void 0;var i=t.shiftKey;var s=n[0];var l=n[n.length-1];var u=a();if(e===u){if(!i)return;r=l}if(l===u&&!i){r=s}if(s===u&&i){r=l}if(r){t.preventDefault();r.focus();return}var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);var f=c!=null&&c[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!f)return;var h=n.indexOf(u);if(h>-1){h+=i?-1:1}r=n[h];if(typeof r==="undefined"){t.preventDefault();r=i?l:s;r.focus();return}t.preventDefault();r.focus()}e.exports=t["default"]},43674:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=c;/*!
|
|
58
|
+
* Adapted from jQuery UI core
|
|
59
|
+
*
|
|
60
|
+
* http://jqueryui.com
|
|
61
|
+
*
|
|
62
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
63
|
+
* Released under the MIT license.
|
|
64
|
+
* http://jquery.org/license
|
|
65
|
+
*
|
|
66
|
+
* http://api.jqueryui.com/category/ui-core/
|
|
67
|
+
*/var n="none";var r="contents";var o=/input|select|textarea|button|object|iframe/;function i(e,t){return t.getPropertyValue("overflow")!=="visible"||e.scrollWidth<=0&&e.scrollHeight<=0}function a(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return true;try{var o=window.getComputedStyle(e);var a=o.getPropertyValue("display");return t?a!==r&&i(e,o):a===n}catch(e){console.warn("Failed to inspect element style");return false}}function s(e){var t=e;var n=e.getRootNode&&e.getRootNode();while(t){if(t===document.body)break;if(n&&t===n)t=n.host.parentNode;if(a(t))return false;t=t.parentNode}return true}function l(e,t){var n=e.nodeName.toLowerCase();var r=o.test(n)&&!e.disabled||(n==="a"?e.href||t:t);return r&&s(e)}function u(e){var t=e.getAttribute("tabindex");if(t===null)t=undefined;var n=isNaN(t);return(n||t>=0)&&l(e,!n)}function c(e){var t=[].slice.call(e.querySelectorAll("*"),0).reduce(function(e,t){return e.concat(!t.shadowRoot?[t]:c(t.shadowRoot))},[]);return t.filter(u)}e.exports=t["default"]},77216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=n(62151);var o=i(r);function i(e){return e&&e.__esModule?e:{default:e}}t["default"]=o.default;e.exports=t["default"]},37496:function(e,t,n){"use strict";n.d(t,{zt:function(){return g},I0:function(){return J},v9:function(){return er},oR:function(){return X}});var r=n(66204);var o=r.createContext(null);if(false){}var i=null&&o;function a(e){e()}var s=a;var l=function e(e){return s=e};var u=function e(){return s};var c={notify:function e(){}};function f(){var e=u();var t=null;var n=null;return{clear:function e(){t=null;n=null},notify:function n(){e(function(){var e=t;while(e){e.callback();e=e.next}})},get:function e(){var e=[];var n=t;while(n){e.push(n);n=n.next}return e},subscribe:function e(e){var r=true;var o=n={callback:e,next:null,prev:n};if(o.prev){o.prev.next=o}else{t=o}return function e(){if(!r||t===null)return;r=false;if(o.next){o.next.prev=o.prev}else{n=o.prev}if(o.prev){o.prev.next=o.next}else{t=o.next}}}}}var h=function(){function e(e,t){this.store=e;this.parentSub=t;this.unsubscribe=null;this.listeners=c;this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;t.addNestedSub=function e(e){this.trySubscribe();return this.listeners.subscribe(e)};t.notifyNestedSubs=function e(){this.listeners.notify()};t.handleChangeWrapper=function e(){if(this.onStateChange){this.onStateChange()}};t.isSubscribed=function e(){return Boolean(this.unsubscribe)};t.trySubscribe=function e(){if(!this.unsubscribe){this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper);this.listeners=f()}};t.tryUnsubscribe=function e(){if(this.unsubscribe){this.unsubscribe();this.unsubscribe=null;this.listeners.clear();this.listeners=c}};return e}();function p(e){var t=e.store,n=e.context,i=e.children;var a=(0,r.useMemo)(function(){var e=new h(t);e.onStateChange=e.notifyNestedSubs;return{store:t,subscription:e}},[t]);var s=(0,r.useMemo)(function(){return t.getState()},[t]);(0,r.useEffect)(function(){var e=a.subscription;e.trySubscribe();if(s!==t.getState()){e.notifyNestedSubs()}return function(){e.tryUnsubscribe();e.onStateChange=null}},[a,s]);var l=n||o;return r.createElement(l.Provider,{value:a},i)}if(false){}var g=p;var v=n(69060);var m=n(5356);var y=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?r.useLayoutEffect:r.useEffect;var x=null&&[];var w=null&&[null,null];var b=function e(e){try{return JSON.stringify(e)}catch(t){return String(e)}};function S(e,t){var n=e[1];return[t.payload,n+1]}function k(e,t,n){useIsomorphicLayoutEffect(function(){return e.apply(void 0,t)},n)}function j(e,t,n,r,o,i,a){e.current=r;t.current=o;n.current=false;if(i.current){i.current=null;a()}}function C(e,t,n,r,o,i,a,s,l,u){if(!e)return;var c=false;var f=null;var h=function e(){if(c){return}var e=t.getState();var n,h;try{n=r(e,o.current)}catch(e){h=e;f=e}if(!h){f=null}if(n===i.current){if(!a.current){l()}}else{i.current=n;s.current=n;a.current=true;u({type:"STORE_UPDATED",payload:{error:h}})}};n.onStateChange=h;n.trySubscribe();h();var p=function e(){c=true;n.tryUnsubscribe();n.onStateChange=null;if(f){throw f}};return p}var T=function e(){return[null,0]};function E(e,t){if(t===void 0){t={}}var n=t,r=n.getDisplayName,o=r===void 0?function(e){return"ConnectAdvanced("+e+")"}:r,i=n.methodName,a=i===void 0?"connectAdvanced":i,s=n.renderCountProp,l=s===void 0?undefined:s,u=n.shouldHandleStateChanges,c=u===void 0?true:u,f=n.storeKey,h=f===void 0?"store":f,p=n.withRef,g=p===void 0?false:p,v=n.forwardRef,m=v===void 0?false:v,y=n.context,b=y===void 0?ReactReduxContext:y,E=_objectWithoutPropertiesLoose(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);if(false){var I}var _=b;return function t(t){if(false){}var n=t.displayName||t.name||"Component";var r=o(n);var i=_extends({},E,{getDisplayName:o,methodName:a,renderCountProp:l,shouldHandleStateChanges:c,storeKey:h,displayName:r,wrappedComponentName:n,WrappedComponent:t});var s=E.pure;function u(t){return e(t.dispatch,i)}var f=s?useMemo:function(e){return e()};function p(e){var n=useMemo(function(){var t=e.reactReduxForwardedRef,n=_objectWithoutPropertiesLoose(e,["reactReduxForwardedRef"]);return[e.context,t,n]},[e]),r=n[0],o=n[1],i=n[2];var a=useMemo(function(){return r&&r.Consumer&&isContextConsumer(React.createElement(r.Consumer,null))?r:_},[r,_]);var s=useContext(a);var l=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);var h=Boolean(s)&&Boolean(s.store);if(false){}var p=l?e.store:s.store;var g=useMemo(function(){return u(p)},[p]);var v=useMemo(function(){if(!c)return w;var e=new Subscription(p,l?null:s.subscription);var t=e.notifyNestedSubs.bind(e);return[e,t]},[p,l,s]),m=v[0],y=v[1];var b=useMemo(function(){if(l){return s}return _extends({},s,{subscription:m})},[l,s,m]);var E=useReducer(S,x,T),I=E[0],M=I[0],D=E[1];if(M&&M.error){throw M.error}var P=useRef();var A=useRef(i);var O=useRef();var R=useRef(false);var z=f(function(){if(O.current&&i===A.current){return O.current}return g(p.getState(),i)},[p,M,i]);k(j,[A,P,R,i,z,O,y]);k(C,[c,p,m,g,A,P,R,O,y,D],[p,m,g]);var Z=useMemo(function(){return React.createElement(t,_extends({},z,{ref:o}))},[o,t,z]);var L=useMemo(function(){if(c){return React.createElement(a.Provider,{value:b},Z)}return Z},[a,Z,b]);return L}var g=s?React.memo(p):p;g.WrappedComponent=t;g.displayName=r;if(m){var v=React.forwardRef(function e(e,t){return React.createElement(g,_extends({},e,{reactReduxForwardedRef:t}))});v.displayName=r;v.WrappedComponent=t;return hoistStatics(v,t)}return hoistStatics(g,t)}}var I=n(65485);function _(e){return function t(t,n){var r=e(t,n);function o(){return r}o.dependsOnOwnProps=false;return o}}function M(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==undefined?Boolean(e.dependsOnOwnProps):e.length!==1}function D(e,t){return function t(t,n){var r=n.displayName;var o=function e(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};o.dependsOnOwnProps=true;o.mapToProps=function t(t,n){o.mapToProps=e;o.dependsOnOwnProps=M(e);var r=o(t,n);if(typeof r==="function"){o.mapToProps=r;o.dependsOnOwnProps=M(r);r=o(t,n)}if(false){}return r};return o}};function P(e){return typeof e==="function"?D(e,"mapDispatchToProps"):undefined}function A(e){return!e?_(function(e){return{dispatch:e}}):undefined}function O(e){return e&&typeof e==="object"?_(function(t){return(0,I.DE)(e,t)}):undefined}var R=[P,A,O];function z(e){return typeof e==="function"?D(e,"mapStateToProps"):undefined}function Z(e){return!e?_(function(){return{}}):undefined}var L=[z,Z];var N=n(7896);function B(e,t,n){return(0,N.Z)({},n,{},e,{},t)}function H(e){return function t(t,n){var r=n.displayName,o=n.pure,i=n.areMergedPropsEqual;var a=false;var s;return function t(t,n,r){var l=e(t,n,r);if(a){if(!o||!i(l,s))s=l}else{a=true;s=l;if(false){}}return s}}}function F(e){return typeof e==="function"?H(e):undefined}function V(e){return!e?function(){return B}:undefined}var W=[F,V];function U(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function $(e,t){return e===t}function K(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?connectAdvanced:n,o=t.mapStateToPropsFactories,i=o===void 0?defaultMapStateToPropsFactories:o,a=t.mapDispatchToPropsFactories,s=a===void 0?defaultMapDispatchToPropsFactories:a,l=t.mergePropsFactories,u=l===void 0?defaultMergePropsFactories:l,c=t.selectorFactory,f=c===void 0?defaultSelectorFactory:c;return function e(e,t,n,o){if(o===void 0){o={}}var a=o,l=a.pure,c=l===void 0?true:l,h=a.areStatesEqual,p=h===void 0?$:h,g=a.areOwnPropsEqual,v=g===void 0?shallowEqual:g,m=a.areStatePropsEqual,y=m===void 0?shallowEqual:m,x=a.areMergedPropsEqual,w=x===void 0?shallowEqual:x,b=_objectWithoutPropertiesLoose(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]);var S=U(e,i,"mapStateToProps");var k=U(t,s,"mapDispatchToProps");var j=U(n,u,"mergeProps");return r(f,_extends({methodName:"connect",getDisplayName:function e(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:k,initMergeProps:j,pure:c,areStatesEqual:p,areOwnPropsEqual:v,areStatePropsEqual:y,areMergedPropsEqual:w},b))}}var q=null&&K();function Y(){var e=(0,r.useContext)(o);if(false){}return e};function G(e){if(e===void 0){e=o}var t=e===o?Y:function(){return(0,r.useContext)(e)};return function e(){var e=t(),n=e.store;return n}}var X=G();function Q(e){if(e===void 0){e=o}var t=e===o?X:G(e);return function e(){var e=t();return e.dispatch}}var J=Q();var ee=function e(e,t){return e===t};function et(e,t,n,o){var i=(0,r.useReducer)(function(e){return e+1},0),a=i[1];var s=(0,r.useMemo)(function(){return new h(n,o)},[n,o]);var l=(0,r.useRef)();var u=(0,r.useRef)();var c=(0,r.useRef)();var f=(0,r.useRef)();var p=n.getState();var g;try{if(e!==u.current||p!==c.current||l.current){g=e(p)}else{g=f.current}}catch(e){if(l.current){e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"}throw e}y(function(){u.current=e;c.current=p;f.current=g;l.current=undefined});y(function(){function e(){try{var e=u.current(n.getState());if(t(e,f.current)){return}f.current=e}catch(e){l.current=e}a()}s.onStateChange=e;s.trySubscribe();e();return function(){return s.tryUnsubscribe()}},[n,s]);return g}function en(e){if(e===void 0){e=o}var t=e===o?Y:function(){return(0,r.useContext)(e)};return function e(e,n){if(n===void 0){n=ee}if(false){}var o=t(),i=o.store,a=o.subscription;var s=et(e,n,i,a);(0,r.useDebugValue)(s);return s}}var er=en();var eo=n(42457);;l(eo.unstable_batchedUpdates)},45485:function(e,t,n){"use strict";n.d(t,{OL:function(){return A},VK:function(){return E}});var r=n(66204);var o=n(59379);var i=n(45058);/**
|
|
68
|
+
* React Router DOM v6.11.2
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) Remix Software Inc.
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
74
|
+
*
|
|
75
|
+
* @license MIT
|
|
76
|
+
*/function a(){a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return a.apply(this,arguments)}function s(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const l="get";const u="application/x-www-form-urlencoded";function c(e){return e!=null&&typeof e.tagName==="string"}function f(e){return c(e)&&e.tagName.toLowerCase()==="button"}function h(e){return c(e)&&e.tagName.toLowerCase()==="form"}function p(e){return c(e)&&e.tagName.toLowerCase()==="input"}function g(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v(e,t){return e.button===0&&(!t||t==="_self")&&!g(e)}function m(e){if(e===void 0){e=""}return new URLSearchParams(typeof e==="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function y(e,t){let n=m(e);if(t){for(let e of t.keys()){if(!n.has(e)){t.getAll(e).forEach(t=>{n.append(e,t)})}}}return n}function x(e,t,n){let r;let o=null;let i;let a;if(h(e)){let s=t.submissionTrigger;if(t.action){o=t.action}else{let t=e.getAttribute("action");o=t?stripBasename(t,n):null}r=t.method||e.getAttribute("method")||l;i=t.encType||e.getAttribute("enctype")||u;a=new FormData(e);if(s&&s.name){a.append(s.name,s.value)}}else if(f(e)||p(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null){throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>')}if(t.action){o=t.action}else{let t=e.getAttribute("formaction")||s.getAttribute("action");o=t?stripBasename(t,n):null}r=t.method||e.getAttribute("formmethod")||s.getAttribute("method")||l;i=t.encType||e.getAttribute("formenctype")||s.getAttribute("enctype")||u;a=new FormData(s);if(e.name){a.append(e.name,e.value)}}else if(c(e)){throw new Error("Cannot submit element that is not <form>, <button>, or "+'<input type="submit|image">')}else{r=t.method||l;o=t.action||null;i=t.encType||u;if(e instanceof FormData){a=e}else{a=new FormData;if(e instanceof URLSearchParams){for(let[t,n]of e){a.append(t,n)}}else if(e!=null){for(let t of Object.keys(e)){a.append(t,e[t])}}}}return{action:o,method:r.toLowerCase(),encType:i,formData:a}}const w=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],b=["aria-current","caseSensitive","className","end","style","to","children"],S=null&&["reloadDocument","replace","method","action","onSubmit","fetcherKey","routeId","relative","preventScrollReset"];function k(e,t){return createRouter({basename:t==null?void 0:t.basename,future:a({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createBrowserHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||C(),routes:e,mapRouteProperties:UNSAFE_mapRouteProperties}).initialize()}function j(e,t){return createRouter({basename:t==null?void 0:t.basename,future:a({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createHashHistory({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||C(),routes:e,mapRouteProperties:UNSAFE_mapRouteProperties}).initialize()}function C(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;if(t&&t.errors){t=a({},t,{errors:T(t.errors)})}return t}function T(e){if(!e)return null;let t=Object.entries(e);let n={};for(let[e,r]of t){if(r&&r.__type==="RouteErrorResponse"){n[e]=new ErrorResponse(r.status,r.statusText,r.data,r.internal===true)}else if(r&&r.__type==="Error"){let t=new Error(r.message);t.stack="";n[e]=t}else{n[e]=r}}return n}function E(e){let{basename:t,children:n,window:a}=e;let s=r.useRef();if(s.current==null){s.current=(0,i.lX)({window:a,v5Compat:true})}let l=s.current;let[u,c]=r.useState({action:l.action,location:l.location});r.useLayoutEffect(()=>l.listen(c),[l]);return r.createElement(o.F0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:l})}function I(e){let{basename:t,children:n,window:r}=e;let o=React.useRef();if(o.current==null){o.current=createHashHistory({window:r,v5Compat:true})}let i=o.current;let[a,s]=React.useState({action:i.action,location:i.location});React.useLayoutEffect(()=>i.listen(s),[i]);return React.createElement(Router,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}function _(e){let{basename:t,children:n,history:r}=e;const[o,i]=React.useState({action:r.action,location:r.location});React.useLayoutEffect(()=>r.listen(i),[r]);return React.createElement(Router,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:r})}if(false){}const M=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined";const D=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;const P=r.forwardRef(function e(e,t){let{onClick:n,relative:l,reloadDocument:u,replace:c,state:f,target:h,to:p,preventScrollReset:g}=e,v=s(e,w);let{basename:m}=r.useContext(o.Us);let y;let x=false;if(typeof p==="string"&&D.test(p)){y=p;if(M){try{let e=new URL(window.location.href);let t=p.startsWith("//")?new URL(e.protocol+p):new URL(p);let n=(0,i.Zn)(t.pathname,m);if(t.origin===e.origin&&n!=null){p=n+t.search+t.hash}else{x=true}}catch(e){false?0:void 0}}}let b=(0,o.oQ)(p,{relative:l});let S=F(p,{replace:c,state:f,target:h,preventScrollReset:g,relative:l});function k(e){if(n)n(e);if(!e.defaultPrevented){S(e)}}return r.createElement("a",a({},v,{href:y||b,onClick:x||u?n:k,ref:t,target:h}))});if(false){}const A=r.forwardRef(function e(e,t){let{"aria-current":n="page",caseSensitive:i=false,className:l="",end:u=false,style:c,to:f,children:h}=e,p=s(e,b);let g=(0,o.WU)(f,{relative:p.relative});let v=(0,o.TH)();let m=r.useContext(o.FR);let{navigator:y}=r.useContext(o.Us);let x=y.encodeLocation?y.encodeLocation(g).pathname:g.pathname;let w=v.pathname;let S=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;if(!i){w=w.toLowerCase();S=S?S.toLowerCase():null;x=x.toLowerCase()}let k=w===x||!u&&w.startsWith(x)&&w.charAt(x.length)==="/";let j=S!=null&&(S===x||!u&&S.startsWith(x)&&S.charAt(x.length)==="/");let C=k?n:undefined;let T;if(typeof l==="function"){T=l({isActive:k,isPending:j})}else{T=[l,k?"active":null,j?"pending":null].filter(Boolean).join(" ")}let E=typeof c==="function"?c({isActive:k,isPending:j}):c;return r.createElement(P,a({},p,{"aria-current":C,className:T,ref:t,style:E,to:f}),typeof h==="function"?h({isActive:k,isPending:j}):h)});if(false){}const O=null&&React.forwardRef((e,t)=>{return React.createElement(R,a({},e,{ref:t}))});if(false){}const R=null&&React.forwardRef((e,t)=>{let{reloadDocument:n,replace:r,method:o=l,action:i,onSubmit:u,fetcherKey:c,routeId:f,relative:h,preventScrollReset:p}=e,g=s(e,S);let v=U(c,f);let m=o.toLowerCase()==="get"?"get":"post";let y=$(i,{relative:h});let x=e=>{u&&u(e);if(e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter;let n=(t==null?void 0:t.getAttribute("formmethod"))||o;v(t||e.currentTarget,{method:n,replace:r,relative:h,preventScrollReset:p})};return React.createElement("form",a({ref:t,method:m,action:y,onSubmit:n?u:x},g))});if(false){}function z(e){let{getKey:t,storageKey:n}=e;J({getKey:t,storageKey:n});return null}if(false){}var Z;(function(e){e["UseScrollRestoration"]="useScrollRestoration";e["UseSubmitImpl"]="useSubmitImpl";e["UseFetcher"]="useFetcher"})(Z||(Z={}));var L;(function(e){e["UseFetchers"]="useFetchers";e["UseScrollRestoration"]="useScrollRestoration"})(L||(L={}));function N(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function B(e){let t=React.useContext(UNSAFE_DataRouterContext);!t?false?0:UNSAFE_invariant(false):void 0;return t}function H(e){let t=React.useContext(UNSAFE_DataRouterStateContext);!t?false?0:UNSAFE_invariant(false):void 0;return t}function F(e,t){let{target:n,replace:a,state:s,preventScrollReset:l,relative:u}=t===void 0?{}:t;let c=(0,o.s0)();let f=(0,o.TH)();let h=(0,o.WU)(e,{relative:u});return r.useCallback(t=>{if(v(t,n)){t.preventDefault();let n=a!==undefined?a:(0,i.Ep)(f)===(0,i.Ep)(h);c(e,{replace:n,state:s,preventScrollReset:l,relative:u})}},[f,c,h,a,s,n,e,l,u])}function V(e){false?0:void 0;let t=React.useRef(m(e));let n=React.useRef(false);let r=useLocation();let o=React.useMemo(()=>y(r.search,n.current?null:t.current),[r.search]);let i=useNavigate();let a=React.useCallback((e,t)=>{const r=m(typeof e==="function"?e(o):e);n.current=true;i("?"+r,t)},[i,o]);return[o,a]}function W(){return U()}function U(e,t){let{router:n}=B(Z.UseSubmitImpl);let{basename:r}=React.useContext(UNSAFE_NavigationContext);let o=UNSAFE_useRouteId();return React.useCallback(function(i,s){if(s===void 0){s={}}if(typeof document==="undefined"){throw new Error("You are calling submit during the server render. "+"Try calling submit within a `useEffect` or callback instead.")}let{action:l,method:u,encType:c,formData:f}=x(i,s,r);let h={preventScrollReset:s.preventScrollReset,formData:f,formMethod:u,formEncType:c};if(e){!(t!=null)?false?0:UNSAFE_invariant(false):void 0;n.fetch(e,t,l,h)}else{n.navigate(l,a({},h,{replace:s.replace,fromRouteId:o}))}},[n,r,e,t,o])}function $(e,t){let{relative:n}=t===void 0?{}:t;let{basename:r}=React.useContext(UNSAFE_NavigationContext);let o=React.useContext(UNSAFE_RouteContext);!o?false?0:UNSAFE_invariant(false):void 0;let[i]=o.matches.slice(-1);let s=a({},useResolvedPath(e?e:".",{relative:n}));let l=useLocation();if(e==null){s.search=l.search;s.hash=l.hash;if(i.route.index){let e=new URLSearchParams(s.search);e.delete("index");s.search=e.toString()?"?"+e.toString():""}}if((!e||e===".")&&i.route.index){s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"}if(r!=="/"){s.pathname=s.pathname==="/"?r:joinPaths([r,s.pathname])}return createPath(s)}function K(e,t){let n=React.forwardRef((n,r)=>{return React.createElement(R,a({},n,{ref:r,fetcherKey:e,routeId:t}))});if(false){}return n}let q=0;function Y(){var e;let{router:t}=B(Z.UseFetcher);let n=React.useContext(UNSAFE_RouteContext);!n?false?0:UNSAFE_invariant(false):void 0;let r=(e=n.matches[n.matches.length-1])==null?void 0:e.route.id;!(r!=null)?false?0:UNSAFE_invariant(false):void 0;let[o]=React.useState(()=>String(++q));let[i]=React.useState(()=>{!r?false?0:UNSAFE_invariant(false):void 0;return K(o,r)});let[s]=React.useState(()=>e=>{!t?false?0:UNSAFE_invariant(false):void 0;!r?false?0:UNSAFE_invariant(false):void 0;t.fetch(o,r,e)});let l=U(o,r);let u=t.getFetcher(o);let c=React.useMemo(()=>a({Form:i,submit:l,load:s},u),[u,i,l,s]);React.useEffect(()=>{return()=>{if(!t){console.warn("No router available to clean up from useFetcher()");return}t.deleteFetcher(o)}},[t,o]);return c}function G(){let e=H(L.UseFetchers);return[...e.fetchers.values()]}const X="react-router-scroll-positions";let Q={};function J(e){let{getKey:t,storageKey:n}=e===void 0?{}:e;let{router:r}=B(Z.UseScrollRestoration);let{restoreScrollPosition:o,preventScrollReset:i}=H(L.UseScrollRestoration);let a=useLocation();let s=useMatches();let l=useNavigation();React.useEffect(()=>{window.history.scrollRestoration="manual";return()=>{window.history.scrollRestoration="auto"}},[]);et(React.useCallback(()=>{if(l.state==="idle"){let e=(t?t(a,s):null)||a.key;Q[e]=window.scrollY}sessionStorage.setItem(n||X,JSON.stringify(Q));window.history.scrollRestoration="auto"},[n,t,l.state,a,s]));if(typeof document!=="undefined"){React.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(n||X);if(e){Q=JSON.parse(e)}}catch(e){}},[n]);React.useLayoutEffect(()=>{let e=r==null?void 0:r.enableScrollRestoration(Q,()=>window.scrollY,t);return()=>e&&e()},[r,t]);React.useLayoutEffect(()=>{if(o===false){return}if(typeof o==="number"){window.scrollTo(0,o);return}if(a.hash){let e=document.getElementById(a.hash.slice(1));if(e){e.scrollIntoView();return}}if(i===true){return}window.scrollTo(0,0)},[a,o,i])}}function ee(e,t){let{capture:n}=t||{};React.useEffect(()=>{let t=n!=null?{capture:n}:undefined;window.addEventListener("beforeunload",e,t);return()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}function et(e,t){let{capture:n}=t||{};React.useEffect(()=>{let t=n!=null?{capture:n}:undefined;window.addEventListener("pagehide",e,t);return()=>{window.removeEventListener("pagehide",e,t)}},[e,n])}function en(e){let{when:t,message:n}=e;let r=unstable_useBlocker(t);React.useEffect(()=>{if(r.state==="blocked"&&!t){r.reset()}},[r,t]);React.useEffect(()=>{if(r.state==="blocked"){let e=window.confirm(n);if(e){setTimeout(r.proceed,0)}else{r.reset()}}},[r,n])}},59379:function(e,t,n){"use strict";n.d(t,{AW:function(){return el},F0:function(){return eu},FR:function(){return s},Fg:function(){return ea},TH:function(){return v},UO:function(){return T},Us:function(){return u},WU:function(){return E},Z5:function(){return ec},bS:function(){return y},oQ:function(){return p},s0:function(){return b}});var r=n(66204);var o=n(45058);/**
|
|
77
|
+
* React Router v6.11.2
|
|
78
|
+
*
|
|
79
|
+
* Copyright (c) Remix Software Inc.
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the MIT license found in the
|
|
82
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
83
|
+
*
|
|
84
|
+
* @license MIT
|
|
85
|
+
*/function i(){i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return i.apply(this,arguments)}const a=r.createContext(null);if(false){}const s=r.createContext(null);if(false){}const l=r.createContext(null);if(false){}const u=r.createContext(null);if(false){}const c=r.createContext(null);if(false){}const f=r.createContext({outlet:null,matches:[],isDataRoute:false});if(false){}const h=r.createContext(null);if(false){}function p(e,t){let{relative:n}=t===void 0?{}:t;!g()?false?0:(0,o.J0)(false):void 0;let{basename:i,navigator:a}=r.useContext(u);let{hash:s,pathname:l,search:c}=E(e,{relative:n});let f=l;if(i!=="/"){f=l==="/"?i:(0,o.RQ)([i,l])}return a.createHref({pathname:f,search:c,hash:s})}function g(){return r.useContext(c)!=null}function v(){!g()?false?0:(0,o.J0)(false):void 0;return r.useContext(c).location}function m(){return React.useContext(c).navigationType}function y(e){!g()?false?0:(0,o.J0)(false):void 0;let{pathname:t}=v();return r.useMemo(()=>(0,o.LX)(e,t),[t,e])}const x=null&&"You should call navigate() in a React.useEffect(), not when "+"your component is first rendered.";function w(e){let t=r.useContext(u).static;if(!t){r.useLayoutEffect(e)}}function b(){let{isDataRoute:e}=r.useContext(f);return e?ee():S()}function S(){!g()?false?0:(0,o.J0)(false):void 0;let e=r.useContext(a);let{basename:t,navigator:n}=r.useContext(u);let{matches:i}=r.useContext(f);let{pathname:s}=v();let l=JSON.stringify((0,o.Zq)(i).map(e=>e.pathnameBase));let c=r.useRef(false);w(()=>{c.current=true});let h=r.useCallback(function(r,i){if(i===void 0){i={}}false?0:void 0;if(!c.current)return;if(typeof r==="number"){n.go(r);return}let a=(0,o.pC)(r,JSON.parse(l),s,i.relative==="path");if(e==null&&t!=="/"){a.pathname=a.pathname==="/"?t:(0,o.RQ)([t,a.pathname])}(!!i.replace?n.replace:n.push)(a,i.state,i)},[t,n,l,s,e]);return h}const k=null&&React.createContext(null);function j(){return React.useContext(k)}function C(e){let t=React.useContext(f).outlet;if(t){return React.createElement(k.Provider,{value:e},t)}return t}function T(){let{matches:e}=r.useContext(f);let t=e[e.length-1];return t?t.params:{}}function E(e,t){let{relative:n}=t===void 0?{}:t;let{matches:i}=r.useContext(f);let{pathname:a}=v();let s=JSON.stringify((0,o.Zq)(i).map(e=>e.pathnameBase));return r.useMemo(()=>(0,o.pC)(e,JSON.parse(s),a,n==="path"),[e,s,a,n])}function I(e,t){return _(e,t)}function _(e,t,n){!g()?false?0:(0,o.J0)(false):void 0;let{navigator:a}=r.useContext(u);let{matches:s}=r.useContext(f);let l=s[s.length-1];let h=l?l.params:{};let p=l?l.pathname:"/";let m=l?l.pathnameBase:"/";let y=l&&l.route;if(false){}let x=v();let w;if(t){var b;let e=typeof t==="string"?(0,o.cP)(t):t;!(m==="/"||((b=e.pathname)==null?void 0:b.startsWith(m)))?false?0:(0,o.J0)(false):void 0;w=e}else{w=x}let S=w.pathname||"/";let k=m==="/"?S:S.slice(m.length)||"/";let j=(0,o.fp)(e,{pathname:k});if(false){}let C=O(j&&j.map(e=>Object.assign({},e,{params:Object.assign({},h,e.params),pathname:(0,o.RQ)([m,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase==="/"?m:(0,o.RQ)([m,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,n);if(t&&C){return r.createElement(c.Provider,{value:{location:i({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:o.aU.Pop}},C)}return C}function M(){let e=Y();let t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e);let n=e instanceof Error?e.stack:null;let i="rgba(200,200,200, 0.5)";let a={padding:"0.5rem",backgroundColor:i};let s={padding:"2px 4px",backgroundColor:i};let l=null;if(false){}return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,l)}const D=r.createElement(M,null);class P extends r.Component{constructor(e){super(e);this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){if(t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"){return{error:e.error,location:e.location,revalidation:e.revalidation}}return{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?r.createElement(f.Provider,{value:this.props.routeContext},r.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function A(e){let{routeContext:t,match:n,children:o}=e;let i=r.useContext(a);if(i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)){i.staticContext._deepestRenderedBoundaryId=n.route.id}return r.createElement(f.Provider,{value:t},o)}function O(e,t,n){var i;if(t===void 0){t=[]}if(n===void 0){n=null}if(e==null){var a;if((a=n)!=null&&a.errors){e=n.matches}else{return null}}let s=e;let l=(i=n)==null?void 0:i.errors;if(l!=null){let e=s.findIndex(e=>e.route.id&&(l==null?void 0:l[e.route.id]));!(e>=0)?false?0:(0,o.J0)(false):void 0;s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight((e,o,i)=>{let a=o.route.id?l==null?void 0:l[o.route.id]:null;let u=null;if(n){u=o.route.errorElement||D}let c=t.concat(s.slice(0,i+1));let f=()=>{let t;if(a){t=u}else if(o.route.Component){t=r.createElement(o.route.Component,null)}else if(o.route.element){t=o.route.element}else{t=e}return r.createElement(A,{match:o,routeContext:{outlet:e,matches:c,isDataRoute:n!=null},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||i===0)?r.createElement(P,{location:n.location,revalidation:n.revalidation,component:u,error:a,children:f(),routeContext:{outlet:null,matches:c,isDataRoute:true}}):f()},null)}var R;(function(e){e["UseBlocker"]="useBlocker";e["UseRevalidator"]="useRevalidator";e["UseNavigateStable"]="useNavigate"})(R||(R={}));var z;(function(e){e["UseBlocker"]="useBlocker";e["UseLoaderData"]="useLoaderData";e["UseActionData"]="useActionData";e["UseRouteError"]="useRouteError";e["UseNavigation"]="useNavigation";e["UseRouteLoaderData"]="useRouteLoaderData";e["UseMatches"]="useMatches";e["UseRevalidator"]="useRevalidator";e["UseNavigateStable"]="useNavigate";e["UseRouteId"]="useRouteId"})(z||(z={}));function Z(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function L(e){let t=r.useContext(a);!t?false?0:(0,o.J0)(false):void 0;return t}function N(e){let t=r.useContext(s);!t?false?0:(0,o.J0)(false):void 0;return t}function B(e){let t=r.useContext(f);!t?false?0:(0,o.J0)(false):void 0;return t}function H(e){let t=B(e);let n=t.matches[t.matches.length-1];!n.route.id?false?0:(0,o.J0)(false):void 0;return n.route.id}function F(){return H(z.UseRouteId)}function V(){let e=N(z.UseNavigation);return e.navigation}function W(){let e=L(R.UseRevalidator);let t=N(z.UseRevalidator);return{revalidate:e.router.revalidate,state:t.revalidation}}function U(){let{matches:e,loaderData:t}=N(z.UseMatches);return React.useMemo(()=>e.map(e=>{let{pathname:n,params:r}=e;return{id:e.route.id,pathname:n,params:r,data:t[e.route.id],handle:e.route.handle}}),[e,t])}function $(){let e=N(z.UseLoaderData);let t=H(z.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return undefined}return e.loaderData[t]}function K(e){let t=N(z.UseRouteLoaderData);return t.loaderData[e]}function q(){let e=N(z.UseActionData);let t=React.useContext(f);!t?false?0:UNSAFE_invariant(false):void 0;return Object.values((e==null?void 0:e.actionData)||{})[0]}function Y(){var e;let t=r.useContext(h);let n=N(z.UseRouteError);let o=H(z.UseRouteError);if(t){return t}return(e=n.errors)==null?void 0:e[o]}function G(){let e=React.useContext(l);return e==null?void 0:e._data}function X(){let e=React.useContext(l);return e==null?void 0:e._error}let Q=0;function J(e){let{router:t}=L(R.UseBlocker);let n=N(z.UseBlocker);let[r]=React.useState(()=>String(++Q));let o=React.useCallback(t=>{return typeof e==="function"?!!e(t):!!e},[e]);let i=t.getBlocker(r,o);React.useEffect(()=>()=>t.deleteBlocker(r),[t,r]);return n.blockers.get(r)||i}function ee(){let{router:e}=L(R.UseNavigateStable);let t=H(z.UseNavigateStable);let n=r.useRef(false);w(()=>{n.current=true});let o=r.useCallback(function(r,o){if(o===void 0){o={}}false?0:void 0;if(!n.current)return;if(typeof r==="number"){e.navigate(r)}else{e.navigate(r,i({fromRouteId:t},o))}},[e,t]);return o}const et={};function en(e,t,n){if(!t&&!et[e]){et[e]=true;false?0:void 0}}function er(e){let{fallbackElement:t,router:n}=e;let[r,o]=React.useState(n.state);React.useLayoutEffect(()=>n.subscribe(o),[n,o]);let i=React.useMemo(()=>{return{createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:r==null?void 0:r.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:true,state:t,preventScrollReset:r==null?void 0:r.preventScrollReset})}},[n]);let l=n.basename||"/";let u=React.useMemo(()=>({router:n,navigator:i,static:false,basename:l}),[n,i,l]);return React.createElement(React.Fragment,null,React.createElement(a.Provider,{value:u},React.createElement(s.Provider,{value:r},React.createElement(eu,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?React.createElement(eo,{routes:n.routes,state:r}):t))),null)}function eo(e){let{routes:t,state:n}=e;return _(t,undefined,n)}function ei(e){let{basename:t,children:n,initialEntries:r,initialIndex:o}=e;let i=React.useRef();if(i.current==null){i.current=createMemoryHistory({initialEntries:r,initialIndex:o,v5Compat:true})}let a=i.current;let[s,l]=React.useState({action:a.action,location:a.location});React.useLayoutEffect(()=>a.listen(l),[a]);return React.createElement(eu,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}function ea(e){let{to:t,replace:n,state:i,relative:a}=e;!g()?false?0:(0,o.J0)(false):void 0;false?0:void 0;let{matches:s}=r.useContext(f);let{pathname:l}=v();let u=b();let c=(0,o.pC)(t,(0,o.Zq)(s).map(e=>e.pathnameBase),l,a==="path");let h=JSON.stringify(c);r.useEffect(()=>u(JSON.parse(h),{replace:n,state:i,relative:a}),[u,h,a,n,i]);return null}function es(e){return C(e.context)}function el(e){false?0:(0,o.J0)(false)}function eu(e){let{basename:t="/",children:n=null,location:i,navigationType:a=o.aU.Pop,navigator:s,static:l=false}=e;!!g()?false?0:(0,o.J0)(false):void 0;let f=t.replace(/^\/*/,"/");let h=r.useMemo(()=>({basename:f,navigator:s,static:l}),[f,s,l]);if(typeof i==="string"){i=(0,o.cP)(i)}let{pathname:p="/",search:v="",hash:m="",state:y=null,key:x="default"}=i;let w=r.useMemo(()=>{let e=(0,o.Zn)(p,f);if(e==null){return null}return{location:{pathname:e,search:v,hash:m,state:y,key:x},navigationType:a}},[f,p,v,m,y,x,a]);false?0:void 0;if(w==null){return null}return r.createElement(u.Provider,{value:h},r.createElement(c.Provider,{children:n,value:w}))}function ec(e){let{children:t,location:n}=e;return I(ev(t),n)}function ed(e){let{children:t,errorElement:n,resolve:r}=e;return React.createElement(ep,{resolve:r,errorElement:n},React.createElement(eg,null,t))}var ef;(function(e){e[e["pending"]=0]="pending";e[e["success"]=1]="success";e[e["error"]=2]="error"})(ef||(ef={}));const eh=new Promise(()=>{});class ep extends r.Component{constructor(e){super(e);this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props;let i=null;let a=ef.pending;if(!(n instanceof Promise)){a=ef.success;i=Promise.resolve();Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_data",{get:()=>n})}else if(this.state.error){a=ef.error;let e=this.state.error;i=Promise.reject().catch(()=>{});Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_error",{get:()=>e})}else if(n._tracked){i=n;a=i._error!==undefined?ef.error:i._data!==undefined?ef.success:ef.pending}else{a=ef.pending;Object.defineProperty(n,"_tracked",{get:()=>true});i=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>Object.defineProperty(n,"_error",{get:()=>e}))}if(a===ef.error&&i._error instanceof o.X3){throw eh}if(a===ef.error&&!t){throw i._error}if(a===ef.error){return r.createElement(l.Provider,{value:i,children:t})}if(a===ef.success){return r.createElement(l.Provider,{value:i,children:e})}throw i}}function eg(e){let{children:t}=e;let n=G();let r=typeof t==="function"?t(n):t;return React.createElement(React.Fragment,null,r)}function ev(e,t){if(t===void 0){t=[]}let n=[];r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e)){return}let a=[...t,i];if(e.type===r.Fragment){n.push.apply(n,ev(e.props.children,a));return}!(e.type===el)?false?0:(0,o.J0)(false):void 0;!(!e.props.index||!e.props.children)?false?0:(0,o.J0)(false):void 0;let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};if(e.props.children){s.children=ev(e.props.children,a)}n.push(s)});return n}function em(e){return O(e)}function ey(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};if(e.Component){if(false){}Object.assign(t,{element:React.createElement(e.Component),Component:undefined})}if(e.ErrorBoundary){if(false){}Object.assign(t,{errorElement:React.createElement(e.ErrorBoundary),ErrorBoundary:undefined})}return t}function ex(e,t){return createRouter({basename:t==null?void 0:t.basename,future:i({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createMemoryHistory({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:ey}).initialize()}},13015:function(e,t,n){"use strict";n.d(t,{q:function(){return rC},vc:function(){return t6},q_:function(){return nY},Yz:function(){return n0}});var r=b(),o=e=>v(e,r),i=b();o.write=e=>v(e,i);var a=b();o.onStart=e=>v(e,a);var s=b();o.onFrame=e=>v(e,s);var l=b();o.onFinish=e=>v(e,l);var u=[];o.setTimeout=(e,t)=>{let n=o.now()+t,r=()=>{let e=u.findIndex(e=>e.cancel==r);~e&&u.splice(e,1),p-=~e?1:0},i={time:n,handler:e,cancel:r};return u.splice(c(n),0,i),p+=1,m(),i};var c=e=>~(~u.findIndex(t=>t.time>e)||~u.length);o.cancel=e=>{a.delete(e),s.delete(e),l.delete(e),r.delete(e),i.delete(e)};o.sync=e=>{g=!0,o.batchedUpdates(e),g=!1};o.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,o.onStart(n)}return r.handler=e,r.cancel=()=>{a.delete(n),t=null},r};var f=typeof window<"u"?window.requestAnimationFrame:()=>{};o.use=e=>f=e;o.now=typeof performance<"u"?()=>performance.now():Date.now;o.batchedUpdates=e=>e();o.catch=console.error;o.frameLoop="always";o.advance=()=>{o.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):w()};var h=-1,p=0,g=!1;function v(e,t){g?(t.delete(e),e(0)):(t.add(e),m())}function m(){h<0&&(h=0,o.frameLoop!=="demand"&&f(x))}function y(){h=-1}function x(){~h&&(f(x),o.batchedUpdates(w))}function w(){let e=h;h=o.now();let t=c(h);if(t&&(S(u.splice(0,t),e=>e.handler()),p-=t),!p){y();return}a.flush(),r.flush(e?Math.min(64,h-e):16.667),s.flush(),i.flush(),l.flush()}function b(){let e=new Set,t=e;return{add(n){p+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return p-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,p-=t.size,S(t,t=>t(n)&&e.add(t)),p+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){o.catch(e)}})}var k={count(){return p},isRunning(){return h>=0},clear(){h=-1,u=[],a=b(),r=b(),s=b(),i=b(),l=b(),p=0}};var j=n(66204);var C=Object.defineProperty;var T=(e,t)=>{for(var n in t)C(e,n,{get:t[n],enumerable:!0})};var E={};T(E,{assign:()=>V,colors:()=>B,createStringInterpolator:()=>L,skipAnimation:()=>H,to:()=>N,willAdvance:()=>F});function I(){}var _=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),M={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function D(e,t){if(M.arr(e)){if(!M.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var P=(e,t)=>e.forEach(t);function A(e,t,n){if(M.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var O=e=>M.und(e)?[]:M.arr(e)?e:[e];function R(e,t){if(e.size){let n=Array.from(e);e.clear(),P(n,t)}}var z=(e,...t)=>R(e,e=>e(...t)),Z=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);var L,N,B=null,H=!1,F=I,V=e=>{e.to&&(N=e.to),e.now&&(o.now=e.now),e.colors!==void 0&&(B=e.colors),e.skipAnimation!=null&&(H=e.skipAnimation),e.createStringInterpolator&&(L=e.createStringInterpolator),e.requestAnimationFrame&&o.use(e.requestAnimationFrame),e.batchedUpdates&&(o.batchedUpdates=e.batchedUpdates),e.willAdvance&&(F=e.willAdvance),e.frameLoop&&(o.frameLoop=e.frameLoop)};var W=new Set,U=[],$=[],K=0,q={get idle(){return!W.size&&!U.length},start(e){K>e.priority?(W.add(e),o.onStart(Y)):(G(e),o(Q))},advance:Q,sort(e){if(K)o.onFrame(()=>q.sort(e));else{let t=U.indexOf(e);~t&&(U.splice(t,1),X(e))}},clear(){U=[],W.clear()}};function Y(){W.forEach(G),W.clear(),o(Q)}function G(e){U.includes(e)||X(e)}function X(e){U.splice(J(U,t=>t.priority>e.priority),0,e)}function Q(e){let t=$;for(let n=0;n<U.length;n++){let r=U[n];K=r.priority,r.idle||(F(r),r.advance(e),r.idle||t.push(r))}return K=0,$=U,$.length=0,U=t,U.length>0}function J(e,t){let n=e.findIndex(t);return n<0?e.length:n}var ee=(e,t,n)=>Math.min(Math.max(n,e),t);var et={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};var en="[-+]?\\d*\\.?\\d+",er=en+"%";function eo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ei=new RegExp("rgb"+eo(en,en,en)),ea=new RegExp("rgba"+eo(en,en,en,en)),es=new RegExp("hsl"+eo(en,er,er)),el=new RegExp("hsla"+eo(en,er,er,en)),eu=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ec=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ed=/^#([0-9a-fA-F]{6})$/,ef=/^#([0-9a-fA-F]{8})$/;function eh(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ed.exec(e))?parseInt(t[1]+"ff",16)>>>0:B&&B[e]!==void 0?B[e]:(t=ei.exec(e))?(ev(t[1])<<24|ev(t[2])<<16|ev(t[3])<<8|255)>>>0:(t=ea.exec(e))?(ev(t[1])<<24|ev(t[2])<<16|ev(t[3])<<8|ey(t[4]))>>>0:(t=eu.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ef.exec(e))?parseInt(t[1],16)>>>0:(t=ec.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=es.exec(e))?(eg(em(t[1]),ex(t[2]),ex(t[3]))|255)>>>0:(t=el.exec(e))?(eg(em(t[1]),ex(t[2]),ex(t[3]))|ey(t[4]))>>>0:null}function ep(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function eg(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ep(o,r,e+1/3),a=ep(o,r,e),s=ep(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function ev(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function em(e){return(parseFloat(e)%360+360)%360/360}function ey(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ex(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ew(e){let t=eh(e);if(t===null)return e;t=t||0;let n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${o}, ${i})`}var eb=(e,t,n)=>{if(M.fun(e))return e;if(M.arr(e))return eb({range:e,output:t,extrapolate:n});if(M.str(e.output[0]))return L(e);let r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{let t=ek(e,i);return eS(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};function eS(e,t,n,r,o,i,a,s,l){let u=l?l(e):e;if(u<t){if(a==="identity")return u;a==="clamp"&&(u=t)}if(u>n){if(s==="identity")return u;s==="clamp"&&(u=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:o===1/0?u=u+r:u=u*(o-r)+r,u)}function ek(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var ej=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);let r=n*e,o=t==="end"?Math.floor(r):Math.ceil(r);return ee(0,1,o/e)},eC=1.70158,eT=eC*1.525,eE=eC+1,eI=2*Math.PI/3,e_=2*Math.PI/4.5,eM=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,eD={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>eE*e*e*e-eC*e*e,easeOutBack:e=>1+eE*Math.pow(e-1,3)+eC*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((eT+1)*2*e-eT)/2:(Math.pow(2*e-2,2)*((eT+1)*(e*2-2)+eT)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*eI),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*eI)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*e_))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*e_)/2+1,easeInBounce:e=>1-eM(1-e),easeOutBounce:eM,easeInOutBounce:e=>e<.5?(1-eM(1-2*e))/2:(1+eM(2*e-1))/2,steps:ej};var eP=Symbol.for("FluidValue.get"),eA=Symbol.for("FluidValue.observers");var eO=e=>!!(e&&e[eP]),eR=e=>e&&e[eP]?e[eP]():e,ez=e=>e[eA]||null;function eZ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function eL(e,t){let n=e[eA];n&&n.forEach(e=>{eZ(e,t)})}var eN=class{[eP];[eA];constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");eB(this,e)}},eB=(e,t)=>eV(e,eP,t);function eH(e,t){if(e[eP]){let n=e[eA];n||eV(e,eA,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function eF(e,t){let n=e[eA];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[eA]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var eV=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0});var eW=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,e$=new RegExp(`(${eW.source})(%|[a-z]+)`,"i"),eK=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eq=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var eY=e=>{let[t,n]=eG(e);if(!t||Z())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}else{if(n&&eq.test(n))return eY(n);if(n)return n}return e},eG=e=>{let t=eq.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]};var eX,eQ=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,eJ=e=>{eX||(eX=B?new RegExp(`(${Object.keys(B).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eR(e).replace(eq,eY).replace(eU,ew).replace(eX,ew)),n=t.map(e=>e.match(eW).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eb({...e,output:t}));return e=>{let n=!e$.test(t[0])&&t.find(e=>e$.test(e))?.replace(eW,""),o=0;return t[0].replace(eW,()=>`${r[o++](e)}${n||""}`).replace(eK,eQ)}};var e0="react-spring: ",e1=e=>{let t=e,n=!1;if(typeof t!="function")throw new TypeError(`${e0}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},e2=e1(console.warn);function e4(){e2(`${e0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var e5=e1(console.warn);function e3(){e5(`${e0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function e6(e){return M.str(e)&&(e[0]=="#"||/\d/.test(e)||!Z()&&eq.test(e)||e in(B||{}))}var e8,e7=new WeakMap,e9=e=>e.forEach(({target:e,contentRect:t})=>e7.get(e)?.forEach(e=>e(t)));function te(e,t){e8||typeof ResizeObserver<"u"&&(e8=new ResizeObserver(e9));let n=e7.get(t);return n||(n=new Set,e7.set(t,n)),n.add(e),e8&&e8.observe(t),()=>{let n=e7.get(t);n&&(n.delete(e),!n.size&&e8&&e8.unobserve(t))}}var tt=new Set,tn,tr=()=>{let e=()=>{tt.forEach(e=>e({width:window.innerWidth,height:window.innerHeight}))};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},to=e=>(tt.add(e),tn||(tn=tr()),()=>{tt.delete(e),!tt.size&&tn&&(tn(),tn=void 0)});var ti=(e,{container:t=document.documentElement}={})=>t===document.documentElement?to(e):te(e,t);var ta=(e,t,n)=>t-e===0?1:(n-e)/(t-e);var ts={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},tl=class{callback;container;info;constructor(e,t){this.callback=e,this.container=t,this.info={time:0,x:this.createAxis(),y:this.createAxis()}}createAxis=()=>({current:0,progress:0,scrollLength:0});updateAxis=e=>{let t=this.info[e],{length:n,position:r}=ts[e];t.current=this.container[`scroll${r}`],t.scrollLength=this.container["scroll"+n]-this.container["client"+n],t.progress=ta(0,t.scrollLength,t.current)};update=()=>{this.updateAxis("x"),this.updateAxis("y")};sendEvent=()=>{this.callback(this.info)};advance=()=>{this.update(),this.sendEvent()}};var tu=new WeakMap,tc=new WeakMap,td=new WeakMap,tf=e=>e===document.documentElement?window:e,th=(e,{container:t=document.documentElement}={})=>{let n=td.get(t);n||(n=new Set,td.set(t,n));let r=new tl(e,t);if(n.add(r),!tu.has(t)){let e=()=>(n?.forEach(e=>e.advance()),!0);tu.set(t,e);let r=tf(t);window.addEventListener("resize",e,{passive:!0}),t!==document.documentElement&&tc.set(t,ti(e,{container:t})),r.addEventListener("scroll",e,{passive:!0})}let o=tu.get(t);return Re(o),()=>{Re.cancel(o);let e=td.get(t);if(!e||(e.delete(r),e.size))return;let n=tu.get(t);tu.delete(t),n&&(tf(t).removeEventListener("scroll",n),window.removeEventListener("resize",n),tc.get(t)?.())}};function tp(e){let t=Je(null);return t.current===null&&(t.current=e()),t.current}var tg=Z()?j.useEffect:j.useLayoutEffect;var tv=()=>{let e=(0,j.useRef)(!1);return tg(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function tm(){let e=(0,j.useState)()[1],t=tv();return()=>{t.current&&e(Math.random())}}function ty(e,t){let[n]=(0,j.useState)(()=>({inputs:t,result:e()})),r=(0,j.useRef)(),o=r.current,i=o;return i?t&&i.inputs&&tx(t,i.inputs)||(i={inputs:t,result:e()}):i=n,(0,j.useEffect)(()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)},[i]),i.result}function tx(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var tw=e=>(0,j.useEffect)(e,tb),tb=[];function tS(e){let t=(0,j.useRef)();return(0,j.useEffect)(()=>{t.current=e}),t.current}var tk=()=>{let[e,t]=dt(null);return tg(()=>{let e=window.matchMedia("(prefers-reduced-motion)"),n=e=>{t(e.matches),V({skipAnimation:e.matches})};return n(e),e.addEventListener("change",n),()=>{e.removeEventListener("change",n)}},[]),e};var tj=Symbol.for("Animated:node"),tC=e=>!!e&&e[tj]===e,tT=e=>e&&e[tj],tE=(e,t)=>_(e,tj,t),tI=e=>e&&e[tj]&&e[tj].getPayload(),t_=class{payload;constructor(){tE(this,this)}getPayload(){return this.payload||[]}};var tM=class extends t_{constructor(e){super();this._value=e;M.num(this._value)&&(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new tM(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return M.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,M.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}};var tD=class extends tM{_string=null;_toString;constructor(e){super(0),this._toString=eb({output:[e,e]})}static create(e){return new tD(e)}getValue(){let e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(M.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=eb({output:[this.getValue(),e]})),this._value=0,super.reset()}};var tP={dependencies:null};var tA=class extends t_{constructor(e){super();this.source=e;this.setValue(e)}getValue(e){let t={};return A(this.source,(n,r)=>{tC(n)?t[r]=n.getValue(e):eO(n)?t[r]=eR(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&P(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return A(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){tP.dependencies&&eO(e)&&tP.dependencies.add(e);let t=tI(e);t&&P(t,e=>this.add(e))}};var tO=class extends tA{constructor(e){super(e)}static create(e){return new tO(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(tR)),!0)}};function tR(e){return(e6(e)?tD:tM).create(e)}function tz(e){let t=tT(e);return t?t.constructor:M.arr(e)?tO:e6(e)?tD:tM}var tZ=(e,t)=>{let n=!M.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,j.forwardRef)((r,i)=>{let a=(0,j.useRef)(null),s=n&&(0,j.useCallback)(e=>{a.current=tB(i,e)},[i]),[l,u]=tN(r,t),c=tm(),f=()=>{let e=a.current;if(n&&!e)return;(e?t.applyAnimatedValues(e,l.getValue(!0)):!1)===!1&&c()},h=new tL(f,u),p=(0,j.useRef)();tg(()=>(p.current=h,P(u,e=>eH(e,h)),()=>{p.current&&(P(p.current.deps,e=>eF(e,p.current)),o.cancel(p.current.update))})),(0,j.useEffect)(f,[]),tw(()=>()=>{let e=p.current;P(e.deps,t=>eF(t,e))});let g=t.getComponentProps(l.getValue());return j.createElement(e,{...g,ref:s})})},tL=class{constructor(e,t){this.update=e;this.deps=t}eventObserved(e){e.type=="change"&&o.write(this.update)}};function tN(e,t){let n=new Set;return tP.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new tA(e),tP.dependencies=null,[e,n]}function tB(e,t){return e&&(M.fun(e)?e(t):e.current=t),t}var tH=Symbol.for("AnimatedComponent"),tF=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new tA(e),getComponentProps:r=e=>e}={})=>{let o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{let t=tV(e)||"Anonymous";return M.str(e)?e=i[e]||(i[e]=tZ(e,o)):e=e[tH]||(e[tH]=tZ(e,o)),e.displayName=`Animated(${t})`,e};return A(e,(t,n)=>{M.arr(e)&&(n=tV(t)),i[n]=i(t)}),{animated:i}},tV=e=>M.str(e)?e:e&&M.str(e.displayName)?e.displayName:M.fun(e)&&e.name||null;function tW(e,...t){return M.fun(e)?e(...t):e}var tU=(e,t)=>e===!0||!!(t&&e&&(M.fun(e)?e(t):O(e).includes(t))),t$=(e,t)=>M.obj(e)?t&&e[t]:e;var tK=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,tq=e=>e,tY=(e,t=tq)=>{let n=tG;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let o of n){let n=t(e[o],o);M.und(n)||(r[o]=n)}return r},tG=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tX={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tQ(e){let t={},n=0;if(A(e,(e,r)=>{tX[r]||(t[r]=e,n++)}),n)return t}function tJ(e){let t=tQ(e);if(t){let n={to:t};return A(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function t0(e){return e=eR(e),M.arr(e)?e.map(t0):e6(e)?E.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function t1(e){for(let t in e)return!0;return!1}function t2(e){return M.fun(e)||M.arr(e)&&M.obj(e[0])}function t4(e,t){e.ref?.delete(e),t?.delete(e)}function t5(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function t3(e,t,n=1e3){an(()=>{if(t){let r=0;ge(e,(e,o)=>{let i=e.current;if(i.length){let a=n*t[o];isNaN(a)?a=r:r=a,ge(i,e=>{ge(e.queue,e=>{let t=e.delay;e.delay=e=>a+tW(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();ge(e,e=>{let n=e.current;if(n.length){let r=n.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>(ge(n,(e,t)=>ge(r[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var t6={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};var t8={...t6.default,mass:1,damping:1,easing:eD.linear,clamp:!1},t7=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,t8)}};function t9(e,t,n){n&&(n={...n},ne(n,t),t={...n,...t}),ne(e,t),Object.assign(e,t);for(let t in t8)e[t]==null&&(e[t]=t8[t]);let{frequency:r,damping:o}=e,{mass:i}=e;return M.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r),e}function ne(e,t){if(!M.und(t.decay))e.duration=void 0;else{let n=!M.und(t.tension)||!M.und(t.friction);(n||!M.und(t.frequency)||!M.und(t.damping)||!M.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var nt=[],nn=class{changed=!1;values=nt;toValues=null;fromValues=nt;to;from;config=new t7;immediate=!1};function no(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((s,l)=>{let u,c,f=tU(n.cancel??r?.cancel,t);if(f)g();else{M.und(n.pause)||(i.paused=tU(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||tU(e,t)),u=tW(n.delay||0,t),e?(i.resumeQueue.add(p),a.pause()):(a.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-o.now()}function p(){u>0&&!E.skipAnimation?(i.delayed=!0,c=o.setTimeout(g,u),i.pauseQueue.add(h),i.timeouts.add(c)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(f=!0);try{a.start({...n,callId:e,cancel:f},s)}catch(e){l(e)}}})}var ni=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?nl(e.get()):t.every(e=>e.noop)?na(e.get()):ns(e.get(),t.every(e=>e.finished)),na=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ns=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),nl=e=>({value:e,cancelled:!0,finished:!1});function nu(e,t,n,r){let{callId:i,parentId:a,onRest:s}=t,{asyncTo:l,promise:u}=n;return!a&&e===l&&!t.reset?u:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let c=tY(t,(e,t)=>t==="onRest"?void 0:e),f,h,p=new Promise((e,t)=>(f=e,h=t)),g=e=>{let t=i<=(n.cancelId||0)&&nl(r)||i!==n.asyncId&&ns(r,!1);if(t)throw e.result=t,h(e),e},v=(e,t)=>{let o=new nd,a=new nf;return(async()=>{if(E.skipAnimation)throw nc(n),a.result=ns(r,!1),h(a),a;g(o);let s=M.obj(e)?{...e}:{...t,to:e};s.parentId=i,A(c,(e,t)=>{M.und(s[t])&&(s[t]=e)});let l=await r.start(s);return g(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()},m;if(E.skipAnimation)return nc(n),ns(r,!1);try{let t;M.arr(e)?t=(async e=>{for(let t of e)await v(t)})(e):t=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([t.then(f),p]),m=ns(r.get(),!0,!1)}catch(e){if(e instanceof nd)m=e.result;else if(e instanceof nf)m=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?u:void 0)}return M.fun(s)&&o.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function nc(e,t){R(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var nd=class extends Error{result;constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},nf=class extends Error{result;constructor(){super("SkipAnimationSignal")}};var nh=e=>e instanceof ng,np=1,ng=class extends eN{id=np++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=tT(this);return e&&e.getValue()}to(...e){return E.to(this,e)}interpolate(...e){return e4(),E.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eL(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||q.sort(this),eL(this,{type:"priority",parent:this,priority:e})}};var nv=Symbol.for("SpringPhase"),nm=1,ny=2,nx=4,nw=e=>(e[nv]&nm)>0,nb=e=>(e[nv]&ny)>0,nS=e=>(e[nv]&nx)>0,nk=(e,t)=>t?e[nv]|=ny|nm:e[nv]&=~ny,nj=(e,t)=>t?e[nv]|=nx:e[nv]&=~nx;var nC=class extends ng{key;animation=new nn;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!M.und(e)||!M.und(t)){let n=M.obj(e)?{...e}:{...t,from:e};M.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(nb(this)||this._state.asyncTo)||nS(this)}get goal(){return eR(this.animation.to)}get velocity(){let e=tT(this);return e instanceof tM?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return nw(this)}get isAnimating(){return nb(this)}get isPaused(){return nS(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:o}=r,{config:i}=r,a=tI(r.to);!a&&eO(r.to)&&(o=O(eR(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==tD?1:a?a[l].lastPosition:o[l],c=r.immediate,f=u;if(!c){if(f=s.lastPosition,i.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[l],o=s.v0!=null?s.v0:s.v0=M.arr(i.velocity)?i.velocity[l]:i.velocity,a,h=i.precision||(n==u?.005:Math.min(1,Math.abs(u-n)*.001));if(M.und(i.duration))if(i.decay){let e=i.decay===!0?.998:i.decay,r=Math.exp(-(1-e)*t);f=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-f)<=h,a=o*r}else{a=s.lastVelocity==null?o:s.lastVelocity;let t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!M.und(r),p=n==u?s.v0>0:n<u,g,v=!1,m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(g=Math.abs(a)>t,!(!g&&(c=Math.abs(u-f)<=h,c)));++e){l&&(v=f==u||f>u==p,v&&(a=-a*r,f=u));let e=-i.tension*1e-6*(f-u),t=-i.friction*.001*a,n=(e+t)/i.mass;a=a+n*m,f=f+a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),f=n+i.easing(r)*(u-n),a=(f-s.lastPosition)/e,c=r==1}s.lastVelocity=a,Number.isNaN(f)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(f,i.round)&&(n=!0)});let s=tT(this),l=s.getValue();if(t){let e=eR(r.to);(l!==e||n)&&!i.decay?(s.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return o.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(nb(this)){let{to:e,config:t}=this.animation;o.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return M.und(e)?(n=this.queue||[],this.queue=[]):n=[M.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>ni(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),nc(this._state,e&&this._lastCallId),o.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;n=M.obj(n)?n[t]:n,(n==null||t2(n))&&(n=void 0),r=M.obj(r)?r[t]:r,r==null&&(r=void 0);let o={to:n,from:r};return nw(this)||(e.reverse&&([n,r]=[r,n]),r=eR(r),M.und(r)?tT(this)||this._set(n):this._set(r)),o}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,tY(e,(e,t)=>/^on/.test(t)?t$(e,n):e)),nP(this,e,"onProps"),nA(this,"onProps",e,this);let o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let i=this._state;return no(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{nS(this)||(nj(this,!0),z(i.pauseQueue),nA(this,"onPause",ns(this,nT(this,this.animation.to)),this))},resume:()=>{nS(this)&&(nj(this,!1),nb(this)&&this._resume(),z(i.resumeQueue),nA(this,"onResume",ns(this,nT(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=nE(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(nl(this));let r=!M.und(e.to),i=!M.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(nl(this));let{key:a,defaultProps:s,animation:l}=this,{to:u,from:c}=l,{to:f=u,from:h=c}=e;i&&!r&&(!t.default||M.und(f))&&(f=h),t.reverse&&([f,h]=[h,f]);let p=!D(h,c);p&&(l.from=h),h=eR(h);let g=!D(f,u);g&&this._focus(f);let v=t2(t.to),{config:m}=l,{decay:y,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!v&&t9(m,tW(t.config,a),t.config!==s.config?tW(s.config,a):void 0);let w=tT(this);if(!w||M.und(f))return n(ns(this,!0));let b=M.und(t.reset)?i&&!t.default:!M.und(h)&&tU(t.reset,a),S=b?h:this.get(),k=t0(f),j=M.num(k)||M.arr(k)||e6(k),C=!v&&(!j||tU(s.immediate||t.immediate,a));if(g){let e=tz(f);if(e!==w.constructor)if(C)w=this._set(k);else throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`)}let T=w.constructor,E=eO(f),I=!1;if(!E){let e=b||!nw(this)&&p;(g||e)&&(I=D(t0(S),k),E=!I),(!D(l.immediate,C)&&!C||!D(m.decay,y)||!D(m.velocity,x))&&(E=!0)}if(I&&nb(this)&&(l.changed&&!b?E=!0:E||this._stop(u)),!v&&((E||eO(u))&&(l.values=w.getPayload(),l.toValues=eO(f)?null:T==tD?[1]:O(k)),l.immediate!=C&&(l.immediate=C,!C&&!b&&this._set(u)),E)){let{onRest:e}=l;P(nD,e=>nP(this,t,e));let r=ns(this,nT(this,u));z(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&o.batchedUpdates(()=>{l.changed=!b,e?.(r,this),b?tW(s.onRest,r):l.onStart?.(r,this)})}b&&this._set(S),v?n(nu(t.to,t,this._state,this)):E?this._start():nb(this)&&!g?this._pendingCalls.add(n):n(na(S))}_focus(e){let t=this.animation;e!==t.to&&(ez(this)&&this._detach(),t.to=e,ez(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;eO(t)&&(eH(t,this),nh(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;eO(e)&&eF(e,this)}_set(e,t=!0){let n=eR(e);if(!M.und(n)){let e=tT(this);if(!e||!D(n,e.getValue())){let r=tz(n);!e||e.constructor!=r?tE(this,r.create(n)):e.setValue(n),e&&o.batchedUpdates(()=>{this._onChange(n,t)})}}return tT(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,nA(this,"onStart",ns(this,nT(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),tW(this.animation.onChange,e,this)),tW(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;tT(this).reset(eR(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),nb(this)||(nk(this,!0),nS(this)||this._resume())}_resume(){E.skipAnimation?this.finish():q.start(this)}_stop(e,t){if(nb(this)){nk(this,!1);let n=this.animation;P(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),eL(this,{type:"idle",parent:this});let r=t?nl(this.get()):ns(this.get(),nT(this,e??n.to));z(this._pendingCalls,r),n.changed&&(n.changed=!1,nA(this,"onRest",r,this))}}};function nT(e,t){let n=t0(t),r=t0(e.get());return D(r,n)}function nE(e,t=e.loop,n=e.to){let r=tW(t);if(r){let o=r!==!0&&tJ(r),i=(o||e).reverse,a=!o||o.reset;return nI({...e,loop:t,default:!1,pause:void 0,to:!i||t2(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function nI(e){let{to:t,from:n}=e=tJ(e),r=new Set;return M.obj(t)&&nM(t,r),M.obj(n)&&nM(n,r),e.keys=r.size?Array.from(r):null,e}function n_(e){let t=nI(e);return M.und(t.default)&&(t.default=tY(t)),t}function nM(e,t){A(e,(e,n)=>e!=null&&t.add(n))}var nD=["onStart","onRest","onChange","onPause","onResume"];function nP(e,t,n){e.animation[n]=t[n]!==tK(t,n)?t$(t[n],e.key):void 0}function nA(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nO=["onStart","onChange","onRest"],nR=1,nz=class{id=nR++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];M.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(nI(e)),this}start(e){let{queue:t}=this;return e?t=O(e).map(nI):this.queue=[],this._flush?this._flush(this,t):(nV(this,t),nZ(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;P(O(t),t=>n[t].stop(!!e))}else nc(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(M.und(e))this.start({pause:!0});else{let t=this.springs;P(O(e),e=>t[e].pause())}return this}resume(e){if(M.und(e))this.start({pause:!1});else{let t=this.springs;P(O(e),e=>t[e].resume())}return this}each(e){A(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,R(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&R(t,([e,t])=>{t.value=a,e(t,this,this._item)}),i&&(this._started=!1,R(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;o.onFrame(this._onFrame)}};function nZ(e,t){return Promise.all(t.map(t=>nL(e,t))).then(t=>ni(e,t))}async function nL(e,t,n){let{keys:r,to:i,from:a,loop:s,onRest:l,onResolve:u}=t,c=M.obj(t.default)&&t.default;s&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);let f=M.arr(i)||M.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):P(nO,n=>{let r=t[n];if(M.fun(r)){let o=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}});let h=e._state;t.pause===!h.paused?(h.paused=t.pause,z(t.pause?h.pauseQueue:h.resumeQueue)):h.paused&&(t.pause=!0);let p=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),g=t.cancel===!0||tK(t,"cancel")===!0;(f||g&&h.asyncId)&&p.push(no(++e._lastAsyncId,{props:t,state:h,actions:{pause:I,resume:I,start(t,n){g?(nc(h,e._lastAsyncId),n(nl(e))):(t.onRest=l,n(nu(f,t,h,e)))}}})),h.paused&&await new Promise(e=>{h.resumeQueue.add(e)});let v=ni(e,await Promise.all(p));if(s&&v.finished&&!(n&&v.noop)){let n=nE(t,s,i);if(n)return nV(e,[n]),nL(e,n,!0)}return u&&o.batchedUpdates(()=>u(v,e,e.item)),v}function nN(e,t){let n={...e.springs};return t&&P(O(t),e=>{M.und(e.keys)&&(e=nI(e)),M.obj(e.to)||(e={...e,to:void 0}),nF(n,e,e=>nH(e))}),nB(e,n),n}function nB(e,t){A(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,eH(t,e))})}function nH(e,t){let n=new nC;return n.key=e,t&&eH(n,t),n}function nF(e,t,n){t.keys&&P(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function nV(e,t){P(t,t=>{nF(e.springs,t,t=>nH(t,e))})}var nW=({children:e,...t})=>{let n=(0,j.useContext)(nU),r=t.pause||!!n.pause,o=t.immediate||!!n.immediate;t=ty(()=>({pause:r,immediate:o}),[r,o]);let{Provider:i}=nU;return j.createElement(i,{value:t},e)},nU=n$(nW,{});nW.Provider=nU.Provider;nW.Consumer=nU.Consumer;function n$(e,t){return Object.assign(e,j.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var nK=()=>{let e=[],t=function(t){e3();let r=[];return P(e,(e,o)=>{if(M.und(t))r.push(e.start());else{let i=n(t,e,o);i&&r.push(e.start(i))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return P(e,e=>e.pause(...arguments)),this},t.resume=function(){return P(e,e=>e.resume(...arguments)),this},t.set=function(t){P(e,(e,n)=>{let r=M.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return P(e,(e,r)=>{if(M.und(t))n.push(e.start());else{let o=this._getProps(t,e,r);o&&n.push(e.start(o))}}),n},t.stop=function(){return P(e,e=>e.stop(...arguments)),this},t.update=function(t){return P(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return M.fun(e)?e(n,t):e};return t._getProps=n,t};function nq(e,t,n){let r=M.fun(t)&&t;r&&!n&&(n=[]);let o=(0,j.useMemo)(()=>r||arguments.length==3?nK():void 0,[]),i=(0,j.useRef)(0),a=tm(),s=(0,j.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=nN(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?nZ(e,t):new Promise(r=>{nB(e,n),s.queue.push(()=>{r(nZ(e,t))}),a()})}}),[]),l=(0,j.useRef)([...s.ctrls]),u=[],c=tS(e)||0;(0,j.useMemo)(()=>{P(l.current.slice(e,c),e=>{t4(e,o),e.stop(!0)}),l.current.length=e,f(c,e)},[e]),(0,j.useMemo)(()=>{f(0,Math.min(c,e))},n);function f(e,n){for(let o=e;o<n;o++){let e=l.current[o]||(l.current[o]=new nz(null,s.flush)),n=r?r(o,e):t[o];n&&(u[o]=n_(n))}}let h=l.current.map((e,t)=>nN(e,u[t])),p=(0,j.useContext)(nW),g=tS(p),v=p!==g&&t1(p);tg(()=>{i.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],P(e,e=>e())),P(l.current,(e,t)=>{o?.add(e),v&&e.start({default:p});let n=u[t];n&&(t5(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),tw(()=>()=>{P(s.ctrls,e=>e.stop(!0))});let m=h.map(e=>({...e}));return o?[m,o]:m}function nY(e,t){let n=M.fun(e),[[r],o]=nq(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,o]:r}var nG=()=>nK(),nX=()=>zn(nG)[0];var nQ=(e,t)=>{let n=Bn(()=>new nC(e,t));return Kn(()=>()=>{n.stop()}),n};function nJ(e,t,n){let r=qt.fun(t)&&t;r&&!n&&(n=[]);let o=!0,i,a=nq(e,(e,n)=>{let a=r?r(e,n):t;return i=a.ref,o=o&&a.reverse,a},n||[{}]);if(Yn(()=>{Xn(a[1].current,(e,t)=>{let n=a[1].current[t+(o?1:-1)];if(t5(e,i),e.ref){n&&e.update({to:n.springs});return}n?e.start({to:n.springs}):e.start()})},n),r||arguments.length==3){let e=i??a[1];return e._getProps=(t,n,r)=>{let o=qt.fun(t)?t(r,n):t;if(o){let t=e.current[r+(o.reverse?1:-1)];return t&&(o.to=t.springs),o}},a}return a[0]}function n0(e,t,n){let r=M.fun(t)&&t,{reset:o,sort:i,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:f}=r?r():t,h=(0,j.useMemo)(()=>r||arguments.length==3?nK():void 0,[]),p=O(e),g=[],v=(0,j.useRef)(null),m=o?null:v.current;tg(()=>{v.current=g}),tw(()=>(P(g,e=>{h?.add(e.ctrl),e.ctrl.ref=h}),()=>{P(v.current,e=>{e.expired&&clearTimeout(e.expirationId),t4(e.ctrl,h),e.ctrl.stop(!0)})}));let y=n2(p,r?r():t,m),x=o&&v.current||[];tg(()=>P(x,({ctrl:e,item:t,key:n})=>{t4(e,h),tW(u,t,n)}));let w=[];if(m&&P(m,(e,t)=>{e.expired?(clearTimeout(e.expirationId),x.push(e)):(t=w[t]=y.indexOf(e.key),~t&&(g[t]=e))}),P(p,(e,t)=>{g[t]||(g[t]={key:y[t],item:e,phase:"mount",ctrl:new nz},g[t].ctrl.item=e)}),w.length){let e=-1,{leave:n}=r?r():t;P(w,(t,r)=>{let o=m[r];~t?(e=g.indexOf(o),g[e]={...o,item:p[t]}):n&&g.splice(++e,0,o)})}M.fun(i)&&g.sort((e,t)=>i(e.item,t.item));let b=-a,S=tm(),k=tY(t),C=new Map,T=(0,j.useRef)(new Map),E=(0,j.useRef)(!1);P(g,(e,n)=>{let o=e.key,i=e.phase,u=r?r():t,h,p,g=tW(u.delay||0,o);if(i=="mount")h=u.enter,p="enter";else{let e=y.indexOf(o)<0;if(i!="leave")if(e)h=u.leave,p="leave";else if(h=u.update)p="update";else return;else if(!e)h=u.enter,p="enter";else return}if(h=tW(h,e.item,n),h=M.obj(h)?tJ(h):{to:h},!h.config){let t=f||k.config;h.config=tW(t,e.item,n,p)}b+=a;let x={...k,delay:g+b,ref:c,immediate:u.immediate,reset:!1,...h};if(p=="enter"&&M.und(x.from)){let o=r?r():t,i=M.und(o.initial)||m?o.from:o.initial;x.from=tW(i,e.item,n)}let{onResolve:w}=x;x.onResolve=e=>{tW(w,e);let t=v.current,n=t.find(e=>e.key===o);if(n&&!(e.cancelled&&n.phase!="update")&&n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase=="leave"){let t=tW(s,n.item);if(t!==!1){let r=t===!0?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(S,r));return}}}e&&t.some(e=>e.expired)&&(T.current.delete(n),l&&(E.current=!0),S())}};let j=nN(e.ctrl,x);p==="leave"&&l?T.current.set(e,{phase:p,springs:j,payload:x}):C.set(e,{phase:p,springs:j,payload:x})});let I=(0,j.useContext)(nW),_=tS(I),D=I!==_&&t1(I);tg(()=>{D&&P(g,e=>{e.ctrl.start({default:I})})},[I]),P(C,(e,t)=>{if(T.current.size){let e=g.findIndex(e=>e.key===t.key);g.splice(e,1)}}),tg(()=>{P(T.current.size?T.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,h?.add(r),D&&e=="enter"&&r.start({default:I}),t&&(t5(r,t.ref),(r.ref||h)&&!E.current?r.update(t):(r.start(t),E.current&&(E.current=!1)))})},o?void 0:n);let A=e=>j.createElement(j.Fragment,null,g.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,o=e({...r},t.item,t,n);return o&&o.type?j.createElement(o.type,{...o.props,key:M.str(t.key)||M.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o}));return h?[A,h]:A}var n1=1;function n2(e,{key:t,keys:n=t},r){if(n===null){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!=="leave"&&!t.has(n));return n?(t.add(n),n.key):n1++})}return M.und(n)?e:M.fun(n)?e.map(n):O(n)}var n4=({container:e,...t}={})=>{let[n,r]=nY(()=>({scrollX:0,scrollY:0,scrollXProgress:0,scrollYProgress:0,...t}),[]);return or(()=>{let t=rr(({x:e,y:t})=>{r.start({scrollX:e.current,scrollXProgress:e.progress,scrollY:t.current,scrollYProgress:t.progress})},{container:e?.current||void 0});return()=>{nr(Object.values(n),e=>e.stop()),t()}},[]),n};var n5=({container:e,...t})=>{let[n,r]=nY(()=>({width:0,height:0,...t}),[]);return ar(()=>{let t=sr(({width:e,height:t})=>{r.start({width:e,height:t,immediate:n.width.get()===0||n.height.get()===0})},{container:e?.current||void 0});return()=>{ir(Object.values(n),e=>e.stop()),t()}},[]),n};var n3={any:0,all:1};function n6(e,t){let[n,r]=pr(!1),o=ur(),i=Bt.fun(e)&&e,a=i?i():{},{to:s={},from:l={},...u}=a,c=i?t:e,[f,h]=nY(()=>({from:l,...u}),[]);return lr(()=>{let e=o.current,{root:t,once:i,amount:a="any",...u}=c??{};if(!e||i&&n||typeof IntersectionObserver>"u")return;let f=new WeakMap,p=()=>(s&&h.start(s),r(!0),i?void 0:()=>{l&&h.start(l),r(!1)}),g=e=>{e.forEach(e=>{let t=f.get(e.target);if(e.isIntersecting!==!!t)if(e.isIntersecting){let t=p();Bt.fun(t)?f.set(e.target,t):v.unobserve(e.target)}else t&&(t(),f.delete(e.target))})},v=new IntersectionObserver(g,{root:t&&t.current||void 0,threshold:typeof a=="number"||Array.isArray(a)?a:n3[a],...u});return v.observe(e),()=>v.unobserve(e)},[c]),i?[o,f]:[o,n]}function n8({children:e,...t}){return e(nY(t))}function n7({items:e,children:t,...n}){let r=nJ(e.length,n);return e.map((e,n)=>{let o=t(e,n);return fr.fun(o)?o(r[n]):o})}function n9({items:e,children:t,...n}){return n0(e,n)(t)}var re=class extends ng{constructor(e,t){super();this.source=e;this.calc=eb(...t);let n=this._get(),r=tz(n);tE(this,r.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get(),n=this.get();D(t,n)||(tT(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&rn(this._active)&&ro(this)}_get(){let e=M.arr(this.source)?this.source.map(eR):O(eR(this.source));return this.calc(...e)}_start(){this.idle&&!rn(this._active)&&(this.idle=!1,P(tI(this),e=>{e.done=!1}),E.skipAnimation?(o.batchedUpdates(()=>this.advance()),ro(this)):q.start(this))}_attach(){let e=1;P(O(this.source),t=>{eO(t)&&eH(t,this),nh(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){P(O(this.source),e=>{eO(e)&&eF(e,this)}),this._active.clear(),ro(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=O(this.source).reduce((e,t)=>Math.max(e,(nh(t)?t.priority:0)+1),0))}};function rt(e){return e.idle!==!1}function rn(e){return!e.size||Array.from(e).every(rt)}function ro(e){e.idle||(e.idle=!0,P(tI(e),e=>{e.done=!0}),eL(e,{type:"idle",parent:e}))}var ri=(e,...t)=>new re(e,t),ra=(e,...t)=>(Cr(),new re(e,t));E.assign({createStringInterpolator:eJ,to:(e,t)=>new re(e,t)});var rs=q.advance;var rl=n(42457);var ru=/^--/;function rc(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!ru.test(e)&&!(rh.hasOwnProperty(e)&&rh[e])?t+"px":(""+t).trim()}var rd={};function rf(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:s,...l}=t,u=Object.values(l),c=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:rd[t]||(rd[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));o!==void 0&&(e.textContent=o);for(let t in r)if(r.hasOwnProperty(t)){let n=rc(t,r[t]);ru.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach((t,n)=>{e.setAttribute(t,u[n])}),i!==void 0&&(e.scrollTop=i),a!==void 0&&(e.scrollLeft=a),s!==void 0&&e.setAttribute("viewBox",s)}var rh={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rp=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),rg=["Webkit","Ms","Moz","O"];rh=Object.keys(rh).reduce((e,t)=>(rg.forEach(n=>e[rp(n,t)]=e[t]),e),rh);var rv=/^(matrix|translate|scale|rotate|skew)/,rm=/^(translate)/,ry=/^(rotate|skew)/,rx=(e,t)=>M.num(e)&&e!==0?e+t:e,rw=(e,t)=>M.arr(e)?e.every(e=>rw(e,t)):M.num(e)?e===t:parseFloat(e)===t,rb=class extends tA{constructor({x:e,y:t,z:n,...r}){let o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push(e=>[`translate3d(${e.map(e=>rx(e,"px")).join(",")})`,rw(e,0)])),A(r,(e,t)=>{if(t==="transform")o.push([e||""]),i.push(e=>[e,e===""]);else if(rv.test(t)){if(delete r[t],M.und(e))return;let n=rm.test(t)?"px":ry.test(t)?"deg":"";o.push(O(e)),i.push(t==="rotate3d"?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${rx(o,n)})`,rw(o,0)]:e=>[`${t}(${e.map(e=>rx(e,n)).join(",")})`,rw(e,t.startsWith("scale")?1:0)])}}),o.length&&(r.transform=new rS(o,i)),super(r)}},rS=class extends eN{constructor(e,t){super();this.inputs=e;this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return P(this.inputs,(n,r)=>{let o=eR(n[0]),[i,a]=this.transforms[r](M.arr(o)?o:n.map(eR));e+=" "+i,t=t&&a}),t?"none":e}observerAdded(e){e==1&&P(this.inputs,e=>P(e,e=>eO(e)&&eH(e,this)))}observerRemoved(e){e==0&&P(this.inputs,e=>P(e,e=>eO(e)&&eF(e,this)))}eventObserved(e){e.type=="change"&&(this._value=null),eL(this,e)}};var rk=["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","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"];E.assign({batchedUpdates:rl.unstable_batchedUpdates,createStringInterpolator:eJ,colors:et});var rj=tF(rk,{applyAnimatedValues:rf,createAnimatedStyle:e=>new rb(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rC=rj.animated;},38638:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(66204);var o=typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof n.g!=="undefined"?n.g:{};var i={};let a;if(typeof window!=="undefined")a=window;else if(typeof self!=="undefined")a=self;else a=o;let s=null;let l=null;const u=20;const c=a.clearTimeout;const f=a.setTimeout;const h=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame;const p=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame;if(h==null||p==null){s=c;l=function e(e){return f(e,u)}}else{s=function e([e,t]){h(e);c(t)};l=function e(e){const t=p(function t(){c(n);e()});const n=f(function n(){h(t);e()},u);return[t,n]}}function g(e){let t;let n;let r;let o;let i;let u;let c;const f=typeof document!=="undefined"&&document.attachEvent;if(!f){u=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth;r.scrollTop=r.scrollHeight;o.style.width=n.offsetWidth+1+"px";o.style.height=n.offsetHeight+1+"px";n.scrollLeft=n.scrollWidth;n.scrollTop=n.scrollHeight};i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height};c=function(e){if(e.target.className&&typeof e.target.className.indexOf==="function"&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;u(this);if(this.__resizeRAF__)s(this.__resizeRAF__);this.__resizeRAF__=l(function n(){if(i(t)){t.__resizeLast__.width=t.offsetWidth;t.__resizeLast__.height=t.offsetHeight;t.__resizeListeners__.forEach(function n(n){n.call(t,e)})}})};let e=false;let a="";r="animationstart";const f="Webkit Moz O ms".split(" ");let h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");let p="";{const t=document.createElement("fakeelement");if(t.style.animationName!==undefined)e=true;if(e===false){for(let n=0;n<f.length;n++)if(t.style[f[n]+"AnimationName"]!==undefined){p=f[n];a="-"+p.toLowerCase()+"-";r=h[n];e=true;break}}}n="resizeanim";t="@"+a+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ";o=a+"animation: 1ms "+n+"; "}const h=function(n){if(!n.getElementById("detectElementResize")){const r=(t?t:"")+".resize-triggers { "+(o?o:"")+"visibility: hidden; opacity: 0; } "+'.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize";a.type="text/css";if(e!=null)a.setAttribute("nonce",e);if(a.styleSheet)a.styleSheet.cssText=r;else a.appendChild(n.createTextNode(r));i.appendChild(a)}};const p=function(e,t){if(f)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){const t=e.ownerDocument;const o=a.getComputedStyle(e);if(o&&o.position==="static")e.style.position="relative";h(t);e.__resizeLast__={};e.__resizeListeners__=[];(e.__resizeTriggers__=t.createElement("div")).className="resize-triggers";const i=t.createElement("div");i.className="expand-trigger";i.appendChild(t.createElement("div"));const s=t.createElement("div");s.className="contract-trigger";e.__resizeTriggers__.appendChild(i);e.__resizeTriggers__.appendChild(s);e.appendChild(e.__resizeTriggers__);u(e);e.addEventListener("scroll",c,true);if(r){e.__resizeTriggers__.__animationListener__=function t(t){if(t.animationName===n)u(e)};e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__)}}e.__resizeListeners__.push(t)}};const g=function(e,t){if(f)e.detachEvent("onresize",t);else{e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1);if(!e.__resizeListeners__.length){e.removeEventListener("scroll",c,true);if(e.__resizeTriggers__.__animationListener__){e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__);e.__resizeTriggers__.__animationListener__=null}try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}};return{addResizeListener:p,removeResizeListener:g}}i={createDetectElementResize:g};function v(e,t,n){t=m(t);if(t in e)Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true});else e[t]=n;return e}function m(e){var t=y(e,"string");return typeof t==="symbol"?t:String(t)}function y(e,t){if(typeof e!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if(typeof r!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class x extends(0,r.Component){constructor(...e){super(...e);v(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0});v(this,"_autoSizer",null);v(this,"_detectElementResize",null);v(this,"_parentNode",null);v(this,"_resizeObserver",null);v(this,"_onResize",()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const s=window.getComputedStyle(this._parentNode)||{};const l=parseInt((r=s.paddingLeft)!==null&&r!==void 0?r:"0",10);const u=parseInt((o=s.paddingRight)!==null&&o!==void 0?o:"0",10);const c=parseInt((i=s.paddingTop)!==null&&i!==void 0?i:"0",10);const f=parseInt((a=s.paddingBottom)!==null&&a!==void 0?a:"0",10);const h=this._parentNode.getBoundingClientRect();const p=h.height-c-f;const g=h.width-l-u;const v=this._parentNode.offsetHeight-c-f;const m=this._parentNode.offsetWidth-l-u;if(!e&&(this.state.height!==v||this.state.scaledHeight!==p)||!t&&(this.state.width!==m||this.state.scaledWidth!==g)){this.setState({height:v,width:m,scaledHeight:p,scaledWidth:g});if(typeof n==="function")n({height:v,scaledHeight:p,scaledWidth:g,width:m})}}});v(this,"_setRef",e=>{this._autoSizer=e})}componentDidMount(){const{nonce:e}=this.props;if(this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement){this._parentNode=this._autoSizer.parentNode;if(this._parentNode!=null){if(typeof ResizeObserver!=="undefined"){this._resizeObserver=new ResizeObserver(()=>{setTimeout(this._onResize,0)});this._resizeObserver.observe(this._parentNode)}else{this._detectElementResize=(0,i.createDetectElementResize)(e);this._detectElementResize.addResizeListener(this._parentNode,this._onResize)}this._onResize()}}}componentWillUnmount(){if(this._parentNode){if(this._detectElementResize)this._detectElementResize.removeResizeListener(this._parentNode,this._onResize);if(this._resizeObserver){this._resizeObserver.observe(this._parentNode);this._resizeObserver.disconnect()}}}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:o,disableWidth:i,nonce:a,onResize:s,style:l,tagName:u="div",...c}=this.props;const{height:f,scaledHeight:h,scaledWidth:p,width:g}=this.state;const v={overflow:"visible"};const m={};let y=false;if(!o){if(f===0)y=true;v.height=0;m.height=f;m.scaledHeight=h}if(!i){if(g===0)y=true;v.width=0;m.width=g;m.scaledWidth=p}return(0,r.createElement)(u,{ref:this._setRef,style:{...v,...l},...c},!y&&e(m))}}v(x,"defaultProps",{onResize:()=>{},disableHeight:false,disableWidth:false,style:{}});var w=(0,x)},99279:function(e,t,n){"use strict";/**
|
|
86
|
+
* @license React
|
|
87
|
+
* react-jsx-runtime.production.min.js
|
|
88
|
+
*
|
|
89
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the MIT license found in the
|
|
92
|
+
* LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/var r=n(66204),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;void 0!==n&&(u=""+n);void 0!==t.key&&(u=""+t.key);void 0!==t.ref&&(c=t.ref);for(r in t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i;t.jsx=u;t.jsxs=u},63481:function(e,t){"use strict";/**
|
|
94
|
+
* @license React
|
|
95
|
+
* react.production.min.js
|
|
96
|
+
*
|
|
97
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the MIT license found in the
|
|
100
|
+
* LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function g(e){if(null===e||"object"!==typeof e)return null;e=p&&e[p]||e["@@iterator"];return"function"===typeof e?e:null}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function x(e,t,n){this.props=e;this.context=t;this.refs=y;this.updater=n||v}x.prototype.isReactComponent={};x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function w(){}w.prototype=x.prototype;function b(e,t,n){this.props=e;this.context=t;this.refs=y;this.updater=n||v}var S=b.prototype=new w;S.constructor=b;m(S,x.prototype);S.isPureReactComponent=!0;var k=Array.isArray,j=Object.prototype.hasOwnProperty,C={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)j.call(t,o)&&!T.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:C.current}}function I(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}function M(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?M(""+e.key):t.toString(36)}function A(e,t,o,i,a){var s=typeof e;if("undefined"===s||"boolean"===s)e=null;var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return l=e,a=a(l),e=""===i?"."+P(l,0):i,k(a)?(o="",null!=e&&(o=e.replace(D,"$&/")+"/"),A(a,t,o,"",function(e){return e})):null!=a&&(_(a)&&(a=I(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(D,"$&/")+"/")+e)),t.push(a)),1;l=0;i=""===i?".":i+":";if(k(e))for(var u=0;u<e.length;u++){s=e[u];var c=i+P(s,u);l+=A(s,t,o,c,a)}else if(c=g(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)s=s.value,c=i+P(s,u++),l+=A(s,t,o,c,a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;A(e,r,"","",function(e){return t.call(n,e,o++)});return r}function R(e){if(-1===e._status){var t=e._result;t=t();t.then(function(t){if(0===e._status||-1===e._status)e._status=1,e._result=t},function(t){if(0===e._status||-1===e._status)e._status=2,e._result=t});-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var z={current:null},Z={transition:null},L={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:Z,ReactCurrentOwner:C};t.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;O(e,function(){t++});return t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Component=x;t.Fragment=o;t.Profiler=a;t.PureComponent=b;t.StrictMode=i;t.Suspense=c;t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L;t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(a=t.ref,s=C.current);void 0!==t.key&&(i=""+t.key);if(e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)j.call(t,u)&&!T.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}};t.createContext=function(e){e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};e.Provider={$$typeof:s,_context:e};return e.Consumer=e};t.createElement=E;t.createFactory=function(e){var t=E.bind(null,e);t.type=e;return t};t.createRef=function(){return{current:null}};t.forwardRef=function(e){return{$$typeof:u,render:e}};t.isValidElement=_;t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:R}};t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}};t.startTransition=function(e){var t=Z.transition;Z.transition={};try{e()}finally{Z.transition=t}};t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};t.useCallback=function(e,t){return z.current.useCallback(e,t)};t.useContext=function(e){return z.current.useContext(e)};t.useDebugValue=function(){};t.useDeferredValue=function(e){return z.current.useDeferredValue(e)};t.useEffect=function(e,t){return z.current.useEffect(e,t)};t.useId=function(){return z.current.useId()};t.useImperativeHandle=function(e,t,n){return z.current.useImperativeHandle(e,t,n)};t.useInsertionEffect=function(e,t){return z.current.useInsertionEffect(e,t)};t.useLayoutEffect=function(e,t){return z.current.useLayoutEffect(e,t)};t.useMemo=function(e,t){return z.current.useMemo(e,t)};t.useReducer=function(e,t,n){return z.current.useReducer(e,t,n)};t.useRef=function(e){return z.current.useRef(e)};t.useState=function(e){return z.current.useState(e)};t.useSyncExternalStore=function(e,t,n){return z.current.useSyncExternalStore(e,t,n)};t.useTransition=function(){return z.current.useTransition()};t.version="18.2.0"},66204:function(e,t,n){"use strict";if(true){e.exports=n(63481)}else{}},43188:function(e,t,n){"use strict";if(true){e.exports=n(99279)}else{}},65485:function(e,t,n){"use strict";n.d(t,{md:function(){return T},DE:function(){return j},UY:function(){return S},MT:function(){return m}});var r=n(56666);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or "+"use the non-minified dev environment for full errors. "}var s=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();var l=function e(){return Math.random().toString(36).substring(7).split("").join(".")};var u={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function e(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function c(e){if(typeof e!=="object"||e===null)return false;var t=e;while(Object.getPrototypeOf(t)!==null){t=Object.getPrototypeOf(t)}return Object.getPrototypeOf(e)===t}function f(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":{return t}}if(Array.isArray(e))return"array";if(g(e))return"date";if(p(e))return"error";var n=h(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function h(e){return typeof e.constructor==="function"?e.constructor.name:null}function p(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function g(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function v(e){var t=typeof e;if(false){}return t}function m(e,t,n){var r;if(typeof t==="function"&&typeof n==="function"||typeof n==="function"&&typeof arguments[3]==="function"){throw new Error(true?a(0):0)}if(typeof t==="function"&&typeof n==="undefined"){n=t;t=undefined}if(typeof n!=="undefined"){if(typeof n!=="function"){throw new Error(true?a(1):0)}return n(m)(e,t)}if(typeof e!=="function"){throw new Error(true?a(2):0)}var o=e;var i=t;var l=[];var f=l;var h=false;function p(){if(f===l){f=l.slice()}}function g(){if(h){throw new Error(true?a(3):0)}return i}function v(e){if(typeof e!=="function"){throw new Error(true?a(4):0)}if(h){throw new Error(true?a(5):0)}var t=true;p();f.push(e);return function n(){if(!t){return}if(h){throw new Error(true?a(6):0)}t=false;p();var n=f.indexOf(e);f.splice(n,1);l=null}}function y(e){if(!c(e)){throw new Error(true?a(7):0)}if(typeof e.type==="undefined"){throw new Error(true?a(8):0)}if(h){throw new Error(true?a(9):0)}try{h=true;i=o(i,e)}finally{h=false}var t=l=f;for(var n=0;n<t.length;n++){var r=t[n];r()}return e}function x(e){if(typeof e!=="function"){throw new Error(true?a(10):0)}o=e;y({type:u.REPLACE})}function w(){var e;var t=v;return e={subscribe:function e(e){if(typeof e!=="object"||e===null){throw new Error(true?a(11):0)}function n(){if(e.next){e.next(g())}}n();var r=t(n);return{unsubscribe:r}}},e[s]=function(){return this},e}y({type:u.INIT});return r={dispatch:y,subscribe:v,getState:g,replaceReducer:x},r[s]=w,r}var y=null&&m;function x(e){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(e)}try{throw new Error(e)}catch(e){}}function w(e,t,n,r){var o=Object.keys(t);var i=n&&n.type===u.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0){return"Store does not have a valid reducer. Make sure the argument passed "+"to combineReducers is an object whose values are reducers."}if(!c(e)){return"The "+i+' has unexpected type of "'+v(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"')}var a=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!r[e]});a.forEach(function(e){r[e]=true});if(n&&n.type===u.REPLACE)return;if(a.length>0){return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}}function b(e){Object.keys(e).forEach(function(t){var n=e[t];var r=n(undefined,{type:u.INIT});if(typeof r==="undefined"){throw new Error(true?a(12):0)}if(typeof n(undefined,{type:u.PROBE_UNKNOWN_ACTION()})==="undefined"){throw new Error(true?a(13):0)}})}function S(e){var t=Object.keys(e);var n={};for(var r=0;r<t.length;r++){var o=t[r];if(false){}if(typeof e[o]==="function"){n[o]=e[o]}}var i=Object.keys(n);var s;if(false){}var l;try{b(n)}catch(e){l=e}return function e(e,t){if(e===void 0){e={}}if(l){throw l}if(false){var r}var o=false;var s={};for(var u=0;u<i.length;u++){var c=i[u];var f=n[c];var h=e[c];var p=f(h,t);if(typeof p==="undefined"){var g=t&&t.type;throw new Error(true?a(14):0)}s[c]=p;o=o||p!==h}o=o||i.length!==Object.keys(e).length;return o?s:e}}function k(e,t){return function(){return t(e.apply(this,arguments))}}function j(e,t){if(typeof e==="function"){return k(e,t)}if(typeof e!=="object"||e===null){throw new Error(true?a(16):0)}var n={};for(var r in e){var o=e[r];if(typeof o==="function"){n[r]=k(o,t)}}return n}function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t.length===0){return function(e){return e}}if(t.length===1){return t[0]}return t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function T(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){return function(){var n=e.apply(void 0,arguments);var r=function e(){throw new Error(true?a(15):0)};var o={getState:n.getState,dispatch:function e(){return r.apply(void 0,arguments)}};var s=t.map(function(e){return e(o)});r=C.apply(void 0,s)(n.dispatch);return i(i({},n),{},{dispatch:r})}}}},38221:function(e,t){"use strict";/**
|
|
102
|
+
* @license React
|
|
103
|
+
* scheduler.production.min.js
|
|
104
|
+
*
|
|
105
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the MIT license found in the
|
|
108
|
+
* LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(0<i(o,t))e[r]=t,e[n]=o,n=r;else break e}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else if(u<o&&0>i(c,n))e[r]=c,e[u]=n,r=u;else break e}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,h=null,p=3,g=!1,v=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,x="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else if(t.startTime<=e)o(c),t.sortIndex=t.expirationTime,n(u,t);else break;t=r(c)}}function S(e){m=!1;b(e);if(!v)if(null!==r(u))v=!0,O(k);else{var t=r(c);null!==t&&R(S,t.startTime-e)}}function k(e,n){v=!1;m&&(m=!1,x(T),T=-1);g=!0;var i=p;try{b(n);for(h=r(u);null!==h&&(!(h.expirationTime>n)||e&&!_());){var a=h.callback;if("function"===typeof a){h.callback=null;p=h.priorityLevel;var s=a(h.expirationTime<=n);n=t.unstable_now();"function"===typeof s?h.callback=s:h===r(u)&&o(u);b(n)}else o(u);h=r(u)}if(null!==h)var l=!0;else{var f=r(c);null!==f&&R(S,f.startTime-n);l=!1}return l}finally{h=null,p=i,g=!1}}var j=!1,C=null,T=-1,E=5,I=-1;function _(){return t.unstable_now()-I<E?!1:!0}function M(){if(null!==C){var e=t.unstable_now();I=e;var n=!0;try{n=C(!0,e)}finally{n?D():(j=!1,C=null)}}else j=!1}var D;if("function"===typeof w)D=function(){w(M)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=M;D=function(){A.postMessage(null)}}else D=function(){y(M,0)};function O(e){C=e;j||(j=!0,D())}function R(e,n){T=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5;t.unstable_ImmediatePriority=1;t.unstable_LowPriority=4;t.unstable_NormalPriority=3;t.unstable_Profiling=null;t.unstable_UserBlockingPriority=2;t.unstable_cancelCallback=function(e){e.callback=null};t.unstable_continueExecution=function(){v||g||(v=!0,O(k))};t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5};t.unstable_getCurrentPriorityLevel=function(){return p};t.unstable_getFirstCallbackNode=function(){return r(u)};t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}};t.unstable_pauseExecution=function(){};t.unstable_requestPaint=function(){};t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}};t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();"object"===typeof i&&null!==i?(i=i.delay,i="number"===typeof i&&0<i?a+i:a):i=a;switch(e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}s=i+s;e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:s,sortIndex:-1};i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(m?(x(T),T=-1):m=!0,R(S,i-a))):(e.sortIndex=s,n(u,e),v||g||(v=!0,O(k)));return e};t.unstable_shouldYield=_;t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},46489:function(e,t,n){"use strict";if(true){e.exports=n(38221)}else{}},43057:function(e,t,n){var r=n(91767);function o(e,t){var n=null;if(!e||typeof e!=="string"){return n}var o;var i=r(e);var a=typeof t==="function";var s;var l;for(var u=0,c=i.length;u<c;u++){o=i[u];s=o.property;l=o.value;if(a){t(s,l,o)}else if(l){n||(n={});n[s]=l}}return n}e.exports=o;e.exports["default"]=o},49090:function(e){e.exports=t;function t(e,t){var n,r,o,i;var a=0;return function e(){n=this;r=arguments;var e=new Date-a;if(!i)if(e>=t)s();else i=setTimeout(s,t-e);return o};function s(){i=0;a=+new Date;o=e.apply(n,r);n=null;r=null}}},26505:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});const r=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var o={randomUUID:r};let i;const a=new Uint8Array(16);function s(){if(!i){i=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!i){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}}return i(a)};const l=[];for(let e=0;e<256;++e){l.push((e+256).toString(16).slice(1))}function u(e,t=0){return(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase()}function c(e,t=0){const n=u(e,t);if(!validate(n)){throw TypeError("Stringified UUID is invalid")}return n}var f=null&&c;function h(e,t,n){if(o.randomUUID&&!t&&!e){return o.randomUUID()}e=e||{};const r=e.random||(e.rng||s)();r[6]=r[6]&15|64;r[8]=r[8]&63|128;if(t){n=n||0;for(let e=0;e<16;++e){t[n+e]=r[e]}return t}return u(r)}var p=h},92879:function(e){"use strict";var t="production"!=="production";var n=function(){};if(t){var r=function e(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r<n;r++){t[r-1]=arguments[r]}var o=0;var i="Warning: "+e.replace(/%s/g,function(){return t[o++]});if(typeof console!=="undefined"){console.error(i)}try{throw new Error(i)}catch(e){}};n=function(e,t,n){var o=arguments.length;n=new Array(o>2?o-2:0);for(var i=2;i<o;i++){n[i-2]=arguments[i]}if(t===undefined){throw new Error("`warning(condition, format, ...args)` requires a warning "+"message argument")}if(!e){r.apply(null,[t].concat(n))}}}e.exports=n},76074:function(e,t,n){"use strict";n.d(t,{$:function(){return l},F:function(){return u}});var r=n(43188);var o=n(66204);var i=n(90696);var a=n(90122);const s=(0,o.createContext)(null);function l(e){(0,i.nP)();const t=document.documentElement.clientHeight;const n=document.documentElement.clientWidth;const o={atLeastMediumWidth:n>=a.A.medium,isNarrowWidth:n<a.A.small,isSmallWidth:n>=a.A.small&&n<a.A.medium,isMediumWidth:n>=a.A.medium&&n<a.A.wide,isWideWidth:n>=a.A.wide,height:t,width:n};return(0,r.jsx)(s.Provider,{value:o,children:e.children})}function u(){return(0,o.useContext)(s)}},6083:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(89456);var s=n(24307);const l=(0,i.F4)({"0%":{transform:"rotateZ(0deg)"},"100%":{transform:"rotateZ(360deg)"}});function u({animating:e,iconStyle:t,width:n,height:o}){return(0,r.jsx)(s.Z,{style:{animation:e?`${l} 1s infinite linear`:null},children:(0,r.jsx)(a.Z,{width:n?n:14,height:o?o:14,style:t})})}},39235:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var r=n(43188);var o=n(66204);var i=n(81113);const a=(0,o.createContext)("app");i.Z.filter=e=>{const t=e.target||e.srcElement;const n=t.tagName;if(!e.metaKey&&(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t["readOnly"])){return false}return true};function s({keyName:e,eventType:t="keydown",handler:n}){const r=(0,o.useContext)(a);if(t!=="keyup"&&t!=="keydown"){throw new Error("KeyHandler: unknown event type: "+t)}(0,o.useEffect)(()=>{function o(e,r){e.preventDefault();if(e.type===t&&n){return n(e,r)}}(0,i.Z)(e,{scope:r,keyup:true},o);return()=>{i.Z.unbind({key:e,scope:r,method:o})}},[e,n,r]);return null}function l({eventType:e,keys:t={}}){const n=Object.keys(t).map(n=>{return(0,r.jsx)(s,{keyName:n,eventType:e,handler:t[n]},n)});return(0,r.jsx)(r.Fragment,{children:n})}},49886:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(1447);var s=n(45492);var l=n(56816);var u=n(31941);var c=n(77644);var f=n(24307);var h=n(11800);var p=n(19808);function g({hideIfNoServer:e,style:t,color:n}){const g=(0,i.v9)(e=>e.user.data);const{getUserData:v,signOut:m,closeBudget:y}=(0,a.o)();const[x,w]=(0,o.useState)(true);const[b,S]=(0,o.useState)(false);const k=(0,h.o1)();(0,o.useEffect)(()=>{v().then(()=>w(false))},[]);async function j(){await y();window.__navigate("/change-password")}async function C(e){S(false);switch(e){case"change-password":j();break;case"sign-in":await y();window.__navigate("/login");break;case"sign-out":m();break;case"config-server":await y();window.__navigate("/config-server");break;default:}}function T(){if(!k){return"No server"}if(g?.offline){return"Server offline"}return"Server online"}if(e&&!k){return null}if(x&&k){return(0,r.jsx)(c.Z,{style:{color:s.rS.pageTextLight,fontStyle:"italic",...s.W2.delayedFadeIn,...t},children:"Connecting..."})}return(0,r.jsxs)(f.Z,{style:{flexDirection:"row",alignItems:"center",...t},children:[(0,r.jsx)(l.Z,{type:"bare",onClick:()=>S(true),style:n&&{color:n},children:T()}),b&&(0,r.jsx)(p.u,{position:"bottom-right",style:{padding:0},onClose:()=>S(false),children:(0,r.jsx)(u.Z,{onMenuSelect:C,items:[k&&!g?.offline&&{name:"change-password",text:"Change password"},k&&{name:"sign-out",text:"Sign out"},{name:"config-server",text:k?"Change server URL":"Start using a server"}]})})]})}},82151:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(43188);var o=n(66204);var i=n(24868);var a=n(89116);var s=n(45492);var l=n(56816);var u=n(77644);function c({style:e}){const t=(0,i.Z)();return(0,r.jsxs)(l.Z,{type:"bare",style:{color:s.rS.mobileHeaderText,justifyContent:"center",margin:10,paddingLeft:5,paddingRight:3,...e},hoveredStyle:{color:s.rS.mobileHeaderText,background:s.rS.mobileHeaderTextHover},onPointerUp:()=>t(-1),children:[(0,r.jsx)(a.Z,{style:{width:30,height:30,margin:-10,marginLeft:-5}}),(0,r.jsx)(u.Z,{style:{...s.W2.text,fontWeight:500,marginLeft:5,marginRight:5},children:"Back"})]})}},90169:function(e,t,n){"use strict";n.d(t,{Z:function(){return sg}});var r={};n.r(r);n.d(r,{attentionMarkers:function(){return ng},contentInitial:function(){return nu},disable:function(){return nv},document:function(){return nl},flow:function(){return nd},flowInitial:function(){return nc},insideSpan:function(){return np},string:function(){return nf},text:function(){return nh}});var o={};n.r(o);n.d(o,{boolean:function(){return rK},booleanish:function(){return rq},commaOrSpaceSeparated:function(){return rJ},commaSeparated:function(){return rQ},number:function(){return rG},overloadedBoolean:function(){return rY},spaceSeparated:function(){return rX}});var i=n(43188);var a=n(66204);var s=n(56186);function l(e){if(!e||typeof e!=="object"){return""}if("position"in e||"type"in e){return c(e.position)}if("start"in e||"end"in e){return c(e)}if("line"in e||"column"in e){return u(e)}return""}function u(e){return f(e&&e.line)+":"+f(e&&e.column)}function c(e){return u(e&&e.start)+"-"+u(e&&e.end)}function f(e){return e&&typeof e==="number"?e:1};class h extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};super();if(typeof t==="string"){n=t;t=undefined}if(typeof n==="string"){const e=n.indexOf(":");if(e===-1){r[1]=n}else{r[0]=n.slice(0,e);r[1]=n.slice(e+1)}}if(t){if("type"in t||"position"in t){if(t.position){o=t.position}}else if("start"in t||"end"in t){o=t}else if("line"in t||"column"in t){o.start=t}}this.name=l(t)||"1:1";this.message=typeof e==="object"?e.message:e;this.stack="";if(typeof e==="object"&&e.stack){this.stack=e.stack}this.reason=this.message;this.fatal;this.line=o.start.line;this.column=o.start.column;this.position=o;this.source=r[0];this.ruleId=r[1];this.file;this.actual;this.expected;this.url;this.note}}h.prototype.file="";h.prototype.name="";h.prototype.reason="";h.prototype.message="";h.prototype.stack="";h.prototype.fatal=null;h.prototype.column=null;h.prototype.line=null;h.prototype.source=null;h.prototype.ruleId=null;h.prototype.position=null;const p={basename:g,dirname:v,extname:m,join:y,sep:"/"};function g(e,t){if(t!==undefined&&typeof t!=="string"){throw new TypeError('"ext" argument must be a string')}b(e);let n=0;let r=-1;let o=e.length;let i;if(t===undefined||t.length===0||t.length>e.length){while(o--){if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else if(r<0){i=true;r=o+1}}return r<0?"":e.slice(n,r)}if(t===e){return""}let a=-1;let s=t.length-1;while(o--){if(e.charCodeAt(o)===47){if(i){n=o+1;break}}else{if(a<0){i=true;a=o+1}if(s>-1){if(e.charCodeAt(o)===t.charCodeAt(s--)){if(s<0){r=o}}else{s=-1;r=a}}}}if(n===r){r=a}else if(r<0){r=e.length}return e.slice(n,r)}function v(e){b(e);if(e.length===0){return"."}let t=-1;let n=e.length;let r;while(--n){if(e.charCodeAt(n)===47){if(r){t=n;break}}else if(!r){r=true}}return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function m(e){b(e);let t=e.length;let n=-1;let r=0;let o=-1;let i=0;let a;while(t--){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}if(n<0){a=true;n=t+1}if(s===46){if(o<0){o=t}else if(i!==1){i=1}}else if(o>-1){i=-1}}if(o<0||n<0||i===0||i===1&&o===n-1&&o===r+1){return""}return e.slice(o,n)}function y(...e){let t=-1;let n;while(++t<e.length){b(e[t]);if(e[t]){n=n===undefined?e[t]:n+"/"+e[t]}}return n===undefined?".":x(n)}function x(e){b(e);const t=e.charCodeAt(0)===47;let n=w(e,!t);if(n.length===0&&!t){n="."}if(n.length>0&&e.charCodeAt(e.length-1)===47){n+="/"}return t?"/"+n:n}function w(e,t){let n="";let r=0;let o=-1;let i=0;let a=-1;let s;let l;while(++a<=e.length){if(a<e.length){s=e.charCodeAt(a)}else if(s===47){break}else{s=47}if(s===47){if(o===a-1||i===1){}else if(o!==a-1&&i===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){l=n.lastIndexOf("/");if(l!==n.length-1){if(l<0){n="";r=0}else{n=n.slice(0,l);r=n.length-1-n.lastIndexOf("/")}o=a;i=0;continue}}else if(n.length>0){n="";r=0;o=a;i=0;continue}}if(t){n=n.length>0?n+"/..":"..";r=2}}else{if(n.length>0){n+="/"+e.slice(o+1,a)}else{n=e.slice(o+1,a)}r=a-o-1}o=a;i=0}else if(s===46&&i>-1){i++}else{i=-1}}return n}function b(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}};const S={cwd:k};function k(){return"/"};function j(e){return e!==null&&typeof e==="object"&&e.href&&e.origin};function C(e){if(typeof e==="string"){e=new URL(e)}else if(!j(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");t.code="ERR_INVALID_ARG_TYPE";throw t}if(e.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");e.code="ERR_INVALID_URL_SCHEME";throw e}return T(e)}function T(e){if(e.hostname!==""){const e=new TypeError('File URL host must be "localhost" or empty on darwin');e.code="ERR_INVALID_FILE_URL_HOST";throw e}const t=e.pathname;let n=-1;while(++n<t.length){if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const e=t.charCodeAt(n+2);if(e===70||e===102){const e=new TypeError("File URL path must not include encoded / characters");e.code="ERR_INVALID_FILE_URL_PATH";throw e}}}return decodeURIComponent(t)};const E=["history","path","basename","stem","extname","dirname"];class I{constructor(e){let t;if(!e){t={}}else if(typeof e==="string"||P(e)){t={value:e}}else if(j(e)){t={path:e}}else{t=e}this.data={};this.messages=[];this.history=[];this.cwd=S.cwd();this.value;this.stored;this.result;this.map;let n=-1;while(++n<E.length){const e=E[n];if(e in t&&t[e]!==undefined&&t[e]!==null){this[e]=e==="history"?[...t[e]]:t[e]}}let r;for(r in t){if(!E.includes(r)){this[r]=t[r]}}}get path(){return this.history[this.history.length-1]}set path(e){if(j(e)){e=C(e)}M(e,"path");if(this.path!==e){this.history.push(e)}}get dirname(){return typeof this.path==="string"?p.dirname(this.path):undefined}set dirname(e){D(this.basename,"dirname");this.path=p.join(e||"",this.basename)}get basename(){return typeof this.path==="string"?p.basename(this.path):undefined}set basename(e){M(e,"basename");_(e,"basename");this.path=p.join(this.dirname||"",e)}get extname(){return typeof this.path==="string"?p.extname(this.path):undefined}set extname(e){_(e,"extname");D(this.dirname,"extname");if(e){if(e.charCodeAt(0)!==46){throw new Error("`extname` must start with `.`")}if(e.includes(".",1)){throw new Error("`extname` cannot contain multiple dots")}}this.path=p.join(this.dirname,this.stem+(e||""))}get stem(){return typeof this.path==="string"?p.basename(this.path,this.extname):undefined}set stem(e){M(e,"stem");_(e,"stem");this.path=p.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||undefined)}message(e,t,n){const r=new h(e,t,n);if(this.path){r.name=this.path+":"+r.name;r.file=this.path}r.fatal=false;this.messages.push(r);return r}info(e,t,n){const r=this.message(e,t,n);r.fatal=null;return r}fail(e,t,n){const r=this.message(e,t,n);r.fatal=true;throw r}}function _(e,t){if(e&&e.includes(p.sep)){throw new Error("`"+t+"` cannot be a path: did not expect `"+p.sep+"`")}}function M(e,t){if(!e){throw new Error("`"+t+"` cannot be empty")}}function D(e,t){if(!e){throw new Error("Setting `"+t+"` requires `path` to be set too")}}function P(e){return s(e)};function A(e){if(e){throw e}}var O=n(51302);function R(e){if(typeof e!=="object"||e===null){return false}const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};function z(){const e=[];const t={run:n,use:r};return t;function n(...t){let r=-1;const o=t.pop();if(typeof o!=="function"){throw new TypeError("Expected function as last argument, not "+o)}i(null,...t);function i(n,...a){const s=e[++r];let l=-1;if(n){o(n);return}while(++l<t.length){if(a[l]===null||a[l]===undefined){a[l]=t[l]}}t=a;if(s){Z(s,i)(...a)}else{o(null,...a)}}}function r(n){if(typeof n!=="function"){throw new TypeError("Expected `middelware` to be a function, not "+n)}e.push(n);return t}}function Z(e,t){let n;return r;function r(...t){const a=e.length>t.length;let s;if(a){t.push(o)}try{s=e.apply(this,t)}catch(t){const e=t;if(a&&n){throw e}return o(e)}if(!a){if(s instanceof Promise){s.then(i,o)}else if(s instanceof Error){o(s)}else{i(s)}}}function o(e,...r){if(!n){n=true;t(e,...r)}}function i(e){o(null,e)}};const L=B().freeze();const N={}.hasOwnProperty;function B(){const e=z();const t=[];let n={};let r;let o=-1;i.data=a;i.Parser=undefined;i.Compiler=undefined;i.freeze=s;i.attachers=t;i.use=l;i.parse=u;i.stringify=c;i.run=f;i.runSync=h;i.process=p;i.processSync=g;return i;function i(){const e=B();let r=-1;while(++r<t.length){e.use(...t[r])}e.data(O(true,{},n));return e}function a(e,t){if(typeof e==="string"){if(arguments.length===2){U("data",r);n[e]=t;return i}return N.call(n,e)&&n[e]||null}if(e){U("data",r);n=e;return i}return n}function s(){if(r){return i}while(++o<t.length){const[n,...r]=t[o];if(r[0]===false){continue}if(r[0]===true){r[0]=undefined}const a=n.call(i,...r);if(typeof a==="function"){e.use(a)}}r=true;o=Number.POSITIVE_INFINITY;return i}function l(e,...o){let a;U("use",r);if(e===null||e===undefined){}else if(typeof e==="function"){f(e,...o)}else if(typeof e==="object"){if(Array.isArray(e)){c(e)}else{u(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}if(a){n.settings=Object.assign(n.settings||{},a)}return i;function s(e){if(typeof e==="function"){f(e)}else if(typeof e==="object"){if(Array.isArray(e)){const[t,...n]=e;f(t,...n)}else{u(e)}}else{throw new TypeError("Expected usable value, not `"+e+"`")}}function u(e){c(e.plugins);if(e.settings){a=Object.assign(a||{},e.settings)}}function c(e){let t=-1;if(e===null||e===undefined){}else if(Array.isArray(e)){while(++t<e.length){const n=e[t];s(n)}}else{throw new TypeError("Expected a list of plugins, not `"+e+"`")}}function f(e,n){let r=-1;let o;while(++r<t.length){if(t[r][0]===e){o=t[r];break}}if(o){if(R(o[1])&&R(n)){n=O(true,o[1],n)}o[1]=n}else{t.push([...arguments])}}}function u(e){i.freeze();const t=q(e);const n=i.Parser;V("parse",n);if(H(n,"parse")){return new n(String(t),t).parse()}return n(String(t),t)}function c(e,t){i.freeze();const n=q(t);const r=i.Compiler;W("stringify",r);$(e);if(H(r,"compile")){return new r(e,n).compile()}return r(e,n)}function f(t,n,r){$(t);i.freeze();if(!r&&typeof n==="function"){r=n;n=undefined}if(!r){return new Promise(o)}o(null,r);function o(o,i){e.run(t,q(n),a);function a(e,n,a){n=n||t;if(e){i(e)}else if(o){o(n)}else{r(null,n,a)}}}}function h(e,t){let n;let r;i.run(e,t,o);K("runSync","run",r);return n;function o(e,t){A(e);n=t;r=true}}function p(e,t){i.freeze();V("process",i.Parser);W("process",i.Compiler);if(!t){return new Promise(n)}n(null,t);function n(n,r){const o=q(e);i.run(i.parse(o),o,(e,t,n)=>{if(e||!t||!n){a(e)}else{const r=i.stringify(t,n);if(r===undefined||r===null){}else if(G(r)){n.value=r}else{n.result=r}a(e,n)}});function a(e,o){if(e||!o){r(e)}else if(n){n(o)}else{t(null,o)}}}}function g(e){let t;i.freeze();V("processSync",i.Parser);W("processSync",i.Compiler);const n=q(e);i.process(n,r);K("processSync","process",t);return n;function r(e){t=true;A(e)}}}function H(e,t){return typeof e==="function"&&e.prototype&&(F(e.prototype)||t in e.prototype)}function F(e){let t;for(t in e){if(N.call(e,t)){return true}}return false}function V(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `Parser`")}}function W(e,t){if(typeof t!=="function"){throw new TypeError("Cannot `"+e+"` without `Compiler`")}}function U(e,t){if(t){throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}}function $(e){if(!R(e)||typeof e.type!=="string"){throw new TypeError("Expected node, got `"+e+"`")}}function K(e,t,n){if(!n){throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}}function q(e){return Y(e)?e:new I(e)}function Y(e){return Boolean(e&&typeof e==="object"&&"message"in e&&"messages"in e)}function G(e){return typeof e==="string"||s(e)};const X={};function Q(e,t){const n=t||X;const r=typeof n.includeImageAlt==="boolean"?n.includeImageAlt:true;const o=typeof n.includeHtml==="boolean"?n.includeHtml:true;return J(e,r,o)}function J(e,t,n){if(et(e)){if("value"in e){return e.type==="html"&&!n?"":e.value}if(t&&"alt"in e&&e.alt){return e.alt}if("children"in e){return ee(e.children,t,n)}}if(Array.isArray(e)){return ee(e,t,n)}return""}function ee(e,t,n){const r=[];let o=-1;while(++o<e.length){r[o]=J(e[o],t,n)}return r.join("")}function et(e){return Boolean(e&&typeof e==="object")};function en(e,t,n,r){const o=e.length;let i=0;let a;if(t<0){t=-t>o?0:o+t}else{t=t>o?o:t}n=n>0?n:0;if(r.length<1e4){a=Array.from(r);a.unshift(t,n);e.splice(...a)}else{if(n)e.splice(t,n);while(i<r.length){a=r.slice(i,i+1e4);a.unshift(t,0);e.splice(...a);i+=1e4;t+=1e4}}}function er(e,t){if(e.length>0){en(e,e.length,0,t);return e}return t};const eo={}.hasOwnProperty;function ei(e){const t={};let n=-1;while(++n<e.length){ea(t,e[n])}return t}function ea(e,t){let n;for(n in t){const r=eo.call(e,n)?e[n]:undefined;const o=r||(e[n]={});const i=t[n];let a;if(i){for(a in i){if(!eo.call(o,a))o[a]=[];const e=i[a];es(o[a],Array.isArray(e)?e:e?[e]:[])}}}}function es(e,t){let n=-1;const r=[];while(++n<t.length){;(t[n].add==="after"?e:r).push(t[n])}en(e,0,0,r)}function el(e){const t={};let n=-1;while(++n<e.length){eu(t,e[n])}return t}function eu(e,t){let n;for(n in t){const r=eo.call(e,n)?e[n]:undefined;const o=r||(e[n]={});const i=t[n];let a;if(i){for(a in i){o[a]=i[a]}}}};const ec=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/;const ed=ek(/[A-Za-z]/);const ef=ek(/[\dA-Za-z]/);const eh=ek(/[#-'*+\--9=?A-Z^-~]/);function ep(e){return e!==null&&(e<32||e===127)}const eg=ek(/\d/);const ev=ek(/[\dA-Fa-f]/);const em=ek(/[!-/:-@[-`{-~]/);function ey(e){return e!==null&&e<-2}function ex(e){return e!==null&&(e<0||e===32)}function ew(e){return e===-2||e===-1||e===32}const eb=ek(ec);const eS=ek(/\s/);function ek(e){return t;function t(t){return t!==null&&e.test(String.fromCharCode(t))}};function ej(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return a;function a(r){if(ew(r)){e.enter(n);return s(r)}return t(r)}function s(r){if(ew(r)&&i++<o){e.consume(r);return s}e.exit(n);return t(r)}};const eC={tokenize:eT};function eT(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(n){if(n===null){e.consume(n);return}e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return ej(e,t,"linePrefix")}function o(t){e.enter("paragraph");return i(t)}function i(t){const r=e.enter("chunkText",{contentType:"text",previous:n});if(n){n.next=r}n=r;return a(t)}function a(t){if(t===null){e.exit("chunkText");e.exit("paragraph");e.consume(t);return}if(ey(t)){e.consume(t);e.exit("chunkText");return i}e.consume(t);return a}};const eE={tokenize:e_};const eI={tokenize:eM};function e_(e){const t=this;const n=[];let r=0;let o;let i;let a;return s;function s(o){if(r<n.length){const i=n[r];t.containerState=i[1];return e.attempt(i[0].continuation,l,u)(o)}return u(o)}function l(e){r++;if(t.containerState._closeFlow){t.containerState._closeFlow=undefined;if(o){x()}const n=t.events.length;let i=n;let a;while(i--){if(t.events[i][0]==="exit"&&t.events[i][1].type==="chunkFlow"){a=t.events[i][1].end;break}}y(r);let s=n;while(s<t.events.length){t.events[s][1].end=Object.assign({},a);s++}en(t.events,i+1,0,t.events.slice(n));t.events.length=s;return u(e)}return s(e)}function u(i){if(r===n.length){if(!o){return h(i)}if(o.currentConstruct&&o.currentConstruct.concrete){return g(i)}t.interrupt=Boolean(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}t.containerState={};return e.check(eI,c,f)(i)}function c(e){if(o)x();y(r);return h(e)}function f(e){t.parser.lazy[t.now().line]=r!==n.length;a=t.now().offset;return g(e)}function h(n){t.containerState={};return e.attempt(eI,p,g)(n)}function p(e){r++;n.push([t.currentConstruct,t.containerState]);return h(e)}function g(n){if(n===null){if(o)x();y(0);e.consume(n);return}o=o||t.parser.flow(t.now());e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:o});return v(n)}function v(n){if(n===null){m(e.exit("chunkFlow"),true);y(0);e.consume(n);return}if(ey(n)){e.consume(n);m(e.exit("chunkFlow"));r=0;t.interrupt=undefined;return s}e.consume(n);return v}function m(e,n){const s=t.sliceStream(e);if(n)s.push(null);e.previous=i;if(i)i.next=e;i=e;o.defineSkip(e.start);o.write(s);if(t.parser.lazy[e.start.line]){let e=o.events.length;while(e--){if(o.events[e][1].start.offset<a&&(!o.events[e][1].end||o.events[e][1].end.offset>a)){return}}const n=t.events.length;let i=n;let s;let l;while(i--){if(t.events[i][0]==="exit"&&t.events[i][1].type==="chunkFlow"){if(s){l=t.events[i][1].end;break}s=true}}y(r);e=n;while(e<t.events.length){t.events[e][1].end=Object.assign({},l);e++}en(t.events,i+1,0,t.events.slice(n));t.events.length=e}}function y(r){let o=n.length;while(o-- >r){const r=n[o];t.containerState=r[1];r[0].exit.call(t,e)}n.length=r}function x(){o.write([null]);i=undefined;o=undefined;t.containerState._closeFlow=undefined}}function eM(e,t,n){return ej(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?undefined:4)};const eD={tokenize:eP,partial:true};function eP(e,t,n){return r;function r(t){return ew(t)?ej(e,o,"linePrefix")(t):o(t)}function o(e){return e===null||ey(e)?t(e):n(e)}};function eA(e){const t={};let n=-1;let r;let o;let i;let a;let s;let l;let u;while(++n<e.length){while(n in t){n=t[n]}r=e[n];if(n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"){l=r[1]._tokenizer.events;i=0;if(i<l.length&&l[i][1].type==="lineEndingBlank"){i+=2}if(i<l.length&&l[i][1].type==="content"){while(++i<l.length){if(l[i][1].type==="content"){break}if(l[i][1].type==="chunkText"){l[i][1]._isInFirstContentOfListItem=true;i++}}}}if(r[0]==="enter"){if(r[1].contentType){Object.assign(t,eO(e,n));n=t[n];u=true}}else if(r[1]._container){i=n;o=undefined;while(i--){a=e[i];if(a[1].type==="lineEnding"||a[1].type==="lineEndingBlank"){if(a[0]==="enter"){if(o){e[o][1].type="lineEndingBlank"}a[1].type="lineEnding";o=i}}else{break}}if(o){r[1].end=Object.assign({},e[o][1].start);s=e.slice(o,n);s.unshift(r);en(e,o,n-o+1,s)}}}return!u}function eO(e,t){const n=e[t][1];const r=e[t][2];let o=t-1;const i=[];const a=n._tokenizer||r.parser[n.contentType](n.start);const s=a.events;const l=[];const u={};let c;let f;let h=-1;let p=n;let g=0;let v=0;const m=[v];while(p){while(e[++o][1]!==p){}i.push(o);if(!p._tokenizer){c=r.sliceStream(p);if(!p.next){c.push(null)}if(f){a.defineSkip(p.start)}if(p._isInFirstContentOfListItem){a._gfmTasklistFirstContentOfListItem=true}a.write(c);if(p._isInFirstContentOfListItem){a._gfmTasklistFirstContentOfListItem=undefined}}f=p;p=p.next}p=n;while(++h<s.length){if(s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line){v=h+1;m.push(v);p._tokenizer=undefined;p.previous=undefined;p=p.next}}a.events=[];if(p){p._tokenizer=undefined;p.previous=undefined}else{m.pop()}h=m.length;while(h--){const t=s.slice(m[h],m[h+1]);const n=i.pop();l.unshift([n,n+t.length-1]);en(e,n,2,t)}h=-1;while(++h<l.length){u[g+l[h][0]]=g+l[h][1];g+=l[h][1]-l[h][0]-1}return u};const eR={tokenize:eL,resolve:eZ};const ez={tokenize:eN,partial:true};function eZ(e){eA(e);return e}function eL(e,t){let n;return r;function r(t){e.enter("content");n=e.enter("chunkContent",{contentType:"content"});return o(t)}function o(t){if(t===null){return i(t)}if(ey(t)){return e.check(ez,a,i)(t)}e.consume(t);return o}function i(n){e.exit("chunkContent");e.exit("content");return t(n)}function a(t){e.consume(t);e.exit("chunkContent");n.next=e.enter("chunkContent",{contentType:"content",previous:n});n=n.next;return o}}function eN(e,t,n){const r=this;return o;function o(t){e.exit("chunkContent");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return ej(e,i,"linePrefix")}function i(o){if(o===null||ey(o)){return n(o)}const i=r.events[r.events.length-1];if(!r.parser.constructs.disable.null.includes("codeIndented")&&i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],true).length>=4){return t(o)}return e.interrupt(r.parser.constructs.flow,n,t)(o)}};const eB={tokenize:eH};function eH(e){const t=this;const n=e.attempt(eD,r,e.attempt(this.parser.constructs.flowInitial,o,ej(e,e.attempt(this.parser.constructs.flow,o,e.attempt(eR,o)),"linePrefix")));return n;function r(r){if(r===null){e.consume(r);return}e.enter("lineEndingBlank");e.consume(r);e.exit("lineEndingBlank");t.currentConstruct=undefined;return n}function o(r){if(r===null){e.consume(r);return}e.enter("lineEnding");e.consume(r);e.exit("lineEnding");t.currentConstruct=undefined;return n}};const eF={resolveAll:e$()};const eV=eU("string");const eW=eU("text");function eU(e){return{tokenize:t,resolveAll:e$(e==="text"?eK:undefined)};function t(t){const n=this;const r=this.parser.constructs[e];const o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(e===null){t.consume(e);return}t.enter("data");t.consume(e);return s}function s(e){if(l(e)){t.exit("data");return o(e)}t.consume(e);return s}function l(e){if(e===null){return true}const t=r[e];let o=-1;if(t){while(++o<t.length){const e=t[o];if(!e.previous||e.previous.call(n,n.previous)){return true}}}return false}}}function e$(e){return t;function t(t,n){let r=-1;let o;while(++r<=t.length){if(o===undefined){if(t[r]&&t[r][1].type==="data"){o=r;r++}}else if(!t[r]||t[r][1].type!=="data"){if(r!==o+2){t[o][1].end=t[r-1][1].end;t.splice(o+2,r-o-2);r=o+2}o=undefined}}return e?e(t,n):t}}function eK(e,t){let n=0;while(++n<=e.length){if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1];const o=t.sliceStream(r);let i=o.length;let a=-1;let s=0;let l;while(i--){const e=o[i];if(typeof e==="string"){a=e.length;while(e.charCodeAt(a-1)===32){s++;a--}if(a)break;a=-1}else if(e===-2){l=true;s++}else if(e===-1){}else{i++;break}}if(s){const o={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+i,_bufferIndex:i?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},o.start);if(r.start.offset===r.end.offset){Object.assign(r,o)}else{e.splice(n,0,["enter",o,t],["exit",o,t]);n+=2}}n++}}return e};function eq(e,t,n){const r=[];let o=-1;while(++o<e.length){const i=e[o].resolveAll;if(i&&!r.includes(i)){t=i(t,n);r.push(i)}}return t};function eY(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={};const i=[];let a=[];let s=[];let l=true;const u={consume:b,enter:S,exit:k,attempt:T(j),check:T(C),interrupt:T(C,{interrupt:true})};const c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:v,sliceSerialize:g,now:m,defineSkip:y,write:p};let f=t.tokenize.call(c,u);let h;if(t.resolveAll){i.push(t)}return c;function p(e){a=er(a,e);x();if(a[a.length-1]!==null){return[]}E(t,0);c.events=eq(i,c.events,c);return c.events}function g(e,t){return eX(v(e),t)}function v(e){return eG(a,e)}function m(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function y(e){o[e.line]=e.column;_()}function x(){let e;while(r._index<a.length){const t=a[r._index];if(typeof t==="string"){e=r._index;if(r._bufferIndex<0){r._bufferIndex=0}while(r._index===e&&r._bufferIndex<t.length){w(t.charCodeAt(r._bufferIndex))}}else{w(t)}}}function w(e){l=undefined;h=e;f=f(e)}function b(e){if(ey(e)){r.line++;r.column=1;r.offset+=e===-3?2:1;_()}else if(e!==-1){r.column++;r.offset++}if(r._bufferIndex<0){r._index++}else{r._bufferIndex++;if(r._bufferIndex===a[r._index].length){r._bufferIndex=-1;r._index++}}c.previous=e;l=true}function S(e,t){const n=t||{};n.type=e;n.start=m();c.events.push(["enter",n,c]);s.push(n);return n}function k(e){const t=s.pop();t.end=m();c.events.push(["exit",t,c]);return t}function j(e,t){E(e,t.from)}function C(e,t){t.restore()}function T(e,t){return n;function n(n,r,o){let i;let a;let s;let f;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):h(n);function h(e){return t;function t(t){const n=t!==null&&e[t];const r=t!==null&&e.null;const o=[...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]];return p(o)(t)}}function p(e){i=e;a=0;if(e.length===0){return o}return g(e[a])}function g(e){return n;function n(n){f=I();s=e;if(!e.partial){c.currentConstruct=e}if(e.name&&c.parser.constructs.disable.null.includes(e.name)){return m(n)}return e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,m)(n)}}function v(t){l=true;e(s,f);return r}function m(e){l=true;f.restore();if(++a<i.length){return g(i[a])}return o}}}function E(e,t){if(e.resolveAll&&!i.includes(e)){i.push(e)}if(e.resolve){en(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c))}if(e.resolveTo){c.events=e.resolveTo(c.events,c)}}function I(){const e=m();const t=c.previous;const n=c.currentConstruct;const o=c.events.length;const i=Array.from(s);return{restore:a,from:o};function a(){r=e;c.previous=t;c.currentConstruct=n;c.events.length=o;s=i;_()}}function _(){if(r.line in o&&r.column<2){r.column=o[r.line];r.offset+=o[r.line]-1}}}function eG(e,t){const n=t.start._index;const r=t.start._bufferIndex;const o=t.end._index;const i=t.end._bufferIndex;let a;if(n===o){a=[e[n].slice(r,i)]}else{a=e.slice(n,o);if(r>-1){const e=a[0];if(typeof e==="string"){a[0]=e.slice(r)}else{a.shift()}}if(i>0){a.push(e[o].slice(0,i))}}return a}function eX(e,t){let n=-1;const r=[];let o;while(++n<e.length){const i=e[n];let a;if(typeof i==="string"){a=i}else switch(i){case-5:{a="\r";break}case-4:{a="\n";break}case-3:{a="\r"+"\n";break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&o)continue;a=" ";break}default:{a=String.fromCharCode(i)}}o=i===-2;r.push(a)}return r.join("")};const eQ={name:"thematicBreak",tokenize:eJ};function eJ(e,t,n){let r=0;let o;return i;function i(t){e.enter("thematicBreak");return a(t)}function a(e){o=e;return s(e)}function s(i){if(i===o){e.enter("thematicBreakSequence");return l(i)}if(r>=3&&(i===null||ey(i))){e.exit("thematicBreak");return t(i)}return n(i)}function l(t){if(t===o){e.consume(t);r++;return l}e.exit("thematicBreakSequence");return ew(t)?ej(e,s,"whitespace")(t):s(t)}};const e0={name:"list",tokenize:e4,continuation:{tokenize:e5},exit:e6};const e1={tokenize:e8,partial:true};const e2={tokenize:e3,partial:true};function e4(e,t,n){const r=this;const o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],true).length:0;let a=0;return s;function s(t){const o=r.containerState.type||(t===42||t===43||t===45?"listUnordered":"listOrdered");if(o==="listUnordered"?!r.containerState.marker||t===r.containerState.marker:eg(t)){if(!r.containerState.type){r.containerState.type=o;e.enter(o,{_container:true})}if(o==="listUnordered"){e.enter("listItemPrefix");return t===42||t===45?e.check(eQ,n,u)(t):u(t)}if(!r.interrupt||t===49){e.enter("listItemPrefix");e.enter("listItemValue");return l(t)}}return n(t)}function l(t){if(eg(t)&&++a<10){e.consume(t);return l}if((!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)){e.exit("listItemValue");return u(t)}return n(t)}function u(t){e.enter("listItemMarker");e.consume(t);e.exit("listItemMarker");r.containerState.marker=r.containerState.marker||t;return e.check(eD,r.interrupt?n:c,e.attempt(e1,h,f))}function c(e){r.containerState.initialBlankLine=true;i++;return h(e)}function f(t){if(ew(t)){e.enter("listItemPrefixWhitespace");e.consume(t);e.exit("listItemPrefixWhitespace");return h}return n(t)}function h(n){r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),true).length;return t(n)}}function e5(e,t,n){const r=this;r.containerState._closeFlow=undefined;return e.check(eD,o,i);function o(n){r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine;return ej(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){if(r.containerState.furtherBlankLines||!ew(n)){r.containerState.furtherBlankLines=undefined;r.containerState.initialBlankLine=undefined;return a(n)}r.containerState.furtherBlankLines=undefined;r.containerState.initialBlankLine=undefined;return e.attempt(e2,t,a)(n)}function a(o){r.containerState._closeFlow=true;r.interrupt=undefined;return ej(e,e.attempt(e0,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(o)}}function e3(e,t,n){const r=this;return ej(e,o,"listItemIndent",r.containerState.size+1);function o(e){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],true).length===r.containerState.size?t(e):n(e)}}function e6(e){e.exit(this.containerState.type)}function e8(e,t,n){const r=this;return ej(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4+1);function o(e){const o=r.events[r.events.length-1];return!ew(e)&&o&&o[1].type==="listItemPrefixWhitespace"?t(e):n(e)}};const e7={name:"blockQuote",tokenize:e9,continuation:{tokenize:te},exit:tt};function e9(e,t,n){const r=this;return o;function o(t){if(t===62){const n=r.containerState;if(!n.open){e.enter("blockQuote",{_container:true});n.open=true}e.enter("blockQuotePrefix");e.enter("blockQuoteMarker");e.consume(t);e.exit("blockQuoteMarker");return i}return n(t)}function i(n){if(ew(n)){e.enter("blockQuotePrefixWhitespace");e.consume(n);e.exit("blockQuotePrefixWhitespace");e.exit("blockQuotePrefix");return t}e.exit("blockQuotePrefix");return t(n)}}function te(e,t,n){const r=this;return o;function o(t){if(ew(t)){return ej(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return i(t)}function i(r){return e.attempt(e7,t,n)(r)}}function tt(e){e.exit("blockQuote")};function tn(e,t,n,r,o,i,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(t){if(t===60){e.enter(r);e.enter(o);e.enter(i);e.consume(t);e.exit(i);return h}if(t===null||t===32||t===41||ep(t)){return n(t)}e.enter(r);e.enter(a);e.enter(s);e.enter("chunkString",{contentType:"string"});return v(t)}function h(n){if(n===62){e.enter(i);e.consume(n);e.exit(i);e.exit(o);e.exit(r);return t}e.enter(s);e.enter("chunkString",{contentType:"string"});return p(n)}function p(t){if(t===62){e.exit("chunkString");e.exit(s);return h(t)}if(t===null||t===60||ey(t)){return n(t)}e.consume(t);return t===92?g:p}function g(t){if(t===60||t===62||t===92){e.consume(t);return p}return p(t)}function v(o){if(!c&&(o===null||o===41||ex(o))){e.exit("chunkString");e.exit(s);e.exit(a);e.exit(r);return t(o)}if(c<u&&o===40){e.consume(o);c++;return v}if(o===41){e.consume(o);c--;return v}if(o===null||o===32||o===40||ep(o)){return n(o)}e.consume(o);return o===92?m:v}function m(t){if(t===40||t===41||t===92){e.consume(t);return v}return v(t)}};function tr(e,t,n,r,o,i){const a=this;let s=0;let l;return u;function u(t){e.enter(r);e.enter(o);e.consume(t);e.exit(o);e.enter(i);return c}function c(u){if(s>999||u===null||u===91||u===93&&!l||u===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs){return n(u)}if(u===93){e.exit(i);e.enter(o);e.consume(u);e.exit(o);e.exit(r);return t}if(ey(u)){e.enter("lineEnding");e.consume(u);e.exit("lineEnding");return c}e.enter("chunkString",{contentType:"string"});return f(u)}function f(t){if(t===null||t===91||t===93||ey(t)||s++>999){e.exit("chunkString");return c(t)}e.consume(t);if(!l)l=!ew(t);return t===92?h:f}function h(t){if(t===91||t===92||t===93){e.consume(t);s++;return f}return f(t)}};function to(e,t,n,r,o,i){let a;return s;function s(t){if(t===34||t===39||t===40){e.enter(r);e.enter(o);e.consume(t);e.exit(o);a=t===40?41:t;return l}return n(t)}function l(n){if(n===a){e.enter(o);e.consume(n);e.exit(o);e.exit(r);return t}e.enter(i);return u(n)}function u(t){if(t===a){e.exit(i);return l(a)}if(t===null){return n(t)}if(ey(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return ej(e,u,"linePrefix")}e.enter("chunkString",{contentType:"string"});return c(t)}function c(t){if(t===a||t===null||ey(t)){e.exit("chunkString");return u(t)}e.consume(t);return t===92?f:c}function f(t){if(t===a||t===92){e.consume(t);return c}return c(t)}};function ti(e,t){let n;return r;function r(o){if(ey(o)){e.enter("lineEnding");e.consume(o);e.exit("lineEnding");n=true;return r}if(ew(o)){return ej(e,r,n?"linePrefix":"lineSuffix")(o)}return t(o)}};function ta(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()};const ts={name:"definition",tokenize:tu};const tl={tokenize:tc,partial:true};function tu(e,t,n){const r=this;let o;return i;function i(t){e.enter("definition");return a(t)}function a(t){return tr.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}function s(t){o=ta(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1));if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");return l}return n(t)}function l(t){return ex(t)?ti(e,u)(t):u(t)}function u(t){return tn(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(tl,f,f)(t)}function f(t){return ew(t)?ej(e,h,"whitespace")(t):h(t)}function h(i){if(i===null||ey(i)){e.exit("definition");r.parser.defined.push(o);return t(i)}return n(i)}}function tc(e,t,n){return r;function r(t){return ex(t)?ti(e,o)(t):n(t)}function o(t){return to(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return ew(t)?ej(e,a,"whitespace")(t):a(t)}function a(e){return e===null||ey(e)?t(e):n(e)}};const td={name:"codeIndented",tokenize:th};const tf={tokenize:tp,partial:true};function th(e,t,n){const r=this;return o;function o(t){e.enter("codeIndented");return ej(e,i,"linePrefix",4+1)(t)}function i(e){const t=r.events[r.events.length-1];return t&&t[1].type==="linePrefix"&&t[2].sliceSerialize(t[1],true).length>=4?a(e):n(e)}function a(t){if(t===null){return l(t)}if(ey(t)){return e.attempt(tf,a,l)(t)}e.enter("codeFlowValue");return s(t)}function s(t){if(t===null||ey(t)){e.exit("codeFlowValue");return a(t)}e.consume(t);return s}function l(n){e.exit("codeIndented");return t(n)}}function tp(e,t,n){const r=this;return o;function o(t){if(r.parser.lazy[r.now().line]){return n(t)}if(ey(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return o}return ej(e,i,"linePrefix",4+1)(t)}function i(e){const i=r.events[r.events.length-1];return i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],true).length>=4?t(e):ey(e)?o(e):n(e)}};const tg={name:"headingAtx",tokenize:tm,resolve:tv};function tv(e,t){let n=e.length-2;let r=3;let o;let i;if(e[r][1].type==="whitespace"){r+=2}if(n-2>r&&e[n][1].type==="whitespace"){n-=2}if(e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")){n-=r+1===n?2:4}if(n>r){o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end};i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};en(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])}return e}function tm(e,t,n){let r=0;return o;function o(t){e.enter("atxHeading");return i(t)}function i(t){e.enter("atxHeadingSequence");return a(t)}function a(t){if(t===35&&r++<6){e.consume(t);return a}if(t===null||ex(t)){e.exit("atxHeadingSequence");return s(t)}return n(t)}function s(n){if(n===35){e.enter("atxHeadingSequence");return l(n)}if(n===null||ey(n)){e.exit("atxHeading");return t(n)}if(ew(n)){return ej(e,s,"whitespace")(n)}e.enter("atxHeadingText");return u(n)}function l(t){if(t===35){e.consume(t);return l}e.exit("atxHeadingSequence");return s(t)}function u(t){if(t===null||t===35||ex(t)){e.exit("atxHeadingText");return s(t)}e.consume(t);return u}};const ty={name:"setextUnderline",tokenize:tw,resolveTo:tx};function tx(e,t){let n=e.length;let r;let o;let i;while(n--){if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}if(e[n][1].type==="paragraph"){o=n}}else{if(e[n][1].type==="content"){e.splice(n,1)}if(!i&&e[n][1].type==="definition"){i=n}}}const a={type:"setextHeading",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)};e[o][1].type="setextHeadingText";if(i){e.splice(o,0,["enter",a,t]);e.splice(i+1,0,["exit",e[r][1],t]);e[r][1].end=Object.assign({},e[i][1].end)}else{e[r][1]=a}e.push(["exit",a,t]);return e}function tw(e,t,n){const r=this;let o;return i;function i(t){let i=r.events.length;let s;while(i--){if(r.events[i][1].type!=="lineEnding"&&r.events[i][1].type!=="linePrefix"&&r.events[i][1].type!=="content"){s=r.events[i][1].type==="paragraph";break}}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s)){e.enter("setextHeadingLine");o=t;return a(t)}return n(t)}function a(t){e.enter("setextHeadingLineSequence");return s(t)}function s(t){if(t===o){e.consume(t);return s}e.exit("setextHeadingLineSequence");return ew(t)?ej(e,l,"lineSuffix")(t):l(t)}function l(r){if(r===null||ey(r)){e.exit("setextHeadingLine");return t(r)}return n(r)}};const tb=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const tS=["pre","script","style","textarea"];const tk={name:"htmlFlow",tokenize:tE,resolveTo:tT,concrete:true};const tj={tokenize:t_,partial:true};const tC={tokenize:tI,partial:true};function tT(e){let t=e.length;while(t--){if(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"){break}}if(t>1&&e[t-2][1].type==="linePrefix"){e[t][1].start=e[t-2][1].start;e[t+1][1].start=e[t-2][1].start;e.splice(t-2,2)}return e}function tE(e,t,n){const r=this;let o;let i;let a;let s;let l;return u;function u(e){return c(e)}function c(t){e.enter("htmlFlow");e.enter("htmlFlowData");e.consume(t);return f}function f(s){if(s===33){e.consume(s);return h}if(s===47){e.consume(s);i=true;return v}if(s===63){e.consume(s);o=3;return r.interrupt?t:Z}if(ed(s)){e.consume(s);a=String.fromCharCode(s);return m}return n(s)}function h(i){if(i===45){e.consume(i);o=2;return p}if(i===91){e.consume(i);o=5;s=0;return g}if(ed(i)){e.consume(i);o=4;return r.interrupt?t:Z}return n(i)}function p(o){if(o===45){e.consume(o);return r.interrupt?t:Z}return n(o)}function g(o){const i="CDATA[";if(o===i.charCodeAt(s++)){e.consume(o);if(s===i.length){return r.interrupt?t:_}return g}return n(o)}function v(t){if(ed(t)){e.consume(t);a=String.fromCharCode(t);return m}return n(t)}function m(s){if(s===null||s===47||s===62||ex(s)){const l=s===47;const u=a.toLowerCase();if(!l&&!i&&tS.includes(u)){o=1;return r.interrupt?t(s):_(s)}if(tb.includes(a.toLowerCase())){o=6;if(l){e.consume(s);return y}return r.interrupt?t(s):_(s)}o=7;return r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?x(s):w(s)}if(s===45||ef(s)){e.consume(s);a+=String.fromCharCode(s);return m}return n(s)}function y(o){if(o===62){e.consume(o);return r.interrupt?t:_}return n(o)}function x(t){if(ew(t)){e.consume(t);return x}return E(t)}function w(t){if(t===47){e.consume(t);return E}if(t===58||t===95||ed(t)){e.consume(t);return b}if(ew(t)){e.consume(t);return w}return E(t)}function b(t){if(t===45||t===46||t===58||t===95||ef(t)){e.consume(t);return b}return S(t)}function S(t){if(t===61){e.consume(t);return k}if(ew(t)){e.consume(t);return S}return w(t)}function k(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);l=t;return j}if(ew(t)){e.consume(t);return k}return C(t)}function j(t){if(t===l){e.consume(t);l=null;return T}if(t===null||ey(t)){return n(t)}e.consume(t);return j}function C(t){if(t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||ex(t)){return S(t)}e.consume(t);return C}function T(e){if(e===47||e===62||ew(e)){return w(e)}return n(e)}function E(t){if(t===62){e.consume(t);return I}return n(t)}function I(t){if(t===null||ey(t)){return _(t)}if(ew(t)){e.consume(t);return I}return n(t)}function _(t){if(t===45&&o===2){e.consume(t);return A}if(t===60&&o===1){e.consume(t);return O}if(t===62&&o===4){e.consume(t);return L}if(t===63&&o===3){e.consume(t);return Z}if(t===93&&o===5){e.consume(t);return z}if(ey(t)&&(o===6||o===7)){e.exit("htmlFlowData");return e.check(tj,N,M)(t)}if(t===null||ey(t)){e.exit("htmlFlowData");return M(t)}e.consume(t);return _}function M(t){return e.check(tC,D,N)(t)}function D(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return P}function P(t){if(t===null||ey(t)){return M(t)}e.enter("htmlFlowData");return _(t)}function A(t){if(t===45){e.consume(t);return Z}return _(t)}function O(t){if(t===47){e.consume(t);a="";return R}return _(t)}function R(t){if(t===62){const n=a.toLowerCase();if(tS.includes(n)){e.consume(t);return L}return _(t)}if(ed(t)&&a.length<8){e.consume(t);a+=String.fromCharCode(t);return R}return _(t)}function z(t){if(t===93){e.consume(t);return Z}return _(t)}function Z(t){if(t===62){e.consume(t);return L}if(t===45&&o===2){e.consume(t);return Z}return _(t)}function L(t){if(t===null||ey(t)){e.exit("htmlFlowData");return N(t)}e.consume(t);return L}function N(n){e.exit("htmlFlow");return t(n)}}function tI(e,t,n){const r=this;return o;function o(t){if(ey(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return i}return n(t)}function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function t_(e,t,n){return r;function r(r){e.enter("lineEnding");e.consume(r);e.exit("lineEnding");return e.attempt(eD,t,n)}};const tM={tokenize:tA,partial:true};const tD={name:"codeFenced",tokenize:tP,concrete:true};function tP(e,t,n){const r=this;const o={tokenize:S,partial:true};let i=0;let a=0;let s;return l;function l(e){return u(e)}function u(t){const n=r.events[r.events.length-1];i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],true).length:0;s=t;e.enter("codeFenced");e.enter("codeFencedFence");e.enter("codeFencedFenceSequence");return c(t)}function c(t){if(t===s){a++;e.consume(t);return c}if(a<3){return n(t)}e.exit("codeFencedFenceSequence");return ew(t)?ej(e,f,"whitespace")(t):f(t)}function f(n){if(n===null||ey(n)){e.exit("codeFencedFence");return r.interrupt?t(n):e.check(tM,v,b)(n)}e.enter("codeFencedFenceInfo");e.enter("chunkString",{contentType:"string"});return h(n)}function h(t){if(t===null||ey(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return f(t)}if(ew(t)){e.exit("chunkString");e.exit("codeFencedFenceInfo");return ej(e,p,"whitespace")(t)}if(t===96&&t===s){return n(t)}e.consume(t);return h}function p(t){if(t===null||ey(t)){return f(t)}e.enter("codeFencedFenceMeta");e.enter("chunkString",{contentType:"string"});return g(t)}function g(t){if(t===null||ey(t)){e.exit("chunkString");e.exit("codeFencedFenceMeta");return f(t)}if(t===96&&t===s){return n(t)}e.consume(t);return g}function v(t){return e.attempt(o,b,m)(t)}function m(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return y}function y(t){return i>0&&ew(t)?ej(e,x,"linePrefix",i+1)(t):x(t)}function x(t){if(t===null||ey(t)){return e.check(tM,v,b)(t)}e.enter("codeFlowValue");return w(t)}function w(t){if(t===null||ey(t)){e.exit("codeFlowValue");return x(t)}e.consume(t);return w}function b(n){e.exit("codeFenced");return t(n)}function S(e,t,n){let o=0;return i;function i(t){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return l}function l(t){e.enter("codeFencedFence");return ew(t)?ej(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):u(t)}function u(t){if(t===s){e.enter("codeFencedFenceSequence");return c(t)}return n(t)}function c(t){if(t===s){o++;e.consume(t);return c}if(o>=a){e.exit("codeFencedFenceSequence");return ew(t)?ej(e,f,"whitespace")(t):f(t)}return n(t)}function f(r){if(r===null||ey(r)){e.exit("codeFencedFence");return t(r)}return n(r)}}}function tA(e,t,n){const r=this;return o;function o(t){if(t===null){return n(t)}e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return i}function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}};const tO=document.createElement("i");function tR(e){const t="&"+e+";";tO.innerHTML=t;const n=tO.textContent;if(n.charCodeAt(n.length-1)===59&&e!=="semi"){return false}return n===t?false:n};const tz={name:"characterReference",tokenize:tZ};function tZ(e,t,n){const r=this;let o=0;let i;let a;return s;function s(t){e.enter("characterReference");e.enter("characterReferenceMarker");e.consume(t);e.exit("characterReferenceMarker");return l}function l(t){if(t===35){e.enter("characterReferenceMarkerNumeric");e.consume(t);e.exit("characterReferenceMarkerNumeric");return u}e.enter("characterReferenceValue");i=31;a=ef;return c(t)}function u(t){if(t===88||t===120){e.enter("characterReferenceMarkerHexadecimal");e.consume(t);e.exit("characterReferenceMarkerHexadecimal");e.enter("characterReferenceValue");i=6;a=ev;return c}e.enter("characterReferenceValue");i=7;a=eg;return c(t)}function c(s){if(s===59&&o){const o=e.exit("characterReferenceValue");if(a===ef&&!tR(r.sliceSerialize(o))){return n(s)}e.enter("characterReferenceMarker");e.consume(s);e.exit("characterReferenceMarker");e.exit("characterReference");return t}if(a(s)&&o++<i){e.consume(s);return c}return n(s)}};const tL={name:"characterEscape",tokenize:tN};function tN(e,t,n){return r;function r(t){e.enter("characterEscape");e.enter("escapeMarker");e.consume(t);e.exit("escapeMarker");return o}function o(r){if(em(r)){e.enter("characterEscapeValue");e.consume(r);e.exit("characterEscapeValue");e.exit("characterEscape");return t}return n(r)}};const tB={name:"lineEnding",tokenize:tH};function tH(e,t){return n;function n(n){e.enter("lineEnding");e.consume(n);e.exit("lineEnding");return ej(e,t,"linePrefix")}};const tF={name:"labelEnd",tokenize:tq,resolveTo:tK,resolveAll:t$};const tV={tokenize:tY};const tW={tokenize:tG};const tU={tokenize:tX};function t$(e){let t=-1;while(++t<e.length){const n=e[t][1];if(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){e.splice(t+1,n.type==="labelImage"?4:2);n.type="data";t++}}return e}function tK(e,t){let n=e.length;let r=0;let o;let i;let a;let s;while(n--){o=e[n][1];if(i){if(o.type==="link"||o.type==="labelLink"&&o._inactive){break}if(e[n][0]==="enter"&&o.type==="labelLink"){o._inactive=true}}else if(a){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced){i=n;if(o.type!=="labelLink"){r=2;break}}}else if(o.type==="labelEnd"){a=n}}const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};const u={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[a][1].end)};const c={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[a-2][1].start)};s=[["enter",l,t],["enter",u,t]];s=er(s,e.slice(i+1,i+r+3));s=er(s,[["enter",c,t]]);s=er(s,eq(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t));s=er(s,[["exit",c,t],e[a-2],e[a-1],["exit",u,t]]);s=er(s,e.slice(a+1));s=er(s,[["exit",l,t]]);en(e,i,e.length,s);return e}function tq(e,t,n){const r=this;let o=r.events.length;let i;let a;while(o--){if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}}return s;function s(t){if(!i){return n(t)}if(i._inactive){return f(t)}a=r.parser.defined.includes(ta(r.sliceSerialize({start:i.end,end:r.now()})));e.enter("labelEnd");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelEnd");return l}function l(t){if(t===40){return e.attempt(tV,c,a?c:f)(t)}if(t===91){return e.attempt(tW,c,a?u:f)(t)}return a?c(t):f(t)}function u(t){return e.attempt(tU,c,f)(t)}function c(e){return t(e)}function f(e){i._balanced=true;return n(e)}}function tY(e,t,n){return r;function r(t){e.enter("resource");e.enter("resourceMarker");e.consume(t);e.exit("resourceMarker");return o}function o(t){return ex(t)?ti(e,i)(t):i(t)}function i(t){if(t===41){return c(t)}return tn(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function a(t){return ex(t)?ti(e,l)(t):c(t)}function s(e){return n(e)}function l(t){if(t===34||t===39||t===40){return to(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t)}return c(t)}function u(t){return ex(t)?ti(e,c)(t):c(t)}function c(r){if(r===41){e.enter("resourceMarker");e.consume(r);e.exit("resourceMarker");e.exit("resource");return t}return n(r)}}function tG(e,t,n){const r=this;return o;function o(t){return tr.call(r,e,i,a,"reference","referenceMarker","referenceString")(t)}function i(e){return r.parser.defined.includes(ta(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function a(e){return n(e)}}function tX(e,t,n){return r;function r(t){e.enter("reference");e.enter("referenceMarker");e.consume(t);e.exit("referenceMarker");return o}function o(r){if(r===93){e.enter("referenceMarker");e.consume(r);e.exit("referenceMarker");e.exit("reference");return t}return n(r)}};const tQ={name:"labelStartImage",tokenize:tJ,resolveAll:tF.resolveAll};function tJ(e,t,n){const r=this;return o;function o(t){e.enter("labelImage");e.enter("labelImageMarker");e.consume(t);e.exit("labelImageMarker");return i}function i(t){if(t===91){e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelImage");return a}return n(t)}function a(e){return e===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}};function t0(e){if(e===null||ex(e)||eS(e)){return 1}if(eb(e)){return 2}};const t1={name:"attention",tokenize:t4,resolveAll:t2};function t2(e,t){let n=-1;let r;let o;let i;let a;let s;let l;let u;let c;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){r=n;while(r--){if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3)){continue}l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end);const h=Object.assign({},e[n][1].start);t5(f,-l);t5(h,l);a={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)};s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h};i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)};o={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)};e[r][1].end=Object.assign({},a.start);e[n][1].start=Object.assign({},s.end);u=[];if(e[r][1].end.offset-e[r][1].start.offset){u=er(u,[["enter",e[r][1],t],["exit",e[r][1],t]])}u=er(u,[["enter",o,t],["enter",a,t],["exit",a,t],["enter",i,t]]);u=er(u,eq(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t));u=er(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",o,t]]);if(e[n][1].end.offset-e[n][1].start.offset){c=2;u=er(u,[["enter",e[n][1],t],["exit",e[n][1],t]])}else{c=0}en(e,r-1,n-r+3,u);n=r+u.length-c-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="attentionSequence"){e[n][1].type="data"}}return e}function t4(e,t){const n=this.parser.constructs.attentionMarkers.null;const r=this.previous;const o=t0(r);let i;return a;function a(t){i=t;e.enter("attentionSequence");return s(t)}function s(a){if(a===i){e.consume(a);return s}const l=e.exit("attentionSequence");const u=t0(a);const c=!u||u===2&&o||n.includes(a);const f=!o||o===2&&u||n.includes(r);l._open=Boolean(i===42?c:c&&(o||!f));l._close=Boolean(i===42?f:f&&(u||!c));return t(a)}}function t5(e,t){e.column+=t;e.offset+=t;e._bufferIndex+=t};const t3={name:"autolink",tokenize:t6};function t6(e,t,n){let r=0;return o;function o(t){e.enter("autolink");e.enter("autolinkMarker");e.consume(t);e.exit("autolinkMarker");e.enter("autolinkProtocol");return i}function i(t){if(ed(t)){e.consume(t);return a}return u(t)}function a(e){if(e===43||e===45||e===46||ef(e)){r=1;return s(e)}return u(e)}function s(t){if(t===58){e.consume(t);r=0;return l}if((t===43||t===45||t===46||ef(t))&&r++<32){e.consume(t);return s}r=0;return u(t)}function l(r){if(r===62){e.exit("autolinkProtocol");e.enter("autolinkMarker");e.consume(r);e.exit("autolinkMarker");e.exit("autolink");return t}if(r===null||r===32||r===60||ep(r)){return n(r)}e.consume(r);return l}function u(t){if(t===64){e.consume(t);return c}if(eh(t)){e.consume(t);return u}return n(t)}function c(e){return ef(e)?f(e):n(e)}function f(n){if(n===46){e.consume(n);r=0;return c}if(n===62){e.exit("autolinkProtocol").type="autolinkEmail";e.enter("autolinkMarker");e.consume(n);e.exit("autolinkMarker");e.exit("autolink");return t}return h(n)}function h(t){if((t===45||ef(t))&&r++<63){const n=t===45?h:f;e.consume(t);return n}return n(t)}};const t8={name:"htmlText",tokenize:t7};function t7(e,t,n){const r=this;let o;let i;let a;return s;function s(t){e.enter("htmlText");e.enter("htmlTextData");e.consume(t);return l}function l(t){if(t===33){e.consume(t);return u}if(t===47){e.consume(t);return S}if(t===63){e.consume(t);return w}if(ed(t)){e.consume(t);return C}return n(t)}function u(t){if(t===45){e.consume(t);return c}if(t===91){e.consume(t);i=0;return g}if(ed(t)){e.consume(t);return x}return n(t)}function c(t){if(t===45){e.consume(t);return p}return n(t)}function f(t){if(t===null){return n(t)}if(t===45){e.consume(t);return h}if(ey(t)){a=f;return O(t)}e.consume(t);return f}function h(t){if(t===45){e.consume(t);return p}return f(t)}function p(e){return e===62?A(e):e===45?h(e):f(e)}function g(t){const r="CDATA[";if(t===r.charCodeAt(i++)){e.consume(t);return i===r.length?v:g}return n(t)}function v(t){if(t===null){return n(t)}if(t===93){e.consume(t);return m}if(ey(t)){a=v;return O(t)}e.consume(t);return v}function m(t){if(t===93){e.consume(t);return y}return v(t)}function y(t){if(t===62){return A(t)}if(t===93){e.consume(t);return y}return v(t)}function x(t){if(t===null||t===62){return A(t)}if(ey(t)){a=x;return O(t)}e.consume(t);return x}function w(t){if(t===null){return n(t)}if(t===63){e.consume(t);return b}if(ey(t)){a=w;return O(t)}e.consume(t);return w}function b(e){return e===62?A(e):w(e)}function S(t){if(ed(t)){e.consume(t);return k}return n(t)}function k(t){if(t===45||ef(t)){e.consume(t);return k}return j(t)}function j(t){if(ey(t)){a=j;return O(t)}if(ew(t)){e.consume(t);return j}return A(t)}function C(t){if(t===45||ef(t)){e.consume(t);return C}if(t===47||t===62||ex(t)){return T(t)}return n(t)}function T(t){if(t===47){e.consume(t);return A}if(t===58||t===95||ed(t)){e.consume(t);return E}if(ey(t)){a=T;return O(t)}if(ew(t)){e.consume(t);return T}return A(t)}function E(t){if(t===45||t===46||t===58||t===95||ef(t)){e.consume(t);return E}return I(t)}function I(t){if(t===61){e.consume(t);return _}if(ey(t)){a=I;return O(t)}if(ew(t)){e.consume(t);return I}return T(t)}function _(t){if(t===null||t===60||t===61||t===62||t===96){return n(t)}if(t===34||t===39){e.consume(t);o=t;return M}if(ey(t)){a=_;return O(t)}if(ew(t)){e.consume(t);return _}e.consume(t);return D}function M(t){if(t===o){e.consume(t);o=undefined;return P}if(t===null){return n(t)}if(ey(t)){a=M;return O(t)}e.consume(t);return M}function D(t){if(t===null||t===34||t===39||t===60||t===61||t===96){return n(t)}if(t===47||t===62||ex(t)){return T(t)}e.consume(t);return D}function P(e){if(e===47||e===62||ex(e)){return T(e)}return n(e)}function A(r){if(r===62){e.consume(r);e.exit("htmlTextData");e.exit("htmlText");return t}return n(r)}function O(t){e.exit("htmlTextData");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return R}function R(t){return ew(t)?ej(e,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t):z(t)}function z(t){e.enter("htmlTextData");return a(t)}};const t9={name:"labelStartLink",tokenize:ne,resolveAll:tF.resolveAll};function ne(e,t,n){const r=this;return o;function o(t){e.enter("labelLink");e.enter("labelMarker");e.consume(t);e.exit("labelMarker");e.exit("labelLink");return i}function i(e){return e===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}};const nt={name:"hardBreakEscape",tokenize:nn};function nn(e,t,n){return r;function r(t){e.enter("hardBreakEscape");e.consume(t);return o}function o(r){if(ey(r)){e.exit("hardBreakEscape");return t(r)}return n(r)}};const no={name:"codeText",tokenize:ns,resolve:ni,previous:na};function ni(e){let t=e.length-4;let n=3;let r;let o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){r=n;while(++r<t){if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding";e[t][1].type="codeTextPadding";n+=2;t-=2;break}}}r=n-1;t++;while(++r<=t){if(o===undefined){if(r!==t&&e[r][1].type!=="lineEnding"){o=r}}else if(r===t||e[r][1].type==="lineEnding"){e[o][1].type="codeTextData";if(r!==o+2){e[o][1].end=e[r-1][1].end;e.splice(o+2,r-o-2);t-=r-o-2;r=o+2}o=undefined}}return e}function na(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ns(e,t,n){const r=this;let o=0;let i;let a;return s;function s(t){e.enter("codeText");e.enter("codeTextSequence");return l(t)}function l(t){if(t===96){e.consume(t);o++;return l}e.exit("codeTextSequence");return u(t)}function u(t){if(t===null){return n(t)}if(t===32){e.enter("space");e.consume(t);e.exit("space");return u}if(t===96){a=e.enter("codeTextSequence");i=0;return f(t)}if(ey(t)){e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return u}e.enter("codeTextData");return c(t)}function c(t){if(t===null||t===32||t===96||ey(t)){e.exit("codeTextData");return u(t)}e.consume(t);return c}function f(n){if(n===96){e.consume(n);i++;return f}if(i===o){e.exit("codeTextSequence");e.exit("codeText");return t(n)}a.type="codeTextData";return c(n)}};const nl={[42]:e0,[43]:e0,[45]:e0,[48]:e0,[49]:e0,[50]:e0,[51]:e0,[52]:e0,[53]:e0,[54]:e0,[55]:e0,[56]:e0,[57]:e0,[62]:e7};const nu={[91]:ts};const nc={[-2]:td,[-1]:td,[32]:td};const nd={[35]:tg,[42]:eQ,[45]:[ty,eQ],[60]:tk,[61]:ty,[95]:eQ,[96]:tD,[126]:tD};const nf={[38]:tz,[92]:tL};const nh={[-5]:tB,[-4]:tB,[-3]:tB,[33]:tQ,[38]:tz,[42]:t1,[60]:[t3,t8],[91]:t9,[92]:[nt,tL],[93]:tF,[95]:t1,[96]:no};const np={null:[t1,eF]};const ng={null:[42,95]};const nv={null:[]};function nm(e){const t=e||{};const n=ei([r,...t.extensions||[]]);const o={defined:[],lazy:{},constructs:n,content:i(eC),document:i(eE),flow:i(eB),string:i(eV),text:i(eW)};return o;function i(e){return t;function t(t){return eY(o,e,t)}}};const ny=/[\0\t\n\r]/g;function nx(){let e=1;let t="";let n=true;let r;return o;function o(o,i,a){const s=[];let l;let u;let c;let f;let h;o=t+o.toString(i);c=0;t="";if(n){if(o.charCodeAt(0)===65279){c++}n=undefined}while(c<o.length){ny.lastIndex=c;l=ny.exec(o);f=l&&l.index!==undefined?l.index:o.length;h=o.charCodeAt(f);if(!l){t=o.slice(c);break}if(h===10&&c===f&&r){s.push(-3);r=undefined}else{if(r){s.push(-5);r=undefined}if(c<f){s.push(o.slice(c,f));e+=f-c}switch(h){case 0:{s.push(65533);e++;break}case 9:{u=Math.ceil(e/4)*4;s.push(-2);while(e++<u)s.push(-1);break}case 10:{s.push(-4);e=1;break}default:{r=true;e=1}}}c=f+1}if(a){if(r)s.push(-5);if(t)s.push(t);s.push(null)}return s}};function nw(e){while(!eA(e)){}return e};function nb(e,t){const n=Number.parseInt(e,t);if(n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111){return"�"}return String.fromCharCode(n)};const nS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function nk(e){return e.replace(nS,nj)}function nj(e,t,n){if(t){return t}const r=n.charCodeAt(0);if(r===35){const e=n.charCodeAt(1);const t=e===120||e===88;return nb(n.slice(t?2:1),t?16:10)}return tR(n)||e};const nC={}.hasOwnProperty;const nT=function(e,t,n){if(typeof t!=="string"){n=t;t=undefined}return nE(n)(nw(nm(n).document().write(nx()(e,t,true))))};function nE(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ei),autolinkProtocol:_,autolinkEmail:_,atxHeading:s(et),blockQuote:s(Y),characterEscape:_,characterReference:_,codeFenced:s(G),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(G,u),codeText:s(X,u),codeTextData:_,data:_,codeFlowValue:_,definition:s(J),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(ee),hardBreakEscape:s(en),hardBreakTrailing:s(en),htmlFlow:s(er,u),htmlFlowData:_,htmlText:s(er,u),htmlTextData:_,image:s(eo),label:u,link:s(ei),listItem:s(es),listItemValue:v,listOrdered:s(ea,g),listUnordered:s(ea),paragraph:s(el),reference:V,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(et),strong:s(eu),thematicBreak:s(ed)},exit:{atxHeading:f(),atxHeadingSequence:C,autolink:f(),autolinkEmail:q,autolinkProtocol:K,blockQuote:f(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:$,codeFenced:f(w),codeFencedFence:x,codeFencedFenceInfo:m,codeFencedFenceMeta:y,codeFlowValue:M,codeIndented:f(b),codeText:f(R),codeTextData:M,data:M,definition:f(),definitionDestinationString:j,definitionLabelString:S,definitionTitleString:k,emphasis:f(),hardBreakEscape:f(P),hardBreakTrailing:f(P),htmlFlow:f(A),htmlFlowData:M,htmlText:f(O),htmlTextData:M,image:f(Z),label:N,labelText:L,lineEnding:D,link:f(z),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:W,resourceDestinationString:B,resourceTitleString:H,resource:F,setextHeading:f(I),setextHeadingLineSequence:E,setextHeadingText:T,strong:f(),thematicBreak:f()}};n_(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:p,setData:i,getData:a};const s=[];let l=-1;while(++l<e.length){if(e[l][1].type==="listOrdered"||e[l][1].type==="listUnordered"){if(e[l][0]==="enter"){s.push(l)}else{const t=s.pop();l=o(e,t,l)}}}l=-1;while(++l<e.length){const n=t[e[l][0]];if(nC.call(n,e[l][1].type)){n[e[l][1].type].call(Object.assign({sliceSerialize:e[l][2].sliceSerialize},r),e[l][1])}}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];const t=e[1]||nD;t.call(r,undefined,e[0])}n.position={start:nI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})};l=-1;while(++l<t.transforms.length){n=t.transforms[l](n)||n}return n}function o(e,t,n){let r=t-1;let o=-1;let i=false;let a;let s;let l;let u;while(++r<=n){const t=e[r];if(t[1].type==="listUnordered"||t[1].type==="listOrdered"||t[1].type==="blockQuote"){if(t[0]==="enter"){o++}else{o--}u=undefined}else if(t[1].type==="lineEndingBlank"){if(t[0]==="enter"){if(a&&!u&&!o&&!l){l=r}u=undefined}}else if(t[1].type==="linePrefix"||t[1].type==="listItemValue"||t[1].type==="listItemMarker"||t[1].type==="listItemPrefix"||t[1].type==="listItemPrefixWhitespace"){}else{u=undefined}if(!o&&t[0]==="enter"&&t[1].type==="listItemPrefix"||o===-1&&t[0]==="exit"&&(t[1].type==="listUnordered"||t[1].type==="listOrdered")){if(a){let o=r;s=undefined;while(o--){const t=e[o];if(t[1].type==="lineEnding"||t[1].type==="lineEndingBlank"){if(t[0]==="exit")continue;if(s){e[s][1].type="lineEndingBlank";i=true}t[1].type="lineEnding";s=o}else if(t[1].type==="linePrefix"||t[1].type==="blockQuotePrefix"||t[1].type==="blockQuotePrefixWhitespace"||t[1].type==="blockQuoteMarker"||t[1].type==="listItemIndent"){}else{break}}if(l&&(!s||l<s)){a._spread=true}a.end=Object.assign({},s?e[s][1].start:t[1].end);e.splice(s||r,0,["exit",a,t[2]]);r++;n++}if(t[1].type==="listItemPrefix"){a={type:"listItem",_spread:false,start:Object.assign({},t[1].start),end:undefined};e.splice(r,0,["enter",a,t[2]]);r++;n++;l=undefined;u=true}}}e[t][1]._spread=i;return n}function i(e,t){n[e]=t}function a(e){return n[e]}function s(e,t){return n;function n(n){c.call(this,e(n),n);if(t)t.call(this,n)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){const r=this.stack[this.stack.length-1];r.children.push(e);this.stack.push(e);this.tokenStack.push([t,n]);e.position={start:nI(t.start)};return e}function f(e){return t;function t(t){if(e)e.call(this,t);h.call(this,t)}}function h(e,t){const n=this.stack.pop();const r=this.tokenStack.pop();if(!r){throw new Error("Cannot close `"+e.type+"` ("+l({start:e.start,end:e.end})+"): it’s not open")}else if(r[0].type!==e.type){if(t){t.call(this,e,r[0])}else{const t=r[1]||nD;t.call(this,e,r[0])}}n.position.end=nI(e.end);return n}function p(){return Q(this.stack.pop())}function g(){i("expectingFirstListItemValue",true)}function v(e){if(a("expectingFirstListItemValue")){const t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10);i("expectingFirstListItemValue")}}function m(){const e=this.resume();const t=this.stack[this.stack.length-1];t.lang=e}function y(){const e=this.resume();const t=this.stack[this.stack.length-1];t.meta=e}function x(){if(a("flowCodeInside"))return;this.buffer();i("flowCodeInside",true)}function w(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"");i("flowCodeInside")}function b(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,"")}function S(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=ta(this.sliceSerialize(e)).toLowerCase()}function k(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function j(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function C(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function T(){i("setextHeadingSlurpLineEnding",true)}function E(e){const t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).charCodeAt(0)===61?1:2}function I(){i("setextHeadingSlurpLineEnding")}function _(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];if(!n||n.type!=="text"){n=ec();n.position={start:nI(e.start)};t.children.push(n)}this.stack.push(n)}function M(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e);t.position.end=nI(e.end)}function D(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak")){const t=n.children[n.children.length-1];t.position.end=nI(e.end);i("atHardBreak");return}if(!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)){_.call(this,e);M.call(this,e)}}function P(){i("atHardBreak",true)}function A(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function O(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function R(){const e=this.resume();const t=this.stack[this.stack.length-1];t.value=e}function z(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}i("referenceType")}function Z(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference";e.referenceType=t;delete e.url;delete e.title}else{delete e.identifier;delete e.label}i("referenceType")}function L(e){const t=this.sliceSerialize(e);const n=this.stack[this.stack.length-2];n.label=nk(t);n.identifier=ta(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1];const t=this.resume();const n=this.stack[this.stack.length-1];i("inReference",true);if(n.type==="link"){const t=e.children;n.children=t}else{n.alt=t}}function B(){const e=this.resume();const t=this.stack[this.stack.length-1];t.url=e}function H(){const e=this.resume();const t=this.stack[this.stack.length-1];t.title=e}function F(){i("inReference")}function V(){i("referenceType","collapsed")}function W(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=ta(this.sliceSerialize(e)).toLowerCase();i("referenceType","full")}function U(e){i("characterReferenceType",e.type)}function $(e){const t=this.sliceSerialize(e);const n=a("characterReferenceType");let r;if(n){r=nb(t,n==="characterReferenceMarkerNumeric"?10:16);i("characterReferenceType")}else{const e=tR(t);r=e}const o=this.stack.pop();o.value+=r;o.position.end=nI(e.end)}function K(e){M.call(this,e);const t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function q(e){M.call(this,e);const t=this.stack[this.stack.length-1];t.url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function X(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ee(){return{type:"emphasis",children:[]}}function et(){return{type:"heading",depth:undefined,children:[]}}function en(){return{type:"break"}}function er(){return{type:"html",value:""}}function eo(){return{type:"image",title:null,url:"",alt:null}}function ei(){return{type:"link",title:null,url:"",children:[]}}function ea(e){return{type:"list",ordered:e.type==="listOrdered",start:null,spread:e._spread,children:[]}}function es(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function el(){return{type:"paragraph",children:[]}}function eu(){return{type:"strong",children:[]}}function ec(){return{type:"text",value:""}}function ed(){return{type:"thematicBreak"}}}function nI(e){return{line:e.line,column:e.column,offset:e.offset}}function n_(e,t){let n=-1;while(++n<t.length){const r=t[n];if(Array.isArray(r)){n_(e,r)}else{nM(e,r)}}}function nM(e,t){let n;for(n in t){if(nC.call(t,n)){if(n==="canContainEols"){const r=t[n];if(r){e[n].push(...r)}}else if(n==="transforms"){const r=t[n];if(r){e[n].push(...r)}}else if(n==="enter"||n==="exit"){const r=t[n];if(r){Object.assign(e[n],r)}}}}}function nD(e,t){if(e){throw new Error("Cannot close `"+e.type+"` ("+l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+l({start:t.start,end:t.end})+") is open")}else{throw new Error("Cannot close document, a token (`"+t.type+"`, "+l({start:t.start,end:t.end})+") is still open")}};function nP(e){const t=t=>{const n=this.data("settings");return nT(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))};Object.assign(this,{Parser:t})};function nA(e,t){const n=encode(nO(e||""));if(!t){return n}const r=n.indexOf(":");const o=n.indexOf("?");const i=n.indexOf("#");const a=n.indexOf("/");if(r<0||a>-1&&r>a||o>-1&&r>o||i>-1&&r>i||t.test(n.slice(0,r))){return n}return""}function nO(e){const t=[];let n=-1;let r=0;let o=0;while(++n<e.length){const i=e.charCodeAt(n);let a="";if(i===37&&ef(e.charCodeAt(n+1))&&ef(e.charCodeAt(n+2))){o=2}else if(i<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))){a=String.fromCharCode(i)}}else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);if(i<56320&&t>56319&&t<57344){a=String.fromCharCode(i,t);o=1}else{a="�"}}else{a=String.fromCharCode(i)}if(a){t.push(e.slice(r,n),encodeURIComponent(a));r=n+o+1;a=""}if(o){n+=o;o=0}}return t.join("")+e.slice(r)};function nR(e){const t=[];let n=-1;while(++n<e.footnoteOrder.length){const r=e.footnoteById[e.footnoteOrder[n]];if(!r){continue}const o=e.all(r);const i=String(r.identifier).toUpperCase();const a=nO(i.toLowerCase());let s=0;const l=[];while(++s<=e.footnoteCounts[i]){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:true,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};if(s>1){t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]})}if(l.length>0){l.push({type:"text",value:" "})}l.push(t)}const u=o[o.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const e=u.children[u.children.length-1];if(e&&e.type==="text"){e.value+=" "}else{u.children.push({type:"text",value:" "})}u.children.push(...l)}else{o.push(...l)}const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,true)};e.patch(r,c);t.push(c)}if(t.length===0){return}return{type:"element",tagName:"section",properties:{dataFootnotes:true,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,true)},{type:"text",value:"\n"}]}};const nz=function e(t,n,r,o,i){const a=nZ(n);if(r!==undefined&&r!==null&&(typeof r!=="number"||r<0||r===Number.POSITIVE_INFINITY)){throw new Error("Expected positive finite index")}if(o!==undefined&&o!==null&&(!e(o)||!o.children)){throw new Error("Expected parent node")}if((o===undefined||o===null)!==(r===undefined||r===null)){throw new Error("Expected both parent and index")}return t&&t.type&&typeof t.type==="string"?Boolean(a.call(i,t,r,o)):false};const nZ=function(e){if(e===undefined||e===null){return nF}if(typeof e==="string"){return nB(e)}if(typeof e==="object"){return Array.isArray(e)?nL(e):nN(e)}if(typeof e==="function"){return nH(e)}throw new Error("Expected function, string, or object as test")};function nL(e){const t=[];let n=-1;while(++n<e.length){t[n]=nZ(e[n])}return nH(r);function r(...e){let n=-1;while(++n<t.length){if(t[n].call(this,...e))return true}return false}}function nN(e){return nH(t);function t(t){let n;for(n in e){if(t[n]!==e[n])return false}return true}}function nB(e){return nH(t);function t(t){return t&&t.type===e}}function nH(e){return t;function t(n,...r){return Boolean(n&&typeof n==="object"&&"type"in n&&Boolean(e.call(this,n,...r)))}}function nF(){return true};function nV(e){return e};const nW=true;const nU=false;const n$="skip";const nK=function(e,t,n,r){if(typeof t==="function"&&typeof n!=="function"){r=n;n=t;t=null}const o=nZ(t);const i=r?-1:1;a(e,undefined,[])();function a(e,s,l){const u=e&&typeof e==="object"?e:{};if(typeof u.type==="string"){const t=typeof u.tagName==="string"?u.tagName:typeof u.name==="string"?u.name:undefined;Object.defineProperty(c,"name",{value:"node ("+nV(e.type+(t?"<"+t+">":""))+")"})}return c;function c(){let u=[];let c;let f;let h;if(!t||o(e,s,l[l.length-1]||null)){u=nq(n(e,l));if(u[0]===nU){return u}}if(e.children&&u[0]!==n$){f=(r?e.children.length:-1)+i;h=l.concat(e);while(f>-1&&f<e.children.length){c=a(e.children[f],f,h)();if(c[0]===nU){return c}f=typeof c[1]==="number"?c[1]:f+i}}return u}}};function nq(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[nW,e]}return[e]};const nY=function(e,t,n,r){if(typeof t==="function"&&typeof n!=="function"){r=n;n=t;t=null}nK(e,t,o,r);function o(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}};const nG=nJ("start");const nX=nJ("end");function nQ(e){return{start:nG(e),end:nX(e)}}function nJ(e){return t;function t(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}};function n0(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column};const n1={}.hasOwnProperty;function n2(e){const t=Object.create(null);if(!e||!e.type){throw new Error("mdast-util-definitions expected node")}nY(e,"definition",e=>{const n=n4(e.identifier);if(n&&!n1.call(t,n)){t[n]=e}});return n;function n(e){const n=n4(e);return n&&n1.call(t,n)?t[n]:null}}function n4(e){return String(e||"").toUpperCase()};function n5(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),true)};e.patch(t,n);return e.applyData(t,n)};function n3(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};e.patch(t,n);return[e.applyData(t,n),{type:"text",value:"\n"}]};function n6(e,t){const n=t.value?t.value+"\n":"";const r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null;const o={};if(r){o.className=["language-"+r]}let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};if(t.meta){i.data={meta:t.meta}}e.patch(t,i);i=e.applyData(t,i);i={type:"element",tagName:"pre",properties:{},children:[i]};e.patch(t,i);return i};function n8(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};function n7(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};function n9(e,t){const n=String(t.identifier).toUpperCase();const r=nO(n.toLowerCase());const o=e.footnoteOrder.indexOf(n);let i;if(o===-1){e.footnoteOrder.push(n);e.footnoteCounts[n]=1;i=e.footnoteOrder.length}else{e.footnoteCounts[n]++;i=o+1}const a=e.footnoteCounts[n];const s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:true,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};e.patch(t,l);return e.applyData(t,l)};function re(e,t){const n=e.footnoteById;let r=1;while(r in n)r++;const o=String(r);n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position};return n9(e,{type:"footnoteReference",identifier:o,position:t.position})};function rt(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};function rn(e,t){if(e.dangerous){const n={type:"raw",value:t.value};e.patch(t,n);return e.applyData(t,n)}return null};function ro(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"){r+="[]"}else if(n==="full"){r+="["+(t.label||t.identifier)+"]"}if(t.type==="imageReference"){return{type:"text",value:"!["+t.alt+r}}const o=e.all(t);const i=o[0];if(i&&i.type==="text"){i.value="["+i.value}else{o.unshift({type:"text",value:"["})}const a=o[o.length-1];if(a&&a.type==="text"){a.value+=r}else{o.push({type:"text",value:r})}return o};function ri(e,t){const n=e.definition(t.identifier);if(!n){return ro(e,t)}const r={src:nO(n.url||""),alt:t.alt};if(n.title!==null&&n.title!==undefined){r.title=n.title}const o={type:"element",tagName:"img",properties:r,children:[]};e.patch(t,o);return e.applyData(t,o)};function ra(e,t){const n={src:nO(t.url)};if(t.alt!==null&&t.alt!==undefined){n.alt=t.alt}if(t.title!==null&&t.title!==undefined){n.title=t.title}const r={type:"element",tagName:"img",properties:n,children:[]};e.patch(t,r);return e.applyData(t,r)};function rs(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};e.patch(t,r);return e.applyData(t,r)};function rl(e,t){const n=e.definition(t.identifier);if(!n){return ro(e,t)}const r={href:nO(n.url||"")};if(n.title!==null&&n.title!==undefined){r.title=n.title}const o={type:"element",tagName:"a",properties:r,children:e.all(t)};e.patch(t,o);return e.applyData(t,o)};function ru(e,t){const n={href:nO(t.url)};if(t.title!==null&&t.title!==undefined){n.title=t.title}const r={type:"element",tagName:"a",properties:n,children:e.all(t)};e.patch(t,r);return e.applyData(t,r)};function rc(e,t,n){const r=e.all(t);const o=n?rd(n):rf(t);const i={};const a=[];if(typeof t.checked==="boolean"){const e=r[0];let n;if(e&&e.type==="element"&&e.tagName==="p"){n=e}else{n={type:"element",tagName:"p",properties:{},children:[]};r.unshift(n)}if(n.children.length>0){n.children.unshift({type:"text",value:" "})}n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:true},children:[]});i.className=["task-list-item"]}let s=-1;while(++s<r.length){const e=r[s];if(o||s!==0||e.type!=="element"||e.tagName!=="p"){a.push({type:"text",value:"\n"})}if(e.type==="element"&&e.tagName==="p"&&!o){a.push(...e.children)}else{a.push(e)}}const l=r[r.length-1];if(l&&(o||l.type!=="element"||l.tagName!=="p")){a.push({type:"text",value:"\n"})}const u={type:"element",tagName:"li",properties:i,children:a};e.patch(t,u);return e.applyData(t,u)}function rd(e){let t=false;if(e.type==="list"){t=e.spread||false;const n=e.children;let r=-1;while(!t&&++r<n.length){t=rf(n[r])}}return t}function rf(e){const t=e.spread;return t===undefined||t===null?e.children.length>1:t};function rh(e,t){const n={};const r=e.all(t);let o=-1;if(typeof t.start==="number"&&t.start!==1){n.start=t.start}while(++o<r.length){const e=r[o];if(e.type==="element"&&e.tagName==="li"&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,true)};e.patch(t,i);return e.applyData(t,i)};function rp(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};function rg(e,t){const n={type:"root",children:e.wrap(e.all(t))};e.patch(t,n);return e.applyData(t,n)};function rv(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};function rm(e,t){const n=e.all(t);const r=n.shift();const o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],true)};e.patch(t.children[0],n);o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,true)};const i=nG(t.children[1]);const a=nX(t.children[t.children.length-1]);if(i.line&&a.line)r.position={start:i,end:a};o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,true)};e.patch(t,i);return e.applyData(t,i)};function ry(e,t,n){const r=n?n.children:undefined;const o=r?r.indexOf(t):1;const i=o===0?"th":"td";const a=n&&n.type==="table"?n.align:undefined;const s=a?a.length:t.children.length;let l=-1;const u=[];while(++l<s){const n=t.children[l];const r={};const o=a?a[l]:undefined;if(o){r.align=o}let s={type:"element",tagName:i,properties:r,children:[]};if(n){s.children=e.all(n);e.patch(n,s);s=e.applyData(t,s)}u.push(s)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,true)};e.patch(t,c);return e.applyData(t,c)};function rx(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};e.patch(t,n);return e.applyData(t,n)};const rw=9;const rb=32;function rS(e){const t=String(e);const n=/\r?\n|\r/g;let r=n.exec(t);let o=0;const i=[];while(r){i.push(rk(t.slice(o,r.index),o>0,true),r[0]);o=r.index+r[0].length;r=n.exec(t)}i.push(rk(t.slice(o),o>0,false));return i.join("")}function rk(e,t,n){let r=0;let o=e.length;if(t){let t=e.codePointAt(r);while(t===rw||t===rb){r++;t=e.codePointAt(r)}}if(n){let t=e.codePointAt(o-1);while(t===rw||t===rb){o--;t=e.codePointAt(o-1)}}return o>r?e.slice(r,o):""};function rj(e,t){const n={type:"text",value:rS(String(t.value))};e.patch(t,n);return e.applyData(t,n)};function rC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};e.patch(t,n);return e.applyData(t,n)};const rT={blockquote:n5,break:n3,code:n6,delete:n8,emphasis:n7,footnoteReference:n9,footnote:re,heading:rt,html:rn,imageReference:ri,image:ra,inlineCode:rs,linkReference:rl,link:ru,listItem:rc,list:rh,paragraph:rp,root:rg,strong:rv,table:rm,tableCell:rx,tableRow:ry,text:rj,thematicBreak:rC,toml:rE,yaml:rE,definition:rE,footnoteDefinition:rE};function rE(){return null};const rI={}.hasOwnProperty;function r_(e,t){const n=t||{};const r=n.allowDangerousHtml||false;const o={};a.dangerous=r;a.clobberPrefix=n.clobberPrefix===undefined||n.clobberPrefix===null?"user-content-":n.clobberPrefix;a.footnoteLabel=n.footnoteLabel||"Footnotes";a.footnoteLabelTagName=n.footnoteLabelTagName||"h2";a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]};a.footnoteBackLabel=n.footnoteBackLabel||"Back to content";a.unknownHandler=n.unknownHandler;a.passThrough=n.passThrough;a.handlers={...rT,...n.handlers};a.definition=n2(e);a.footnoteById=o;a.footnoteOrder=[];a.footnoteCounts={};a.patch=rM;a.applyData=rD;a.one=s;a.all=l;a.wrap=rR;a.augment=i;nY(e,"footnoteDefinition",e=>{const t=String(e.identifier).toUpperCase();if(!rI.call(o,t)){o[t]=e}});return a;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;if(n.hName){if(t.type!=="element"){t={type:"element",tagName:"",properties:{},children:[]}}t.tagName=n.hName}if(t.type==="element"&&n.hProperties){t.properties={...t.properties,...n.hProperties}}if("children"in t&&t.children&&n.hChildren){t.children=n.hChildren}}if(e){const n="type"in e?e:{position:e};if(!n0(n)){t.position={start:nG(n),end:nX(n)}}}return t}function a(e,t,n,r){if(Array.isArray(n)){r=n;n={}}return i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}function s(e,t){return rP(a,e,t)}function l(e){return rA(a,e)}}function rM(e,t){if(e.position)t.position=nQ(e)}function rD(e,t){let n=t;if(e&&e.data){const t=e.data.hName;const r=e.data.hChildren;const o=e.data.hProperties;if(typeof t==="string"){if(n.type==="element"){n.tagName=t}else{n={type:"element",tagName:t,properties:{},children:[]}}}if(n.type==="element"&&o){n.properties={...n.properties,...o}}if("children"in n&&n.children&&r!==null&&r!==undefined){n.children=r}}return n}function rP(e,t,n){const r=t&&t.type;if(!r){throw new Error("Expected node, got `"+t+"`")}if(rI.call(e.handlers,r)){return e.handlers[r](e,t,n)}if(e.passThrough&&e.passThrough.includes(r)){return"children"in t?{...t,children:rA(e,t)}:t}if(e.unknownHandler){return e.unknownHandler(e,t,n)}return rO(e,t)}function rA(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;while(++o<r.length){const i=rP(e,r[o],t);if(i){if(o&&r[o-1].type==="break"){if(!Array.isArray(i)&&i.type==="text"){i.value=i.value.replace(/^\s+/,"")}if(!Array.isArray(i)&&i.type==="element"){const e=i.children[0];if(e&&e.type==="text"){e.value=e.value.replace(/^\s+/,"")}}}if(Array.isArray(i)){n.push(...i)}else{n.push(i)}}}}return n}function rO(e,t){const n=t.data||{};const r="value"in t&&!(rI.call(n,"hProperties")||rI.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:rA(e,t)};e.patch(t,r);return e.applyData(t,r)}function rR(e,t){const n=[];let r=-1;if(t){n.push({type:"text",value:"\n"})}while(++r<e.length){if(r)n.push({type:"text",value:"\n"});n.push(e[r])}if(t&&e.length>0){n.push({type:"text",value:"\n"})}return n};function rz(e,t){const n=r_(e,t);const r=n.one(e,null);const o=nR(n);if(o){r.children.push({type:"text",value:"\n"},o)}return Array.isArray(r)?{type:"root",children:r}:r};const rZ=function(e,t){return e&&"run"in e?rN(e,t):rB(e||t)};var rL=rZ;function rN(e,t){return(n,r,o)=>{e.run(rz(n,t),r,e=>{o(e)})}}function rB(e){return t=>rz(t,e)}var rH=n(97641);class rF{constructor(e,t,n){this.property=e;this.normal=t;if(n){this.space=n}}}rF.prototype.property={};rF.prototype.normal={};rF.prototype.space=null;function rV(e,t){const n={};const r={};let o=-1;while(++o<e.length){Object.assign(n,e[o].property);Object.assign(r,e[o].normal)}return new rF(n,r,t)};function rW(e){return e.toLowerCase()};class rU{constructor(e,t){this.property=e;this.attribute=t}}rU.prototype.space=null;rU.prototype.boolean=false;rU.prototype.booleanish=false;rU.prototype.overloadedBoolean=false;rU.prototype.number=false;rU.prototype.commaSeparated=false;rU.prototype.spaceSeparated=false;rU.prototype.commaOrSpaceSeparated=false;rU.prototype.mustUseProperty=false;rU.prototype.defined=false;let r$=0;const rK=r0();const rq=r0();const rY=r0();const rG=r0();const rX=r0();const rQ=r0();const rJ=r0();function r0(){return 2**++r$};const r1=Object.keys(o);class r2 extends rU{constructor(e,t,n,r){let i=-1;super(e,t);r4(this,"space",r);if(typeof n==="number"){while(++i<r1.length){const e=r1[i];r4(this,r1[i],(n&o[e])===o[e])}}}}r2.prototype.defined=true;function r4(e,t,n){if(n){e[t]=n}};const r5={}.hasOwnProperty;function r3(e){const t={};const n={};let r;for(r in e.properties){if(r5.call(e.properties,r)){const o=e.properties[r];const i=new r2(r,e.transform(e.attributes||{},r),o,e.space);if(e.mustUseProperty&&e.mustUseProperty.includes(r)){i.mustUseProperty=true}t[r]=i;n[rW(r)]=r;n[rW(i.attribute)]=r}}return new rF(t,n,e.space)};const r6=r3({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});const r8=r3({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function r7(e,t){return t in e?e[t]:t};function r9(e,t){return r7(e,t.toLowerCase())};const oe=r3({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:r9,properties:{xmlns:null,xmlnsXLink:null}});const ot=r3({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:rq,ariaAutoComplete:null,ariaBusy:rq,ariaChecked:rq,ariaColCount:rG,ariaColIndex:rG,ariaColSpan:rG,ariaControls:rX,ariaCurrent:null,ariaDescribedBy:rX,ariaDetails:null,ariaDisabled:rq,ariaDropEffect:rX,ariaErrorMessage:null,ariaExpanded:rq,ariaFlowTo:rX,ariaGrabbed:rq,ariaHasPopup:null,ariaHidden:rq,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:rX,ariaLevel:rG,ariaLive:null,ariaModal:rq,ariaMultiLine:rq,ariaMultiSelectable:rq,ariaOrientation:null,ariaOwns:rX,ariaPlaceholder:null,ariaPosInSet:rG,ariaPressed:rq,ariaReadOnly:rq,ariaRelevant:null,ariaRequired:rq,ariaRoleDescription:rX,ariaRowCount:rG,ariaRowIndex:rG,ariaRowSpan:rG,ariaSelected:rq,ariaSetSize:rG,ariaSort:null,ariaValueMax:rG,ariaValueMin:rG,ariaValueNow:rG,ariaValueText:null,role:null}});const on=r3({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r9,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rQ,acceptCharset:rX,accessKey:rX,action:null,allow:null,allowFullScreen:rK,allowPaymentRequest:rK,allowUserMedia:rK,alt:null,as:null,async:rK,autoCapitalize:null,autoComplete:rX,autoFocus:rK,autoPlay:rK,capture:rK,charSet:null,checked:rK,cite:null,className:rX,cols:rG,colSpan:null,content:null,contentEditable:rq,controls:rK,controlsList:rX,coords:rG|rQ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:rK,defer:rK,dir:null,dirName:null,disabled:rK,download:rY,draggable:rq,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:rK,formTarget:null,headers:rX,height:rG,hidden:rK,high:rG,href:null,hrefLang:null,htmlFor:rX,httpEquiv:rX,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:rK,itemId:null,itemProp:rX,itemRef:rX,itemScope:rK,itemType:rX,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:rK,low:rG,manifest:null,max:null,maxLength:rG,media:null,method:null,min:null,minLength:rG,multiple:rK,muted:rK,name:null,nonce:null,noModule:rK,noValidate:rK,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:rK,optimum:rG,pattern:null,ping:rX,placeholder:null,playsInline:rK,poster:null,preload:null,readOnly:rK,referrerPolicy:null,rel:rX,required:rK,reversed:rK,rows:rG,rowSpan:rG,sandbox:rX,scope:null,scoped:rK,seamless:rK,selected:rK,shape:null,size:rG,sizes:null,slot:null,span:rG,spellCheck:rq,src:null,srcDoc:null,srcLang:null,srcSet:null,start:rG,step:null,style:null,tabIndex:rG,target:null,title:null,translate:null,type:null,typeMustMatch:rK,useMap:null,value:rq,width:rG,wrap:null,align:null,aLink:null,archive:rX,axis:null,background:null,bgColor:null,border:rG,borderColor:null,bottomMargin:rG,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:rK,declare:rK,event:null,face:null,frame:null,frameBorder:null,hSpace:rG,leftMargin:rG,link:null,longDesc:null,lowSrc:null,marginHeight:rG,marginWidth:rG,noResize:rK,noHref:rK,noShade:rK,noWrap:rK,object:null,profile:null,prompt:null,rev:null,rightMargin:rG,rules:null,scheme:null,scrolling:rq,standby:null,summary:null,text:null,topMargin:rG,valueType:null,version:null,vAlign:null,vLink:null,vSpace:rG,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:rK,disableRemotePlayback:rK,prefix:null,property:null,results:rG,security:null,unselectable:null}});const oo=r3({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:r7,properties:{about:rJ,accentHeight:rG,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:rG,amplitude:rG,arabicForm:null,ascent:rG,attributeName:null,attributeType:null,azimuth:rG,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:rG,by:null,calcMode:null,capHeight:rG,className:rX,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:rG,diffuseConstant:rG,direction:null,display:null,dur:null,divisor:rG,dominantBaseline:null,download:rK,dx:null,dy:null,edgeMode:null,editable:null,elevation:rG,enableBackground:null,end:null,event:null,exponent:rG,externalResourcesRequired:null,fill:null,fillOpacity:rG,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rQ,g2:rQ,glyphName:rQ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:rG,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:rG,horizOriginX:rG,horizOriginY:rG,id:null,ideographic:rG,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:rG,k:rG,k1:rG,k2:rG,k3:rG,k4:rG,kernelMatrix:rJ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:rG,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:rG,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:rG,overlineThickness:rG,paintOrder:null,panose1:null,path:null,pathLength:rG,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:rX,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:rG,pointsAtY:rG,pointsAtZ:rG,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:rJ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:rJ,rev:rJ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:rJ,requiredFeatures:rJ,requiredFonts:rJ,requiredFormats:rJ,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:rG,specularExponent:rG,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:rG,strikethroughThickness:rG,string:null,stroke:null,strokeDashArray:rJ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:rG,strokeOpacity:rG,strokeWidth:null,style:null,surfaceScale:rG,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:rJ,tabIndex:rG,tableValues:null,target:null,targetX:rG,targetY:rG,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:rJ,to:null,transform:null,u1:null,u2:null,underlinePosition:rG,underlineThickness:rG,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:rG,values:null,vAlphabetic:rG,vMathematical:rG,vectorEffect:null,vHanging:rG,vIdeographic:rG,version:null,vertAdvY:rG,vertOriginX:rG,vertOriginY:rG,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:rG,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});const oi=rV([r8,r6,oe,ot,on],"html");const oa=rV([r8,r6,oe,ot,oo],"svg");function os(e){if(e.allowedElements&&e.disallowedElements){throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined")}if(e.allowedElements||e.disallowedElements||e.allowElement){return t=>{nY(t,"element",(t,n,r)=>{const o=r;let i;if(e.allowedElements){i=!e.allowedElements.includes(t.tagName)}else if(e.disallowedElements){i=e.disallowedElements.includes(t.tagName)}if(!i&&e.allowElement&&typeof n==="number"){i=!e.allowElement(t,n,o)}if(i&&typeof n==="number"){if(e.unwrapDisallowed&&t.children){o.children.splice(n,1,...t.children)}else{o.children.splice(n,1)}return n}return undefined})}}}var ol=n(28650);function ou(e){const t=e&&typeof e==="object"&&e.type==="text"?e.value||"":e;return typeof t==="string"&&t.replace(/[ \t\n\f\r]/g,"")===""};const oc=/^data[-\w.:]+$/i;const od=/-[a-z]/g;const of=/[A-Z]/g;function oh(e,t){const n=rW(t);let r=t;let o=rU;if(n in e.normal){return e.property[e.normal[n]]}if(n.length>4&&n.slice(0,4)==="data"&&oc.test(t)){if(t.charAt(4)==="-"){const e=t.slice(5).replace(od,og);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!od.test(e)){let n=e.replace(of,op);if(n.charAt(0)!=="-"){n="-"+n}t="data"+n}}o=r2}return new o(r,t)}function op(e){return"-"+e.toLowerCase()}function og(e){return e.charAt(1).toUpperCase()};const ov={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function om(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function oy(e){return e.join(" ").trim()};function ox(e){const t=[];const n=String(e||"");let r=n.indexOf(",");let o=0;let i=false;while(!i){if(r===-1){r=n.length;i=true}const e=n.slice(o,r).trim();if(e||!i){t.push(e)}o=r+1;r=n.indexOf(",",o)}return t}function ow(e,t){const n=t||{};const r=e[e.length-1]===""?[...e,""]:e;return r.join((n.padRight?" ":"")+","+(n.padLeft===false?"":" ")).trim()}var ob=n(43057);var oS=ob;const ok=["http","https","mailto","tel"];function oj(e){const t=(e||"").trim();const n=t.charAt(0);if(n==="#"||n==="/"){return t}const r=t.indexOf(":");if(r===-1){return t}let o=-1;while(++o<ok.length){const e=ok[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e){return t}}o=t.indexOf("?");if(o!==-1&&r>o){return t}o=t.indexOf("#");if(o!==-1&&r>o){return t}return"javascript:void(0)"};const oC={}.hasOwnProperty;const oT=new Set(["table","thead","tbody","tfoot","tr"]);function oE(e,t){const n=[];let r=-1;let o;while(++r<t.children.length){o=t.children[r];if(o.type==="element"){n.push(oI(e,o,r,t))}else if(o.type==="text"){if(t.type!=="element"||!oT.has(t.tagName)||!ou(o)){n.push(o.value)}}else if(o.type==="raw"&&!e.options.skipHtml){n.push(o.value)}}return n}function oI(e,t,n,r){const o=e.options;const i=o.transformLinkUri===undefined?oj:o.transformLinkUri;const s=e.schema;const l=t.tagName;const u={};let c=s;let f;if(s.space==="html"&&l==="svg"){c=oa;e.schema=c}if(t.properties){for(f in t.properties){if(oC.call(t.properties,f)){oD(u,f,t.properties[f],e)}}}if(l==="ol"||l==="ul"){e.listDepth++}const h=oE(e,t);if(l==="ol"||l==="ul"){e.listDepth--}e.schema=s;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}};const g=o.components&&oC.call(o.components,l)?o.components[l]:l;const v=typeof g==="string"||g===a.Fragment;if(!ol.isValidElementType(g)){throw new TypeError(`Component for name \`${l}\` not defined or is not renderable`)}u.key=n;if(l==="a"&&o.linkTarget){u.target=typeof o.linkTarget==="function"?o.linkTarget(String(u.href||""),t.children,typeof u.title==="string"?u.title:null):o.linkTarget}if(l==="a"&&i){u.href=i(String(u.href||""),t.children,typeof u.title==="string"?u.title:null)}if(!v&&l==="code"&&r.type==="element"&&r.tagName!=="pre"){u.inline=true}if(!v&&(l==="h1"||l==="h2"||l==="h3"||l==="h4"||l==="h5"||l==="h6")){u.level=Number.parseInt(l.charAt(1),10)}if(l==="img"&&o.transformImageUri){u.src=o.transformImageUri(String(u.src||""),String(u.alt||""),typeof u.title==="string"?u.title:null)}if(!v&&l==="li"&&r.type==="element"){const e=o_(t);u.checked=e&&e.properties?Boolean(e.properties.checked):null;u.index=oM(r,t);u.ordered=r.tagName==="ol"}if(!v&&(l==="ol"||l==="ul")){u.ordered=l==="ol";u.depth=e.listDepth}if(l==="td"||l==="th"){if(u.align){if(!u.style)u.style={};u.style.textAlign=u.align;delete u.align}if(!v){u.isHeader=l==="th"}}if(!v&&l==="tr"&&r.type==="element"){u.isHeader=Boolean(r.tagName==="thead")}if(o.sourcePos){u["data-sourcepos"]=oO(p)}if(!v&&o.rawSourcePos){u.sourcePosition=t.position}if(!v&&o.includeElementIndex){u.index=oM(r,t);u.siblingCount=oM(r)}if(!v){u.node=t}return h.length>0?a.createElement(g,u,h):a.createElement(g,u)}function o_(e){let t=-1;while(++t<e.children.length){const n=e.children[t];if(n.type==="element"&&n.tagName==="input"){return n}}return null}function oM(e,t){let n=-1;let r=0;while(++n<e.children.length){if(e.children[n]===t)break;if(e.children[n].type==="element")r++}return r}function oD(e,t,n,r){const o=oh(r.schema,t);let i=n;if(i===null||i===undefined||i!==i){return}if(Array.isArray(i)){i=o.commaSeparated?ow(i):oy(i)}if(o.property==="style"&&typeof i==="string"){i=oP(i)}if(o.space&&o.property){e[oC.call(ov,o.property)?ov[o.property]:o.property]=i}else if(o.attribute){e[o.attribute]=i}}function oP(e){const t={};try{oS(e,n)}catch{}return t;function n(e,n){const r=e.slice(0,4)==="-ms-"?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,oA)]=n}}function oA(e,t){return t.toUpperCase()}function oO(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")};const oR={}.hasOwnProperty;const oz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md";const oZ={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function oL(e){for(const t in oZ){if(oR.call(oZ,t)&&oR.call(e,t)){const e=oZ[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${oz}#${e.id}> for more info)`);delete oZ[t]}}const t=L().use(nP).use(e.remarkPlugins||[]).use(rL,{...e.remarkRehypeOptions,allowDangerousHtml:true}).use(e.rehypePlugins||[]).use(os,e);const n=new I;if(typeof e.children==="string"){n.value=e.children}else if(e.children!==undefined&&e.children!==null){console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`)}const r=t.runSync(t.parse(n),n);if(r.type!=="root"){throw new TypeError("Expected a `root` node")}let o=a.createElement(a.Fragment,{},oE({options:e,schema:oi,listDepth:0},r));if(e.className){o=a.createElement("div",{className:e.className},o)}return o}oL.propTypes={children:rH.string,className:rH.string,allowElement:rH.func,allowedElements:rH.arrayOf(rH.string),disallowedElements:rH.arrayOf(rH.string),unwrapDisallowed:rH.bool,remarkPlugins:rH.arrayOf(rH.oneOfType([rH.object,rH.func,rH.arrayOf(rH.oneOfType([rH.bool,rH.string,rH.object,rH.func,rH.arrayOf(rH.any)]))])),rehypePlugins:rH.arrayOf(rH.oneOfType([rH.object,rH.func,rH.arrayOf(rH.oneOfType([rH.bool,rH.string,rH.object,rH.func,rH.arrayOf(rH.any)]))])),sourcePos:rH.bool,rawSourcePos:rH.bool,skipHtml:rH.bool,includeElementIndex:rH.bool,transformLinkUri:rH.oneOfType([rH.func,rH.bool]),linkTarget:rH.oneOfType([rH.func,rH.string]),transformImageUri:rH.func,components:rH.object};var oN=n(99818);const oB={tokenize:o0,partial:true};const oH={tokenize:o1,partial:true};const oF={tokenize:o2,partial:true};const oV={tokenize:o4,partial:true};const oW={tokenize:o5,partial:true};const oU={tokenize:oQ,previous:o3};const o$={tokenize:oJ,previous:o6};const oK={tokenize:oX,previous:o8};const oq={};const oY={text:oq};let oG=48;while(oG<123){oq[oG]=oK;oG++;if(oG===58)oG=65;else if(oG===91)oG=97}oq[43]=oK;oq[45]=oK;oq[46]=oK;oq[95]=oK;oq[72]=[oK,o$];oq[104]=[oK,o$];oq[87]=[oK,oU];oq[119]=[oK,oU];function oX(e,t,n){const r=this;let o;let i;return a;function a(t){if(!o7(t)||!o8.call(r,r.previous)||o9(r.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkEmail");return s(t)}function s(t){if(o7(t)){e.consume(t);return s}if(t===64){e.consume(t);return l}return n(t)}function l(t){if(t===46){return e.check(oW,c,u)(t)}if(t===45||t===95||ef(t)){i=true;e.consume(t);return l}return c(t)}function u(t){e.consume(t);o=true;return l}function c(a){if(i&&o&&ed(r.previous)){e.exit("literalAutolinkEmail");e.exit("literalAutolink");return t(a)}return n(a)}}function oQ(e,t,n){const r=this;return o;function o(t){if(t!==87&&t!==119||!o3.call(r,r.previous)||o9(r.events)){return n(t)}e.enter("literalAutolink");e.enter("literalAutolinkWww");return e.check(oB,e.attempt(oH,e.attempt(oF,i),n),n)(t)}function i(n){e.exit("literalAutolinkWww");e.exit("literalAutolink");return t(n)}}function oJ(e,t,n){const r=this;let o="";let i=false;return a;function a(t){if((t===72||t===104)&&o6.call(r,r.previous)&&!o9(r.events)){e.enter("literalAutolink");e.enter("literalAutolinkHttp");o+=String.fromCodePoint(t);e.consume(t);return s}return n(t)}function s(t){if(ed(t)&&o.length<5){o+=String.fromCodePoint(t);e.consume(t);return s}if(t===58){const n=o.toLowerCase();if(n==="http"||n==="https"){e.consume(t);return l}}return n(t)}function l(t){if(t===47){e.consume(t);if(i){return u}i=true;return l}return n(t)}function u(t){return t===null||ep(t)||ex(t)||eS(t)||eb(t)?n(t):e.attempt(oH,e.attempt(oF,c),n)(t)}function c(n){e.exit("literalAutolinkHttp");e.exit("literalAutolink");return t(n)}}function o0(e,t,n){let r=0;return o;function o(t){if((t===87||t===119)&&r<3){r++;e.consume(t);return o}if(t===46&&r===3){e.consume(t);return i}return n(t)}function i(e){return e===null?n(e):t(e)}}function o1(e,t,n){let r;let o;let i;return a;function a(t){if(t===46||t===95){return e.check(oV,l,s)(t)}if(t===null||ex(t)||eS(t)||t!==45&&eb(t)){return l(t)}i=true;e.consume(t);return a}function s(t){if(t===95){r=true}else{o=r;r=undefined}e.consume(t);return a}function l(e){if(o||r||!i){return n(e)}return t(e)}}function o2(e,t){let n=0;let r=0;return o;function o(a){if(a===40){n++;e.consume(a);return o}if(a===41&&r<n){return i(a)}if(a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126){return e.check(oV,t,i)(a)}if(a===null||ex(a)||eS(a)){return t(a)}e.consume(a);return o}function i(t){if(t===41){r++}e.consume(t);return o}}function o4(e,t,n){return r;function r(a){if(a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126){e.consume(a);return r}if(a===38){e.consume(a);return i}if(a===93){e.consume(a);return o}if(a===60||a===null||ex(a)||eS(a)){return t(a)}return n(a)}function o(e){if(e===null||e===40||e===91||ex(e)||eS(e)){return t(e)}return r(e)}function i(e){return ed(e)?a(e):n(e)}function a(t){if(t===59){e.consume(t);return r}if(ed(t)){e.consume(t);return a}return n(t)}}function o5(e,t,n){return r;function r(t){e.consume(t);return o}function o(e){return ef(e)?n(e):t(e)}}function o3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ex(e)}function o6(e){return!ed(e)}function o8(e){return!(e===47||o7(e))}function o7(e){return e===43||e===45||e===46||e===95||ef(e)}function o9(e){let t=e.length;let n=false;while(t--){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=true;break}if(r._gfmAutolinkLiteralWalkedInto){n=false;break}}if(e.length>0&&!n){e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=true}return n};const ie={tokenize:ic,partial:true};function it(){return{document:{[91]:{tokenize:is,continuation:{tokenize:il},exit:iu}},text:{[91]:{tokenize:ia},[93]:{add:"after",tokenize:io,resolveTo:ii}}}}function io(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;while(o--){const e=r.events[o][1];if(e.type==="labelImage"){a=e;break}if(e.type==="gfmFootnoteCall"||e.type==="labelLink"||e.type==="label"||e.type==="image"||e.type==="link"){break}}return s;function s(o){if(!a||!a._balanced){return n(o)}const s=ta(r.sliceSerialize({start:a.end,end:r.now()}));if(s.codePointAt(0)!==94||!i.includes(s.slice(1))){return n(o)}e.enter("gfmFootnoteCallLabelMarker");e.consume(o);e.exit("gfmFootnoteCallLabelMarker");return t(o)}}function ii(e,t){let n=e.length;let r;while(n--){if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}}e[n+1][1].type="data";e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)};const i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++;i.end.offset++;i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)};const s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)};const l=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",o,t]];e.splice(n,e.length-n+1,...l);return e}function ia(e,t,n){const r=this;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0;let a;return s;function s(t){e.enter("gfmFootnoteCall");e.enter("gfmFootnoteCallLabelMarker");e.consume(t);e.exit("gfmFootnoteCallLabelMarker");return l}function l(t){if(t!==94)return n(t);e.enter("gfmFootnoteCallMarker");e.consume(t);e.exit("gfmFootnoteCallMarker");e.enter("gfmFootnoteCallString");e.enter("chunkString").contentType="string";return u}function u(s){if(i>999||s===93&&!a||s===null||s===91||ex(s)){return n(s)}if(s===93){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");if(!o.includes(ta(r.sliceSerialize(i)))){return n(s)}e.enter("gfmFootnoteCallLabelMarker");e.consume(s);e.exit("gfmFootnoteCallLabelMarker");e.exit("gfmFootnoteCall");return t}if(!ex(s)){a=true}i++;e.consume(s);return s===92?c:u}function c(t){if(t===91||t===92||t===93){e.consume(t);i++;return u}return u(t)}}function is(e,t,n){const r=this;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;let a=0;let s;return l;function l(t){e.enter("gfmFootnoteDefinition")._container=true;e.enter("gfmFootnoteDefinitionLabel");e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");return u}function u(t){if(t===94){e.enter("gfmFootnoteDefinitionMarker");e.consume(t);e.exit("gfmFootnoteDefinitionMarker");e.enter("gfmFootnoteDefinitionLabelString");e.enter("chunkString").contentType="string";return c}return n(t)}function c(t){if(a>999||t===93&&!s||t===null||t===91||ex(t)){return n(t)}if(t===93){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");i=ta(r.sliceSerialize(n));e.enter("gfmFootnoteDefinitionLabelMarker");e.consume(t);e.exit("gfmFootnoteDefinitionLabelMarker");e.exit("gfmFootnoteDefinitionLabel");return h}if(!ex(t)){s=true}a++;e.consume(t);return t===92?f:c}function f(t){if(t===91||t===92||t===93){e.consume(t);a++;return c}return c(t)}function h(t){if(t===58){e.enter("definitionMarker");e.consume(t);e.exit("definitionMarker");if(!o.includes(i)){o.push(i)}return ej(e,p,"gfmFootnoteDefinitionWhitespace")}return n(t)}function p(e){return t(e)}}function il(e,t,n){return e.check(eD,t,e.attempt(ie,t,n))}function iu(e){e.exit("gfmFootnoteDefinition")}function ic(e,t,n){const r=this;return ej(e,o,"gfmFootnoteDefinitionIndent",4+1);function o(e){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],true).length===4?t(e):n(e)}};function id(e){const t=e||{};let n=t.singleTilde;const r={tokenize:i,resolveAll:o};if(n===null||n===undefined){n=true}return{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(e,t){let n=-1;while(++n<e.length){if(e[n][0]==="enter"&&e[n][1].type==="strikethroughSequenceTemporary"&&e[n][1]._close){let r=n;while(r--){if(e[r][0]==="exit"&&e[r][1].type==="strikethroughSequenceTemporary"&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence";e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)};const i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)};const a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]];const s=t.parser.constructs.insideSpan.null;if(s){en(a,a.length,0,eq(s,e.slice(r+1,n),t))}en(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]);en(e,r-1,n-r+3,a);n=r+a.length-2;break}}}}n=-1;while(++n<e.length){if(e[n][1].type==="strikethroughSequenceTemporary"){e[n][1].type="data"}}return e}function i(e,t,r){const o=this.previous;const i=this.events;let a=0;return s;function s(t){if(o===126&&i[i.length-1][1].type!=="characterEscape"){return r(t)}e.enter("strikethroughSequenceTemporary");return l(t)}function l(i){const s=t0(o);if(i===126){if(a>1)return r(i);e.consume(i);a++;return l}if(a<2&&!n)return r(i);const u=e.exit("strikethroughSequenceTemporary");const c=t0(i);u._open=!c||c===2&&Boolean(s);u._close=!s||s===2&&Boolean(c);return t(i)}}};class ih{constructor(){this.map=[]}add(e,t,n){ip(this,e,t,n)}consume(e){this.map.sort((e,t)=>e[0]-t[0]);if(this.map.length===0){return}let t=this.map.length;const n=[];while(t>0){t-=1;n.push(e.slice(this.map[t][0]+this.map[t][1]));n.push(this.map[t][2]);e.length=this.map[t][0]}n.push([...e]);e.length=0;let r=n.pop();while(r){e.push(...r);r=n.pop()}this.map.length=0}}function ip(e,t,n,r){let o=0;if(n===0&&r.length===0){return}while(o<e.map.length){if(e.map[o][0]===t){e.map[o][1]+=n;e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])};function ig(e,t){let n=false;const r=[];while(t<e.length){const o=e[t];if(n){if(o[0]==="enter"){if(o[1].type==="tableContent"){r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none")}}else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const e=r.length-1;r[e]=r[e]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow"){break}}else if(o[0]==="enter"&&o[1].type==="tableDelimiterRow"){n=true}t+=1}return r};const iv={flow:{null:{tokenize:im,resolveAll:iy}}};function im(e,t,n){const r=this;let o=0;let i=0;let a;return s;function s(e){let t=r.events.length-1;while(t>-1){const e=r.events[t][1].type;if(e==="lineEnding"||e==="linePrefix")t--;else break}const o=t>-1?r.events[t][1].type:null;const i=o==="tableHead"||o==="tableRow"?k:l;if(i===k&&r.parser.lazy[r.now().line]){return n(e)}return i(e)}function l(t){e.enter("tableHead");e.enter("tableRow");return u(t)}function u(e){if(e===124){return c(e)}a=true;i+=1;return c(e)}function c(t){if(t===null){return n(t)}if(ey(t)){if(i>1){i=0;r.interrupt=true;e.exit("tableRow");e.enter("lineEnding");e.consume(t);e.exit("lineEnding");return p}return n(t)}if(ew(t)){return ej(e,c,"whitespace")(t)}i+=1;if(a){a=false;o+=1}if(t===124){e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");a=true;return c}e.enter("data");return f(t)}function f(t){if(t===null||t===124||ex(t)){e.exit("data");return c(t)}e.consume(t);return t===92?h:f}function h(t){if(t===92||t===124){e.consume(t);return f}return f(t)}function p(t){r.interrupt=false;if(r.parser.lazy[r.now().line]){return n(t)}e.enter("tableDelimiterRow");a=false;if(ew(t)){return ej(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?undefined:4)(t)}return g(t)}function g(t){if(t===45||t===58){return m(t)}if(t===124){a=true;e.enter("tableCellDivider");e.consume(t);e.exit("tableCellDivider");return v}return S(t)}function v(t){if(ew(t)){return ej(e,m,"whitespace")(t)}return m(t)}function m(t){if(t===58){i+=1;a=true;e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return y}if(t===45){i+=1;return y(t)}if(t===null||ey(t)){return b(t)}return S(t)}function y(t){if(t===45){e.enter("tableDelimiterFiller");return x(t)}return S(t)}function x(t){if(t===45){e.consume(t);return x}if(t===58){a=true;e.exit("tableDelimiterFiller");e.enter("tableDelimiterMarker");e.consume(t);e.exit("tableDelimiterMarker");return w}e.exit("tableDelimiterFiller");return w(t)}function w(t){if(ew(t)){return ej(e,b,"whitespace")(t)}return b(t)}function b(n){if(n===124){return g(n)}if(n===null||ey(n)){if(!a||o!==i){return S(n)}e.exit("tableDelimiterRow");e.exit("tableHead");return t(n)}return S(n)}function S(e){return n(e)}function k(t){e.enter("tableRow");return j(t)}function j(n){if(n===124){e.enter("tableCellDivider");e.consume(n);e.exit("tableCellDivider");return j}if(n===null||ey(n)){e.exit("tableRow");return t(n)}if(ew(n)){return ej(e,j,"whitespace")(n)}e.enter("data");return C(n)}function C(t){if(t===null||t===124||ex(t)){e.exit("data");return j(t)}e.consume(t);return t===92?T:C}function T(t){if(t===92||t===124){e.consume(t);return C}return C(t)}}function iy(e,t){let n=-1;let r=true;let o=0;let i=[0,0,0,0];let a=[0,0,0,0];let s=false;let l=0;let u;let c;let f;const h=new ih;while(++n<e.length){const p=e[n];const g=p[1];if(p[0]==="enter"){if(g.type==="tableHead"){s=false;if(l!==0){iw(h,t,l,u,c);c=undefined;l=0}u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)};h.add(n,0,[["enter",u,t]])}else if(g.type==="tableRow"||g.type==="tableDelimiterRow"){r=true;f=undefined;i=[0,0,0,0];a=[0,n+1,0,0];if(s){s=false;c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)};h.add(n,0,[["enter",c,t]])}o=g.type==="tableDelimiterRow"?2:c?3:1}else if(o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")){r=false;if(a[2]===0){if(i[1]!==0){a[0]=a[1];f=ix(h,t,i,o,undefined,f);i=[0,0,0,0]}a[2]=n}}else if(g.type==="tableCellDivider"){if(r){r=false}else{if(i[1]!==0){a[0]=a[1];f=ix(h,t,i,o,undefined,f)}i=a;a=[i[1],n,0,0]}}}else if(g.type==="tableHead"){s=true;l=n}else if(g.type==="tableRow"||g.type==="tableDelimiterRow"){l=n;if(i[1]!==0){a[0]=a[1];f=ix(h,t,i,o,n,f)}else if(a[1]!==0){f=ix(h,t,a,o,n,f)}o=0}else if(o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")){a[3]=n}}if(l!==0){iw(h,t,l,u,c)}h.consume(t.events);n=-1;while(++n<t.events.length){const e=t.events[n];if(e[0]==="enter"&&e[1].type==="table"){e[1]._align=ig(t.events,n)}}return e}function ix(e,t,n,r,o,i){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData";const s="tableContent";if(n[0]!==0){i.end=Object.assign({},ib(t.events,n[0]));e.add(n[0],0,[["exit",i,t]])}const l=ib(t.events,n[1]);i={type:a,start:Object.assign({},l),end:Object.assign({},l)};e.add(n[1],0,[["enter",i,t]]);if(n[2]!==0){const o=ib(t.events,n[2]);const i=ib(t.events,n[3]);const a={type:s,start:Object.assign({},o),end:Object.assign({},i)};e.add(n[2],0,[["enter",a,t]]);if(r!==2){const r=t.events[n[2]];const o=t.events[n[3]];r[1].end=Object.assign({},o[1].end);r[1].type="chunkText";r[1].contentType="text";if(n[3]>n[2]+1){const t=n[2]+1;const r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}if(o!==undefined){i.end=Object.assign({},ib(t.events,o));e.add(o,0,[["exit",i,t]]);i=undefined}return i}function iw(e,t,n,r,o){const i=[];const a=ib(t.events,n);if(o){o.end=Object.assign({},a);i.push(["exit",o,t])}r.end=Object.assign({},a);i.push(["exit",r,t]);e.add(n+1,0,i)}function ib(e,t){const n=e[t];const r=n[0]==="enter"?"start":"end";return n[1][r]};const iS={tokenize:ij};const ik={text:{[91]:iS}};function ij(e,t,n){const r=this;return o;function o(t){if(r.previous!==null||!r._gfmTasklistFirstContentOfListItem){return n(t)}e.enter("taskListCheck");e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");return i}function i(t){if(ex(t)){e.enter("taskListCheckValueUnchecked");e.consume(t);e.exit("taskListCheckValueUnchecked");return a}if(t===88||t===120){e.enter("taskListCheckValueChecked");e.consume(t);e.exit("taskListCheckValueChecked");return a}return n(t)}function a(t){if(t===93){e.enter("taskListCheckMarker");e.consume(t);e.exit("taskListCheckMarker");e.exit("taskListCheck");return s}return n(t)}function s(r){if(ey(r)){return t(r)}if(ew(r)){return e.check({tokenize:iC},t,n)(r)}return n(r)}}function iC(e,t,n){return ej(e,r,"whitespace");function r(e){return e===null?n(e):t(e)}};function iT(e){return ei([oY,it(),id(e),iv,ik])}function iE(e){return combineHtmlExtensions([gfmAutolinkLiteralHtml,gfmFootnoteHtml(e),gfmStrikethroughHtml,gfmTableHtml,gfmTagfilterHtml,gfmTaskListItemHtml])};function iI(e,t){const n=String(e);if(typeof t!=="string"){throw new TypeError("Expected character")}let r=0;let o=n.indexOf(t);while(o!==-1){r++;o=n.indexOf(t,o+t.length)}return r};function i_(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const iM={}.hasOwnProperty;const iD=function(e,t,n,r){let o;let i;if(typeof t==="string"||t instanceof RegExp){i=[[t,n]];o=r}else{i=t;o=n}if(!o){o={}}const a=nZ(o.ignore||[]);const s=iP(i);let l=-1;while(++l<s.length){nK(e,"text",u)}return e;function u(e,t){let n=-1;let r;while(++n<t.length){const e=t[n];if(a(e,r?r.children.indexOf(e):undefined,r)){return}r=e}if(r){return c(e,t)}}function c(e,t){const n=t[t.length-1];const r=s[l][0];const o=s[l][1];let i=0;const a=n.children.indexOf(e);let u=false;let c=[];r.lastIndex=0;let f=r.exec(e.value);while(f){const n=f.index;const a={index:f.index,input:f.input,stack:[...t,e]};let s=o(...f,a);if(typeof s==="string"){s=s.length>0?{type:"text",value:s}:undefined}if(s!==false){if(i!==n){c.push({type:"text",value:e.value.slice(i,n)})}if(Array.isArray(s)){c.push(...s)}else if(s){c.push(s)}i=n+f[0].length;u=true}if(!r.global){break}f=r.exec(e.value)}if(u){if(i<e.value.length){c.push({type:"text",value:e.value.slice(i)})}n.children.splice(a,1,...c)}else{c=[e]}return a+c.length}};function iP(e){const t=[];if(typeof e!=="object"){throw new TypeError("Expected array or object as schema")}if(Array.isArray(e)){let n=-1;while(++n<e.length){t.push([iA(e[n][0]),iO(e[n][1])])}}else{let n;for(n in e){if(iM.call(e,n)){t.push([iA(n),iO(e[n])])}}}return t}function iA(e){return typeof e==="string"?new RegExp(i_(e),"g"):e}function iO(e){return typeof e==="function"?e:()=>e};const iR="phrasing";const iz=["autolink","link","image","label"];const iZ={transforms:[iU],enter:{literalAutolink:iN,literalAutolinkEmail:iB,literalAutolinkHttp:iB,literalAutolinkWww:iB},exit:{literalAutolink:iW,literalAutolinkEmail:iV,literalAutolinkHttp:iH,literalAutolinkWww:iF}};const iL={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iR,notInConstruct:iz},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iR,notInConstruct:iz},{character:":",before:"[ps]",after:"\\/",inConstruct:iR,notInConstruct:iz}]};function iN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function iB(e){this.config.enter.autolinkProtocol.call(this,e)}function iH(e){this.config.exit.autolinkProtocol.call(this,e)}function iF(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function iV(e){this.config.exit.autolinkEmail.call(this,e)}function iW(e){this.exit(e)}function iU(e){iD(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i$],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,iK]],{ignore:["link","linkReference"]})}function i$(e,t,n,r,o){let i="";if(!iG(o)){return false}if(/^w/i.test(t)){n=t+n;t="";i="http://"}if(!iq(n)){return false}const a=iY(n+r);if(!a[0])return false;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};if(a[1]){return[s,{type:"text",value:a[1]}]}return s}function iK(e,t,n,r){if(!iG(r,true)||/[-\d_]$/.test(n)){return false}return{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function iq(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2]))){return false}return true}function iY(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t){return[e,undefined]}e=e.slice(0,t.index);let n=t[0];let r=n.indexOf(")");const o=iI(e,"(");let i=iI(e,")");while(r!==-1&&o>i){e+=n.slice(0,r+1);n=n.slice(r+1);r=n.indexOf(")");i++}return[e,n]}function iG(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||eS(n)||eb(n))&&(!t||n!==47)};function iX(e){if(e.label||!e.identifier){return e.label||""}return nk(e.identifier)};function iQ(e,t,n){const r=t.indexStack;const o=e.children||[];const i=t.createTracker(n);const a=[];let s=-1;r.push(-1);while(++s<o.length){const n=o[s];r[r.length-1]=s;a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",...i.current()})));if(n.type!=="list"){t.bulletLastUsed=undefined}if(s<o.length-1){a.push(i.move(iJ(n,o[s+1],e,t)))}}r.pop();return a.join("")}function iJ(e,t,n,r){let o=r.join.length;while(o--){const i=r.join[o](e,t,n,r);if(i===true||i===1){break}if(typeof i==="number"){return"\n".repeat(1+i)}if(i===false){return"\n\n<!---->\n\n"}}return"\n\n"};const i0=/\r?\n|\r/g;function i1(e,t){const n=[];let r=0;let o=0;let i;while(i=i0.exec(e)){a(e.slice(r,i.index));n.push(i[0]);r=i.index+i[0].length;o++}a(e.slice(r));return n.join("");function a(e){n.push(t(e,o,!e))}};function i2(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled};function i4(e,t){return i5(e,t.inConstruct,true)&&!i5(e,t.notInConstruct,false)}function i5(e,t,n){if(typeof t==="string"){t=[t]}if(!t||t.length===0){return n}let r=-1;while(++r<t.length){if(e.includes(t[r])){return true}}return false};function i3(e,t,n){const r=(n.before||"")+(t||"")+(n.after||"");const o=[];const i=[];const a={};let s=-1;while(++s<e.unsafe.length){const t=e.unsafe[s];if(!i4(e.stack,t)){continue}const n=i2(t);let i;while(i=n.exec(r)){const e="before"in t||Boolean(t.atBreak);const n="after"in t;const r=i.index+(e?i[1].length:0);if(o.includes(r)){if(a[r].before&&!e){a[r].before=false}if(a[r].after&&!n){a[r].after=false}}else{o.push(r);a[r]={before:e,after:n}}}}o.sort(i6);let l=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);s=-1;while(++s<o.length){const e=o[s];if(e<l||e>=u){continue}if(e+1<u&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after){continue}if(l!==e){i.push(i8(r.slice(l,e),"\\"))}l=e;if(/[!-/:-@[-`{-~]/.test(r.charAt(e))&&(!n.encode||!n.encode.includes(r.charAt(e)))){i.push("\\")}else{i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";");l++}}i.push(i8(r.slice(l,u),n.after));return i.join("")}function i6(e,t){return e-t}function i8(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g;const r=[];const o=[];const i=e+t;let a=-1;let s=0;let l;while(l=n.exec(i)){r.push(l.index)}while(++a<r.length){if(s!==r[a]){o.push(e.slice(s,r[a]))}o.push("\\");s=r[a]}o.push(e.slice(s));return o.join("")};function i7(e){const t=e||{};const n=t.now||{};let r=t.lineShift||0;let o=n.line||1;let i=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:o,column:i},lineShift:r}}function s(e){r+=e}function l(e){const t=e||"";const n=t.split(/\r?\n|\r/g);const a=n[n.length-1];o+=n.length-1;i=n.length===1?i+a.length:1+a.length+r;return t}};ad.peek=af;function i9(){return{enter:{gfmFootnoteDefinition:at,gfmFootnoteDefinitionLabelString:ao,gfmFootnoteCall:as,gfmFootnoteCallString:al},exit:{gfmFootnoteDefinition:aa,gfmFootnoteDefinitionLabelString:ai,gfmFootnoteCall:ac,gfmFootnoteCallString:au}}}function ae(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ah,footnoteReference:ad}}}function at(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ao(){this.buffer()}function ai(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=ta(this.sliceSerialize(e)).toLowerCase()}function aa(e){this.exit(e)}function as(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function al(){this.buffer()}function au(e){const t=this.resume();const n=this.stack[this.stack.length-1];n.label=t;n.identifier=ta(this.sliceSerialize(e)).toLowerCase()}function ac(e){this.exit(e)}function ad(e,t,n,r){const o=i7(r);let i=o.move("[^");const a=n.enter("footnoteReference");const s=n.enter("reference");i+=o.move(i3(n,iX(e),{...o.current(),before:i,after:"]"}));s();a();i+=o.move("]");return i}function af(){return"["}function ah(e,t,n,r){const o=i7(r);let i=o.move("[^");const a=n.enter("footnoteDefinition");const s=n.enter("label");i+=o.move(i3(n,iX(e),{...o.current(),before:i,after:"]"}));s();i+=o.move("]:"+(e.children&&e.children.length>0?" ":""));o.shift(4);i+=o.move(i1(iQ(e,n,o.current()),ap));a();return i}function ap(e,t,n){if(t===0){return e}return(n?"":" ")+e};function ag(e,t,n){const r=t.indexStack;const o=e.children||[];const i=[];let a=-1;let s=n.before;r.push(-1);let l=t.createTracker(n);while(++a<o.length){const u=o[a];let c;r[r.length-1]=a;if(a+1<o.length){let n=t.handle.handlers[o[a+1].type];if(n&&n.peek)n=n.peek;c=n?n(o[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else{c=n.after}if(i.length>0&&(s==="\r"||s==="\n")&&u.type==="html"){i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," ");s=" ";l=t.createTracker(n);l.move(i.join(""))}i.push(l.move(t.handle(u,e,t,{...l.current(),before:s,after:c})));s=i[i.length-1].slice(-1)}r.pop();return i.join("")};const av=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ab.peek=aS;const am={canContainEols:["delete"],enter:{strikethrough:ax},exit:{strikethrough:aw}};const ay={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:av}],handlers:{delete:ab}};function ax(e){this.enter({type:"delete",children:[]},e)}function aw(e){this.exit(e)}function ab(e,t,n,r){const o=i7(r);const i=n.enter("strikethrough");let a=o.move("~~");a+=ag(e,n,{...o.current(),before:a,after:"~"});a+=o.move("~~");i();return a}function aS(){return"~"};ak.peek=aj;function ak(e,t,n){let r=e.value||"";let o="`";let i=-1;while(new RegExp("(^|[^`])"+o+"([^`]|$)").test(r)){o+="`"}if(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))){r=" "+r+" "}while(++i<n.unsafe.length){const e=n.unsafe[i];const t=i2(e);let o;if(!e.atBreak)continue;while(o=t.exec(r)){let e=o.index;if(r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13){e--}r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function aj(){return"`"};function aC(e,t={}){const n=(t.align||[]).concat();const r=t.stringLength||aE;const o=[];const i=[];const a=[];const s=[];let l=0;let u=-1;while(++u<e.length){const n=[];const o=[];let c=-1;if(e[u].length>l){l=e[u].length}while(++c<e[u].length){const i=aT(e[u][c]);if(t.alignDelimiters!==false){const e=r(i);o[c]=e;if(s[c]===undefined||e>s[c]){s[c]=e}}n.push(i)}i[u]=n;a[u]=o}let c=-1;if(typeof n==="object"&&"length"in n){while(++c<l){o[c]=aI(n[c])}}else{const e=aI(n);while(++c<l){o[c]=e}}c=-1;const f=[];const h=[];while(++c<l){const e=o[c];let n="";let r="";if(e===99){n=":";r=":"}else if(e===108){n=":"}else if(e===114){r=":"}let i=t.alignDelimiters===false?1:Math.max(1,s[c]-n.length-r.length);const a=n+"-".repeat(i)+r;if(t.alignDelimiters!==false){i=n.length+i+r.length;if(i>s[c]){s[c]=i}h[c]=i}f[c]=a}i.splice(1,0,f);a.splice(1,0,h);u=-1;const p=[];while(++u<i.length){const e=i[u];const n=a[u];c=-1;const r=[];while(++c<l){const i=e[c]||"";let a="";let u="";if(t.alignDelimiters!==false){const e=s[c]-(n[c]||0);const t=o[c];if(t===114){a=" ".repeat(e)}else if(t===99){if(e%2){a=" ".repeat(e/2+.5);u=" ".repeat(e/2-.5)}else{a=" ".repeat(e/2);u=a}}else{u=" ".repeat(e)}}if(t.delimiterStart!==false&&!c){r.push("|")}if(t.padding!==false&&!(t.alignDelimiters===false&&i==="")&&(t.delimiterStart!==false||c)){r.push(" ")}if(t.alignDelimiters!==false){r.push(a)}r.push(i);if(t.alignDelimiters!==false){r.push(u)}if(t.padding!==false){r.push(" ")}if(t.delimiterEnd!==false||c!==l-1){r.push("|")}}p.push(t.delimiterEnd===false?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}function aT(e){return e===null||e===undefined?"":String(e)}function aE(e){return e.length}function aI(e){const t=typeof e==="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0};const a_={enter:{table:aM,tableData:aO,tableHeader:aO,tableRow:aP},exit:{codeText:aR,table:aD,tableData:aA,tableHeader:aA,tableRow:aA}};function aM(e){const t=e._align;this.enter({type:"table",align:t.map(e=>e==="none"?null:e),children:[]},e);this.setData("inTable",true)}function aD(e){this.exit(e);this.setData("inTable")}function aP(e){this.enter({type:"tableRow",children:[]},e)}function aA(e){this.exit(e)}function aO(e){this.enter({type:"tableCell",children:[]},e)}function aR(e){let t=this.resume();if(this.getData("inTable")){t=t.replace(/\\([\\|])/g,az)}const n=this.stack[this.stack.length-1];n.value=t;this.exit(e)}function az(e,t){return t==="|"?t:e}function aZ(e){const t=e||{};const n=t.tableCellPadding;const r=t.tablePipeAlign;const o=t.stringLength;const i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:true,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:true,character:":",after:"-"},{atBreak:true,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:h}};function a(e,t,n,r){return u(c(e,n,r),e.align)}function s(e,t,n,r){const o=f(e,n,r);const i=u([o]);return i.slice(0,i.indexOf("\n"))}function l(e,t,n,r){const o=n.enter("tableCell");const a=n.enter("phrasing");const s=ag(e,n,{...r,before:i,after:i});a();o();return s}function u(e,t){return aC(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function c(e,t,n){const r=e.children;let o=-1;const i=[];const a=t.enter("table");while(++o<r.length){i[o]=f(r[o],t,n)}a();return i}function f(e,t,n){const r=e.children;let o=-1;const i=[];const a=t.enter("tableRow");while(++o<r.length){i[o]=l(r[o],e,t,n)}a();return i}function h(e,t,n){let r=ak(e,t,n);if(n.stack.includes("tableCell")){r=r.replace(/\|/g,"\\$&")}return r}};function aL(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-"){throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")}return t};function aN(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1"){return"one"}if(t!=="tab"&&t!=="one"&&t!=="mixed"){throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")}return t};function aB(e,t,n,r){const o=aN(n);let i=n.bulletCurrent||aL(n);if(t&&t.type==="list"&&t.ordered){i=(typeof t.start==="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===false?0:t.children.indexOf(e))+i}let a=i.length+1;if(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread)){a=Math.ceil(a/4)*4}const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length));s.shift(a);const l=n.enter("listItem");const u=n.indentLines(n.containerFlow(e,s.current()),c);l();return u;function c(e,t,n){if(t){return(n?"":" ".repeat(a))+e}return(n?i:i+" ".repeat(a-i.length))+e}};const aH={exit:{taskListCheckValueChecked:aV,taskListCheckValueUnchecked:aV,paragraph:aW}};const aF={unsafe:[{atBreak:true,character:"-",after:"[:|-]"}],handlers:{listItem:aU}};function aV(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function aW(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked==="boolean"){const e=this.stack[this.stack.length-1];const n=e.children[0];if(n&&n.type==="text"){const r=t.children;let o=-1;let i;while(++o<r.length){const e=r[o];if(e.type==="paragraph"){i=e;break}}if(i===e){n.value=n.value.slice(1);if(n.value.length===0){e.children.shift()}else if(e.position&&n.position&&typeof n.position.start.offset==="number"){n.position.start.column++;n.position.start.offset++;e.position.start=Object.assign({},n.position.start)}}}}this.exit(e)}function aU(e,t,n,r){const o=e.children[0];const i=typeof e.checked==="boolean"&&o&&o.type==="paragraph";const a="["+(e.checked?"x":" ")+"] ";const s=i7(r);if(i){s.move(a)}let l=aB(e,t,n,{...r,...s.current()});if(i){l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)}return l;function u(e){return e+a}};function a$(){return[iZ,i9(),am,a_,aH]}function aK(e){return{extensions:[iL,ae(),ay,aZ(e),aF]}};function aq(e={}){const t=this.data();n("micromarkExtensions",iT(e));n("fromMarkdownExtensions",a$());n("toMarkdownExtensions",aK(e));function n(e,n){const r=t[e]?t[e]:t[e]=[];r.push(n)}}var aY=n(76074);var aG=n(45492);function aX(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};const aQ=function(e,t,n,r,o){const i=aJ(t);if(n!==undefined&&n!==null&&(typeof n!=="number"||n<0||n===Number.POSITIVE_INFINITY)){throw new Error("Expected positive finite index")}if(r!==undefined&&r!==null&&(!aQ(r)||!r.children)){throw new Error("Expected parent node")}if((r===undefined||r===null)!==(n===undefined||n===null)){throw new Error("Expected both parent and index")}return a3(e)?i.call(o,e,n,r):false};const aJ=function(e){if(e===null||e===undefined){return a5}if(typeof e==="function"){return a4(e)}if(typeof e==="object"){return Array.isArray(e)?a0(e):a1(e)}if(typeof e==="string"){return a2(e)}throw new Error("Expected function, string, or object as test")};function a0(e){const t=[];let n=-1;while(++n<e.length){t[n]=aJ(e[n])}return a4(r);function r(...e){let n=-1;while(++n<t.length){if(t[n].apply(this,e))return true}return false}}function a1(e){const t=e;return a4(n);function n(n){const r=n;let o;for(o in e){if(r[o]!==t[o])return false}return true}}function a2(e){return a4(t);function t(t){return t&&t.type===e}}function a4(e){return t;function t(t,n,r){return Boolean(a3(t)&&e.call(this,t,typeof n==="number"?n:undefined,r||undefined))}}function a5(){return true}function a3(e){return e!==null&&typeof e==="object"&&"type"in e};function a6(e){return e};const a8=[];const a7=true;const a9=false;const se="skip";function st(e,t,n,r){let o;if(typeof t==="function"&&typeof n!=="function"){r=n;n=t}else{o=t}const i=aJ(o);const a=r?-1:1;s(e,undefined,[])();function s(e,o,l){const u=e&&typeof e==="object"?e:{};if(typeof u.type==="string"){const t=typeof u.tagName==="string"?u.tagName:typeof u.name==="string"?u.name:undefined;Object.defineProperty(c,"name",{value:"node ("+a6(e.type+(t?"<"+t+">":""))+")"})}return c;function c(){let u=a8;let c;let f;let h;if(!t||i(e,o,l[l.length-1]||undefined)){u=sn(n(e,l));if(u[0]===a9){return u}}if("children"in e&&e.children){const t=e;if(t.children&&u[0]!==se){f=(r?t.children.length:-1)+a;h=l.concat(t);while(f>-1&&f<t.children.length){const e=t.children[f];c=s(e,f,h)();if(c[0]===a9){return c}f=typeof c[1]==="number"?c[1]:f+a}}}return u}}}function sn(e){if(Array.isArray(e)){return e}if(typeof e==="number"){return[a7,e]}return e===null||e===undefined?a8:[e]};function so(e,t,n){const r=n||{};const o=aJ(r.ignore||[]);const i=si(t);let a=-1;while(++a<i.length){st(e,"text",s)}function s(e,t){let n=-1;let r;while(++n<t.length){const e=t[n];const i=r?r.children:undefined;if(o(e,i?i.indexOf(e):undefined,r)){return}r=e}if(r){return l(e,t)}}function l(e,t){const n=t[t.length-1];const r=i[a][0];const o=i[a][1];let s=0;const l=n.children;const u=l.indexOf(e);let c=false;let f=[];r.lastIndex=0;let h=r.exec(e.value);while(h){const n=h.index;const i={index:h.index,input:h.input,stack:[...t,e]};let a=o(...h,i);if(typeof a==="string"){a=a.length>0?{type:"text",value:a}:undefined}if(a!==false){if(s!==n){f.push({type:"text",value:e.value.slice(s,n)})}if(Array.isArray(a)){f.push(...a)}else if(a){f.push(a)}s=n+h[0].length;c=true}if(!r.global){break}h=r.exec(e.value)}if(c){if(s<e.value.length){f.push({type:"text",value:e.value.slice(s)})}n.children.splice(u,1,...f)}else{f=[e]}return u+f.length}}function si(e){const t=[];if(!Array.isArray(e)){throw new TypeError("Expected find and replace tuple or list of tuples")}const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;while(++r<n.length){const e=n[r];t.push([sa(e[0]),ss(e[1])])}return t}function sa(e){return typeof e==="string"?new RegExp(aX(e),"g"):e}function ss(e){return typeof e==="function"?e:function(){return e}};function sl(e){so(e,[/\r?\n|\r/g,su])}function su(){return{type:"break"}};function sc(){const e=this.data();function t(t,n){const r=e[t]?e[t]:e[t]=[];r.push(n)}t("fromMarkdownExtensions",{enter:{lineEndingBlank:function e(e){this.enter({type:"break",value:"",data:{},children:[]},e)}},exit:{lineEndingBlank:function e(e){this.exit(e)}}})}function sd(){return sl}var sf=n(77644);const sh=[sc,aq,sd];const sp=(0,oN.iv)({display:"block",maxWidth:350,padding:8,overflowWrap:"break-word","& p":{margin:0,":not(:first-child)":{marginTop:"0.25rem"}},"& ul, & ol":{listStylePosition:"inside",margin:0,paddingLeft:0},"&>* ul, &>* ol":{marginLeft:"1.5rem"},"& li>p":{display:"contents"},"& blockquote":{paddingLeft:"0.75rem",borderLeft:"3px solid "+aG.rS.markdownDark,margin:0},"& hr":{borderTop:"none",borderLeft:"none",borderRight:"none",borderBottom:"1px solid "+aG.rS.markdownNormal},"& code":{backgroundColor:aG.rS.markdownLight,padding:"0.1rem 0.5rem",borderRadius:"0.25rem"},"& pre":{padding:"0.5rem",backgroundColor:aG.rS.markdownLight,borderRadius:"0.5rem",margin:0,":not(:first-child)":{marginTop:"0.25rem"},"& code":{background:"inherit",padding:0,borderRadius:0}},"& table, & th, & td":{border:"1px solid "+aG.rS.markdownNormal},"& table":{borderCollapse:"collapse",wordBreak:"break-word"},"& td":{padding:"0.25rem 0.75rem"}});function sg({notes:e,editable:t,focused:n,onChange:r,onBlur:o,getStyle:s}){const{isNarrowWidth:l}=(0,aY.F)();const u=e=>{r?.(e)};const c=(0,a.useRef)();(0,a.useEffect)(()=>{if(n&&t){c.current.focus()}},[n,t]);return t?(0,i.jsx)("textarea",{ref:c,className:`${(0,oN.iv)({border:"1px solid "+aG.rS.buttonNormalBorder,padding:7,...!l&&{minWidth:350,minHeight:120},outline:"none",backgroundColor:aG.rS.tableBackground,color:aG.rS.tableText,...s?.(t)})}`,value:e||"",onChange:e=>u(e.target.value),onBlur:e=>o?.(e.target.value),placeholder:"Notes (markdown supported)"}):(0,i.jsx)(sf.Z,{...sp,style:{...s?.(t)},children:(0,i.jsx)(oL,{remarkPlugins:sh,linkTarget:"_blank",children:e})})}},13308:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(43188);var o=n(66204);var i=n(76074);var a=n(45492);var s=n(77644);var l=n(24307);const u=50;function c({title:e,titleContainerProps:t,style:n,leftContentContainerProps:o,leftContent:c,rightContentContainerProps:f,rightContent:h}){const{isNarrowWidth:p}=(0,i.F)();if(p){return(0,r.jsxs)(l.Z,{style:{alignItems:"center",backgroundColor:a.rS.mobileHeaderBackground,color:a.rS.mobileHeaderText,flexDirection:"row",flexShrink:0,height:u,...n},children:[(0,r.jsx)(l.Z,{...o,style:{flexBasis:"25%",justifyContent:"flex-start",flexDirection:"row",...o?.style},children:c}),(0,r.jsx)(l.Z,{role:"heading",...t,style:{textAlign:"center",alignItems:"center",justifyContent:"center",flexDirection:"row",flexBasis:"50%",fontSize:17,fontWeight:500,overflowY:"auto",...t?.style},children:e}),(0,r.jsx)(l.Z,{...f,style:{flexBasis:"25%",justifyContent:"flex-end",flexDirection:"row",...f?.style},children:h})]})}return(0,r.jsx)(s.Z,{style:{fontSize:25,fontWeight:500,marginBottom:15,...n},children:e})}function f({titleContainerProps:e,title:t,headerStyle:n,headerLeftContentContainerProps:o,headerLeftContent:s,headerRightContentContainerProps:u,headerRightContent:f,style:h,padding:p,childrenContainerProps:g,children:v,footer:m}){const{isNarrowWidth:y}=(0,i.F)();const x=p!=null?p:y?10:20;return(0,r.jsxs)(l.Z,{style:{...!y&&a.W2.page,...h},children:[(0,r.jsx)(c,{title:t,titleContainerProps:e,leftContentContainerProps:o,leftContent:s,rightContentContainerProps:u,rightContent:f,style:{...!y&&{paddingInline:x},...n}}),y?(0,r.jsx)(l.Z,{...g,style:{flex:1,overflowY:"auto",padding:x,...g?.style},children:v}):(0,r.jsx)(l.Z,{...g,style:{flex:1,paddingLeft:x,paddingRight:x,...g?.style},children:v}),m]})}},44710:function(e,t,n){"use strict";n.d(t,{JS:function(){return f},ZP:function(){return u},wq:function(){return l}});var r=n(43188);var o=n(66204);var i=n(69247);var a=n(76074);var s=n(24307);function l({children:e,privacyFilter:t,defaultPrivacyFilterProps:n}){const i=(e,t)=>(0,r.jsx)(u,{...t,children:e});return t?typeof t==="boolean"?(0,r.jsx)(u,{...n,children:e}):i(e,f(n,t)):(0,r.jsx)(r.Fragment,{children:o.Children.toArray(e)})}function u({activationFilters:e,blurIntensity:t,children:n,...s}){const l=(0,i.Z)();const{isNarrowWidth:u}=(0,a.F)();const f=l&&!u&&(!e||e.every(e=>typeof e==="boolean"?e:e()));const h=t!=null?`${t}px`:"3px";return!f?(0,r.jsx)(r.Fragment,{children:o.Children.toArray(n)}):(0,r.jsx)(c,{blurIntensity:h,...s,children:n})}function c({blurIntensity:e,children:t,...n}){const[i,a]=(0,o.useState)(false);const l=(0,o.useCallback)(()=>a(true),[a]);const u=(0,o.useCallback)(()=>a(false),[a]);const c={...!i&&{filter:`blur(${e})`,WebkitFilter:`blur(${e})`,transform:`translate3d(0, 0, 0)`}};const{style:f,...h}=n;return(0,r.jsx)(s.Z,{style:{display:f?.display?f.display:"inline-flex",...c,...f},onPointerEnter:l,onPointerLeave:u,...h,children:t})}function f(e={},t){if(t==null||t===false){return t}if(t===true){return e}return h(e,t)}function h(e,...t){return t.reduce((e,t)=>{Object.keys(t).forEach(n=>{const r=e[n];const o=t[n];if(Array.isArray(r)&&Array.isArray(o)){e[n]=r.concat(...o)}else if(p(r)&&p(o)){e[n]=h(r,o)}else{e[n]=o}});return e},e)}function p(e){return e&&typeof e==="object"}},11800:function(e,t,n){"use strict";n.d(t,{Mx:function(){return l},o1:function(){return s},q3:function(){return u},qc:function(){return f}});var r=n(43188);var o=n(66204);var i=n(84094);const a=(0,o.createContext)({url:null,version:"",setURL:()=>Promise.reject(new Error("ServerContext not initialized"))});const s=()=>(0,o.useContext)(a).url;const l=()=>(0,o.useContext)(a).version;const u=()=>(0,o.useContext)(a).setURL;async function c(){const e=await (0,i.lW)("get-server-version");if("version"in e){return e.version}return""}function f({children:e}){const[t,n]=(0,o.useState)("");const[s,l]=(0,o.useState)("");(0,o.useEffect)(()=>{async function e(){n(await (0,i.lW)("get-server-url"));l(await c())}e()},[]);const u=(0,o.useCallback)(async(e,t={})=>{const{error:r}=await (0,i.lW)("set-server-url",{...t,url:e});if(!r){n(await (0,i.lW)("get-server-url"));l(await c())}return{error:r}},[n]);return(0,r.jsx)(a.Provider,{value:{url:t,setURL:u,version:s?`v${s}`:"N/A"},children:e})}},64266:function(e,t,n){"use strict";n.d(t,{Kk:function(){return K},CR:function(){return q},TE:function(){return Y},ZP:function(){return ee}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(59379);var s=n(67238);var l=n(46055);var u=n(84094);var c=n(1447);var f=n(58068);var h=n(24868);var p=n(93734);var g=n(79494);var v=n(68476);var m=n(38199);var y=n(42632);var x=n(76074);var w=n(45492);var b=n(70425);var S=n(19318);var k=n(56816);var j=n(15633);var C=n(24307);var T=n(19808);function E(e,t){switch(e.toUpperCase()){case"ITEM_ERROR":switch(t.toUpperCase()){case"NO_ACCOUNTS":return"No open accounts could be found. Did you close the account? If so, unlink the account.";case"ITEM_LOGIN_REQUIRED":return"Your password or something else has changed with your bank and you need to login again.";default:}break;case"INVALID_INPUT":switch(t.toUpperCase()){case"INVALID_ACCESS_TOKEN":return"Item is no longer authorized. You need to login again.";default:}break;case"RATE_LIMIT_EXCEEDED":return"Rate limit exceeded for this item. Please try again later.";default:}return(0,r.jsxs)(r.Fragment,{children:["An internal error occurred. Try to login again, or get"," ",(0,r.jsx)(j.Z,{to:"https://actualbudget.org/contact/",children:"in touch"})," ","for support."]})}function I(){const e=(0,i.v9)(e=>e.queries.accounts);const t=(0,i.v9)(e=>e.account.failedAccounts);const{unlinkAccount:n,pushModal:s}=(0,c.o)();const{id:l}=(0,a.UO)();const[u,f]=(0,o.useState)(false);if(!t){return null}const h=t.get(l);if(!h){return null}const p=e.find(e=>e.id===l);const{type:g,code:v}=h;const m=g==="ITEM_ERROR"&&v==="ITEM_LOGIN_REQUIRED"||g==="INVALID_INPUT"&&v==="INVALID_ACCESS_TOKEN";function y(){f(false);(0,b.F)(s,{upgradingAccountId:p.account_id})}async function x(){n(p.id);f(false)}return(0,r.jsxs)(C.Z,{children:[(0,r.jsxs)(k.Z,{type:"bare",style:{flexDirection:"row",alignItems:"center",color:w.rS.errorText,backgroundColor:w.rS.errorBackground,padding:"4px 8px",borderRadius:4},onClick:()=>f(true),children:[(0,r.jsx)(S.Z,{style:{width:14,height:14,marginRight:5}})," ","This account is experiencing connection problems. Let’s fix it."]}),u&&(0,r.jsxs)(T.u,{position:"bottom-left",onClose:()=>f(false),style:{fontSize:14,padding:15,maxWidth:400},children:[(0,r.jsx)("div",{style:{marginBottom:"1.15em"},children:"The server returned the following error:"}),(0,r.jsx)("div",{style:{marginBottom:"1.25em",color:w.rS.errorText},children:E(h.type,h.code)}),(0,r.jsx)(C.Z,{style:{justifyContent:"flex-end",flexDirection:"row"},children:m?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k.Z,{onClick:x,children:"Unlink"}),(0,r.jsx)(k.Z,{type:"primary",onClick:y,style:{marginLeft:5},children:"Reauthorize"})]}):(0,r.jsx)(k.Z,{onClick:x,children:"Unlink account"})})]})]})}var _=n(6083);var M=n(48880);var D=n(75025);function P({color:e,onClick:t}){return(0,r.jsx)(M.Z,{style:{width:13,height:13,color:e,marginRight:5},onClick:t})}function A({maxMonths:e,onChange:t}){const{displayMax:n}=(0,D.s)();if(n<=1){return null}const o=[];for(let i=1;i<=n;i++){o.push((0,r.jsx)(P,{color:e>=i?w.rS.pageTextLight:w.rS.pageTextSubdued,onClick:()=>t(i)},i))}return(0,r.jsx)(C.Z,{style:{flexDirection:"row",marginRight:20,marginTop:-1,WebkitAppRegion:"no-drag","& svg":{transition:"transform .15s"},"& svg:hover":{transform:"scale(1.2)"}},title:"Choose the number of months shown at a time",children:o})}var O=n(6755);var R=n(42994);var z=n(77644);var Z=n(39235);var L=n(49886);var N=n(11800);var B=n(84367);var H=n(57651);var F=n(25104);var V=n(32455);var W=n(54785);var U=n(31941);function $({style:e}){const t=(0,w.Fg)();const{saveGlobalPrefs:n}=(0,c.o)();const[i,a]=(0,o.useState)(false);const{isNarrowWidth:s}=(0,x.F)();const l={light:V.Z,dark:F.Z,auto:W.Z};async function u(e){a(false);n({theme:e})}const f=l?.[t]||V.Z;return s?null:(0,r.jsxs)(k.Z,{type:"bare","aria-label":"Switch theme",onClick:()=>a(true),style:e,children:[(0,r.jsx)(f,{style:{width:13,height:13,color:"inherit"}}),i&&(0,r.jsx)(T.u,{position:"bottom-right",style:{padding:0},onClose:()=>a(false),children:(0,r.jsx)(U.Z,{onMenuSelect:u,items:w.Jp.map(([e,t])=>({name:e,text:t}))})})]})};const K="budget/switch-type";const q=(0,o.createContext)(null);function Y({children:e}){const t=(0,o.useRef)([]);function n(e){t.current.forEach(t=>t(e))}function i(e){t.current.push(e);return()=>t.current=t.current.filter(t=>t!==e)}return(0,r.jsx)(q.Provider,{value:{sendEvent:n,subscribe:i},children:e})}function G(){const e=(0,H.Z)(l.sX());return e!==0&&(0,r.jsxs)(O.Z,{variant:"button",type:"bare",to:"/accounts/uncategorized",style:{color:w.rS.errorText},children:[e," uncategorized ",e===1?"transaction":"transactions"]})}function X({style:e}){const t=(0,i.v9)(e=>e.prefs.local.isPrivacyEnabled);const{savePrefs:n}=(0,c.o)();const o={width:15,height:15};return(0,r.jsx)(k.Z,{type:"bare","aria-label":`${t?"Disable":"Enable"} privacy mode`,onClick:()=>n({isPrivacyEnabled:!t}),style:e,children:t?(0,r.jsx)(m.Z,{style:o}):(0,r.jsx)(y.Z,{style:o})})}function Q({style:e,isMobile:t=false}){const n=(0,i.v9)(e=>e.prefs.local.cloudFileId);const{sync:a}=(0,c.o)();const[s,l]=(0,o.useState)(false);const[f,h]=(0,o.useState)(null);(0,o.useEffect)(()=>{const e=(0,u.oL)("sync-event",({type:e,subtype:t,syncDisabled:r})=>{if(e==="start"){l(true);h(null)}else{setTimeout(()=>{l(false)},200)}if(e==="error"){if(t==="network"){h("offline")}else if(!n){h("local")}else{h("error")}}else if(e==="success"){h(r?"disabled":null)}});return e},[]);const p=f==="error"?w.rS.errorText:f==="disabled"||f==="offline"||f==="local"?w.rS.mobileHeaderTextSubdued:w.rS.mobileHeaderText;const v=f==="error"?w.rS.errorTextDark:f==="disabled"||f==="offline"||f==="local"?w.rS.tableTextLight:"inherit";const m=t?{color:p}:{};const y=t?{color:p,background:w.rS.mobileHeaderTextHover}:{};const x={color:p,justifyContent:"center",margin:10,paddingLeft:5,paddingRight:3};const b={...w.W2.text,fontWeight:500,marginLeft:2,marginRight:5};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.U,{keys:{"ctrl+s, cmd+s":()=>{a()}}}),(0,r.jsxs)(k.Z,{type:"bare","aria-label":"Sync",style:t?{...e,WebkitAppRegion:"none",...x}:{...e,WebkitAppRegion:"none",color:v},hoveredStyle:y,activeStyle:m,onClick:a,children:[t?f==="error"?(0,r.jsx)(g.Z,{width:14,height:14}):(0,r.jsx)(_.Z,{width:18,height:18,animating:s}):f==="error"?(0,r.jsx)(g.Z,{width:13}):(0,r.jsx)(_.Z,{animating:s}),(0,r.jsx)(z.Z,{style:t?{...b}:{marginLeft:3},children:f==="disabled"?"Disabled":f==="offline"?"Offline":"Sync"})]})]})}function J(){const e=(0,i.v9)(e=>e.prefs.global.maxMonths);const t=(0,i.v9)(e=>e.prefs.local.budgetType);const{saveGlobalPrefs:n}=(0,c.o)();const{sendEvent:a}=(0,o.useContext)(q);const[s,l]=(0,o.useState)(false);const[u,h]=(0,o.useState)(false);const p=(0,f.Z)("reportBudget");function g(){l(true);if(!s){const e=t==="rollover"?"report":"rollover";a({type:K,payload:{newBudgetType:e}})}}(0,o.useEffect)(()=>{l(false)},[t]);return(0,r.jsxs)(C.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,r.jsx)(A,{maxMonths:e||1,onChange:e=>n({maxMonths:e})}),p&&(0,r.jsxs)(C.Z,{style:{marginLeft:-5},children:[(0,r.jsx)(k.y,{type:"bare",loading:s,style:{alignSelf:"flex-start",padding:"4px 7px"},title:"Learn more about budgeting",onClick:()=>h(true),children:t==="report"?"Report budget":"Rollover budget"}),u&&(0,r.jsxs)(T.u,{position:"bottom-left",onClose:()=>h(false),style:{padding:10,maxWidth:400},children:[(0,r.jsxs)(R.Z,{children:["You are currently using a"," ",(0,r.jsxs)(z.Z,{style:{fontWeight:600},children:[t==="report"?"Report budget":"Rollover budget","."]})," ","Switching will not lose any data and you can always switch back."]}),(0,r.jsx)(R.Z,{children:(0,r.jsxs)(k.y,{type:"primary",loading:s,onClick:g,children:["Switch to a"," ",t==="report"?"Rollover budget":"Report budget"]})}),(0,r.jsx)(R.Z,{isLast:true,children:(0,r.jsx)(j.Z,{to:"https://actualbudget.org/docs/experimental/report-budget",linkColor:"muted",children:"How do these types of budgeting work?"})})]})]})]})}function ee({style:e}){const t=(0,h.Z)();const n=(0,a.TH)();const o=(0,B.Ap)();const{isNarrowWidth:l}=(0,x.F)();const u=(0,N.o1)();const c=(0,i.v9)(e=>e.prefs.global.floatingSidebar);return l?null:(0,r.jsxs)(C.Z,{style:{flexDirection:"row",alignItems:"center",padding:"0 15px",height:36,pointerEvents:"none","& *":{pointerEvents:"auto"},...!s.jU&&s.OS==="mac"&&c&&{paddingLeft:80},...e},children:[(c||o.alwaysFloats)&&(0,r.jsx)(k.Z,{type:"bare",style:{marginRight:8},onPointerEnter:e=>{if(e.pointerType==="mouse"){o.setHidden(false)}},onPointerLeave:e=>{if(e.pointerType==="mouse"){o.setHidden(true)}},onPointerUp:e=>{if(e.pointerType!=="mouse"){o.setHidden(!o.hidden)}},children:(0,r.jsx)(v.Z,{className:"menu",style:{width:15,height:15,color:w.rS.pageText,left:0}})}),(0,r.jsxs)(a.Z5,{children:[(0,r.jsx)(a.AW,{path:"/accounts",element:n.state?.goBack?(0,r.jsxs)(k.Z,{type:"bare",onClick:()=>t(-1),children:[(0,r.jsx)(p.Z,{width:10,height:10,style:{marginRight:5,color:"currentColor"}})," ","Back"]}):null}),(0,r.jsx)(a.AW,{path:"/accounts/:id",element:(0,r.jsx)(I,{})}),(0,r.jsx)(a.AW,{path:"/budget",element:(0,r.jsx)(J,{})}),(0,r.jsx)(a.AW,{path:"*",element:null})]}),(0,r.jsx)(C.Z,{style:{flex:1}}),(0,r.jsx)(G,{}),(0,r.jsx)($,{style:{marginLeft:10}}),(0,r.jsx)(X,{style:{marginLeft:10}}),u?(0,r.jsx)(Q,{style:{marginLeft:10}}):null,(0,r.jsx)(L.Z,{style:{marginLeft:10}})]})}},49374:function(e,t,n){"use strict";n.d(t,{NB:function(){return v},ZP:function(){return h},pn:function(){return p}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(99548);var s=n(76074);var l=n(45492);var u=n(24307);var c=n(25411);function f({items:e,getItemProps:t,highlightedIndex:n,embedded:i,renderAccountItemGroupHeader:a=g,renderAccountItem:s=m}){let l=null;return(0,r.jsx)(u.Z,{children:(0,r.jsx)(u.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,u)=>{const c=l?e.offbudget!==l.offbudget&&!e.closed||e.closed!==l.closed&&!e.offbudget:true;const f=`${e.closed?"Closed Accounts":e.offbudget?"Off Budget":"For Budget"}`;l=e;return[c?(0,r.jsx)(o.Fragment,{children:a({title:f})},f):null,(0,r.jsx)(o.Fragment,{children:s({...t?t({item:e}):null,item:e,highlighted:n===u,embedded:i})},e.id)]})})})}function h({embedded:e,includeClosedAccounts:t=true,renderAccountItemGroupHeader:n,renderAccountItem:o,closeOnBlur:i,...s}){let l=(0,a.gM)()||[];l=l.filter(e=>{return t?e:!e.closed}).sort((e,t)=>{if(e.closed===t.closed){return e.offbudget===t.offbudget?0:e.offbudget?1:-1}else{return e.closed?1:-1}});return(0,r.jsx)(c.ZP,{strict:true,highlightFirst:true,embedded:e,closeOnBlur:i,suggestions:l,renderItems:(t,i,a)=>(0,r.jsx)(f,{items:t,getItemProps:i,highlightedIndex:a,embedded:e,renderAccountItemGroupHeader:n,renderAccountItem:o}),...s})}function p({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:l.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-account-item-group`,...n,children:e})}function g(e){return(0,r.jsx)(p,{...e})}function v({item:e,className:t,highlighted:n,embedded:o,...a}){const{isNarrowWidth:u}=(0,s.F)();return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,i.iv)([{backgroundColor:n?o&&u?l.rS.menuItemBackgroundHover:l.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:o?4:0}])}`,"data-testid":`${e.name}-account-item`,"data-highlighted":n||undefined,...a,children:e.name})}function m(e){return(0,r.jsx)(v,{...e})}},25411:function(e,t,n){"use strict";n.d(t,{oo:function(){return rs},ZP:function(){return ru},PW:function(){return n6}});var r=n(43188);var o=n(66204);function i(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}var a=n(7896);var s=n(80753);var l=n(88960);function u(e,t){e.prototype=Object.create(t.prototype);e.prototype.constructor=e;(0,l.Z)(e,t)}var c=n(97641);var f=n.n(c);var h=n(55815);let p=e=>"object"==typeof e&&null!=e&&1===e.nodeType,g=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,v=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return g(n.overflowY,t)||g(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},m=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,y=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var x=(e,t)=>{var n,r,o,i,a,s;if("undefined"==typeof document)return[];let{scrollMode:l,block:u,inline:c,boundary:f,skipOverflowHiddenElements:h}=t,g="function"==typeof f?f:e=>e!==f;if(!p(e))throw new TypeError("Invalid target");let x=document.scrollingElement||document.documentElement,w=[],b=e;for(;p(b)&&g(b);){if(b=y(b),b===x){w.push(b);break}null!=b&&b===document.body&&v(b)&&!v(document.documentElement)||null!=b&&v(b,h)&&w.push(b)}let S=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,k=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,j=null!=(a=window.scrollX)?a:pageXOffset,C=null!=(s=window.scrollY)?s:pageYOffset,{height:T,width:E,top:I,right:_,bottom:M,left:D}=e.getBoundingClientRect(),P="start"===u||"nearest"===u?I:"end"===u?M:I+T/2,A="center"===c?D+E/2:"end"===c?_:D,O=[];for(let e=0;e<w.length;e++){let t=w[e],{height:n,width:r,top:o,right:i,bottom:a,left:s}=t.getBoundingClientRect();if("if-needed"===l&&I>=0&&D>=0&&M<=k&&_<=S&&I>=o&&M<=a&&D>=s&&_<=i)return O;let f=getComputedStyle(t),h=parseInt(f.borderLeftWidth,10),p=parseInt(f.borderTopWidth,10),g=parseInt(f.borderRightWidth,10),v=parseInt(f.borderBottomWidth,10),y=0,b=0,R="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-g:0,z="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-v:0,Z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,L="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(x===t)y="start"===u?P:"end"===u?P-k:"nearest"===u?m(C,C+k,k,p,v,C+P,C+P+T,T):P-k/2,b="start"===c?A:"center"===c?A-S/2:"end"===c?A-S:m(j,j+S,S,h,g,j+A,j+A+E,E),y=Math.max(0,y+C),b=Math.max(0,b+j);else{y="start"===u?P-o-p:"end"===u?P-a+v+z:"nearest"===u?m(o,a,n,p,v+z,P,P+T,T):P-(o+n/2)+z/2,b="start"===c?A-s-h:"center"===c?A-(s+r/2)+R/2:"end"===c?A-i+g+R:m(s,i,r,h,g+R,A,A+E,E);let{scrollLeft:e,scrollTop:l}=t;y=Math.max(0,Math.min(l+y/L,t.scrollHeight-n/L+z)),b=Math.max(0,Math.min(e+b/Z,t.scrollWidth-r/Z+R)),P+=l-y,A+=e-b}O.push({el:t,top:y,left:b})}return O};var w=function(e,t){w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return w(e,t)};function b(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");w(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){S=Object.assign||function e(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return S.apply(this,arguments)};function k(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++){if(t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o]))n[r[o]]=e[r[o]]}return n}function j(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)if(a=e[s])i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i;return o>3&&i&&Object.defineProperty(t,n,i),i}function C(e,t){return function(n,r){t(n,r,e)}}function T(e,t,n,r,o,i){function a(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var s=r.kind,l=s==="getter"?"get":s==="setter"?"set":"value";var u=!t&&e?r["static"]?e:e.prototype:null;var c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{});var f,h=false;for(var p=n.length-1;p>=0;p--){var g={};for(var v in r)g[v]=v==="access"?{}:r[v];for(var v in r.access)g.access[v]=r.access[v];g.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,n[p])(s==="accessor"?{get:c.get,set:c.set}:c[l],g);if(s==="accessor"){if(m===void 0)continue;if(m===null||typeof m!=="object")throw new TypeError("Object expected");if(f=a(m.get))c.get=f;if(f=a(m.set))c.set=f;if(f=a(m.init))o.unshift(f)}else if(f=a(m)){if(s==="field")o.unshift(f);else c[l]=f}}if(u)Object.defineProperty(u,r.name,c);h=true};function E(e,t,n){var r=arguments.length>2;for(var o=0;o<t.length;o++){n=r?t[o].call(e,n):t[o].call(e)}return r?n:void 0};function I(e){return typeof e==="symbol"?e:"".concat(e)};function _(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};function M(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function D(e,t,n,r){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})}function P(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),"throw":s(1),"return":s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];o=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}}var A=Object.create?function(e,t,n,r){if(r===undefined)r=n;var o=Object.getOwnPropertyDescriptor(t,n);if(!o||("get"in o?!t.__esModule:o.writable||o.configurable)){o={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,r,o)}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]};function O(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))A(t,e,n)}function R(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],a;try{while((t===void 0||t-- >0)&&!(o=r.next()).done)i.push(o.value)}catch(e){a={error:e}}finally{try{if(o&&!o.done&&(n=r["return"]))n.call(r)}finally{if(a)throw a.error}}return i}function Z(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(z(arguments[t]));return e}function L(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function N(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))}function B(e){return this instanceof B?(this.v=e,this):new B(e)}function H(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){if(r[e])o[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})}}function s(e,t){try{l(r[e](t))}catch(e){f(i[0][3],e)}}function l(e){e.value instanceof B?Promise.resolve(e.value.v).then(u,c):f(i[0][2],e)}function u(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){if(e(t),i.shift(),i.length)s(i[0][0],i[0][1])}}function F(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:B(e[r](t)),done:false}:o?o(t):t}:o}}function V(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof R==="function"?R(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,i){n=e[t](n),o(r,i,n.done,n.value)})}}function o(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function W(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var U=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function $(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))A(t,e,n)}U(t,e);return t}function K(e){return e&&e.__esModule?e:{default:e}}function q(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Y(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function G(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}var X={__extends:b,__assign:S,__rest:k,__decorate:j,__param:C,__metadata:M,__awaiter:D,__generator:P,__createBinding:A,__exportStar:O,__values:R,__read:z,__spread:Z,__spreadArrays:L,__spreadArray:N,__await:B,__asyncGenerator:H,__asyncDelegator:F,__asyncValues:V,__makeTemplateObject:W,__importStar:$,__importDefault:K,__classPrivateFieldGet:q,__classPrivateFieldSet:Y,__classPrivateFieldIn:G};var Q=0;function J(e){return typeof e==="function"?e:ee}function ee(){}function et(e,t){if(!e){return}var n=x(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n;t.scrollLeft=r})}function en(e,t,n){var r=e===t||t instanceof n.Node&&e.contains&&e.contains(t);return r}function er(e,t){var n;function r(){if(n){clearTimeout(n)}}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++){i[a]=arguments[a]}r();n=setTimeout(function(){n=null;e.apply(void 0,i)},t)}o.cancel=r;return o}function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++){r[o-1]=arguments[o]}return t.some(function(t){if(t){t.apply(void 0,[e].concat(r))}return e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function ei(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}return function(e){t.forEach(function(t){if(typeof t==="function"){t(e)}else if(t){t.current=e}})}}function ea(){return String(Q++)}function es(){Q=0}function el(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;if(!t){return""}if(!n){return"No results are available."}if(n!==r){return n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select."}return""}function eu(e,t){e=Array.isArray(e)?e[0]:e;if(!e&&t){return t}else{return e}}function ec(e){return typeof e.type==="string"}function ed(e){return e.props}function ef(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var eh=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function ep(e){if(e===void 0){e={}}var t={};eh.forEach(function(n){if(e.hasOwnProperty(n)){t[n]=e[n]}});return t}function eg(e,t){return Object.keys(e).reduce(function(n,r){n[r]=ev(t,r)?t[r]:e[r];return n},{})}function ev(e,t){return e[t]!==undefined}function em(e){var t=e.key,n=e.keyCode;if(n>=37&&n<=40&&t.indexOf("Arrow")!==0){return"Arrow"+t}return t}function ey(e){return Object.prototype.toString.call(e)==="[object Object]"}function ex(e,t,n,r,o){if(o===void 0){o=true}if(n===0){return-1}var i=n-1;if(typeof t!=="number"||t<0||t>=n){t=e>0?-1:i+1}var a=t+e;if(a<0){a=o?i:0}else if(a>i){a=o?0:i}var s=ew(e,a,n,r,o);if(s===-1){return t>=n?-1:t}return s}function ew(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled")){return t}if(e>0){for(var a=t+1;a<n;a++){if(!r(a).hasAttribute("disabled")){return a}}}else{for(var s=t-1;s>=0;s--){if(!r(s).hasAttribute("disabled")){return s}}}if(o){return e>0?ew(1,0,n,r,false):ew(-1,n-1,n,r,false)}return-1}function eb(e,t,n,r){if(r===void 0){r=true}return t.some(function(t){return t&&(en(t,e,n)||r&&en(t,n.document.activeElement,n))})}var eS=null&ⅇif(false){}var ek=er(function(e){eC(e).textContent=""},500);function ej(e,t){var n=eC(t);if(!e){return}n.textContent=e;ek(t)}function eC(e){if(e===void 0){e=document}var t=e.getElementById("a11y-status-message");if(t){return t}t=e.createElement("div");t.setAttribute("id","a11y-status-message");t.setAttribute("role","status");t.setAttribute("aria-live","polite");t.setAttribute("aria-relevant","additions text");Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"});e.body.appendChild(t);return t}var eT=false?0:0;var eE=false?0:1;var eI=false?0:2;var e_=false?0:3;var eM=false?0:4;var eD=false?0:5;var eP=false?0:6;var eA=false?0:7;var eO=false?0:8;var eR=false?0:9;var ez=false?0:10;var eZ=false?0:11;var eL=false?0:12;var eN=false?0:13;var eB=false?0:14;var eH=false?0:15;var eF=false?0:16;var eV=Object.freeze({__proto__:null,unknown:eT,mouseUp:eE,itemMouseEnter:eI,keyDownArrowUp:e_,keyDownArrowDown:eM,keyDownEscape:eD,keyDownEnter:eP,keyDownHome:eA,keyDownEnd:eO,clickItem:eR,blurInput:ez,changeInput:eZ,keyDownSpaceButton:eL,clickButton:eN,blurButton:eB,controlledPropUpdatedSelectedItem:eH,touchEnd:eF});var eW=["refKey","ref"],eU=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],e$=["onKeyDown","onBlur","onChange","onInput","onChangeText"],eK=["refKey","ref"],eq=["onMouseMove","onMouseDown","onClick","onPress","index","item"];var eY=function(){var e=function(e){u(t,e);function t(t){var n;n=e.call(this,t)||this;n.id=n.props.id||"downshift-"+ea();n.menuId=n.props.menuId||n.id+"-menu";n.labelId=n.props.labelId||n.id+"-label";n.inputId=n.props.inputId||n.id+"-input";n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e};n.input=null;n.items=[];n.itemCount=null;n.previousResultCount=0;n.timeoutIds=[];n.internalSetTimeout=function(e,t){var r=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(e){return e!==r});e()},t);n.timeoutIds.push(r)};n.setItemCount=function(e){n.itemCount=e};n.unsetItemCount=function(){n.itemCount=null};n.setHighlightedIndex=function(e,t){if(e===void 0){e=n.props.defaultHighlightedIndex}if(t===void 0){t={}}t=ep(t);n.internalSetState((0,a.Z)({highlightedIndex:e},t))};n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)};n.selectItem=function(e,t,r){t=ep(t);n.internalSetState((0,a.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),r)};n.selectItemAtIndex=function(e,t,r){var o=n.items[e];if(o==null){return}n.selectItem(o,t,r)};n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)};n.internalSetState=function(e,t){var r,o;var i={};var s=typeof e==="function";if(!s&&e.hasOwnProperty("inputValue")){n.props.onInputValueChange(e.inputValue,(0,a.Z)({},n.getStateAndHelpers(),e))}return n.setState(function(t){t=n.getState(t);var l=s?e(t):e;l=n.props.stateReducer(t,l);r=l.hasOwnProperty("selectedItem");var u={};if(r&&l.selectedItem!==t.selectedItem){o=l.selectedItem}l.type=l.type||eT;Object.keys(l).forEach(function(e){if(t[e]!==l[e]){i[e]=l[e]}if(e==="type"){return}l[e];if(!ev(n.props,e)){u[e]=l[e]}});if(s&&l.hasOwnProperty("inputValue")){n.props.onInputValueChange(l.inputValue,(0,a.Z)({},n.getStateAndHelpers(),l))}return u},function(){J(t)();var a=Object.keys(i).length>1;if(a){n.props.onStateChange(i,n.getStateAndHelpers())}if(r){n.props.onSelect(e.selectedItem,n.getStateAndHelpers())}if(o!==undefined){n.props.onChange(o,n.getStateAndHelpers())}n.props.onUserAction(i,n.getStateAndHelpers())})};n.rootRef=function(e){return n._rootNode=e};n.getRootProps=function(e,t){var r;var o=e===void 0?{}:e,s=o.refKey,l=s===void 0?"ref":s,u=o.ref,c=i(o,eW);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;n.getRootProps.called=true;n.getRootProps.refKey=l;n.getRootProps.suppressRefError=p;var g=n.getState(),v=g.isOpen;return(0,a.Z)((r={},r[l]=ei(u,n.rootRef),r.role="combobox",r["aria-expanded"]=v,r["aria-haspopup"]="listbox",r["aria-owns"]=v?n.menuId:null,r["aria-labelledby"]=n.labelId,r),c)};n.keyDownHandlers={ArrowDown:function e(e){var t=this;e.preventDefault();if(this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:eM})}else{this.internalSetState({isOpen:true,type:eM},function(){var e=t.getItemCount();if(e>0){var n=t.getState(),r=n.highlightedIndex;var o=ex(1,r,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(o,{type:eM})}})}},ArrowUp:function e(e){var t=this;e.preventDefault();if(this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:e_})}else{this.internalSetState({isOpen:true,type:e_},function(){var e=t.getItemCount();if(e>0){var n=t.getState(),r=n.highlightedIndex;var o=ex(-1,r,e,function(e){return t.getItemNodeFromIndex(e)});t.setHighlightedIndex(o,{type:e_})}})}},Enter:function e(e){if(e.which===229){return}var t=this.getState(),n=t.isOpen,r=t.highlightedIndex;if(n&&r!=null){e.preventDefault();var o=this.items[r];var i=this.getItemNodeFromIndex(r);if(o==null||i&&i.hasAttribute("disabled")){return}this.selectHighlightedItem({type:eP})}},Escape:function e(e){e.preventDefault();this.reset((0,a.Z)({type:eD},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}};n.buttonKeyDownHandlers=(0,a.Z)({},n.keyDownHandlers,{" ":function e(e){e.preventDefault();this.toggleMenu({type:eL})}});n.inputKeyDownHandlers=(0,a.Z)({},n.keyDownHandlers,{Home:function e(e){var t=this;var n=this.getState(),r=n.isOpen;if(!r){return}e.preventDefault();var o=this.getItemCount();if(o<=0||!r){return}var i=ew(1,0,o,function(e){return t.getItemNodeFromIndex(e)},false);this.setHighlightedIndex(i,{type:eA})},End:function e(e){var t=this;var n=this.getState(),r=n.isOpen;if(!r){return}e.preventDefault();var o=this.getItemCount();if(o<=0||!r){return}var i=ew(-1,o-1,o,function(e){return t.getItemNodeFromIndex(e)},false);this.setHighlightedIndex(i,{type:eO})}});n.getToggleButtonProps=function(e){var t=e===void 0?{}:e,r=t.onClick;t.onPress;var o=t.onKeyDown,s=t.onKeyUp,l=t.onBlur,u=i(t,eU);var c=n.getState(),f=c.isOpen;var h={onClick:eo(r,n.buttonHandleClick),onKeyDown:eo(o,n.buttonHandleKeyDown),onKeyUp:eo(s,n.buttonHandleKeyUp),onBlur:eo(l,n.buttonHandleBlur)};var p=u.disabled?{}:h;return(0,a.Z)({type:"button",role:"button","aria-label":f?"close menu":"open menu","aria-haspopup":true,"data-toggle":true},p,u)};n.buttonHandleKeyUp=function(e){e.preventDefault()};n.buttonHandleKeyDown=function(e){var t=em(e);if(n.buttonKeyDownHandlers[t]){n.buttonKeyDownHandlers[t].call((0,s.Z)(n),e)}};n.buttonHandleClick=function(e){e.preventDefault();if(n.props.environment.document.activeElement===n.props.environment.document.body){e.target.focus()}if(false){}else{n.internalSetTimeout(function(){return n.toggleMenu({type:eN})})}};n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout(function(){if(!n.isMouseDown&&(n.props.environment.document.activeElement==null||n.props.environment.document.activeElement.id!==n.inputId)&&n.props.environment.document.activeElement!==t){n.reset({type:eB})}})};n.getLabelProps=function(e){return(0,a.Z)({htmlFor:n.inputId,id:n.labelId},e)};n.getInputProps=function(e){var t=e===void 0?{}:e,r=t.onKeyDown,o=t.onBlur,s=t.onChange,l=t.onInput;t.onChangeText;var u=i(t,e$);var c;var f={};{c="onChange"}var h=n.getState(),p=h.inputValue,g=h.isOpen,v=h.highlightedIndex;if(!u.disabled){var m;f=(m={},m[c]=eo(s,l,n.inputHandleChange),m.onKeyDown=eo(r,n.inputHandleKeyDown),m.onBlur=eo(o,n.inputHandleBlur),m)}return(0,a.Z)({"aria-autocomplete":"list","aria-activedescendant":g&&typeof v==="number"&&v>=0?n.getItemId(v):null,"aria-controls":g?n.menuId:null,"aria-labelledby":u&&u["aria-label"]?undefined:n.labelId,autoComplete:"off",value:p,id:n.inputId},f,u)};n.inputHandleKeyDown=function(e){var t=em(e);if(t&&n.inputKeyDownHandlers[t]){n.inputKeyDownHandlers[t].call((0,s.Z)(n),e)}};n.inputHandleChange=function(e){n.internalSetState({type:eZ,isOpen:true,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})};n.inputHandleBlur=function(){n.internalSetTimeout(function(){var e=n.props.environment.document&&!!n.props.environment.document.activeElement&&!!n.props.environment.document.activeElement.dataset&&n.props.environment.document.activeElement.dataset.toggle&&n._rootNode&&n._rootNode.contains(n.props.environment.document.activeElement);if(!n.isMouseDown&&!e){n.reset({type:ez})}})};n.menuRef=function(e){n._menuNode=e};n.getMenuProps=function(e,t){var r;var o=e===void 0?{}:e,s=o.refKey,l=s===void 0?"ref":s,u=o.ref,c=i(o,eK);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;n.getMenuProps.called=true;n.getMenuProps.refKey=l;n.getMenuProps.suppressRefError=p;return(0,a.Z)((r={},r[l]=ei(u,n.menuRef),r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?null:n.labelId,r.id=n.menuId,r),c)};n.getItemProps=function(e){var t;var r=e===void 0?{}:e,o=r.onMouseMove,s=r.onMouseDown,l=r.onClick;r.onPress;var u=r.index,c=r.item,f=c===void 0?true?undefined:0:c,h=i(r,eq);if(u===undefined){n.items.push(f);u=n.items.indexOf(f)}else{n.items[u]=f}var p="onClick";var g=l;var v=(t={onMouseMove:eo(o,function(){if(u===n.getState().highlightedIndex){return}n.setHighlightedIndex(u,{type:eI});n.avoidScrolling=true;n.internalSetTimeout(function(){return n.avoidScrolling=false},250)}),onMouseDown:eo(s,function(e){e.preventDefault()})},t[p]=eo(g,function(){n.selectItemAtIndex(u,{type:eR})}),t);var m=h.disabled?{onMouseDown:v.onMouseDown}:v;return(0,a.Z)({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},m,h)};n.clearItems=function(){n.items=[]};n.reset=function(e,t){if(e===void 0){e={}}e=ep(e);n.internalSetState(function(t){var r=t.selectedItem;return(0,a.Z)({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(r)},e)},t)};n.toggleMenu=function(e,t){if(e===void 0){e={}}e=ep(e);n.internalSetState(function(t){var r=t.isOpen;return(0,a.Z)({isOpen:!r},r&&{highlightedIndex:n.props.defaultHighlightedIndex},e)},function(){var r=n.getState(),o=r.isOpen,i=r.highlightedIndex;if(o){if(n.getItemCount()>0&&typeof i==="number"){n.setHighlightedIndex(i,e)}}J(t)()})};n.openMenu=function(e){n.internalSetState({isOpen:true},e)};n.closeMenu=function(e){n.internalSetState({isOpen:false},e)};n.updateStatus=er(function(){var e=n.getState();var t=n.items[e.highlightedIndex];var r=n.getItemCount();var o=n.props.getA11yStatusMessage((0,a.Z)({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:t},e));n.previousResultCount=r;ej(o,n.props.environment.document)},200);var r=n.props,o=r.defaultHighlightedIndex,l=r.initialHighlightedIndex,u=l===void 0?o:l,c=r.defaultIsOpen,f=r.initialIsOpen,h=f===void 0?c:f,p=r.initialInputValue,g=p===void 0?"":p,v=r.initialSelectedItem,m=v===void 0?null:v;var y=n.getState({highlightedIndex:u,isOpen:h,inputValue:g,selectedItem:m});if(y.selectedItem!=null&&n.props.initialInputValue===undefined){y.inputValue=n.props.itemToString(y.selectedItem)}n.state=y;return n}var n=t.prototype;n.internalClearTimeouts=function e(){this.timeoutIds.forEach(function(e){clearTimeout(e)});this.timeoutIds=[]};n.getState=function e(e){if(e===void 0){e=this.state}return eg(e,this.props)};n.getItemCount=function e(){var e=this.items.length;if(this.itemCount!=null){e=this.itemCount}else if(this.props.itemCount!==undefined){e=this.props.itemCount}return e};n.getItemNodeFromIndex=function e(e){return this.props.environment.document.getElementById(this.getItemId(e))};n.scrollHighlightedItemIntoView=function e(){{var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)}};n.moveHighlightedIndex=function e(e,t){var n=this;var r=this.getItemCount();var o=this.getState(),i=o.highlightedIndex;if(r>0){var a=ex(e,i,r,function(e){return n.getItemNodeFromIndex(e)});this.setHighlightedIndex(a,t)}};n.getStateAndHelpers=function e(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,r=e.selectedItem,o=e.isOpen;var i=this.props.itemToString;var a=this.id;var s=this.getRootProps,l=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,f=this.getInputProps,h=this.getItemProps,p=this.openMenu,g=this.closeMenu,v=this.toggleMenu,m=this.selectItem,y=this.selectItemAtIndex,x=this.selectHighlightedItem,w=this.setHighlightedIndex,b=this.clearSelection,S=this.clearItems,k=this.reset,j=this.setItemCount,C=this.unsetItemCount,T=this.internalSetState;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:u,getMenuProps:c,getInputProps:f,getItemProps:h,reset:k,openMenu:p,closeMenu:g,toggleMenu:v,selectItem:m,selectItemAtIndex:y,selectHighlightedItem:x,setHighlightedIndex:w,clearSelection:b,clearItems:S,setItemCount:j,unsetItemCount:C,setState:T,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:o,selectedItem:r}};n.componentDidMount=function e(){var e=this;if(false){}{var t=function t(){e.isMouseDown=true};var n=function t(t){e.isMouseDown=false;var n=eb(t.target,[e._rootNode,e._menuNode],e.props.environment);if(!n&&e.getState().isOpen){e.reset({type:eE},function(){return e.props.onOuterClick(e.getStateAndHelpers())})}};var r=function t(){e.isTouchMove=false};var o=function t(){e.isTouchMove=true};var i=function t(t){var n=eb(t.target,[e._rootNode,e._menuNode],e.props.environment,false);if(!e.isTouchMove&&!n&&e.getState().isOpen){e.reset({type:eF},function(){return e.props.onOuterClick(e.getStateAndHelpers())})}};var a=this.props.environment;a.addEventListener("mousedown",t);a.addEventListener("mouseup",n);a.addEventListener("touchstart",r);a.addEventListener("touchmove",o);a.addEventListener("touchend",i);this.cleanup=function(){e.internalClearTimeouts();e.updateStatus.cancel();a.removeEventListener("mousedown",t);a.removeEventListener("mouseup",n);a.removeEventListener("touchstart",r);a.removeEventListener("touchmove",o);a.removeEventListener("touchend",i)}}};n.shouldScroll=function e(e,t){var n=this.props.highlightedIndex===undefined?this.getState():this.props,r=n.highlightedIndex;var o=t.highlightedIndex===undefined?e:t,i=o.highlightedIndex;var a=r&&this.getState().isOpen&&!e.isOpen;var s=r!==i;return a||s};n.componentDidUpdate=function e(e,t){if(false){}if(ev(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)){this.internalSetState({type:eH,inputValue:this.props.itemToString(this.props.selectedItem)})}if(!this.avoidScrolling&&this.shouldScroll(t,e)){this.scrollHighlightedItemIntoView()}{this.updateStatus()}};n.componentWillUnmount=function e(){this.cleanup()};n.render=function e(){var e=eu(this.props.children,ee);this.clearItems();this.getRootProps.called=false;this.getRootProps.refKey=undefined;this.getRootProps.suppressRefError=undefined;this.getMenuProps.called=false;this.getMenuProps.refKey=undefined;this.getMenuProps.suppressRefError=undefined;this.getLabelProps.called=false;this.getInputProps.called=false;var t=eu(e(this.getStateAndHelpers()));if(!t){return null}if(this.getRootProps.called||this.props.suppressRefError){if(false){}return t}else if(ec(t)){return(0,o.cloneElement)(t,this.getRootProps(ed(t)))}if(false){}return undefined};return t}(o.Component);e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:false,getA11yStatusMessage:el,itemToString:function e(e){if(e==null){return""}if(false){}return String(e)},onStateChange:ee,onInputValueChange:ee,onUserAction:ee,onChange:ee,onSelect:ee,onOuterClick:ee,selectedItemChanged:function e(e,t){return e!==t},environment:typeof window==="undefined"?{}:window,stateReducer:function e(e,t){return t},suppressRefError:false,scrollIntoView:et};e.stateChangeTypes=eV;return e}();false?0:void 0;var eG=eY;function eX(e,t){var n=t.refKey;if(!e){console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}}function eQ(e,t){var n=t.refKey;var r=n!=="ref";var o=!ec(e);if(o&&!r&&!isForwardRef(e)){console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps")}else if(!o&&r){console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"')}if(!isForwardRef(e)&&!ed(e)[n]){console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}}var eJ=["isInitialMount","highlightedIndex","items","environment"];var e0={highlightedIndex:-1,isOpen:false,selectedItem:null,inputValue:""};function e1(e,t,n){var r=e.props,o=e.type;var i={};Object.keys(t).forEach(function(r){e2(r,e,t,n);if(n[r]!==t[r]){i[r]=n[r]}});if(r.onStateChange&&Object.keys(i).length){r.onStateChange((0,a.Z)({type:o},i))}}function e2(e,t,n,r){var o=t.props,i=t.type;var s="on"+tt(e)+"Change";if(o[s]&&r[e]!==undefined&&r[e]!==n[e]){o[s]((0,a.Z)({type:i},r))}}function e4(e,t){return t.changes}function e5(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""}var e3=er(function(e,t){ej(e(),t)},200);var e6=typeof window!=="undefined"&&typeof window.document!=="undefined"&&typeof window.document.createElement!=="undefined"?o.useLayoutEffect:o.useEffect;function e8(e){var t=e.id,n=t===void 0?"downshift-"+ea():t,r=e.labelId,i=e.menuId,a=e.getItemId,s=e.toggleButtonId,l=e.inputId;var u=(0,o.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:s||n+"-toggle-button",inputId:l||n+"-input"});return u.current}function e7(e,t,n,r){var o,i;if(e===undefined){if(t===undefined){throw new Error(r)}o=n[t];i=t}else{i=t===undefined?n.indexOf(e):t;o=e}return[o,i]}function e9(e){return e?String(e):""}function te(e){return/^\S{1}$/.test(e)}function tt(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function tn(e){var t=(0,o.useRef)(e);t.current=e;return t}function tr(e,t,n){var r=(0,o.useRef)();var i=(0,o.useRef)();var s=(0,o.useCallback)(function(t,n){i.current=n;t=eg(t,n.props);var r=e(t,n);var o=n.props.stateReducer(t,(0,a.Z)({},n,{changes:r}));return o},[e]);var l=(0,o.useReducer)(s,t),u=l[0],c=l[1];var f=tn(n);var h=(0,o.useCallback)(function(e){return c((0,a.Z)({props:f.current},e))},[f]);var p=i.current;(0,o.useEffect)(function(){if(p&&r.current&&r.current!==u){e1(p,eg(r.current,p.props),u)}r.current=u},[u,n,p]);return[u,h]}function to(e,t,n){var r=tr(e,t,n),o=r[0],i=r[1];return[eg(o,n),i]}var ti={itemToString:e9,stateReducer:e4,getA11ySelectionMessage:e5,scrollIntoView:et,environment:typeof window==="undefined"?{}:window};function ta(e,t,n){if(n===void 0){n=e0}var r=e["default"+tt(t)];if(r!==undefined){return r}return n[t]}function ts(e,t,n){if(n===void 0){n=e0}var r=e[t];if(r!==undefined){return r}var o=e["initial"+tt(t)];if(o!==undefined){return o}return ta(e,t,n)}function tl(e){var t=ts(e,"selectedItem");var n=ts(e,"isOpen");var r=ts(e,"highlightedIndex");var o=ts(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function tu(e,t,n){var r=e.items,o=e.initialHighlightedIndex,i=e.defaultHighlightedIndex;var a=t.selectedItem,s=t.highlightedIndex;if(r.length===0){return-1}if(o!==undefined&&s===o){return o}if(i!==undefined){return i}if(a){return r.indexOf(a)}if(n===0){return-1}return n<0?r.length-1:0}function tc(e,t,n,r){var i=(0,o.useRef)({isMouseDown:false,isTouchMove:false});(0,o.useEffect)(function(){if((n==null?void 0:n.addEventListener)==null){return}var o=function e(){i.current.isMouseDown=true};var a=function o(o){i.current.isMouseDown=false;if(e&&!eb(o.target,t.map(function(e){return e.current}),n)){r()}};var s=function e(){i.current.isTouchMove=false};var l=function e(){i.current.isTouchMove=true};var u=function o(o){if(e&&!i.current.isTouchMove&&!eb(o.target,t.map(function(e){return e.current}),n,false)){r()}};n.addEventListener("mousedown",o);n.addEventListener("mouseup",a);n.addEventListener("touchstart",s);n.addEventListener("touchmove",l);n.addEventListener("touchend",u);return function e(){n.removeEventListener("mousedown",o);n.removeEventListener("mouseup",a);n.removeEventListener("touchstart",s);n.removeEventListener("touchmove",l);n.removeEventListener("touchend",u)}},[e,n]);return i}var td=function e(){return ee};if(false){}function tf(e,t,n){var r=n.isInitialMount,s=n.highlightedIndex,l=n.items,u=n.environment,c=i(n,eJ);(0,o.useEffect)(function(){if(r||false){return}e3(function(){return e((0,a.Z)({highlightedIndex:s,highlightedItem:l[s],resultCount:l.length},c))},u.document)},t)}function th(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,s=e.scrollIntoView;var l=(0,o.useRef)(true);e6(function(){if(t<0||!n||!Object.keys(r.current).length){return}if(l.current===false){l.current=true}else{s(i(t),a)}},[t]);return l}var tp=ee;if(false){}function tg(e,t,n){var r;if(n===void 0){n=true}var o=((r=e.items)==null?void 0:r.length)&&t>=0;return(0,a.Z)({isOpen:false,highlightedIndex:-1},o&&(0,a.Z)({selectedItem:e.items[t],isOpen:ta(e,"isOpen"),highlightedIndex:ta(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function tv(e,t,n){var r=t.type,o=t.props;var i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:tu(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:true,highlightedIndex:tu(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:false};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:ta(o,"highlightedIndex"),isOpen:ta(o,"isOpen"),selectedItem:ta(o,"selectedItem"),inputValue:ta(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,a.Z)({},e,i)}function tm(e){var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex;var a=t.toLowerCase();for(var s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length;var u=r[l];if(u!==undefined&&o(u).toLowerCase().startsWith(a)){var c=i(l);if(!(c===null||c===void 0?void 0:c.hasAttribute("disabled"))){return l}}}return n}var ty={items:f().array.isRequired,itemToString:f().func,getA11yStatusMessage:f().func,getA11ySelectionMessage:f().func,highlightedIndex:f().number,defaultHighlightedIndex:f().number,initialHighlightedIndex:f().number,isOpen:f().bool,defaultIsOpen:f().bool,initialIsOpen:f().bool,selectedItem:f().any,initialSelectedItem:f().any,defaultSelectedItem:f().any,id:f().string,labelId:f().string,menuId:f().string,getItemId:f().func,toggleButtonId:f().string,stateReducer:f().func,onSelectedItemChange:f().func,onHighlightedIndexChange:f().func,onStateChange:f().func,onIsOpenChange:f().func,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};function tx(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;if(!t){return""}if(!n){return"No results are available."}if(n!==r){return"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.")}return""}var tw=S(S({},ti),{getA11yStatusMessage:tx});var tb=ee;if(false){}var tS=false?0:0;var tk=false?0:1;var tj=false?0:2;var tC=false?0:3;var tT=false?0:4;var tE=false?0:5;var tI=false?0:6;var t_=false?0:7;var tM=false?0:8;var tD=false?0:9;var tP=false?0:10;var tA=false?0:11;var tO=false?0:12;var tR=false?0:13;var tz=false?0:14;var tZ=false?0:15;var tL=false?0:16;var tN=false?0:17;var tB=false?0:18;var tH=false?0:19;var tF=false?0:20;var tV=false?0:21;var tW=Object.freeze({__proto__:null,ToggleButtonClick:tS,ToggleButtonKeyDownArrowDown:tk,ToggleButtonKeyDownArrowUp:tj,ToggleButtonKeyDownCharacter:tC,ToggleButtonKeyDownEscape:tT,ToggleButtonKeyDownHome:tE,ToggleButtonKeyDownEnd:tI,ToggleButtonKeyDownEnter:t_,ToggleButtonKeyDownSpaceButton:tM,ToggleButtonKeyDownPageUp:tD,ToggleButtonKeyDownPageDown:tP,ToggleButtonBlur:tA,MenuMouseLeave:tO,ItemMouseMove:tR,ItemClick:tz,FunctionToggleMenu:tZ,FunctionOpenMenu:tL,FunctionCloseMenu:tN,FunctionSetHighlightedIndex:tB,FunctionSelectItem:tH,FunctionSetInputValue:tF,FunctionReset:tV});function tU(e,t){var n;var r=t.type,o=t.props,i=t.altKey;var s;switch(r){case tz:s={isOpen:ta(o,"isOpen"),highlightedIndex:ta(o,"highlightedIndex"),selectedItem:o.items[t.index]};break;case tC:{var l=t.key;var u=""+e.inputValue+l;var c=!e.isOpen&&e.selectedItem?o.items.indexOf(e.selectedItem):e.highlightedIndex;var f=tm({keysSoFar:u,highlightedIndex:c,items:o.items,itemToString:o.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});s={inputValue:u,highlightedIndex:f,isOpen:true}}break;case tk:{var h=e.isOpen?ex(1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false):i&&e.selectedItem==null?-1:tu(o,e,1);s={highlightedIndex:h,isOpen:true}}break;case tj:if(e.isOpen&&i){s=tg(o,e.highlightedIndex,false)}else{var p=e.isOpen?ex(-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false):tu(o,e,-1);s={highlightedIndex:p,isOpen:true}}break;case t_:case tM:s=tg(o,e.highlightedIndex,false);break;case tE:s={highlightedIndex:ew(1,0,o.items.length,t.getItemNodeFromIndex,false),isOpen:true};break;case tI:s={highlightedIndex:ew(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,false),isOpen:true};break;case tD:s={highlightedIndex:ex(-10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tP:s={highlightedIndex:ex(10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tT:s={isOpen:false,highlightedIndex:-1};break;case tA:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},e.highlightedIndex>=0&&((n=o.items)==null?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case tH:s={selectedItem:t.selectedItem};break;default:return tv(e,t,tW)}return(0,a.Z)({},e,s)}var t$=["onMouseLeave","refKey","onKeyDown","onBlur","ref"],tK=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],tq=["item","index","onMouseMove","onClick","onPress","refKey","ref","disabled"];tY.stateChangeTypes=tW;function tY(e){if(e===void 0){e={}}tb(e,tY);var t=(0,a.Z)({},tw,e);var n=t.items,r=t.scrollIntoView,s=t.environment,l=t.itemToString,u=t.getA11ySelectionMessage,c=t.getA11yStatusMessage;var f=tl(t);var h=to(tU,f,t),p=h[0],g=h[1];var v=p.isOpen,m=p.highlightedIndex,y=p.selectedItem,x=p.inputValue;var w=(0,o.useRef)(null);var b=(0,o.useRef)(null);var S=(0,o.useRef)({});var k=(0,o.useRef)(null);var j=e8(t);var C=(0,o.useRef)();var T=(0,o.useRef)(true);var E=tn({state:p,props:t});var I=(0,o.useCallback)(function(e){return S.current[j.getItemId(e)]},[j]);tf(c,[v,m,x,n],(0,a.Z)({isInitialMount:T.current,previousResultCount:C.current,items:n,environment:s,itemToString:l},p));tf(u,[y],(0,a.Z)({isInitialMount:T.current,previousResultCount:C.current,items:n,environment:s,itemToString:l},p));var _=th({menuElement:b.current,highlightedIndex:m,isOpen:v,itemRefs:S,scrollIntoView:r,getItemNodeFromIndex:I});(0,o.useEffect)(function(){k.current=er(function(e){e({type:tF,inputValue:""})},500);return function(){k.current.cancel()}},[]);(0,o.useEffect)(function(){if(!x){return}k.current(g)},[g,x]);tp({isInitialMount:T.current,props:t,state:p});(0,o.useEffect)(function(){if(T.current){return}C.current=n.length});var M=tc(v,[b,w],s,function(){g({type:tA})});var D=td("getMenuProps","getToggleButtonProps");(0,o.useEffect)(function(){T.current=false;return function(){T.current=true}},[]);(0,o.useEffect)(function(){if(!v){S.current={}}},[v]);var P=(0,o.useMemo)(function(){return{ArrowDown:function e(e){e.preventDefault();g({type:tk,getItemNodeFromIndex:I,altKey:e.altKey})},ArrowUp:function e(e){e.preventDefault();g({type:tj,getItemNodeFromIndex:I,altKey:e.altKey})},Home:function e(e){e.preventDefault();g({type:tE,getItemNodeFromIndex:I})},End:function e(e){e.preventDefault();g({type:tI,getItemNodeFromIndex:I})},Escape:function e(){if(E.current.state.isOpen){g({type:tT})}},Enter:function e(e){e.preventDefault();g({type:E.current.state.isOpen?t_:tS})},PageUp:function e(e){if(E.current.state.isOpen){e.preventDefault();g({type:tD,getItemNodeFromIndex:I})}},PageDown:function e(e){if(E.current.state.isOpen){e.preventDefault();g({type:tP,getItemNodeFromIndex:I})}}," ":function e(e){e.preventDefault();var t=E.current.state;if(!t.isOpen){g({type:tS});return}if(t.inputValue){g({type:tC,key:" ",getItemNodeFromIndex:I})}else{g({type:tM})}}}},[g,I,E]);var A=(0,o.useCallback)(function(){g({type:tZ})},[g]);var O=(0,o.useCallback)(function(){g({type:tN})},[g]);var R=(0,o.useCallback)(function(){g({type:tL})},[g]);var z=(0,o.useCallback)(function(e){g({type:tB,highlightedIndex:e})},[g]);var Z=(0,o.useCallback)(function(e){g({type:tH,selectedItem:e})},[g]);var L=(0,o.useCallback)(function(){g({type:tV})},[g]);var N=(0,o.useCallback)(function(e){g({type:tF,inputValue:e})},[g]);var B=(0,o.useCallback)(function(e){return(0,a.Z)({id:j.labelId,htmlFor:j.toggleButtonId},e)},[j]);var H=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onMouseLeave,s=r.refKey,l=s===void 0?"ref":s;r.onKeyDown;r.onBlur;var u=r.ref,c=i(r,t$);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;var v=function e(){g({type:tO})};D("getMenuProps",p,l,b);return(0,a.Z)((n={},n[l]=ei(u,function(e){b.current=e}),n.id=j.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?undefined:""+j.labelId,n.onMouseLeave=eo(o,v),n),c)},[g,D,j]);var F=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onBlur,s=r.onClick;r.onPress;var l=r.onKeyDown,u=r.refKey,c=u===void 0?"ref":u,f=r.ref,h=i(r,tK);var p=t===void 0?{}:t,v=p.suppressRefError,m=v===void 0?false:v;var y=E.current.state;var x=function e(){g({type:tS})};var b=function e(){if(y.isOpen&&!M.current.isMouseDown){g({type:tA})}};var S=function e(e){var t=em(e);if(t&&P[t]){P[t](e)}else if(te(t)){g({type:tC,key:t,getItemNodeFromIndex:I})}};var k=(0,a.Z)((n={},n[c]=ei(f,function(e){w.current=e}),n["aria-activedescendant"]=y.isOpen&&y.highlightedIndex>-1?j.getItemId(y.highlightedIndex):"",n["aria-controls"]=j.menuId,n["aria-expanded"]=E.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=h&&h["aria-label"]?undefined:""+j.labelId,n.id=j.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=eo(o,b),n),h);if(!h.disabled){{k.onClick=eo(s,x);k.onKeyDown=eo(l,S)}}D("getToggleButtonProps",m,c,w);return k},[E,j,D,g,M,P,I]);var V=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.item,o=n.index,s=n.onMouseMove,l=n.onClick;n.onPress;var u=n.refKey,c=u===void 0?"ref":u,f=n.ref,h=n.disabled,p=i(n,tq);var v=E.current,m=v.state,x=v.props;var w=e7(r,o,x.items,"Pass either item or index to getItemProps!"),b=w[0],k=w[1];var C=function e(){if(k===m.highlightedIndex){return}_.current=false;g({type:tR,index:k,disabled:h})};var T=function e(){g({type:tz,index:k})};var I=(0,a.Z)((t={disabled:h,role:"option","aria-selected":""+(b===y),id:j.getItemId(k)},t[c]=ei(f,function(e){if(e){S.current[j.getItemId(k)]=e}}),t),p);if(!h){{I.onClick=eo(l,T)}}I.onMouseMove=eo(s,C);return I},[E,y,j,_,g]);return{getToggleButtonProps:F,getLabelProps:B,getMenuProps:H,getItemProps:V,toggleMenu:A,openMenu:R,closeMenu:O,setHighlightedIndex:z,selectItem:Z,reset:L,setInputValue:N,highlightedIndex:m,isOpen:v,selectedItem:y,inputValue:x}}var tG=false?0:0;var tX=false?0:1;var tQ=false?0:2;var tJ=false?0:3;var t0=false?0:4;var t1=false?0:5;var t2=false?0:6;var t4=false?0:7;var t5=false?0:8;var t3=false?0:9;var t6=false?0:10;var t8=false?0:11;var t7=false?0:12;var t9=false?0:13;var ne=false?0:14;var nt=false?0:15;var nn=false?0:16;var no=false?0:17;var ni=false?0:18;var na=false?0:19;var ns=false?0:20;var nl=false?0:21;var nu=false?0:22;var nc=Object.freeze({__proto__:null,InputKeyDownArrowDown:tG,InputKeyDownArrowUp:tX,InputKeyDownEscape:tQ,InputKeyDownHome:tJ,InputKeyDownEnd:t0,InputKeyDownPageUp:t1,InputKeyDownPageDown:t2,InputKeyDownEnter:t4,InputChange:t5,InputBlur:t3,InputFocus:t6,MenuMouseLeave:t8,ItemMouseMove:t7,ItemClick:t9,ToggleButtonClick:ne,FunctionToggleMenu:nt,FunctionOpenMenu:nn,FunctionCloseMenu:no,FunctionSetHighlightedIndex:ni,FunctionSelectItem:na,FunctionSetInputValue:ns,FunctionReset:nl,ControlledPropUpdatedSelectedItem:nu});function nd(e){var t=tl(e);var n=t.selectedItem;var r=t.inputValue;if(r===""&&n&&e.defaultInputValue===undefined&&e.initialInputValue===undefined&&e.inputValue===undefined){r=e.itemToString(n)}return(0,a.Z)({},t,{inputValue:r})}var nf={items:f().array.isRequired,itemToString:f().func,selectedItemChanged:f().func,getA11yStatusMessage:f().func,getA11ySelectionMessage:f().func,highlightedIndex:f().number,defaultHighlightedIndex:f().number,initialHighlightedIndex:f().number,isOpen:f().bool,defaultIsOpen:f().bool,initialIsOpen:f().bool,selectedItem:f().any,initialSelectedItem:f().any,defaultSelectedItem:f().any,inputValue:f().string,defaultInputValue:f().string,initialInputValue:f().string,id:f().string,labelId:f().string,menuId:f().string,getItemId:f().func,inputId:f().string,toggleButtonId:f().string,stateReducer:f().func,onSelectedItemChange:f().func,onHighlightedIndexChange:f().func,onStateChange:f().func,onIsOpenChange:f().func,onInputValueChange:f().func,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};function nh(e,t,n){var r=(0,o.useRef)();var i=tr(e,t,n),a=i[0],s=i[1];(0,o.useEffect)(function(){if(!ev(n,"selectedItem")){return}if(n.selectedItemChanged(r.current,n.selectedItem)){s({type:nu,inputValue:n.itemToString(n.selectedItem)})}r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem},[a.selectedItem,n.selectedItem]);return[eg(a,n),s]}var np=ee;if(false){}var ng=(0,a.Z)({},ti,{selectedItemChanged:function e(e,t){return e!==t},getA11yStatusMessage:el});function nv(e,t){var n;var r=t.type,o=t.props,i=t.altKey;var s;switch(r){case t9:s={isOpen:ta(o,"isOpen"),highlightedIndex:ta(o,"highlightedIndex"),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case tG:if(e.isOpen){s={highlightedIndex:ex(1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,true)}}else{s={highlightedIndex:i&&e.selectedItem==null?-1:tu(o,e,1,t.getItemNodeFromIndex),isOpen:o.items.length>=0}}break;case tX:if(e.isOpen){if(i){s=tg(o,e.highlightedIndex)}else{s={highlightedIndex:ex(-1,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,true)}}}else{s={highlightedIndex:tu(o,e,-1,t.getItemNodeFromIndex),isOpen:o.items.length>=0}}break;case t4:s=tg(o,e.highlightedIndex);break;case tQ:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case t1:s={highlightedIndex:ex(-10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case t2:s={highlightedIndex:ex(10,e.highlightedIndex,o.items.length,t.getItemNodeFromIndex,false)};break;case tJ:s={highlightedIndex:ew(1,0,o.items.length,t.getItemNodeFromIndex,false)};break;case t0:s={highlightedIndex:ew(-1,o.items.length-1,o.items.length,t.getItemNodeFromIndex,false)};break;case t3:s=(0,a.Z)({isOpen:false,highlightedIndex:-1},e.highlightedIndex>=0&&((n=o.items)==null?void 0:n.length)&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case t5:s={isOpen:true,highlightedIndex:ta(o,"highlightedIndex"),inputValue:t.inputValue};break;case t6:s={isOpen:true,highlightedIndex:tu(o,e,0)};break;case na:s={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case nu:s={inputValue:t.inputValue};break;default:return tv(e,t,nc)}return(0,a.Z)({},e,s)}var nm=["onMouseLeave","refKey","ref"],ny=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],nx=["onClick","onPress","refKey","ref"],nw=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];nb.stateChangeTypes=nc;function nb(e){if(e===void 0){e={}}np(e,nb);var t=(0,a.Z)({},ng,e);var n=t.initialIsOpen,r=t.defaultIsOpen,s=t.items,l=t.scrollIntoView,u=t.environment,c=t.getA11yStatusMessage,f=t.getA11ySelectionMessage,h=t.itemToString;var p=nd(t);var g=nh(nv,p,t),v=g[0],m=g[1];var y=v.isOpen,x=v.highlightedIndex,w=v.selectedItem,b=v.inputValue;var S=(0,o.useRef)(null);var k=(0,o.useRef)({});var j=(0,o.useRef)(null);var C=(0,o.useRef)(null);var T=(0,o.useRef)(true);var E=e8(t);var I=(0,o.useRef)();var _=tn({state:v,props:t});var M=(0,o.useCallback)(function(e){return k.current[E.getItemId(e)]},[E]);tf(c,[y,x,b,s],(0,a.Z)({isInitialMount:T.current,previousResultCount:I.current,items:s,environment:u,itemToString:h},v));tf(f,[w],(0,a.Z)({isInitialMount:T.current,previousResultCount:I.current,items:s,environment:u,itemToString:h},v));var D=th({menuElement:S.current,highlightedIndex:x,isOpen:y,itemRefs:k,scrollIntoView:l,getItemNodeFromIndex:M});tp({isInitialMount:T.current,props:t,state:v});(0,o.useEffect)(function(){var e=n||r||y;if(e&&j.current){j.current.focus()}},[]);(0,o.useEffect)(function(){if(T.current){return}I.current=s.length});var P=tc(y,[j,S,C],u,function(){m({type:t3,selectItem:false})});var A=td("getInputProps","getMenuProps");(0,o.useEffect)(function(){T.current=false;return function(){T.current=true}},[]);(0,o.useEffect)(function(){var e;if(!y){k.current={}}else if(((e=u.document)==null?void 0:e.activeElement)!==j.current){var t;j==null?void 0:(t=j.current)==null?void 0:t.focus()}},[y,u]);var O=(0,o.useMemo)(function(){return{ArrowDown:function e(e){e.preventDefault();m({type:tG,altKey:e.altKey,getItemNodeFromIndex:M})},ArrowUp:function e(e){e.preventDefault();m({type:tX,altKey:e.altKey,getItemNodeFromIndex:M})},Home:function e(e){if(!_.current.state.isOpen){return}e.preventDefault();m({type:tJ,getItemNodeFromIndex:M})},End:function e(e){if(!_.current.state.isOpen){return}e.preventDefault();m({type:t0,getItemNodeFromIndex:M})},Escape:function e(e){var t=_.current.state;if(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1){e.preventDefault();m({type:tQ})}},Enter:function e(e){var t=_.current.state;if(!t.isOpen||e.which===229){return}e.preventDefault();m({type:t4,getItemNodeFromIndex:M})},PageUp:function e(e){if(_.current.state.isOpen){e.preventDefault();m({type:t1,getItemNodeFromIndex:M})}},PageDown:function e(e){if(_.current.state.isOpen){e.preventDefault();m({type:t2,getItemNodeFromIndex:M})}}}},[m,_,M]);var R=(0,o.useCallback)(function(e){return(0,a.Z)({id:E.labelId,htmlFor:E.inputId},e)},[E]);var z=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onMouseLeave,s=r.refKey,l=s===void 0?"ref":s,u=r.ref,c=i(r,nm);var f=t===void 0?{}:t,h=f.suppressRefError,p=h===void 0?false:h;A("getMenuProps",p,l,S);return(0,a.Z)((n={},n[l]=ei(u,function(e){S.current=e}),n.id=E.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?undefined:""+E.labelId,n.onMouseLeave=eo(o,function(){m({type:t8})}),n),c)},[m,A,E]);var Z=(0,o.useCallback)(function(e){var t,n;var r=e===void 0?{}:e,o=r.item,s=r.index,l=r.refKey,u=l===void 0?"ref":l,c=r.ref,f=r.onMouseMove,h=r.onMouseDown,p=r.onClick;r.onPress;var g=r.disabled,v=i(r,ny);var y=_.current,x=y.props,w=y.state;var b=e7(o,s,x.items,"Pass either item or index to getItemProps!"),S=b[1];var j="onClick";var C=p;var T=function e(){if(S===w.highlightedIndex){return}D.current=false;m({type:t7,index:S,disabled:g})};var I=function e(){m({type:t9,index:S})};var M=function e(e){return e.preventDefault()};return(0,a.Z)((t={},t[u]=ei(c,function(e){if(e){k.current[E.getItemId(S)]=e}}),t.disabled=g,t.role="option",t["aria-selected"]=""+(S===w.highlightedIndex),t.id=E.getItemId(S),t),!g&&(n={},n[j]=eo(C,I),n),{onMouseMove:eo(f,T),onMouseDown:eo(h,M)},v)},[m,_,D,E]);var L=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.onClick;n.onPress;var o=n.refKey,s=o===void 0?"ref":o,l=n.ref,u=i(n,nx);var c=_.current.state;var f=function e(){m({type:ne})};return(0,a.Z)((t={},t[s]=ei(l,function(e){C.current=e}),t["aria-controls"]=E.menuId,t["aria-expanded"]=c.isOpen,t.id=E.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&(0,a.Z)({},{onClick:eo(r,f)}),u)},[m,_,E]);var N=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.onKeyDown,s=r.onChange,l=r.onInput,u=r.onFocus,c=r.onBlur;r.onChangeText;var f=r.refKey,h=f===void 0?"ref":f,p=r.ref,g=i(r,nw);var v=t===void 0?{}:t,y=v.suppressRefError,x=y===void 0?false:y;A("getInputProps",x,h,j);var w=_.current.state;var b=function e(e){var t=em(e);if(t&&O[t]){O[t](e)}};var S=function e(e){m({type:t5,inputValue:e.target.value})};var k=function e(e){if(w.isOpen&&!P.current.isMouseDown){m({type:t3,selectItem:e.relatedTarget!==null})}};var C=function e(){if(!w.isOpen){m({type:t6})}};var T="onChange";var I={};if(!g.disabled){var M;I=(M={},M[T]=eo(s,l,S),M.onKeyDown=eo(o,b),M.onBlur=eo(c,k),M.onFocus=eo(u,C),M)}return(0,a.Z)((n={},n[h]=ei(p,function(e){j.current=e}),n["aria-activedescendant"]=w.isOpen&&w.highlightedIndex>-1?E.getItemId(w.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=E.menuId,n["aria-expanded"]=w.isOpen,n["aria-labelledby"]=g&&g["aria-label"]?undefined:""+E.labelId,n.autoComplete="off",n.id=E.inputId,n.role="combobox",n.value=w.inputValue,n),I,g)},[m,O,_,P,A,E]);var B=(0,o.useCallback)(function(){m({type:nt})},[m]);var H=(0,o.useCallback)(function(){m({type:no})},[m]);var F=(0,o.useCallback)(function(){m({type:nn})},[m]);var V=(0,o.useCallback)(function(e){m({type:ni,highlightedIndex:e})},[m]);var W=(0,o.useCallback)(function(e){m({type:na,selectedItem:e})},[m]);var U=(0,o.useCallback)(function(e){m({type:ns,inputValue:e})},[m]);var $=(0,o.useCallback)(function(){m({type:nl})},[m]);return{getItemProps:Z,getLabelProps:R,getMenuProps:z,getInputProps:N,getToggleButtonProps:L,toggleMenu:B,openMenu:F,closeMenu:H,setHighlightedIndex:V,setInputValue:U,selectItem:W,reset:$,highlightedIndex:x,isOpen:y,selectedItem:w,inputValue:b}}var nS={activeIndex:-1,selectedItems:[]};function nk(e,t){return ts(e,t,nS)}function nj(e,t){return ta(e,t,nS)}function nC(e){var t=nk(e,"activeIndex");var n=nk(e,"selectedItems");return{activeIndex:t,selectedItems:n}}function nT(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey){return false}var t=e.target;if(t instanceof HTMLInputElement&&t.value!==""&&(t.selectionStart!==0||t.selectionEnd!==0)){return false}return true}function nE(e){var t=e.removedSelectedItem,n=e.itemToString;return n(t)+" has been removed."}var nI={selectedItems:f().array,initialSelectedItems:f().array,defaultSelectedItems:f().array,itemToString:f().func,getA11yRemovalMessage:f().func,stateReducer:f().func,activeIndex:f().number,initialActiveIndex:f().number,defaultActiveIndex:f().number,onActiveIndexChange:f().func,onSelectedItemsChange:f().func,keyNavigationNext:f().string,keyNavigationPrevious:f().string,environment:f().shape({addEventListener:f().func,removeEventListener:f().func,document:f().shape({getElementById:f().func,activeElement:f().any,body:f().any})})};var n_={itemToString:ti.itemToString,stateReducer:ti.stateReducer,environment:ti.environment,getA11yRemovalMessage:nE,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"};var nM=ee;if(false){}var nD=false?0:0;var nP=false?0:1;var nA=false?0:2;var nO=false?0:3;var nR=false?0:4;var nz=false?0:5;var nZ=false?0:6;var nL=false?0:7;var nN=false?0:8;var nB=false?0:9;var nH=false?0:10;var nF=false?0:11;var nV=false?0:12;var nW=Object.freeze({__proto__:null,SelectedItemClick:nD,SelectedItemKeyDownDelete:nP,SelectedItemKeyDownBackspace:nA,SelectedItemKeyDownNavigationNext:nO,SelectedItemKeyDownNavigationPrevious:nR,DropdownKeyDownNavigationPrevious:nz,DropdownKeyDownBackspace:nZ,DropdownClick:nL,FunctionAddSelectedItem:nN,FunctionRemoveSelectedItem:nB,FunctionSetSelectedItems:nH,FunctionSetActiveIndex:nF,FunctionReset:nV});function nU(e,t){var n=t.type,r=t.index,o=t.props,i=t.selectedItem;var s=e.activeIndex,l=e.selectedItems;var u;switch(n){case nD:u={activeIndex:r};break;case nR:u={activeIndex:s-1<0?0:s-1};break;case nO:u={activeIndex:s+1>=l.length?-1:s+1};break;case nA:case nP:{if(s<0){break}var c=s;if(l.length===1){c=-1}else if(s===l.length-1){c=l.length-2}u=(0,a.Z)({selectedItems:[].concat(l.slice(0,s),l.slice(s+1))},{activeIndex:c});break}case nz:u={activeIndex:l.length-1};break;case nZ:u={selectedItems:l.slice(0,l.length-1)};break;case nN:u={selectedItems:[].concat(l,[i])};break;case nL:u={activeIndex:-1};break;case nB:{var f=s;var h=l.indexOf(i);if(h<0){break}if(l.length===1){f=-1}else if(h===l.length-1){f=l.length-2}u={selectedItems:[].concat(l.slice(0,h),l.slice(h+1)),activeIndex:f};break}case nH:{var p=t.selectedItems;u={selectedItems:p};break}case nF:{var g=t.activeIndex;u={activeIndex:g};break}case nV:u={activeIndex:nj(o,"activeIndex"),selectedItems:nj(o,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return(0,a.Z)({},e,u)}var n$=["refKey","ref","onClick","onKeyDown","selectedItem","index"],nK=["refKey","ref","onKeyDown","onClick","preventKeyAction"];nq.stateChangeTypes=nW;function nq(e){if(e===void 0){e={}}nM(e,nq);var t=(0,a.Z)({},n_,e);var n=t.getA11yRemovalMessage,r=t.itemToString,s=t.environment,l=t.keyNavigationNext,u=t.keyNavigationPrevious;var c=to(nU,nC(t),t),f=c[0],h=c[1];var p=f.activeIndex,g=f.selectedItems;var v=(0,o.useRef)(true);var m=(0,o.useRef)(null);var y=(0,o.useRef)(g);var x=(0,o.useRef)();x.current=[];var w=tn({state:f,props:t});(0,o.useEffect)(function(){if(v.current||false){return}if(g.length<y.current.length){var e=y.current.find(function(e){return g.indexOf(e)<0});ej(n({itemToString:r,resultCount:g.length,removedSelectedItem:e,activeIndex:p,activeSelectedItem:g[p]}),s.document)}y.current=g},[g.length]);(0,o.useEffect)(function(){if(v.current){return}if(p===-1&&m.current){m.current.focus()}else if(x.current[p]){x.current[p].focus()}},[p]);tp({isInitialMount:v.current,props:t,state:f});var b=td("getDropdownProps");(0,o.useEffect)(function(){v.current=false;return function(){v.current=true}},[]);var S=(0,o.useMemo)(function(){var e;return e={},e[u]=function(){h({type:nR})},e[l]=function(){h({type:nO})},e.Delete=function e(){h({type:nP})},e.Backspace=function e(){h({type:nA})},e},[h,l,u]);var k=(0,o.useMemo)(function(){var e;return e={},e[u]=function(e){if(nT(e)){h({type:nz})}},e.Backspace=function e(e){if(nT(e)){h({type:nZ})}},e},[h,u]);var j=(0,o.useCallback)(function(e){var t;var n=e===void 0?{}:e,r=n.refKey,o=r===void 0?"ref":r,s=n.ref,l=n.onClick,u=n.onKeyDown,c=n.selectedItem,f=n.index,p=i(n,n$);var g=w.current.state;var v=e7(c,f,g.selectedItems,"Pass either item or index to getSelectedItemProps!"),m=v[1];var y=m>-1&&m===g.activeIndex;var b=function e(){h({type:nD,index:m})};var k=function e(e){var t=em(e);if(t&&S[t]){S[t](e)}};return(0,a.Z)((t={},t[o]=ei(s,function(e){if(e){x.current.push(e)}}),t.tabIndex=y?0:-1,t.onClick=eo(l,b),t.onKeyDown=eo(u,k),t),p)},[h,w,S]);var C=(0,o.useCallback)(function(e,t){var n;var r=e===void 0?{}:e,o=r.refKey,s=o===void 0?"ref":o,l=r.ref,u=r.onKeyDown,c=r.onClick,f=r.preventKeyAction,p=f===void 0?false:f,g=i(r,nK);var v=t===void 0?{}:t,y=v.suppressRefError,x=y===void 0?false:y;b("getDropdownProps",x,s,m);var w=function e(e){var t=em(e);if(t&&k[t]){k[t](e)}};var S=function e(){h({type:nL})};return(0,a.Z)((n={},n[s]=ei(l,function(e){if(e){m.current=e}}),n),!p&&{onKeyDown:eo(u,w),onClick:eo(c,S)},g)},[h,k,b]);var T=(0,o.useCallback)(function(e){h({type:nN,selectedItem:e})},[h]);var E=(0,o.useCallback)(function(e){h({type:nB,selectedItem:e})},[h]);var I=(0,o.useCallback)(function(e){h({type:nH,selectedItems:e})},[h]);var _=(0,o.useCallback)(function(e){h({type:nF,activeIndex:e})},[h]);var M=(0,o.useCallback)(function(){h({type:nV})},[h]);return{getSelectedItemProps:j,getDropdownProps:C,addSelectedItem:T,removeSelectedItem:E,setSelectedItems:I,setActiveIndex:_,reset:M,selectedItems:g,activeIndex:p}}var nY=n(99818);var nG=n(5202);var nX=n(45492);var nQ=n(56816);var nJ=n(383);var n0=n(24307);var n1=n(19808);const n2={};function n4(e,t,n){if(e){const e=t.findIndex(e=>e.id===n);return e===-1?null:t[e]}if(typeof n==="string"){throw new Error("value can be string only if strict = false")}return n}function n5(e){if(e==null){return""}else if(typeof e==="string"){return e}return e.name||""}function n3(e){if(typeof e==="string"){return e}return e?e.id:null}function n6(e,t){return n5(e).toLowerCase().includes(t.toLowerCase())}function n8(e,t){return e.filter(e=>n6(e,t))}function n7(e,t,n,r,o){let i=null;if(!t){i=o}else{if(r==null){const e=n.find(e=>e.id===o);if(e){i=e.id}}else if(r<n.length){i=n[r].id}}e?.(i,o)}function n9(e){return(0,r.jsx)(nJ.ZP,{...e})}function re(e,t,n){return(0,r.jsx)("div",{children:e.map((e,r)=>{const i=n5(e);return(0,o.createElement)("div",{...t({item:e}),role:"button",key:i,className:`${(0,nY.iv)({padding:5,cursor:"default",backgroundColor:n===r?nX.rS.menuAutoCompleteBackgroundHover:null})}`},i)})})}function rt(e){return e.code==="Enter"}function rn(e){return e?n5(e):""}function ro({focused:e,embedded:t=false,containerProps:n,labelProps:i={},inputProps:a={},suggestions:s,tooltipStyle:l,tooltipProps:u,renderInput:c=n9,renderItems:f=re,itemToString:h=rn,shouldSaveFromKey:p=rt,filterSuggestions:g=n8,openOnFocus:v=true,getHighlightedIndex:m,highlightFirst:y,onUpdate:x,strict:w,onSelect:b,tableBehavior:S,closeOnBlur:k=true,value:j,isMulti:C=false}){const[T,E]=(0,o.useState)(()=>n4(w,s,j));const[I,_]=(0,o.useState)(T?n5(T):"");const[M,D]=(0,o.useState)(false);const[P,A]=(0,o.useState)(T);const O=(0,o.useMemo)(()=>g(s,I),[g,s,I]);const[R,z]=(0,o.useState)(null);const[Z,L]=(0,o.useState)(t);(0,o.useEffect)(()=>{E(n4(w,s,j))},[j,s,w]);function N(e){const n=e===undefined?j:e;const r=n4(w,s,n);E(r);_(r?n5(r):"");A(r);z(null);L(t);D(false)}function B(){_("");E(null);z(null);D(false)}const H=M?O||s:s;return(0,r.jsx)(eG,{onSelect:(e,{inputValue:t})=>{E(e);z(null);if(C){_("")}else{L(false)}if(b){setTimeout(()=>{b(n3(e),t)},0)}},highlightedIndex:R,selectedItem:T||null,itemToString:h,inputValue:I,isOpen:Z,onInputValueChange:(e,t)=>{if(!document.hasFocus()){return}if([eG.stateChangeTypes.controlledPropUpdatedSelectedItem,eG.stateChangeTypes.touchEnd].includes(t.type)){return}const n=g(s,e);if(e===""){if(t.type!==eG.stateChangeTypes.clickItem){n7(x,w,n,null,null)}z(null)}else{const r=e=>{return y&&e.length?0:null};const o=(m||r)(n);if(t.type!==eG.stateChangeTypes.clickItem){n7(x,w,n,o,e)}z(o)}_(e);D(true)},onStateChange:e=>{if(S&&e.type===eG.stateChangeTypes.mouseUp){return}if("highlightedIndex"in e&&e.type!==eG.stateChangeTypes.changeInput){z(e.highlightedIndex)}if("selectedItem"in e){E(e.selectedItem)}if(Z&&(e.type===eG.stateChangeTypes.keyDownArrowUp||e.type===eG.stateChangeTypes.keyDownArrowDown)){n7(x,w,O||s,e.highlightedIndex!=null?e.highlightedIndex:R,I)}n2.lastChangeType=e.type},labelId:i?.id,children:({getInputProps:o,getItemProps:i,isOpen:h,inputValue:g,highlightedIndex:m})=>(0,r.jsxs)("div",{className:`view ${(0,nY.iv)({display:"flex"})}`,...n,children:[c(o({focused:e,...a,onFocus:e=>{a.onFocus?.(e);if(v){L(true)}},onBlur:e=>{e["preventDownshiftDefault"]=true;a.onBlur?.(e);if(!k)return;if(!S){if(e.target.value===""){b?.(null,e.target.value);E(null);L(false);return}const t=T?n3(T):null;N(t)}else{L(false)}},onKeyDown:e=>{const{onKeyDown:n}=a||{};if(h){if(e.key==="Enter"){if(m!=null){if(n2.lastChangeType===eG.stateChangeTypes.itemMouseEnter){e.preventDefault()}else{e.stopPropagation()}}else if(!w){e.stopPropagation();b(I,e.target.value);return B()}else{e.preventDefault();n?.(e)}}else if(p(e)){e.preventDefault();n?.(e)}}if(e.key==="Escape"){e.nativeEvent["preventDownshiftDefault"]=true;if(!t){e.stopPropagation()}n7(x,w,s,null,n3(P));_(n5(P));E(n4(w,s,P));z(null);L(t?true:false)}},onChange:e=>{const{onChange:t}=a||{};t?.(e.target.value)}})),h&&H.length>0&&(t?(0,r.jsx)(n0.Z,{style:{marginTop:5},"data-testid":"autocomplete",children:f(H,i,m,g)}):(0,r.jsx)(n1.u,{position:"bottom-stretch",offset:2,style:{padding:0,backgroundColor:nX.rS.menuAutoCompleteBackground,color:nX.rS.menuAutoCompleteText,minWidth:200,...l},...u,"data-testid":"autocomplete",children:f(H,i,m,g)}))]})})}function ri({name:e,onRemove:t}){return(0,r.jsxs)(n0.Z,{style:{alignItems:"center",flexDirection:"row",backgroundColor:nX.rS.pillBackgroundSelected,padding:"2px 4px",margin:"2px",borderRadius:4},children:[e,(0,r.jsx)(nQ.Z,{type:"bare",style:{marginLeft:1},onClick:t,children:(0,r.jsx)(nG.Z,{style:{width:8,height:8}})})]})}function ra({value:e,onSelect:t,suggestions:n,strict:i,...a}){const[s,l]=(0,o.useState)(false);const u=(0,o.useRef)();(0,o.useEffect)(()=>{u.current=e});function c(n){const r=e.filter(e=>e!==n);t(r)}function f(n){if(n){n=n.trim();t([...e,n],n)}}function h(t,n){if(t.key==="Backspace"&&t.currentTarget.value===""){c(e[e.length-1])}n?.(t)}return(0,r.jsx)(ru,{...a,isMulti:true,value:null,suggestions:n.filter(t=>!e.includes(n3(t))),onSelect:f,highlightFirst:true,strict:i,tooltipProps:{forceLayout:u.current!==e},renderInput:t=>(0,r.jsxs)(n0.Z,{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",alignItems:"center",backgroundColor:nX.rS.tableBackground,borderRadius:4,border:"1px solid "+nX.rS.formInputBorder,...s&&{border:"1px solid "+nX.rS.formInputBorderSelected,boxShadow:"0 1px 1px "+nX.rS.formInputShadowSelected}},children:[e.map((e,t)=>{e=n4(i,n,e);return e&&(0,r.jsx)(ri,{name:n5(e),onRemove:()=>c(n3(e))},n3(e)||t)}),(0,r.jsx)(nJ.ZP,{...t,onKeyDown:e=>h(e,t.onKeyDown),onFocus:e=>{l(true);t.onFocus(e)},onBlur:e=>{l(false);t.onBlur(e)},style:{flex:1,minWidth:30,border:0,":focus":{border:0,boxShadow:"none"},...t.style}})]})})}function rs({show:e=true,embedded:t,children:n}){return e&&(0,r.jsx)(n0.Z,{style:{flexShrink:0,...t?{paddingTop:5}:{padding:5}},onMouseDown:e=>e.preventDefault(),children:n})}function rl(e,t){return t}function ru({multi:e,...t}){if(rl(t,e)){return(0,r.jsx)(ra,{...t})}return(0,r.jsx)(ro,{...t})}},691:function(e,t,n){"use strict";n.d(t,{PM:function(){return x},UH:function(){return g},ZP:function(){return p}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(24317);var s=n(76074);var l=n(45492);var u=n(77644);var c=n(24307);var f=n(25411);function h({items:e,getItemProps:t,highlightedIndex:n,embedded:i,footer:a,renderSplitTransactionButton:s=y,renderCategoryItemGroupHeader:l=v,renderCategoryItem:u=w}){let f=null;return(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(c.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,a)=>{if(e.id==="split"){return s({key:"split",...t?t({item:e}):null,highlighted:n===a,embedded:i})}const c=e.cat_group!==f;f=e.cat_group;return(0,r.jsxs)(o.Fragment,{children:[c&&(0,r.jsx)(o.Fragment,{children:l({title:e.group?.name})},e.group?.name),(0,r.jsx)(o.Fragment,{children:u({...t?t({item:e}):null,item:e,highlighted:n===a,embedded:i})},e.id)]},e.id)})}),a]})}function p({categoryGroups:e,showSplitOption:t,embedded:n,closeOnBlur:i,renderSplitTransactionButton:a,renderCategoryItemGroupHeader:s,renderCategoryItem:l,...u}){const c=(0,o.useMemo)(()=>e.reduce((e,t)=>e.concat(t.categories.filter(e=>e.cat_group===t.id).map(e=>({...e,group:t}))),t?[{id:"split",name:""}]:[]),[t,e]);return(0,r.jsx)(f.ZP,{strict:true,highlightFirst:true,embedded:n,closeOnBlur:i,getHighlightedIndex:e=>{if(e.length===0){return null}else if(e[0].id==="split"){return e.length>1?1:null}return 0},filterSuggestions:(e,t)=>{return e.filter(e=>{return e.id==="split"||(0,f.PW)(e,t)})},suggestions:c,renderItems:(e,t,o)=>(0,r.jsx)(h,{items:e,embedded:n,getItemProps:t,highlightedIndex:o,renderSplitTransactionButton:a,renderCategoryItemGroupHeader:s,renderCategoryItem:l}),...u})}function g({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:l.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-category-item-group`,...n,children:e})}function v(e){return(0,r.jsx)(g,{...e})}function m({Icon:e,highlighted:t,embedded:n,style:o,...i}){const{isNarrowWidth:f}=(0,s.F)();return(0,r.jsxs)(c.Z,{role:"button",style:{backgroundColor:t?n&&f?l.rS.menuItemBackgroundHover:l.rS.menuAutoCompleteBackgroundHover:"transparent",borderRadius:n?4:0,flexShrink:0,flexDirection:"row",alignItems:"center",fontSize:11,fontWeight:500,color:l.rS.noticeTextMenu,padding:"6px 8px",":active":{backgroundColor:"rgba(100, 100, 100, .25)"},...o},"data-testid":"split-transaction-button",...i,children:[(0,r.jsx)(u.Z,{style:{lineHeight:0},children:e?(0,r.jsx)(e,{style:{marginRight:5}}):(0,r.jsx)(a.Z,{width:10,height:10,style:{marginRight:5}})}),"Split Transaction"]})}function y(e){return(0,r.jsx)(m,{...e})}function x({item:e,className:t,highlighted:n,embedded:o,...a}){const{isNarrowWidth:u}=(0,s.F)();return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,i.iv)([{backgroundColor:n?o&&u?l.rS.menuItemBackgroundHover:l.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:o?4:0}])}`,"data-testid":`${e.name}-category-item`,"data-highlighted":n||undefined,...a,children:e.name})}function w(e){return(0,r.jsx)(x,{...e})}},5710:function(e,t,n){"use strict";n.d(t,{GP:function(){return k},ZP:function(){return S},hA:function(){return E},nr:function(){return C}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(99818);var s=n(13910);var l=n(99548);var u=n(68761);var c=n(18748);var f=n(74684);var h=n(76074);var p=n(45492);var g=n(56816);var v=n(24307);var m=n(25411);function y(e,t,n){let r=n?(0,c.nc)(e,n):e;if(t&&r){r=r.filter(e=>!!e.transfer_acct)}return r||[]}function x(e,t){if(e==="new"&&!t.startsWith("new:")){return"new:"+t}return e}function w(e){if(typeof e==="string"&&e.startsWith("new:")){return"new"}return e}function b({items:e,getItemProps:t,highlightedIndex:n,embedded:i,inputValue:a,renderCreatePayeeButton:s=j,renderPayeeItemGroupHeader:l=T,renderPayeeItem:u=I,footer:c}){const f=e.filtered;let h=null;e=[...e];if(e[0].id==="new"){const[t,...n]=e;h=t;e=n}const g=h?1:0;let m=null;return(0,r.jsxs)(v.Z,{children:[(0,r.jsxs)(v.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:[h&&s({...t?t({item:h}):null,payeeName:a,highlighted:n===0,embedded:i}),e.map((a,s)=>{const c=a.transfer_acct?"account":"payee";let h;if(c==="payee"&&m!==c){h="Payees"}else if(c==="account"&&m!==c){h="Transfer To/From"}const v=s===e.length-1&&f;m=c;return(0,r.jsxs)(o.Fragment,{children:[h&&(0,r.jsx)(o.Fragment,{children:l({title:h})},`title-${s}`),(0,r.jsx)(o.Fragment,{children:u({...t?t({item:a}):null,item:a,highlighted:n===s+g,embedded:i})},a.id),v&&(0,r.jsx)("div",{style:{fontSize:11,padding:5,color:p.rS.pageTextLight,textAlign:"center"},children:"More payees are available, search to find them"})]},a.id)})]}),c]})}function S({value:e,inputProps:t,showMakeTransfer:n=true,showManagePayees:a=false,tableBehavior:c,embedded:f,closeOnBlur:h,onUpdate:p,onSelect:v,onManagePayees:S,renderCreatePayeeButton:k=j,renderPayeeItemGroupHeader:C=T,renderPayeeItem:E=I,accounts:_,payees:M,...D}){const P=(0,u.n4)();if(!M){M=P}const A=(0,l.gM)();if(!_){_=A}const[O,R]=(0,o.useState)(false);const[z,Z]=(0,o.useState)("");const L=!!z;const N=(0,o.useMemo)(()=>{const e=y(M,O,_);if(!L){return e}return[{id:"new",name:""},...e]},[M,O,_,L]);const B=(0,i.I0)();async function H(e,t){if(c){v?.(x(e,t))}else{const n=()=>B((0,s.fz)(t));if(Array.isArray(e)){e=await Promise.all(e.map(e=>e==="new"?n():e))}else{if(e==="new"){e=await n()}}v?.(e)}}const[F,V]=(0,o.useState)(false);return(0,r.jsx)(m.ZP,{strict:true,embedded:f,value:w(e),suggestions:N,tableBehavior:c,closeOnBlur:h,itemToString:e=>{if(!e){return""}else if(e.id==="new"){return z}return e.name},focused:F,inputProps:{...t,onBlur:()=>{Z("");V(false)},onFocus:()=>V(true),onChange:Z},onUpdate:(e,t)=>p&&p(x(e,t)),onSelect:H,getHighlightedIndex:e=>{if(e.length>1&&e[0].id==="new"){return 1}return 0},filterSuggestions:(e,t)=>{let n=e.filter(e=>{if(e.id==="new"){return!t||t===""||O?false:true}return(0,m.PW)(e,t)});n.sort((e,n)=>{const r=e.name.toLowerCase().startsWith(t.toLowerCase());const o=n.name.toLowerCase().startsWith(t.toLowerCase());const i=e.name.toLowerCase()===t.toLowerCase();const a=n.name.toLowerCase()===t.toLowerCase();if(e.id==="new"){return-1}else if(n.id==="new"){return 1}else{if(i&&!a){return-1}else if(!i&&a){return 1}else{if(r===o){return 0}else if(r&&!o){return-1}else{return 1}}}});const r=n.length>100;n=n.slice(0,100);n.filtered=r;if(n.length>=2&&n[0].id==="new"){if(n[1].name.toLowerCase()===t.toLowerCase()&&!n[1].transfer_acct){return n.slice(1)}}return n},renderItems:(e,t,o,i)=>(0,r.jsx)(b,{items:e,getItemProps:t,highlightedIndex:o,inputValue:i,embedded:f,renderCreatePayeeButton:k,renderPayeeItemGroupHeader:C,renderPayeeItem:E,footer:(0,r.jsxs)(m.oo,{embedded:f,children:[n&&(0,r.jsx)(g.Z,{type:O?"menuSelected":"menu",style:a&&{marginBottom:5},onClick:()=>{p?.(null);R(!O)},children:"Make Transfer"}),a&&(0,r.jsx)(g.Z,{type:"menu",onClick:()=>S(),children:"Manage Payees"})]})}),...D},O?"transfers":"all")}function k({Icon:e,payeeName:t,highlighted:n,embedded:o,style:i,...a}){const{isNarrowWidth:s}=(0,h.F)();return(0,r.jsxs)(v.Z,{"data-testid":"create-payee-button",style:{display:"block",flexShrink:0,color:o&&s?p.rS.menuItemText:p.rS.noticeTextMenu,borderRadius:o?4:0,fontSize:11,fontWeight:500,padding:"6px 9px",backgroundColor:n?o&&s?p.rS.menuItemBackgroundHover:p.rS.menuAutoCompleteBackgroundHover:"transparent",":active":{backgroundColor:"rgba(100, 100, 100, .25)"},...i},...a,children:[e?(0,r.jsx)(e,{style:{marginRight:5,display:"inline-block"}}):(0,r.jsx)(f.Z,{width:8,height:8,style:{marginRight:5,display:"inline-block"}}),"Create Payee “",t,"”"]})}function j(e){return(0,r.jsx)(k,{...e})}function C({title:e,style:t,...n}){return(0,r.jsx)("div",{style:{color:p.rS.menuAutoCompleteTextHeader,padding:"4px 9px",...t},"data-testid":`${e}-payee-item-group`,...n,children:e})}function T(e){return(0,r.jsx)(C,{...e})}function E({item:e,className:t,highlighted:n,embedded:o,...i}){const{isNarrowWidth:s}=(0,h.F)();return(0,r.jsx)("div",{role:"button",className:`${t} ${(0,a.iv)([{backgroundColor:n?o&&s?p.rS.menuItemBackgroundHover:p.rS.menuAutoCompleteBackgroundHover:"transparent",borderRadius:o?4:0,padding:4,paddingLeft:20}])}`,"data-testid":`${e.name}-payee-item`,"data-highlighted":n||undefined,...i,children:e.name})}function I(e){return(0,r.jsx)(E,{...e})}},75025:function(e,t,n){"use strict";n.d(t,{j:function(){return a},s:function(){return s}});var r=n(43188);var o=n(66204);const i=(0,o.createContext)(null);function a({children:e}){const[t,n]=(0,o.useState)(1);return(0,r.jsx)(i.Provider,{value:{displayMax:t,setDisplayMax:n},children:e})}function s(){return(0,o.useContext)(i)}},24630:function(e,t,n){"use strict";n.d(t,{Tv:function(){return s},iU:function(){return a},uC:function(){return l}});var r=n(43188);var o=n(66204);var i=n(73416);function a(e,t,n){return{start:t<e.start?e.start:t,end:n>e.end?e.end:n}}const s=(0,o.createContext)(null);function l({startMonth:e,numMonths:t,monthBounds:n,type:o,children:l}){const u=i.zI(e,t-1);const c=a(n,e,u);const f=i.Do(c.start,c.end);return(0,r.jsx)(s.Provider,{value:{months:f,type:o},children:l})}},19664:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(24307);var l=n(52582);function u({title:e,current:t,target:n,ProgressComponent:o,style:u}){return(0,r.jsxs)(s.Z,{style:{lineHeight:1.5,flexDirection:"row",alignItems:"center",fontSize:14,...u},children:[(0,r.jsx)(o,{current:t,target:n}),(0,r.jsxs)(s.Z,{style:{marginLeft:10},children:[(0,r.jsx)(s.Z,{children:(0,r.jsx)(a.Z,{style:{color:i.rS.pageTextLight},children:e})}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(l.Z,{binding:t,type:"financial"}),(0,r.jsxs)(a.Z,{style:{color:i.rS.pageTextSubdued,fontStyle:"italic"},children:[" of ",(0,r.jsx)(l.Z,{binding:n,type:"financial",style:i.W2.notFixed})]})]})]})]})}},78125:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(19664);var s=n(45492);var l=n(57651);var u=n(22265);var c=n(585);function f({current:e,target:t}){let n=(0,l.Z)(e)||0;const o=(0,l.Z)(t)||0;n=Math.max(-n,0);let i;let a=false;if(n>o){i=(n-o)/o;a=true}else{i=(0,u.Z)(n,o)}return(0,r.jsx)(c.Z,{progress:i,color:a?s.rS.errorText:s.rS.noticeTextLight,backgroundColor:a?s.rS.errorBackground:s.rS.pageBackground,style:{width:20,height:20}})};function h({style:e}){return(0,r.jsx)(a.Z,{title:"Expenses",current:i.u8.totalSpent,target:i.u8.totalBudgetedExpense,ProgressComponent:f,style:e})}},28376:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(19664);var s=n(45492);var l=n(57651);var u=n(22265);var c=n(585);function f({current:e,target:t}){let n=(0,l.Z)(e)||0;const o=(0,l.Z)(t)||0;let i=false;if(n<0){i=true;n=-n}const a=(0,u.Z)(n,o);return(0,r.jsx)(c.Z,{progress:a,color:i?s.rS.errorText:s.rS.noticeTextLight,backgroundColor:i?s.rS.errorBackground:s.rS.pageBackground,style:{width:20,height:20}})};function h({style:e}){return(0,r.jsx)(a.Z,{title:"Income",current:i.u8.totalIncome,target:i.u8.totalBudgetedIncome,ProgressComponent:f,style:e})}},585:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(66204);function i({style:e,progress:t,color:n,backgroundColor:o}){const i=4;const a=2*Math.PI*i;const s=t*a;const l=a;return(0,r.jsxs)("svg",{viewBox:"0 0 20 20",style:e,children:[(0,r.jsx)("circle",{r:"10",cx:"10",cy:"10",fill:o}),(0,r.jsx)("circle",{r:i,cx:"10",cy:"10",fill:"none",stroke:n,strokeWidth:i*2,strokeDasharray:`${s} ${l}`,transform:"rotate(-90) translate(-20)"})," "]})}},59343:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(46055);var s=n(45492);var l=n(30715);var u=n(5320);var c=n(77644);var f=n(24307);var h=n(44710);var p=n(5291);var g=n(57651);var v=n(19808);var m=n(31038);function y({projected:e,style:t}){const n=(0,g.Z)(a.u8.totalBudgetedSaved)||0;const o=(0,g.Z)(a.u8.totalSaved)||0;const y=(0,p.Z)();const x=e?n:o;const w=x<0;return(0,r.jsxs)(f.Z,{style:{alignItems:"center",fontSize:14,...t},children:[e?(0,r.jsx)(c.Z,{style:{color:s.rS.pageTextLight},children:"Projected Savings:"}):(0,r.jsx)(f.Z,{style:{color:s.rS.pageTextLight},children:w?"Overspent:":"Saved:"}),(0,r.jsx)(u.Z,{renderContent:()=>{if(!e){const e=o-n;return(0,r.jsxs)(v.u,{position:"bottom-center",style:{padding:10,fontSize:14},children:[(0,r.jsx)(l.Z,{left:"Projected Savings:",right:(0,r.jsx)(c.Z,{style:{...(0,m.XE)(n),...s.W2.tnum},children:y(n,"financial-with-sign")})}),(0,r.jsx)(l.Z,{left:"Difference:",right:(0,r.jsx)(c.Z,{style:{...(0,m.XE)(e),...s.W2.tnum},children:y(e,"financial-with-sign")})})]})}return null},children:(0,r.jsx)(f.Z,{className:`${(0,i.iv)([{fontSize:25,color:e?s.rS.warningText:w?s.rS.errorTextDark:s.rS.upcomingText}])}`,children:(0,r.jsx)(h.ZP,{blurIntensity:7,children:y(x,"financial")})})})]})}},22265:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){if(t===0){if(e>0){return 1}return 0}return e/t}},45990:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(43188);var o=n(66204);var i=n(55833);var a=n(11535);var s=n(89362);var l=n(9579);var u=n(691);var c=n(56816);var f=n(71053);var h=n(383);var p=n(24307);var g=n(57201);var v=n(19808);var m=n(31038);function y({initialAmount:e,initialAmountName:t,showToBeBudgeted:n,onSubmit:y,onClose:x,position:w="bottom-right",...b}){const S=(0,i.M)();const k=(0,o.useContext)(g.Z);let{grouped:j}=(0,l.Z)();j=j.filter(e=>!e.is_income);if(n){j=(0,m.iX)(j)}const[C,T]=(0,o.useState)(null);const[E,I]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{if(t){const e=await S.get(k,t);T((0,s.zA)(Math.max(e.value,0)))}else{T((0,s.zA)(Math.max(e,0)))}})()},[]);function _(){const e=(0,a.Z)(C,null);if(e&&E){y((0,s.l9)(e),E);x()}}if(C===null){return null}return(0,r.jsxs)(v.u,{position:w,width:200,style:{padding:10},onClose:x,...b,children:[(0,r.jsx)(p.Z,{style:{marginBottom:5},children:"Transfer this amount:"}),(0,r.jsx)(p.Z,{children:(0,r.jsx)(f.Z,{children:(0,r.jsx)(h.ZP,{value:C,onChange:e=>T(e.target["value"]),onEnter:_})})}),(0,r.jsx)(p.Z,{style:{margin:"10px 0 5px 0"},children:"To:"}),(0,r.jsx)(u.ZP,{categoryGroups:j,value:null,openOnFocus:true,onUpdate:e=>{},onSelect:e=>I(e),inputProps:{onEnter:_,placeholder:"(none)"}}),(0,r.jsx)(p.Z,{style:{alignItems:"flex-end",marginTop:10},children:(0,r.jsx)(c.Z,{type:"primary",style:{fontSize:12,paddingTop:3,paddingBottom:3},onClick:_,children:"Transfer"})})]})}},36467:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(46055);var s=n(45492);var l=n(24924);var u=n(5320);var c=n(31941);var f=n(24307);var h=n(44710);var p=n(5291);var g=n(50606);var v=n(57651);var m=n(19808);var y=n(55833);var x=n(11535);var w=n(89362);var b=n(56816);var S=n(71053);var k=n(383);var j=n(57201);function C({onSubmit:e,onClose:t,position:n="bottom-right",...i}){const a=(0,y.M)();const s=(0,o.useContext)(j.Z);const[l,u]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{const e=await a.get(s,"to-budget");u((0,w.zA)(Math.max(e.value,0)))})()},[]);function c(){const n=(0,x.Z)(l,null);if(n){e((0,w.l9)(n))}t()}if(l===null){return null}return(0,r.jsxs)(m.u,{position:n,width:200,style:{padding:10},onClose:t,...i,children:[(0,r.jsx)(f.Z,{style:{marginBottom:5},children:"Hold this amount:"}),(0,r.jsx)(f.Z,{children:(0,r.jsx)(S.Z,{children:(0,r.jsx)(k.ZP,{value:l,onChange:e=>u(e.target.value),onEnter:c})})}),(0,r.jsx)(f.Z,{style:{alignItems:"flex-end",marginTop:10},children:(0,r.jsx)(b.Z,{type:"primary",style:{fontSize:12,paddingTop:3,paddingBottom:3},onClick:c,children:"Hold"})})]})}var T=n(45990);var E=n(28536);function I({month:e,prevMonthName:t,showTotalsTooltipOnHover:n,onBudgetAction:y,style:x,amountStyle:w,menuTooltipProps:b,totalsTooltipProps:S,holdTooltipProps:k,transferTooltipProps:j}){const[I,_]=(0,o.useState)(null);const M=(0,g.Z)(a.aK.toBudget);const D=(0,v.Z)({name:a.aK.toBudget,value:0});const P=(0,p.Z)();const A=parseInt(D);const O=isNaN(A)?0:A;const R=O<0;return(0,r.jsxs)(f.Z,{style:{alignItems:"center",...x},children:[(0,r.jsx)(l.Z,{children:R?"Overbudgeted:":"To Budget:"}),(0,r.jsxs)(f.Z,{children:[(0,r.jsx)(u.Z,{disabled:!n||I,renderContent:()=>(0,r.jsx)(m.u,{position:"bottom-center",...S,children:(0,r.jsx)(E.Z,{prevMonthName:t,style:{padding:7}})}),children:(0,r.jsx)(h.ZP,{blurIntensity:7,children:(0,r.jsx)(l.Z,{onClick:()=>_("actions"),"data-cellname":M,className:`${(0,i.iv)([s.W2.veryLargeText,{fontWeight:400,userSelect:"none",cursor:"pointer",color:R?s.rS.errorText:s.rS.pageTextPositive,marginBottom:-1,borderBottom:"1px solid transparent",":hover":{borderColor:R?s.rS.errorBorder:s.rS.pageTextPositive}},w])}`,children:P(O,"financial")})})}),I==="actions"&&(0,r.jsx)(m.u,{position:"bottom-center",width:200,style:{padding:0},onClose:()=>_(null),...b,children:(0,r.jsx)(c.Z,{onMenuSelect:t=>{if(t==="reset-buffer"){y(e,"reset-hold");_(null)}else{_(t)}},items:[{name:"transfer",text:"Move to a category"},{name:"buffer",text:"Hold for next month"},{name:"reset-buffer",text:"Reset next month’s buffer"}]})}),I==="buffer"&&(0,r.jsx)(C,{onClose:()=>_(null),onSubmit:t=>{y(e,"hold",{amount:t})},...k}),I==="transfer"&&(0,r.jsx)(T.Z,{initialAmount:A,onClose:()=>_(null),onSubmit:(t,n)=>{y(e,"transfer-available",{amount:t,category:n})},...j})]})]})}},28536:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(43188);var o=n(66204);var i=n(46055);var a=n(45492);var s=n(30715);var l=n(24924);var u=n(5320);var c=n(24307);var f=n(52582);var h=n(5291);var p=n(19808);function g({prevMonthName:e,style:t}){const n=(0,h.Z)();return(0,r.jsxs)(c.Z,{style:{flexDirection:"row",lineHeight:1.5,justifyContent:"center",...a.W2.smallText,...t},children:[(0,r.jsxs)(c.Z,{style:{textAlign:"right",marginRight:10,minWidth:50},children:[(0,r.jsx)(u.Z,{style:{flexShrink:0},renderContent:()=>(0,r.jsxs)(p.u,{width:200,style:{lineHeight:1.5,padding:"6px 10px"},children:[(0,r.jsx)(s.Z,{left:"Income:",right:(0,r.jsx)(f.Z,{binding:i.aK.totalIncome,type:"financial",privacyFilter:false})}),(0,r.jsx)(s.Z,{left:"From Last Month:",right:(0,r.jsx)(f.Z,{binding:i.aK.fromLastMonth,type:"financial",privacyFilter:false})})]}),children:(0,r.jsx)(f.Z,{binding:i.aK.incomeAvailable,type:"financial",style:{fontWeight:600}})}),(0,r.jsx)(f.Z,{binding:i.aK.lastMonthOverspent,type:"financial",formatter:e=>{const t=n(e,"financial");return e>0?"+"+t:e===0?"-"+t:t},style:{fontWeight:600,...a.W2.tnum}}),(0,r.jsx)(f.Z,{binding:i.aK.totalBudgeted,type:"financial",formatter:e=>{const t=n(e,"financial");return e>0?"+"+t:e===0?"-"+t:t},style:{fontWeight:600,...a.W2.tnum}}),(0,r.jsx)(f.Z,{binding:i.aK.forNextMonth,type:"financial",formatter:e=>{const t=parseInt(e)||0;const r=n(Math.abs(t),"financial");return t>=0?"-"+r:"+"+r},style:{fontWeight:600,...a.W2.tnum}})]}),(0,r.jsxs)(c.Z,{children:[(0,r.jsx)(l.Z,{children:"Available Funds"}),(0,r.jsxs)(l.Z,{children:["Overspent in ",e]}),(0,r.jsx)(l.Z,{children:"Budgeted"}),(0,r.jsx)(l.Z,{children:"For Next Month"})]})]})}},31038:function(e,t,n){"use strict";n.d(t,{Df:function(){return h},Gz:function(){return y},Rk:function(){return l},TV:function(){return c},UC:function(){return v},XE:function(){return f},hd:function(){return u},iX:function(){return s},jR:function(){return m},np:function(){return g},qc:function(){return p}});var r=n(84094);var o=n(73416);var i=n(45492);var a=n(24630);function s(e){return[{id:"to-be-budgeted",name:"To Be Budgeted",categories:[{id:"to-be-budgeted",name:"To Be Budgeted",cat_group:"to-be-budgeted",group:{id:"to-be-budgeted",name:"To Be Budgeted"}}]},...e]}function l(e){return[e.filter(e=>!e.is_income),e.find(e=>e.is_income)]}function u(e){return e===0||e==="0"||e===""||e==null?{color:i.rS.tableTextSubdued}:null}function c(e,t,n){if(e<0){return{color:i.rS.errorText}}if(t==null){const t=u(e);if(t){return t}}else{if(n<t){return{color:i.rS.warningText}}return{color:i.rS.noticeText}}}function f(e){return{color:e<0?i.rS.errorText:e===0?i.rS.tableTextSubdued:i.rS.noticeText}}function h(e,t,n){if(t==="top"){return{targetId:n}}else{const t=e.findIndex(e=>e.id===n);if(t===-1){throw new Error("findSort: item not found: "+n)}const r=t+1;if(r<e.length-1){return{targetId:e[r].id}}else{return{targetId:null}}}}function p(e,t,n){if(t==="bottom"){return{targetId:n}}else{const t=e.findIndex(e=>e.id===n);if(t===-1){throw new Error("findSort: item not found: "+n)}const r=t-1;if(r>=0){return{targetId:e[r].id}}else{return{targetId:null}}}}function g(){return Math.max(i.W2.scrollbarWidth-2,0)}async function v(e,t,n){const o=e==="report"?"report-budget-month":"rollover-budget-month";const i=await (0,r.lW)(o,{month:n});for(const e of i){t.prewarmCache(e.name,e)}}async function m(e,t,n,r){const i=3;n=(0,a.iU)(n,o.W9(r,1),o.zI(r,i+1));const s=o.Do(n.start,n.end);await Promise.all(s.map(n=>v(e,t,n)))}async function y(e,t,n,o,i){t.disableObservers();await (0,r.lW)("budget-set-type",{type:e});await m(e,t,n,o);t.enableObservers();await i?.()}},30715:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(43188);var o=n(24924);var i=n(24307);function a({left:e,right:t,style:n,leftStyle:a,rightStyle:s,truncate:l="left",...u}){const c={textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"};return(0,r.jsxs)(i.Z,{style:{flexDirection:"row",alignItems:"center",...n},...u,children:[(0,r.jsx)(o.Z,{style:{marginRight:10,...l==="left"&&c,...a},children:e}),(0,r.jsx)(o.Z,{style:{flex:1,textAlign:"right",...l==="right"&&c,...s},children:t})]})}},99147:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(43188);var o=n(59379);var i=n(45485);var a=n(99818);var s=n(45492);function l({to:e,style:t,activeStyle:n,children:l}){const u=(0,o.bS)({path:e});return(0,r.jsx)(i.OL,{to:e,className:`${(0,a.iv)([s.W2.smallText,t,u?n:null])}`,children:l})}},24924:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(99818);function i(e){const{className:t="",style:n,innerRef:i,...a}=e;return(0,r.jsx)("div",{...a,ref:i,className:`${t} ${(0,o.iv)(n)}`})}},56816:function(e,t,n){"use strict";n.d(t,{y:function(){return w}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(99458);var s=n(45492);var l=n(24307);const u={normal:s.rS.buttonNormalBackground,normalDisabled:s.rS.buttonNormalDisabledBackground,primary:s.rS.buttonPrimaryBackground,primaryDisabled:s.rS.buttonPrimaryDisabledBackground,bare:s.rS.buttonBareBackground,bareDisabled:s.rS.buttonBareDisabledBackground,menu:s.rS.buttonMenuBackground,menuSelected:s.rS.buttonMenuSelectedBackground,link:s.rS.buttonBareBackground};const c={normal:s.rS.buttonNormalBackgroundHover,primary:s.rS.buttonPrimaryBackgroundHover,bare:s.rS.buttonBareBackgroundHover,menu:s.rS.buttonMenuBackgroundHover,menuSelected:s.rS.buttonMenuSelectedBackgroundHover,link:s.rS.buttonBareBackground};const f={normal:s.rS.buttonNormalBorder,normalDisabled:s.rS.buttonNormalDisabledBorder,primary:s.rS.buttonPrimaryBorder,primaryDisabled:s.rS.buttonPrimaryDisabledBorder,menu:s.rS.buttonMenuBorder,menuSelected:s.rS.buttonMenuSelectedBorder,link:s.rS.buttonBareBackground};const h={normal:s.rS.buttonNormalText,normalDisabled:s.rS.buttonNormalDisabledText,primary:s.rS.buttonPrimaryText,primaryDisabled:s.rS.buttonPrimaryDisabledText,bare:s.rS.buttonBareText,bareDisabled:s.rS.buttonBareDisabledText,menu:s.rS.buttonMenuText,menuSelected:s.rS.buttonMenuSelectedText,link:s.rS.pageTextLink};const p={normal:s.rS.buttonNormalTextHover,primary:s.rS.buttonPrimaryTextHover,bare:s.rS.buttonBareTextHover,menu:s.rS.buttonMenuTextHover,menuSelected:s.rS.buttonMenuSelectedTextHover};const g={textDecoration:"underline",boxShadow:"none"};const v=(e,t)=>{switch(e){case"bare":case"link":return"none";default:return"1px solid "+f[t]}};const m=e=>{switch(e){case"bare":return"5px";case"link":return"0";default:return"5px 10px"}};const y=(e,t)=>{switch(e){case"bare":return{backgroundColor:s.rS.buttonBareBackgroundActive};case"link":return{transform:"none",boxShadow:"none"};default:return{transform:t&&"translateY(1px)",boxShadow:`0 1px 4px 0 ${e==="primary"?s.rS.buttonPrimaryShadow:s.rS.buttonNormalShadow}`,transition:"none"}}};const x=(0,o.forwardRef)(({children:e,pressed:t,hover:n,type:o="normal",isSubmit:a=o==="primary",color:l,style:f,disabled:x,hoveredStyle:w,activeStyle:b,bounce:S=true,as:k="button",...j},C)=>{const T=x?o+"Disabled":o;w={...o!=="bare"&&s.W2.shadow,...o==="link"&&g,backgroundColor:c[o],color:l||p[o],...w};b={...y(o,S),...b};const E=k;const I={alignItems:"center",justifyContent:"center",flexShrink:0,padding:m(o),margin:0,overflow:"hidden",display:o==="link"?"inline":"flex",borderRadius:4,backgroundColor:u[T],border:v(o,T),color:l||h[T],transition:"box-shadow .25s",WebkitAppRegion:"no-drag",...s.W2.smallText,":hover":!x&&w,":active":!x&&b,...n&&w,...t&&b,...f};return(0,r.jsx)(E,{ref:C,...typeof k==="string"?(0,i.iv)(I):{style:I},disabled:x,type:a?"submit":"button",...j,children:e})});const w=(0,o.forwardRef)((e,t)=>{const{loading:n,children:o,...i}=e;return(0,r.jsxs)(x,{...i,ref:t,style:{position:"relative",...i.style},children:[n&&(0,r.jsx)(l.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"center"},children:(0,r.jsx)(a.Z,{style:{width:20,height:20}})}),(0,r.jsx)(l.Z,{style:{opacity:n?0:1,flexDirection:"row",alignItems:"center"},children:o})]})});t.Z=x},15633:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(45492);const a={purple:i.rS.pageTextPositive,blue:i.rS.pageTextLink,muted:"inherit"};const s=(0,o.forwardRef)(({children:e,to:t,linkColor:n="blue"},o)=>(0,r.jsx)("a",{ref:o,href:t,target:"_blank",rel:"noopener noreferrer",style:{color:a[n]},children:e}));t.Z=s},5320:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(43188);var o=n(66204);var i=n(24307);function a({style:e,contentStyle:t,children:n,renderContent:a,disabled:s}){const[l,u]=(0,o.useState)(false);const c=(0,o.useCallback)(()=>{if(!s){u(true)}},[s]);const f=(0,o.useCallback)(()=>{if(!s){u(false)}},[s]);(0,o.useEffect)(()=>{if(s&&l){u(false)}},[s,l]);return(0,r.jsxs)(i.Z,{style:e,children:[(0,r.jsx)(i.Z,{onPointerEnter:c,onPointerLeave:f,style:t,children:n}),l&&a()]})}},71053:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o({children:e}){const t=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(t.current&&!n.g.IS_DESIGN_MODE){setTimeout(()=>{if(t.current){t.current.focus();t.current.setSelectionRange(0,1e4)}},0)}},[]);if(typeof e==="function"){return e(t)}return(0,r.cloneElement)(e,{inputRef:t})}},383:function(e,t,n){"use strict";n.d(t,{Tn:function(){return h},ZP:function(){return f},ZL:function(){return c}});var r=n(43188);var o=n(66204);function i(e){return function(t){e.forEach(function(e){if(typeof e==="function"){e(t)}else if(e!=null){e.current=t}})}}var a=i;var s=n(99818);var l=n(5904);var u=n(45492);const c={outline:0,backgroundColor:u.rS.tableBackground,color:u.rS.formInputText,margin:0,padding:5,borderRadius:4,border:"1px solid "+u.rS.formInputBorder};function f({style:e,inputRef:t,onEnter:n,onUpdate:i,focused:f,...h}){const p=(0,o.useRef)();(0,l.X)(p,f);return(0,r.jsx)("input",{ref:t?a([t,p]):p,className:`${(0,s.iv)(c,{whiteSpace:"nowrap",overflow:"hidden",flexShrink:0,":focus":{border:"1px solid "+u.rS.formInputBorderSelected,boxShadow:"0 1px 1px "+u.rS.formInputShadowSelected},"::placeholder":{color:u.rS.formInputTextPlaceholder}},u.W2.smallText,e)}`,...h,onKeyDown:e=>{if(e.key==="Enter"&&n){n(e)}h.onKeyDown?.(e)},onChange:e=>{if(i){i(e.target.value)}h.onChange?.(e)}})}function h(e){return(0,r.jsx)(f,{...e,style:{padding:10,fontSize:15,border:"none",...u.W2.shadow,":focus":{border:"none",...u.W2.shadow},...e.style}})}},46405:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(383);var s=n(24307);function l({leftContent:e,rightContent:t,inputStyle:n,focusStyle:l,style:u,getStyle:c,...f}){const[h,p]=(0,o.useState)(f.focused);return(0,r.jsxs)(s.Z,{style:{...a.ZL,padding:0,flexDirection:"row",alignItems:"center",...u,...h&&(l??{boxShadow:"0 0 0 1px "+i.rS.formInputShadowSelected}),...c&&c(h)},children:[e,(0,r.jsx)(a.ZP,{...f,focused:h,style:{...n,flex:1,"&, &:focus, &:hover":{border:0,backgroundColor:"transparent",boxShadow:"none",color:"inherit"}},onFocus:e=>{p(true);f.onFocus?.(e)},onBlur:e=>{p(false);f.onBlur?.(e)}}),t]})}},6755:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(43188);var o=n(66204);var i=n(59379);var a=n(45485);var s=n(99818);var l=n(24868);var u=n(45492);var c=n(56816);const f=({to:e,style:t,activeStyle:n,onClick:o,...a})=>{const s=(0,l.Z)();const u=(0,i.bS)({path:e});const f=t=>{o?.(t);s(e)};return(0,r.jsx)(c.Z,{style:{...t,...u?n:{}},activeStyle:n,...a,onClick:f})};const h=({to:e,style:t,activeStyle:n,children:o})=>{const l=(0,i.bS)({path:e});return(0,r.jsx)(a.OL,{to:e,className:`${(0,s.iv)([u.W2.smallText,t,l?n:null])}`,children:o})};function p({variant:e="anchor",...t}){switch(e){case"anchor":return(0,r.jsx)(h,{...t});case"button":return(0,r.jsx)(f,{...t});default:throw new Error(`Unrecognised link type: ${e}`)}}},21920:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(45492);function s({style:e,children:t,...n}){return(0,r.jsx)("button",{type:"button",className:`${(0,i.iv)([{textDecoration:"none",color:a.rS.pageTextLink,backgroundColor:"transparent",display:"inline",border:0,cursor:"pointer",padding:0,font:"inherit",":hover":{textDecoration:"underline",boxShadow:"none"},":focus":{boxShadow:"none"}},a.W2.smallText,e])}`,...n,children:t})}},31941:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(24307);function l({keyName:e}){return(0,r.jsx)(a.Z,{style:{fontSize:10,color:i.rS.menuKeybindingText},children:e})}function u({header:e,footer:t,items:n,onMenuSelect:c,style:f}){const h=(0,o.useRef)(null);const p=n.filter(e=>e);const[g,v]=(0,o.useState)(null);(0,o.useEffect)(()=>{const e=h.current;e.focus();const t=e=>{const t=p.filter(e=>e&&e!==u.line&&e.type!==u.label);const n=t.indexOf(p[g]);const r=e=>p.indexOf(t[e]);switch(e.key){case"ArrowUp":e.preventDefault();v(g===null?0:r(Math.max(n-1,0)));break;case"ArrowDown":e.preventDefault();v(g===null?0:r(Math.min(n+1,t.length-1)));break;case"Enter":e.preventDefault();const o=p[g];if(g!==null&&o!==u.line){c?.(o.name)}break;default:}};e.addEventListener("keydown",t);return()=>{e.removeEventListener("keydown",t)}},[g]);return(0,r.jsxs)(s.Z,{style:{outline:"none",borderRadius:4,overflow:"hidden",...f},tabIndex:1,innerRef:h,children:[e,p.map((e,t)=>{if(e===u.line){return(0,r.jsx)(s.Z,{style:{margin:"3px 0px"},children:(0,r.jsx)(s.Z,{style:{borderTop:"1px solid "+i.rS.menuBorder}})},t)}else if(e.type===u.label){return(0,r.jsx)(a.Z,{style:{color:i.rS.menuItemTextHeader,fontSize:11,lineHeight:"1em",textTransform:"uppercase",margin:"3px 9px",marginTop:5},children:e.name},e.name)}const n=p[t-1];return(0,r.jsxs)(s.Z,{role:"button",style:{cursor:"default",padding:"9px 10px",marginTop:t===0||n===u.line||n.type===u.label?0:-3,flexDirection:"row",alignItems:"center",color:i.rS.menuItemText,...e.disabled&&{color:i.rS.buttonBareDisabledText},...!e.disabled&&g===t&&{backgroundColor:i.rS.menuItemBackgroundHover,color:i.rS.menuItemTextHover},...e.style},onMouseEnter:()=>v(t),onMouseLeave:()=>v(null),onClick:t=>!e.disabled&&c&&c(e.name),children:[(0,r.jsx)(a.Z,{style:{lineHeight:0},children:e.icon&&(0,o.createElement)(e.icon,{width:e.iconSize||10,height:e.iconSize||10,style:{marginRight:7,width:e.iconSize||10}})}),(0,r.jsx)(a.Z,{children:e.text}),(0,r.jsx)(s.Z,{style:{flex:1}}),e.key&&(0,r.jsx)(l,{keyName:e.key})]},e.name)}),t]})}const c=Symbol("menu-line");u.line=c;u.label=Symbol("menu-label")},8987:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(43188);var o=n(66204);var i=n(77216);var a=n.n(i);var s=n(81113);var l=n(99458);var u=n(72285);var c=n(45492);var f=n(90122);var h=n(56816);var p=n(383);var g=n(77644);var v=n(24307);const m=({title:e,isCurrent:t,isHidden:i,size:m,padding:x=20,showHeader:w=true,leftHeaderContent:b,showTitle:S=true,editableTitle:k=false,showClose:j=true,showOverlay:C=true,loading:T=false,noAnimation:E=false,focusAfterClose:I=true,stackIndex:_,parent:M,style:D,titleStyle:P,contentStyle:A,overlayStyle:O,children:R,onClose:z,onTitleUpdate:Z})=>{(0,o.useEffect)(()=>{const e=s.Z.getScope();s.Z.setScope("modal");return()=>s.Z.setScope(e)},[]);const[L,N]=(0,o.useState)(false);const[B,H]=(0,o.useState)(e);const F=()=>{N(true)};const V=t=>{if(t!==e){Z?.(t)}N(false)};return(0,r.jsx)(a(),{isOpen:true,onRequestClose:z,shouldCloseOnOverlayClick:true,shouldFocusAfterRender:!n.g.IS_DESIGN_MODE,shouldReturnFocusAfterClose:I,appElement:document.querySelector("#root"),parentSelector:M&&(()=>M),style:{content:{display:"flex",height:"fit-content",width:"fit-content",position:"absolute",top:0,left:0,right:0,bottom:0,justifyContent:"center",alignItems:"center",overflow:"visible",border:0,fontSize:14,backgroundColor:"transparent",padding:0,pointerEvents:"auto",margin:"auto",...A},overlay:{display:"flex",zIndex:3e3,backgroundColor:C&&_===0?"rgba(0, 0, 0, .1)":"none",pointerEvents:C?"auto":"none",...O,...M?{position:"absolute",top:0,left:0,right:0,bottom:0}:{}}},children:(0,r.jsxs)(y,{noAnimation:E,isCurrent:t,size:m,style:{willChange:"opacity, transform",maxWidth:"90vw",minWidth:"90vw",minHeight:0,borderRadius:4,color:c.rS.pageText,backgroundColor:c.rS.modalBackground,opacity:i?0:1,[`@media (min-width: ${f.Z.breakpoint_small})`]:{minWidth:f.Z.breakpoint_small},...c.W2.shadowLarge,...D,...c.W2.lightScrollbar},children:[w&&(0,r.jsxs)(v.Z,{style:{padding:20,position:"relative",flexShrink:0},children:[(0,r.jsx)(v.Z,{style:{position:"absolute",left:0,top:0,bottom:0,justifyContent:"center",alignItems:"center"},children:(0,r.jsx)(v.Z,{style:{flexDirection:"row",marginLeft:15},children:b&&!L?b:null})}),S&&(0,r.jsx)(v.Z,{style:{flex:1,alignSelf:"center",textAlign:"center",width:"calc(100% - 40px)"},children:L?(0,r.jsx)(p.ZP,{style:{fontSize:25,fontWeight:700,textAlign:"center"},value:B,onChange:e=>H(e.target.value),onKeyDown:e=>{if(e.key==="Enter"){e.preventDefault();V(e.currentTarget.value)}},onBlur:e=>V(e.target.value)}):(0,r.jsx)(g.Z,{style:{fontSize:25,fontWeight:700,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...P},...k&&{onPointerUp:F},children:B})}),(0,r.jsx)(v.Z,{style:{position:"absolute",right:0,top:0,bottom:0,justifyContent:"center",alignItems:"center"},children:(0,r.jsx)(v.Z,{style:{flexDirection:"row",marginRight:15},children:j&&!L&&(0,r.jsx)(h.Z,{type:"bare",onClick:z,style:{padding:"10px 10px"},"aria-label":"Close",children:(0,r.jsx)(u.Z,{width:10,style:{color:"inherit"}})})})})]}),(0,r.jsx)(v.Z,{style:{padding:x,paddingTop:0,flex:1},children:typeof R==="function"?R({isEditingTitle:L}):R}),T&&(0,r.jsx)(v.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:c.rS.pageBackground,alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,r.jsx)(l.Z,{style:{width:20,height:20},color:c.rS.pageText})})]})})};const y=({style:e,size:t,noAnimation:n,isCurrent:i,stackIndex:a,children:s})=>{const l=(0,o.useRef)(null);const u=(0,o.useRef)(false);const c=(0,o.useRef)(Math.random()*10-5);(0,o.useLayoutEffect)(()=>{if(l.current==null){return}function e(){if(i){l.current.style.transform="translateY(0px) scale(1)";l.current.style.pointerEvents="auto"}else{l.current.style.transform=`translateY(-40px) scale(.95) rotate(${c.current}deg)`;l.current.style.pointerEvents="none"}}if(!u.current){if(n){l.current.style.opacity=1;l.current.style.transform="translateY(0px) scale(1)";setTimeout(()=>{if(l.current){l.current.style.transition="opacity .1s, transform .1s cubic-bezier(.42, 0, .58, 1)"}},0)}else{l.current.style.opacity=0;l.current.style.transform="translateY(10px) scale(1)";setTimeout(()=>{if(l.current){u.current=true;l.current.style.transition="opacity .1s, transform .1s cubic-bezier(.42, 0, .58, 1)";l.current.style.opacity=1;e()}},0)}}else{e()}},[n,i,a]);return(0,r.jsx)(v.Z,{innerRef:l,style:{...e,...t&&{width:t.width,height:t.height},...n&&!i&&{display:"none"}},children:s})};const x=({style:e,leftContent:t,focusButton:n=false,children:i})=>{const a=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(n&&a.current){const e=a.current.querySelector("button:not([data-hidden])");if(e){e.focus()}}},[n]);return(0,r.jsxs)(v.Z,{innerRef:a,style:{flexDirection:"row",marginTop:30,...e},children:[t,(0,r.jsx)(v.Z,{style:{flex:1}}),i]})};t.C=m},42994:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(99818);function i({style:e,isLast:t,children:n,...i}){return(0,r.jsx)("div",{...i,className:`${(0,o.iv)(!t&&{marginBottom:15},e,{lineHeight:"1.5em"})}`,children:n})}},24198:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(5202);var i=n(28339);var a=n(45492);var s=n(56816);var l=n(46405);function u({inputRef:e,value:t,onChange:n,placeholder:u,isInModal:c=false,width:f=250}){return(0,r.jsx)(l.Z,{inputRef:e,style:{width:f,flex:"",borderColor:c?null:"transparent",backgroundColor:c?null:a.rS.formInputBackground},focusStyle:c?null:{boxShadow:"0 0 0 1px "+a.rS.formInputShadowSelected,backgroundColor:a.rS.formInputBackgroundSelected},leftContent:(0,r.jsx)(i.Z,{style:{width:13,height:13,flexShrink:0,color:t?a.rS.menuItemTextSelected:"inherit",margin:5,marginRight:0}}),rightContent:t&&(0,r.jsx)(s.Z,{type:"bare",style:{padding:8},onClick:()=>n(""),title:"Clear search term",children:(0,r.jsx)(o.Z,{style:{width:8,height:8}})}),inputStyle:{"::placeholder":{color:a.rS.formInputTextPlaceholder,transition:"color .25s"},":focus":c?null:{"::placeholder":{color:a.rS.formInputTextPlaceholderSelected}}},value:t,placeholder:u,onKeyDown:e=>{if(e.key==="Escape")n("")},onChange:e=>n(e.target.value)})}},78628:function(e,t,n){"use strict";n.d(t,{Z:function(){return tJ}});var r=n(43188);var o=n(66204);var i=n.t(o,2);/**
|
|
110
|
+
* @reach/utils v0.18.0
|
|
111
|
+
*
|
|
112
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the MIT license found in the
|
|
115
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
116
|
+
*
|
|
117
|
+
* @license MIT
|
|
118
|
+
*/function a(){return!!(typeof window!=="undefined"&&window.document&&window.document.createElement)}function s(e,t,...n){return isValidElement(e)?cloneElement(e,t,...n):e}function l(e,t){return n=>{e&&e(n);if(!n.defaultPrevented){return t(n)}}}function u(e){return typeof e==="boolean"}function c(e){return!!(e&&({}).toString.call(e)=="[object Function]")}function f(e){return typeof e==="number"&&!isNaN(e)}function h(e){return typeof e==="string"}function p(e,t){if(e==null)return;if(c(e)){e(t)}else{try{e.current=t}catch(n){throw new Error(`Cannot assign value "${t}" to ref "${e}"`)}}}function g(...e){return(0,o.useCallback)(t=>{for(let n of e){p(n,t)}},e)}function v(e){return a()?e?e.ownerDocument:document:null}function m(e){let t=v(e);return t?t.defaultView||window:null}function y(e){let t=m(e);if(t){return t.getComputedStyle(e,null)}return null}function x(e,t){return y(e)?.getPropertyValue(t)||null}function w(e,t){let n=o.createContext(t);n.displayName=e;return n}function b(e,t){let n=React.createContext(t);function r(e){let{children:t,...r}=e;let o=React.useMemo(()=>r,Object.values(r));return React.createElement(n.Provider,{value:o},t)}function o(r){let o=React.useContext(n);if(o){return o}if(t){return t}throw Error(`${r} must be rendered inside of a ${e} component.`)}n.displayName=`${e}Context`;r.displayName=`${e}Provider`;return[r,o]}function S(e,t,n){if(true){let r=(0,o.useRef)(e!=null);let i=(0,o.useRef)({componentName:n,controlledPropName:t});(0,o.useEffect)(()=>{i.current={componentName:n,controlledPropName:t}},[n,t]);(0,o.useEffect)(()=>{let{current:t}=r;let{componentName:n,controlledPropName:o}=i.current;let a=e!=null;if(t!==a){console.error(`A component is changing an ${t?"":"un"}controlled \`${o}\` state of ${n} to be ${t?"un":""}controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.
|
|
119
|
+
More info: https://fb.me/react-controlled-components`)}},[e])}}function k(e){let t=v(e);let n=t.defaultView||window;if(!t){return{width:0,height:0}}return{width:t.documentElement.clientWidth??n.innerWidth,height:t.documentElement.clientHeight??n.innerHeight}}function j(e){let t=m(e);if(!t){return{scrollX:0,scrollY:0}}return{scrollX:t.scrollX,scrollY:t.scrollY}}function C(){try{if(window.innerWidth>document.documentElement.clientWidth){return window.innerWidth-document.documentElement.clientWidth}}catch(e){}return 0}function T(e){return"which"in e?e.which===3:"button"in e?e.button===2:false}function E(...e){return e.filter(e=>e!=null).join("--")}function I(){}function _(e){const t=(0,o.useRef)();if(!t.current){t.current={v:e()}}return t.current.v}function M({controlledValue:e,defaultValue:t,calledFrom:n="A component"}){let r=e!==void 0;let o=useRef3(r);if(true){if(!o.current&&r){console.warn(`${n} is changing from controlled to uncontrolled. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}if(o.current&&!r){console.warn(`${n} is changing from uncontrolled to controlled. Components should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}}let[i,a]=useState(o.current?e:t);let s=useCallback2(e=>{if(!o.current){a(e)}},[]);return[o.current?e:i,s]}function D(e,t,n=window){const r=useRef4(t);useEffect2(()=>{r.current=t},[t]);useEffect2(()=>{const t=n&&n.addEventListener;if(!t){if(true){console.warn("Event listener not supported on the element provided")}return}function o(e){r.current(e)}n.addEventListener(e,o);return()=>{n.removeEventListener(e,o)}},[e,n])}function P(e=console.log,t="focus",n=document){let r=useRef5(n.activeElement);useEffect3(()=>{r.current=n.activeElement;function o(t){if(r.current!==n.activeElement){e(n.activeElement,r.current,t);r.current=n.activeElement}}n.addEventListener(t,o,true);return()=>{n.removeEventListener(t,o)}},[t,e,n])}function A(){let[,e]=(0,o.useState)(Object.create(null));return(0,o.useCallback)(()=>{e(Object.create(null))},[])}var O=a()?o.useLayoutEffect:o.useEffect;function R(e){let t=useRef6(false);let n=useRef6();if(!t.current){t.current=true;n.current=e()}return n}function z(e){const t=useRef7(null);useEffect5(()=>{t.current=e},[e]);return t.current}function Z(e,t){let n=(0,o.useRef)(t);e(()=>{n.current=t});return(0,o.useCallback)((...e)=>{n.current&&n.current(...e)},[])}function L(e){return Z(o.useEffect,e)}function N(e){return Z(O,e)}function B(e,t){let[n,r]=(0,o.useState)(t);let i=(0,o.useCallback)(t=>{e.current=t;r(t)},[]);return[n,i]}function H(e,t){const n=useRef9(false);useEffect7(()=>{if(n.current){e()}else{n.current=true}},t)};/**
|
|
120
|
+
* @reach/auto-id v0.18.0
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the MIT license found in the
|
|
125
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
126
|
+
*
|
|
127
|
+
* @license MIT
|
|
128
|
+
*/var F=false;var V=0;function W(){return++V}var U=i["useId".toString()];function $(e){if(U!==void 0){let t=U();return e??t}let t=e??(F?W():null);let[n,r]=o.useState(t);O(()=>{if(n===null){r(W())}},[]);o.useEffect(()=>{if(F===false){F=true}},[]);return e??n??void 0}var K=n(42457);/**
|
|
129
|
+
* @reach/portal v0.18.0
|
|
130
|
+
*
|
|
131
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the MIT license found in the
|
|
134
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
135
|
+
*
|
|
136
|
+
* @license MIT
|
|
137
|
+
*/var q=({children:e,type:t="reach-portal",containerRef:n})=>{let r=o.useRef(null);let i=o.useRef(null);let a=A();if(true){o.useEffect(()=>{if(n!=null){if(typeof n!=="object"||!("current"in n)){console.warn("@reach/portal: Invalid value passed to the `containerRef` of a `Portal`. The portal will be appended to the document body, but if you want to attach it to another DOM node you must pass a valid React ref object to `containerRef`.")}else if(n.current==null){console.warn("@reach/portal: A ref was passed to the `containerRef` prop of a `Portal`, but no DOM node was attached to it. Be sure to pass the ref to a DOM component.\n\nIf you are forwarding the ref from another component, be sure to use the React.forwardRef API. See https://reactjs.org/docs/forwarding-refs.html.")}}},[n])}O(()=>{if(!r.current)return;let e=r.current.ownerDocument;let o=n?.current||e.body;i.current=e?.createElement(t);o.appendChild(i.current);a();return()=>{if(i.current&&o){o.removeChild(i.current)}}},[t,a,n]);return i.current?(0,K.createPortal)(e,i.current):o.createElement("span",{ref:r})};var Y=({unstable_skipInitialRender:e,...t})=>{let[n,r]=o.useState(false);o.useEffect(()=>{if(e){r(true)}},[e]);if(e&&!n){return null}return o.createElement(q,{...t})};Y.displayName="Portal";var G=["bottom","height","left","right","top","width"];var X=function e(e,t){if(e===void 0){e={}}if(t===void 0){t={}}return G.some(function(n){return e[n]!==t[n]})};var Q=new Map;var J;var ee=function e(){var t=[];Q.forEach(function(e,n){var r=n.getBoundingClientRect();if(X(r,e.rect)){e.rect=r;t.push(e)}});t.forEach(function(e){e.callbacks.forEach(function(t){return t(e.rect)})});J=window.requestAnimationFrame(e)};function et(e,t){return{observe:function n(){var n=Q.size===0;if(Q.has(e)){Q.get(e).callbacks.push(t)}else{Q.set(e,{rect:undefined,hasRectChanged:false,callbacks:[t]})}if(n)ee()},unobserve:function n(){var n=Q.get(e);if(n){var r=n.callbacks.indexOf(t);if(r>=0)n.callbacks.splice(r,1);if(!n.callbacks.length)Q["delete"](e);if(!Q.size)cancelAnimationFrame(J)}}}}var en=et;/**
|
|
138
|
+
* @reach/rect v0.18.0
|
|
139
|
+
*
|
|
140
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the MIT license found in the
|
|
143
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
144
|
+
*
|
|
145
|
+
* @license MIT
|
|
146
|
+
*/var er=({onChange:e,observe:t=true,children:n})=>{const r=o.useRef(null);const i=eo(r,{observe:t,onChange:e});return n({ref:r,rect:i})};er.displayName="Rect";function eo(e,t,n){let r;let i;if(u(t)){r=t}else{r=t?.observe??true;i=t?.onChange}if(c(n)){i=n}if(true){o.useEffect(()=>{if(u(t)){console.warn("Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\nSee https://reach.tech/rect#userect-observe")}},[t]);o.useEffect(()=>{if(c(n)){console.warn("Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\nSee https://reach.tech/rect#userect-onchange")}},[n])}let[a,s]=o.useState(e.current);let l=o.useRef(false);let f=o.useRef(false);let[h,p]=o.useState(null);let g=o.useRef(i);O(()=>{g.current=i;if(e.current!==a){s(e.current)}});O(()=>{if(a&&!l.current){l.current=true;p(a.getBoundingClientRect())}},[a]);O(()=>{if(!r){return}let t=a;if(!f.current){f.current=true;t=e.current}if(!t){if(true){console.warn("You need to place the ref")}return}let n=en(t,e=>{g.current?.(e);p(e)});n.observe();return()=>{n.unobserve()}},[r,a,e]);return h};/*!
|
|
147
|
+
* tabbable 5.3.3
|
|
148
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
149
|
+
*/var ei=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var ea=ei.join(",");var es=typeof Element==="undefined";var el=es?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var eu=!es&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument};var ec=function e(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(ea));if(t&&el.call(e,ea)){r.unshift(e)}r=r.filter(n);return r};var ed=function e(t,n,r){var o=[];var i=Array.from(t);while(i.length){var a=i.shift();if(a.tagName==="SLOT"){var s=a.assignedElements();var l=s.length?s:a.children;var u=e(l,true,r);if(r.flatten){o.push.apply(o,u)}else{o.push({scope:a,candidates:u})}}else{var c=el.call(a,ea);if(c&&r.filter(a)&&(n||!t.includes(a))){o.push(a)}var f=a.shadowRoot||typeof r.getShadowRoot==="function"&&r.getShadowRoot(a);var h=!r.shadowRootFilter||r.shadowRootFilter(a);if(f&&h){var p=e(f===true?a.children:f.children,true,r);if(r.flatten){o.push.apply(o,p)}else{o.push({scope:a,candidates:p})}}else{i.unshift.apply(i,a.children)}}}return o};var ef=function e(e,t){if(e.tabIndex<0){if((t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))){return 0}}return e.tabIndex};var eh=function e(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex};var ep=function e(e){return e.tagName==="INPUT"};var eg=function e(e){return ep(e)&&e.type==="hidden"};var ev=function e(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName==="SUMMARY"});return t};var em=function e(e,t){for(var n=0;n<e.length;n++){if(e[n].checked&&e[n].form===t){return e[n]}}};var ey=function e(e){if(!e.name){return true}var t=e.form||eu(e);var n=function e(e){return t.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(e.name))}else{try{r=n(e.name)}catch(e){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message);return false}}var o=em(r,e.form);return!o||o===e};var ex=function e(e){return ep(e)&&e.type==="radio"};var ew=function e(e){return ex(e)&&!ey(e)};var eb=function e(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0};var eS=function e(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var o=el.call(e,"details>summary:first-of-type");var i=o?e.parentElement:e;if(el.call(i,"details:not([open]) *")){return true}var a=eu(e).host;var s=(a===null||a===void 0?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(!n||n==="full"){if(typeof r==="function"){var l=e;while(e){var u=e.parentElement;var c=eu(e);if(u&&!u.shadowRoot&&r(u)===true){return eb(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!u&&c!==e.ownerDocument){e=c.host}else{e=u}}e=l}if(s){return!e.getClientRects().length}}else if(n==="non-zero-area"){return eb(e)}return false};var ek=function e(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var t=e.parentElement;while(t){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName==="LEGEND"){return el.call(t,"fieldset[disabled] *")?true:!r.contains(e)}}return true}t=t.parentElement}}return false};var ej=function e(e,t){if(t.disabled||eg(t)||eS(t,e)||ev(t)||ek(t)){return false}return true};var eC=function e(e,t){if(ew(t)||ef(t)<0||!ej(e,t)){return false}return true};var eT=function e(e){var t=parseInt(e.getAttribute("tabindex"),10);if(isNaN(t)||t>=0){return true}return false};var eE=function e(t){var n=[];var r=[];t.forEach(function(t,o){var i=!!t.scope;var a=i?t.scope:t;var s=ef(a,i);var l=i?e(t.candidates):a;if(s===0){i?n.push.apply(n,l):n.push(a)}else{r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})}});return r.sort(eh).reduce(function(e,t){t.isScope?e.push.apply(e,t.content):e.push(t.content);return e},[]).concat(n)};var eI=function e(e,t){t=t||{};var n;if(t.getShadowRoot){n=ed([e],t.includeContainer,{filter:eC.bind(null,t),flatten:false,getShadowRoot:t.getShadowRoot,shadowRootFilter:eT})}else{n=ec(e,t.includeContainer,eC.bind(null,t))}return eE(n)};var e_=function e(e,t){t=t||{};var n;if(t.getShadowRoot){n=ed([e],t.includeContainer,{filter:ej.bind(null,t),flatten:true,getShadowRoot:t.getShadowRoot})}else{n=ec(e,t.includeContainer,ej.bind(null,t))}return n};var eM=function e(e,t){t=t||{};if(!e){throw new Error("No node provided")}if(el.call(e,ea)===false){return false}return eC(t,e)};var eD=null&&ei.concat("iframe").join(",");var eP=function e(e,t){t=t||{};if(!e){throw new Error("No node provided")}if(el.call(e,eD)===false){return false}return ej(t,e)};/**
|
|
150
|
+
* @reach/popover v0.18.0
|
|
151
|
+
*
|
|
152
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the MIT license found in the
|
|
155
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
156
|
+
*
|
|
157
|
+
* @license MIT
|
|
158
|
+
*/var eA=o.forwardRef(function e({unstable_skipInitialPortalRender:e,...t},n){return o.createElement(Y,{unstable_skipInitialRender:e},o.createElement(eO,{ref:n,...t}))});eA.displayName="Popover";var eO=o.forwardRef(function e({as:e="div",targetRef:t,position:n=eZ,unstable_observableRefs:r=[],...i},a){const s=o.useRef(null);const l=eo(s,{observe:!i.hidden});const u=eo(t,{observe:true});const c=g(s,a);eH(t,s);return o.createElement(e,{"data-reach-popover":"",ref:c,...i,style:{position:"absolute",...eR(n,u,l,...r),...i.style}})});eO.displayName="PopoverImpl";function eR(e,t,n,...r){return n?e(t,n,...r.map(e=>e.current)):{visibility:"hidden"}}function ez(e,t,n){return{top:n?`${e.top-t.height+window.pageYOffset}px`:`${e.top+e.height+window.pageYOffset}px`}}var eZ=(e,t)=>{if(!e||!t){return{}}const{directionRight:n,directionUp:r}=eB(e,t);return{left:n?`${e.right-t.width+window.pageXOffset}px`:`${e.left+window.pageXOffset}px`,...ez(e,t,r)}};var eL=(e,t)=>{if(!e||!t){return{}}const{directionLeft:n,directionUp:r}=eB(e,t);return{left:n?`${e.left+window.pageXOffset}px`:`${e.right-t.width+window.pageXOffset}px`,...ez(e,t,r)}};var eN=(e,t)=>{if(!e||!t){return{}}const{directionUp:n}=eB(e,t);return{width:e.width,left:e.left,...ez(e,t,n)}};function eB(e,t,n=0,r=0){const o={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0};const i=o.right&&!o.left;const a=o.left&&!o.right;const s=o.bottom&&!o.top;const l=o.top&&!o.bottom;return{directionRight:i,directionLeft:a,directionUp:s,directionDown:l}}function eH(e,t){const n=v(e.current);function r(e){if(e.key==="Tab"&&t.current&&eI(t.current).length===0){return}if(e.key==="Tab"&&e.shiftKey){if(c(e)){f(e)}else if(h(e)){p(e)}else if(m(e)){x()}}else if(e.key==="Tab"){if(a()){s(e)}else if(l()){u(e)}else if(g(e)){x()}}}o.useEffect(()=>{n.addEventListener("keydown",r);return()=>{n.removeEventListener("keydown",r)}},[]);function i(){const r=eI(n);const o=r&&e.current?r.indexOf(e.current):-1;const i=r&&r[o+1];return t.current&&t.current.contains(i||null)?false:i}function a(){return e.current?e.current===n.activeElement:false}function s(e){const n=t.current&&eI(t.current);if(n&&n[0]){e.preventDefault();n[0].focus()}}function l(){const e=t.current?t.current.contains(n.activeElement||null):false;if(e){const e=t.current&&eI(t.current);return Boolean(e&&e[e.length-1]===n.activeElement)}return false}function u(e){const t=i();if(t){e.preventDefault();t.focus()}}function c(e){if(!e.shiftKey)return;const t=i();return e.target===t}function f(e){const n=t.current&&eI(t.current);const r=n&&n[n.length-1];if(r){e.preventDefault();r.focus()}}function h(e){const n=t.current&&eI(t.current);if(n){return n.length===0?false:e.target===n[0]}return false}function p(t){t.preventDefault();e.current?.focus()}function g(e){const r=t.current?eI(n).filter(e=>!t.current.contains(e)):null;return r?e.target===r[r.length-1]:false}function m(e){return e.target===eI(n)[0]}let y=[];function x(){const e=t.current&&eI(t.current);if(e){e.forEach(e=>{y.push([e,e.tabIndex]);e.tabIndex=-1});n.addEventListener("focusin",w)}}function w(){n.removeEventListener("focusin",w);y.forEach(([e,t])=>{e.tabIndex=t})}};/**
|
|
159
|
+
* @reach/descendants v0.18.0
|
|
160
|
+
*
|
|
161
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the MIT license found in the
|
|
164
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
165
|
+
*
|
|
166
|
+
* @license MIT
|
|
167
|
+
*/function eF(e,t={}){const n=[];let r=o.createContext({descendants:n,registerDescendant:()=>I,...t});r.displayName=e;return r}function eV(e,t,n){let r=A();let{registerDescendant:i,descendants:a}=o.useContext(t);let s=n??a.findIndex(t=>t.element===e.element);O(()=>{if(!e.element)r();return i({...e,index:s})},[e,r,s,i,...Object.values(e)]);return s}function eW(){return o.useState([])}function eU(e){return o.useContext(e).descendants}function e$({context:e,children:t,items:n,set:r}){let i=o.useCallback(({element:e,index:t,...n})=>{if(!e)return I;r(r=>{if(t!=null&&t!==-1){return eG(r,{element:e,index:t,...n},t)}if(r.length===0){return[{...n,element:e,index:0}]}if(true){if(r.find(t=>t.element===e)){console.warn("[reach-ui]: `useDescendant` was called with an element that was already registered.\n\nIf you are using the `@reach/descendants` package directly, make sure to only register descendants once. Registering a descendant more than once will lead to bugs in your app.\n\nIf you are using another `reach-ui` package, this is probably our bug!\n\nTo report a bug, open a new issue:\n\n https://github.com/reach/reach-ui/issues/new?assignees=&labels=&template=Bug_report.md\n\nIMPORTANT: this check will only run in the development build, so if you see this warning please be aware that your app may crash when deployed.");return eX(r)}}let o=eY(r,e);let i;if(o===-1){i=[...r,{...n,element:e,index:r.length}]}else{i=eG(r,{...n,element:e,index:o},o)}return i});return()=>{if(!e)return;r(t=>t.filter(t=>e!==t.element))}},[]);return o.createElement(e.Provider,{value:o.useMemo(()=>{return{descendants:n,registerDescendant:i}},[n,i])},t)}function eK(e,t){let{descendants:n}=o.useContext(e);let{callback:r,currentIndex:i,filter:a,key:s="index",orientation:l="vertical",rotate:u=true,rtl:c=false}=t;return function e(e){if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(e.key)){return}let t=i??-1;let o=a?n.filter(a):n;if(!o.length){return}let f=o.findIndex(e=>e.index===i);function h(){let e=t===v().index;return e?u?g():o[f]:o[(f+1)%o.length]}function p(){let e=t===g().index;return e?u?v():o[f]:o[(f-1+o.length)%o.length]}function g(){return o[0]}function v(){return o[o.length-1]}switch(e.key){case"ArrowDown":if(l==="vertical"||l==="both"){e.preventDefault();let t=h();r(s==="option"?t:t[s])}break;case"ArrowUp":if(l==="vertical"||l==="both"){e.preventDefault();let t=p();r(s==="option"?t:t[s])}break;case"ArrowLeft":if(l==="horizontal"||l==="both"){e.preventDefault();let t=(c?h:p)();r(s==="option"?t:t[s])}break;case"ArrowRight":if(l==="horizontal"||l==="both"){e.preventDefault();let t=(c?p:h)();r(s==="option"?t:t[s])}break;case"PageUp":e.preventDefault();let m=(e.ctrlKey?p:g)();r(s==="option"?m:m[s]);break;case"Home":e.preventDefault();let y=g();r(s==="option"?y:y[s]);break;case"PageDown":e.preventDefault();let x=(e.ctrlKey?h:v)();r(s==="option"?x:x[s]);break;case"End":e.preventDefault();let w=v();r(s==="option"?w:w[s]);break}}}function eq(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eY(e,t){if(!t)return-1;if(!e.length)return-1;let n=e.length;while(n--){let r=e[n].element;if(!r)continue;if(eq(r,t)){return n+1}}return-1}function eG(e,t,n){if(n==null||!(n in e)){return[...e,t]}return[...e.slice(0,n),t,...e.slice(n)]}function eX(e){return e.sort((e,t)=>!e.element||!t.element?0:eq(e.element,t.element)?-1:1).map((e,t)=>({...e,index:t}))};/*! *****************************************************************************
|
|
168
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
169
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
170
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
171
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
172
|
+
|
|
173
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
174
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
175
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
176
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
177
|
+
|
|
178
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
179
|
+
and limitations under the License.
|
|
180
|
+
***************************************************************************** */var eQ;!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(eQ||(eQ={}));var eJ={type:"xstate.init"};function e0(e){return void 0===e?[]:[].concat(e)}function e1(e){return{type:"xstate.assign",assignment:e}}function e2(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function e4(e){return function(t){return e===t}}function e5(e){return"string"==typeof e?{type:e}:e}function e3(e,t){return{value:e,context:t,actions:[],changed:!1,matches:e4(e)}}function e6(e,t){void 0===t&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:e0(e.states[e.initial].entry).map(function(e){return e2(e,t.actions)}),context:e.context,matches:e4(e.initial)},transition:function(t,r){var o,i,a="string"==typeof t?{value:t,context:e.context}:t,s=a.value,l=a.context,u=e5(r),c=e.states[s];if(c.on){var f=e0(c.on[u.type]),h=function(t){if(void 0===t)return{value:e3(s,l)};var r="string"==typeof t?{target:t}:t,o=r.target,i=void 0===o?s:o,a=r.actions,f=void 0===a?[]:a,h=r.cond,p=l;if((void 0===h?function(){return!0}:h)(l,u)){var g=e.states[i],v=!1,m=[].concat(c.exit,f,g.entry).filter(function(e){return e}).map(function(e){return e2(e,n._options.actions)}).filter(function(e){if("xstate.assign"===e.type){v=!0;var t=Object.assign({},p);return"function"==typeof e.assignment?t=e.assignment(p,u):Object.keys(e.assignment).forEach(function(n){t[n]="function"==typeof e.assignment[n]?e.assignment[n](p,u):e.assignment[n]}),p=t,!1}return!0});return{value:{value:i,context:p,actions:m,changed:i!==s||m.length>0||v,matches:e4(i)}}}};try{for(var p=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(f),g=p.next();!g.done;g=p.next()){var v=h(g.value);if("object"==typeof v)return v.value}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}return e3(s,l)}};return n}var e8=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function e7(e){var t=e.initialState,n=eQ.NotStarted,r=new Set,o={_machine:e,send:function(o){n===eQ.Running&&(t=e.transition(t,o),e8(t,e5(o)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(){return n=eQ.Running,e8(t,eJ),o},stop:function(){return n=eQ.Stopped,r.clear(),o},get state(){return t},get status(){return n}};return o};/**
|
|
181
|
+
* @reach/machine v0.18.0
|
|
182
|
+
*
|
|
183
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the MIT license found in the
|
|
186
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
187
|
+
*
|
|
188
|
+
* @license MIT
|
|
189
|
+
*/var e9=e=>{let t;e.subscribe(e=>{t=e}).unsubscribe();return t};function te(e,t,n){let r=o.useRef(e);let i=_(()=>e7(r.current).start());let a=o.useRef(null);let[s,l]=o.useState(()=>e9(i));let u=o.useCallback(e=>{let r=h(e)?{type:e}:e;let o=tt(t);i.send({...r,lastEventType:a.current,refs:o});a.current=r.type;if(true){if(n){console.group("Event Sent");console.log("Event:",r);console.groupEnd()}}},[n]);o.useEffect(()=>{i.subscribe(function e(e){if(e.changed){l(e)}});return()=>{i.stop()}},[i]);o.useEffect(()=>{if(true){if(n&&s.changed){console.group("State Updated");console.log("State:",s);console.groupEnd()}}},[n,s]);const c=o.useMemo(()=>({...s,matches:e=>e===s.value}),[s.changed,s.context,s.value]);return[c,u,i]}function tt(e){return Object.entries(e).reduce((e,[t,n])=>{e[t]=n.current;return e},{})}function tn(e,t){return _(()=>e6(e,t))};/**
|
|
190
|
+
* @reach/listbox v0.18.0
|
|
191
|
+
*
|
|
192
|
+
* Copyright (c) 2018-2022, React Training LLC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the MIT license found in the
|
|
195
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
196
|
+
*
|
|
197
|
+
* @license MIT
|
|
198
|
+
*/var tr=e1({navigationValue:null});var to=e1({typeaheadQuery:null});var ti=e1({value:(e,t)=>t.value});var ta=e1({value:(e,t)=>e.initialValue});var ts=e1({navigationValue:(e,t)=>t.value});var tl=e1({navigationValue:e=>{let t=tE(e.value,e.options);if(t&&!t.disabled){return e.value}else{return e.options.find(e=>!e.disabled)?.value||null}}});function tu(e,t){if(t.type==="BLUR"){let{list:e,popover:n}=t.refs;let{relatedTarget:r}=t;let o=v(n);return!!(o?.activeElement!==e&&n&&!n.contains(r||o?.activeElement))}return false}function tc(e,t){if(t.type==="OUTSIDE_MOUSE_DOWN"||t.type==="OUTSIDE_MOUSE_UP"){let{button:e,popover:n}=t.refs;let{relatedTarget:r}=t;return!!(r!==e&&e&&!e.contains(r)&&n&&!n.contains(r))}return false}function td(e,t){return!!e.options.find(t=>t.value===e.navigationValue)}function tf(e,t){let{popover:n,list:r}=t.refs;let{relatedTarget:o}=t;if(n&&o&&n.contains(o)&&o!==r){return false}return td(e,t)}function th(e,t){requestAnimationFrame(()=>{t.refs.list&&t.refs.list.focus()})}function tp(e,t){t.refs.button&&t.refs.button.focus()}function tg(e,t){return!t.disabled}function tv(e,t){return"isControlled"in t?!t.isControlled:false}function tm(e,t){if(t.type==="OPTION_TOUCH_START"){if(t&&t.disabled){return false}}return true}function ty(e,t){if("disabled"in t&&t.disabled){return false}if("value"in t){return t.value!=null}return e.navigationValue!=null}function tx(e,t){t.callback&&t.callback(t.value)}function tw(e,t){if(t.type!=="KEY_DOWN_ENTER"){return}let{hiddenInput:n}=t.refs;if(n&&n.form){let e=n.form.querySelector("button:not([type]),[type='submit']");e&&e.click()}}var tb=e1({typeaheadQuery:(e,t)=>{return(e.typeaheadQuery||"")+t.query}});var tS=e1({value:(e,t)=>{if(t.type==="UPDATE_AFTER_TYPEAHEAD"&&t.query){let n=tT(e.options,t.query);if(n&&!n.disabled){t.callback&&t.callback(n.value);return n.value}}return e.value}});var tk=e1({navigationValue:(e,t)=>{if(t.type==="UPDATE_AFTER_TYPEAHEAD"&&t.query){let n=tT(e.options,t.query);if(n&&!n.disabled){return n.value}}return e.navigationValue}});var tj={["GET_DERIVED_DATA"]:{actions:e1((e,t)=>{return{...e,...t.data}})},["VALUE_CHANGE"]:{actions:[ti,tx]}};var tC=({value:e})=>({id:"listbox",initial:"IDLE",context:{initialValue:e,value:e,options:[],navigationValue:null,typeaheadQuery:null},states:{["IDLE"]:{on:{...tj,["BUTTON_MOUSE_DOWN"]:{target:"OPEN",actions:[tl],cond:tg},["KEY_DOWN_SPACE"]:{target:"NAVIGATING",actions:[tl,th],cond:tg},["KEY_DOWN_SEARCH"]:{target:"IDLE",actions:tb,cond:tg},["UPDATE_AFTER_TYPEAHEAD"]:{target:"IDLE",actions:[tS],cond:tg},["CLEAR_TYPEAHEAD"]:{target:"IDLE",actions:to},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[tl,to,th],cond:tg},["KEY_DOWN_ENTER"]:{actions:[tw],cond:tg},["RESET_VALUE"]:{actions:[ta,tx],cond:tv}}},["INTERACTING"]:{entry:[tr],on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr,th]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"DRAGGING",actions:to,cond:td}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["KEY_DOWN_ENTER"]:"INTERACTING",["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]}}},["OPEN"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"DRAGGING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["LIST_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"DRAGGING",actions:[ts],cond:tm},{target:"DRAGGING"}]}},["DRAGGING"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td,actions:th},{target:"INTERACTING",actions:[to,th]}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"DRAGGING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"NAVIGATING",actions:[ts],cond:tm},{target:"NAVIGATING"}],["OPTION_MOUSE_UP"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty}}},["NAVIGATING"]:{on:{...tj,["CLEAR_NAV_SELECTION"]:{actions:[tr,th]},["KEY_DOWN_ENTER"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["KEY_DOWN_SPACE"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["BUTTON_MOUSE_DOWN"]:{target:"IDLE",actions:[tp]},["KEY_DOWN_ESCAPE"]:{target:"IDLE",actions:[tp]},["OPTION_MOUSE_DOWN"]:{target:"DRAGGING"},["OUTSIDE_MOUSE_DOWN"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["OUTSIDE_MOUSE_UP"]:[{target:"IDLE",cond:tc,actions:to},{target:"NAVIGATING",cond:td},{target:"INTERACTING",actions:to}],["BLUR"]:[{target:"IDLE",cond:tu,actions:to},{target:"NAVIGATING",cond:tf},{target:"INTERACTING",actions:to}],["BUTTON_MOUSE_UP"]:{target:"NAVIGATING",actions:[tl,th]},["OPTION_TOUCH_START"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["OPTION_CLICK"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_PRESS"]:{target:"IDLE",actions:[ti,to,tp,tx],cond:ty},["OPTION_MOUSE_ENTER"]:{target:"NAVIGATING",actions:[ts,to],cond:tm},["KEY_DOWN_NAVIGATE"]:{target:"NAVIGATING",actions:[ts,to,th]},["KEY_DOWN_SEARCH"]:{target:"NAVIGATING",actions:tb},["UPDATE_AFTER_TYPEAHEAD"]:{actions:[tk]},["CLEAR_TYPEAHEAD"]:{actions:to},["OPTION_MOUSE_MOVE"]:[{target:"NAVIGATING",actions:[ts],cond:tm},{target:"NAVIGATING"}]}}}});function tT(e,t=""){if(!t)return null;const n=e.find(e=>!e.disabled&&e.label&&e.label.toLowerCase().startsWith(t.toLowerCase()));return n||null}function tE(e,t){return e?t.find(t=>t.value===e):void 0}var tI=false;var t_=eF("ListboxDescendantContext");var tM=w("ListboxContext",{});var tD=w("ListboxGroupContext",{});var tP=o.forwardRef(function e({as:e="div","aria-labelledby":t,"aria-label":n,children:r,defaultValue:i,disabled:a=false,form:s,name:l,onChange:u,required:f,value:h,__componentName:p="ListboxInput",...v},m){let y=o.useRef(h!=null);let[x,w]=eW();let b=o.useRef(null);let k=o.useRef(null);let j=o.useRef(null);let C=o.useRef(null);let T=o.useRef(null);let I=o.useRef(null);let _=o.useRef(null);let M=tn(tC({value:(y.current?h:i)||null}));let[D,P]=te(M,{button:b,hiddenInput:k,highlightedOption:j,input:C,list:T,popover:I,selectedOption:_},tI);function A(e){if(e!==D.context.value){u?.(e)}}let R=$(v.id);let z=v.id||E("listbox-input",R);let Z=g(C,m);let L=o.useMemo(()=>{let e=x.find(e=>e.value===D.context.value);return e?e.label:null},[x,D.context.value]);let N=tU(D.value);let B={ariaLabel:n,ariaLabelledBy:t,buttonRef:b,disabled:a,highlightedOptionRef:j,isExpanded:N,listboxId:z,listboxValueLabel:L,listRef:T,onValueChange:A,popoverRef:I,selectedOptionRef:_,send:P,state:D.value,stateData:D.context};let H=o.useRef(false);if(!y.current&&i==null&&!H.current&&x.length){H.current=true;let e=x.find(e=>!e.disabled);if(e&&e.value){P({type:"VALUE_CHANGE",value:e.value})}}S(h,"value",p);tY(h,D.context.value,()=>{P({type:"VALUE_CHANGE",value:h})});O(()=>{P({type:"GET_DERIVED_DATA",data:{options:x}})},[x,P]);o.useEffect(()=>{function e(e){let{target:t,relatedTarget:n}=e;if(!tq(I.current,t)){P({type:"OUTSIDE_MOUSE_DOWN",relatedTarget:n||t})}}if(N){window.addEventListener("mousedown",e)}return()=>{window.removeEventListener("mousedown",e)}},[P,N]);o.useEffect(()=>{function e(e){let{target:t,relatedTarget:n}=e;if(!tq(I.current,t)){P({type:"OUTSIDE_MOUSE_UP",relatedTarget:n||t})}}if(N){window.addEventListener("mouseup",e)}return()=>{window.removeEventListener("mouseup",e)}},[P,N]);o.useEffect(()=>{let e=k.current?.form;if(!e)return;function t(e){P({type:"RESET_VALUE",isControlled:y.current})}e.addEventListener("reset",t);return()=>{e?.removeEventListener("reset",t)}},[C,y,P]);return o.createElement(e,{...v,ref:Z,"data-reach-listbox-input":"","data-state":N?"expanded":"closed","data-value":D.context.value,id:z},o.createElement(tM.Provider,{value:B},o.createElement(e$,{context:t_,items:x,set:w},c(r)?r({id:z,isExpanded:N,value:D.context.value,selectedOptionRef:_,highlightedOptionRef:j,valueLabel:L,expanded:N}):r,(s||l||f)&&o.createElement("input",{ref:k,"data-reach-listbox-hidden-input":"",disabled:a,form:s,name:l,readOnly:true,required:f,tabIndex:-1,type:"hidden",value:D.context.value||""}))))});tP.displayName="ListboxInput";var tA=o.forwardRef(function e({arrow:e="▼",button:t,children:n,portal:r=true,...i},a){return o.createElement(tP,{...i,__componentName:"Listbox",ref:a},({value:i,valueLabel:a})=>o.createElement(o.Fragment,null,o.createElement(tR,{arrow:e,children:t?c(t)?t({value:i,label:a}):t:void 0}),o.createElement(tN,{portal:r},o.createElement(tB,null,n))))});tA.displayName="Listbox";var tO=o.forwardRef(function e({"aria-label":e,arrow:t=false,as:n="span",children:r,onKeyDown:i,onMouseDown:a,onMouseUp:s,...f},h){let{buttonRef:p,send:v,ariaLabelledBy:m,disabled:y,isExpanded:x,listboxId:w,stateData:b,listboxValueLabel:S}=o.useContext(tM);let k=b.value;let j=g(p,h);let C=t$();function I(e){if(!T(e.nativeEvent)){e.preventDefault();e.stopPropagation();v({type:"BUTTON_MOUSE_DOWN",disabled:y})}}function _(e){if(!T(e.nativeEvent)){e.preventDefault();e.stopPropagation();v({type:"BUTTON_MOUSE_UP"})}}let M=E("button",w);let D=o.useMemo(()=>{if(!r){return S}else if(c(r)){return r({isExpanded:x,label:S,value:k,expanded:x})}return r},[r,S,x,k]);return o.createElement(n,{"aria-disabled":y||void 0,"aria-expanded":x||void 0,"aria-haspopup":"listbox","aria-labelledby":e?void 0:[m,M].filter(Boolean).join(" "),"aria-label":e,role:"button",tabIndex:y?-1:0,...f,ref:j,"data-reach-listbox-button":"",id:M,onKeyDown:l(i,C),onMouseDown:l(a,I),onMouseUp:l(s,_)},D,t&&o.createElement(tZ,null,u(t)?null:t))});tO.displayName="ListboxButton";var tR=o.memo(tO);var tz=o.forwardRef(function e({as:e="span",children:t,...n},r){let{isExpanded:i}=o.useContext(tM);return o.createElement(e,{"aria-hidden":true,...n,ref:r,"data-reach-listbox-arrow":"","data-expanded":i?"":void 0},c(t)?t({isExpanded:i,expanded:i}):t||"▼")});tz.displayName="ListboxArrow";var tZ=o.memo(tz);var tL=o.forwardRef(function e({as:e="div",position:t=eN,onBlur:n,onKeyDown:r,onMouseUp:i,portal:a=true,unstable_observableRefs:s,...u},c){let{isExpanded:f,buttonRef:h,popoverRef:p,send:v}=o.useContext(tM);let m=g(p,c);let y=t$();function x(){v({type:"LIST_MOUSE_UP"})}let w={hidden:!f,tabIndex:-1,...u,ref:m,"data-reach-listbox-popover":"",onMouseUp:l(i,x),onBlur:l(n,b),onKeyDown:l(r,y)};function b(e){let{nativeEvent:t}=e;requestAnimationFrame(()=>{v({type:"BLUR",relatedTarget:t.relatedTarget||t.target})})}return a?o.createElement(eA,{...w,as:e,targetRef:h,position:t,unstable_observableRefs:s,unstable_skipInitialPortalRender:true}):o.createElement(e,{...w})});tL.displayName="ListboxPopover";var tN=o.memo(tL);var tB=o.forwardRef(function e({as:e="ul",...t},n){let{listRef:r,ariaLabel:i,ariaLabelledBy:a,isExpanded:s,listboxId:l,stateData:{value:u,navigationValue:c}}=o.useContext(tM);let f=g(n,r);return o.createElement(e,{"aria-activedescendant":tK(s?c:u),"aria-labelledby":i?void 0:a,"aria-label":i,role:"listbox",tabIndex:-1,...t,ref:f,"data-reach-listbox-list":"",id:E("listbox",l)})});tB.displayName="ListboxList";var tH=o.forwardRef(function e({as:e="li",children:t,disabled:n,index:r,label:i,onClick:a,onMouseDown:s,onMouseEnter:u,onMouseLeave:c,onMouseMove:f,onMouseUp:h,onTouchStart:p,value:v,...m},y){let{highlightedOptionRef:x,selectedOptionRef:w,send:b,isExpanded:S,onValueChange:k,state:j,stateData:{value:C,navigationValue:E}}=o.useContext(tM);let[I,_]=o.useState(i);let M=i||I||"";let D=o.useRef(null);let[P,A]=B(D,null);let O=o.useMemo(()=>{return{element:P,value:v,label:M,disabled:!!n}},[n,P,M,v]);eV(O,t_,r);let R=o.useCallback(e=>{if(!i&&e){_(t=>{if(e.textContent&&t!==e.textContent){return e.textContent}return t||""})}},[i]);let z=E?E===v:false;let Z=C===v;let L=g(R,y,A,Z?w:null,z?x:null);function N(){b({type:"OPTION_MOUSE_ENTER",value:v,disabled:!!n})}function H(){b({type:"OPTION_TOUCH_START",value:v,disabled:!!n})}function F(){b({type:"CLEAR_NAV_SELECTION"})}function V(e){if(!T(e.nativeEvent)){e.preventDefault();b({type:"OPTION_MOUSE_DOWN"})}}function W(e){if(!T(e.nativeEvent)){b({type:"OPTION_MOUSE_UP",value:v,callback:k,disabled:!!n})}}function U(e){if(!T(e.nativeEvent)){b({type:"OPTION_CLICK",value:v,callback:k,disabled:!!n})}}function $(){if(j==="OPEN"||E!==v){b({type:"OPTION_MOUSE_MOVE",value:v,disabled:!!n})}}return o.createElement(e,{"aria-selected":(S?z:Z)||void 0,"aria-disabled":n||void 0,role:"option",...m,ref:L,id:tK(v),"data-reach-listbox-option":"","data-current-nav":z?"":void 0,"data-current-selected":Z?"":void 0,"data-label":M,"data-value":v,onClick:l(a,U),onMouseDown:l(s,V),onMouseEnter:l(u,N),onMouseLeave:l(c,F),onMouseMove:l(f,$),onMouseUp:l(h,W),onTouchStart:l(p,H)},t)});tH.displayName="ListboxOption";var tF=o.forwardRef(function e({as:e="div",label:t,children:n,...r},i){let{listboxId:a}=o.useContext(tM);let s=E("label",$(r.id),a);return o.createElement(tD.Provider,{value:{labelId:s}},o.createElement(e,{"aria-labelledby":s,role:"group",...r,"data-reach-listbox-group":"",ref:i},t&&o.createElement(tV,null,t),n))});tF.displayName="ListboxGroup";var tV=o.forwardRef(function e({as:e="span",...t},n){let{labelId:r}=o.useContext(tD);return o.createElement(e,{role:"presentation",...t,ref:n,"data-reach-listbox-group-label":"",id:r})});tV.displayName="ListboxGroupLabel";function tW(){let{highlightedOptionRef:e,selectedOptionRef:t,listboxId:n,listboxValueLabel:r,isExpanded:o,stateData:{value:i}}=React.useContext(tM);return React.useMemo(()=>({id:n,isExpanded:o,selectedOptionRef:t,highlightedOptionRef:e,value:i,valueLabel:r}),[n,o,i,r,t,e])}function tU(e){return["NAVIGATING","OPEN","DRAGGING","INTERACTING"].includes(e)}function t$(){let{send:e,disabled:t,onValueChange:n,stateData:{navigationValue:r,typeaheadQuery:i}}=o.useContext(tM);let a=eU(t_);let s=L(n);o.useEffect(()=>{if(i){e({type:"UPDATE_AFTER_TYPEAHEAD",query:i,callback:s})}let t=window.setTimeout(()=>{if(i!=null){e({type:"CLEAR_TYPEAHEAD"})}},1e3);return()=>{window.clearTimeout(t)}},[s,e,i]);let u=a.findIndex(({value:e})=>e===r);let c=l(function(o){let{key:i}=o;let s=h(i)&&i.length===1;let l=a.find(e=>e.value===r);switch(i){case"Enter":e({type:"KEY_DOWN_ENTER",value:r,callback:n,disabled:!!(l?.disabled||t)});return;case" ":o.preventDefault();e({type:"KEY_DOWN_SPACE",value:r,callback:n,disabled:!!(l?.disabled||t)});return;case"Escape":e({type:"KEY_DOWN_ESCAPE"});return;case"Tab":let u=o.shiftKey?"KEY_DOWN_SHIFT_TAB":"KEY_DOWN_TAB";e({type:u});return;default:if(s){e({type:"KEY_DOWN_SEARCH",query:i,disabled:t})}return}},eK(t_,{currentIndex:u,orientation:"vertical",key:"index",rotate:true,filter:e=>!e.disabled,callback(n){e({type:"KEY_DOWN_NAVIGATE",value:a[n].value,disabled:t})}}));return c}function tK(e){let{listboxId:t}=o.useContext(tM);return e?E(`option-${e}`,t):void 0}function tq(e,t){return!!(e&&e.contains(t))}function tY(e,t,n){let{current:r}=o.useRef(e!=null);if(r&&e!==t){n()}}var tG=n(99818);var tX=n(67459);var tQ=n(45492);function tJ({bare:e,options:t,value:n,defaultLabel:o="",onChange:i,style:a,wrapperStyle:s,line:l,disabled:u,disabledKeys:c=[]}){const f=7;const h=a?.minHeight?a.minHeight:"18px";const p=t.filter(e=>e[0]===n);return(0,r.jsxs)(tP,{value:n,onChange:i,disabled:u,style:{color:e?"inherit":tQ.rS.formInputText,backgroundColor:e?"transparent":tQ.rS.cardBackground,borderRadius:tQ.W2.menuBorderRadius,border:e?"none":"1px solid "+tQ.rS.formInputBorder,lineHeight:"1em",...s},children:[(0,r.jsx)(tR,{className:`${(0,tG.iv)([{borderWidth:0,padding:5,borderRadius:4},a])}`,arrow:(0,r.jsx)(tX.Z,{style:{width:f,height:f,color:"inherit"}}),children:(0,r.jsx)("span",{style:{display:"flex",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:`calc(100% - ${f+5}px)`,alignItems:"center",minHeight:h},children:p.length!==0?p[0][1]:o})}),(0,r.jsx)(tN,{style:{zIndex:1e4,outline:0,borderRadius:tQ.W2.menuBorderRadius,backgroundColor:tQ.rS.menuBackground,color:tQ.rS.menuItemText,boxShadow:tQ.W2.cardShadow,border:"1px solid "+tQ.rS.menuBorder},className:`${(0,tG.iv)({"[data-reach-listbox-option]":{background:tQ.rS.menuItemBackground,color:tQ.rS.menuItemText},"[data-reach-listbox-option][data-current-nav]":{background:tQ.rS.menuItemBackgroundHover,color:tQ.rS.menuItemTextHover}})}`,children:!l?(0,r.jsx)(tB,{style:{maxHeight:250,overflowY:"auto"},children:t.map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:c.includes(e),children:t},e))}):(0,r.jsxs)(tB,{style:{maxHeight:250,overflowY:"auto"},children:[t.slice(0,l).map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:c.includes(e),children:t},e)),(0,r.jsx)("div",{style:{padding:"2px",marginTop:5,borderTop:"1px solid "+tQ.rS.menuBorder}}),t.slice(l,t.length).map(([e,t])=>(0,r.jsx)(tH,{value:e,disabled:c.includes(e),children:t},e))]})})]})}},84196:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(77644);var a=n(24307);function s(e,t){return o.Children.toArray(t).reduce((t,n)=>{if(n){if(typeof n==="object"&&"type"in n&&n.type===o.Fragment){return t.concat(s(n.key,n.props.children))}t.push({key:e+n["key"],child:n});return t}return t},[])}const l=(0,o.forwardRef)(({direction:e="column",align:t,justify:n,spacing:l=3,children:u,debug:c,style:f,...h},p)=>{const g=e.endsWith("reverse");const v=e.startsWith("row");const m=s("",u);return(0,r.jsx)(a.Z,{style:{flexDirection:e,alignItems:t,justifyContent:n,...f},innerRef:p,...h,children:m.map(({key:e,child:t},n)=>{const a=m.length===n+1;let s;if(v){s=g?"marginLeft":"marginRight"}else{s=g?"marginTop":"marginBottom"}return(0,o.cloneElement)(typeof t==="string"?(0,r.jsx)(i.Z,{children:t}):t,{key:e,style:{...c&&{borderWidth:1,borderColor:"red"},...a?null:{[s]:l*5},...t.props?t.props.style:null}})})})});t.Z=l},77644:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{className:t="",style:n,innerRef:o,...a}=e;return(0,r.jsx)("span",{...a,ref:o,className:`${t} ${(0,i.iv)(n)}`})};t.Z=a},42308:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43188);var o=n(77644);function i({children:e,...t}){return(0,r.jsx)(o.Z,{...t,style:{...t.style,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:e})}},24307:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{className:t="",style:n,nativeStyle:o,innerRef:a,...s}=e;return(0,r.jsx)("div",{...s,ref:a,style:o,className:`view ${t} ${(0,i.iv)(n)}`})};t.Z=a},10730:function(e,t,n){"use strict";n.d(t,{Wi:function(){return f},XZ:function(){return h},eX:function(){return u},lX:function(){return c}});var r=n(43188);var o=n(66204);var i=n(99818);var a=n(45492);var s=n(77644);var l=n(24307);const u=({title:e,style:t})=>{return(0,r.jsx)(l.Z,{style:{fontWeight:500,textTransform:"uppercase",color:a.rS.formLabelText,marginBottom:5,lineHeight:"1em",...t},children:e})};const c=({style:e,title:t,id:n,htmlFor:o})=>{return(0,r.jsx)(s.Z,{style:{fontSize:13,marginBottom:3,color:a.rS.tableText,...e},children:(0,r.jsx)("label",{htmlFor:o,id:n,children:t})})};const f=({style:e,children:t})=>{return(0,r.jsx)(l.Z,{style:e,children:t})};const h=e=>{return(0,r.jsx)("input",{type:"checkbox",...e,className:`${(0,i.iv)([{position:"relative",margin:0,flexShrink:0,marginRight:6,width:15,height:15,appearance:"none",outline:0,border:"1px solid "+a.rS.formInputBorder,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",color:a.rS.checkboxText,backgroundColor:a.rS.tableBackground,":checked":{border:"1px solid "+a.rS.checkboxBorderSelected,backgroundColor:a.rS.checkboxBackgroundSelected,"::after":{display:"block",background:a.rS.checkboxBackgroundSelected+' url(\'data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>\') 9px 9px',width:9,height:9,content:" "}},"&.focus-visible:focus":{"::before":{position:"absolute",top:-5,bottom:-5,left:-5,right:-5,border:"2px solid "+a.rS.checkboxBorderSelected,borderRadius:6,content:" "}}}],e.style)}`})}},76529:function(e,t,n){"use strict";n.d(t,{Jz:function(){return R},Wy:function(){return O},ZP:function(){return Y}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(13910);var s=n(62829);var l=n(10959);var u=n(84094);var c=n(73416);var f=n(3189);var h=n(89362);var p=n(11892);var g=n(19450);var v=n(29325);var m=n(28799);var y=n(45492);var x=n(56816);var w=n(8987);var b=n(78628);var S=n(84196);var k=n(77644);var j=n(24307);var C=n(60002);var T=n(19808);var E=n(58214);var I=n(82345);var _=n(10464);var M=n(77119);function D(e,t,n){return e.map(e=>e===t?n():e)}function P(e,t){return e.map((e,n)=>{return{...e,error:t[n]}})}function A(e,t){const n=["date"];if(e.find(e=>e.field==="imported_payee")){n.push("imported_payee")}n.push("payee");if(t.find(e=>e.field==="category")){n.push("category")}else if(t.length>0&&!["payee","date","amount"].includes(t[0].field)){n.push(t[0].field)}n.push("amount");return n}function O({fields:e,style:t,value:n,onChange:o}){return(0,r.jsx)(j.Z,{style:{color:y.rS.pageTextPositive,...t},children:(0,r.jsx)(b.Z,{bare:true,options:e,value:n,onChange:e=>o("field",e)})})}function R({ops:e,type:t,style:n,wrapperStyle:o,value:i,formatOp:a=f.w8,onChange:s}){let l;if(t==="id"){e=e.filter(e=>e!=="contains"&&e!=="doesNotContain");l=e.length/2}if(t==="string"){l=e.length/2}return(0,r.jsx)(b.Z,{bare:true,options:e.map(e=>[e,a(e,t)]),value:i,onChange:e=>s("op",e),line:l,style:{minHeight:"1px",...n},wrapperStyle:o})}function z({onAdd:e,onDelete:t,style:n}){return(0,r.jsxs)(r.Fragment,{children:[t&&(0,r.jsx)(x.Z,{type:"bare",onClick:t,style:{padding:7},"aria-label":"Delete entry",children:(0,r.jsx)(v.Z,{style:{width:8,height:8,color:"inherit"}})}),e&&(0,r.jsx)(x.Z,{type:"bare",onClick:e,style:{padding:7},"aria-label":"Add entry",children:(0,r.jsx)(g.Z,{style:{width:10,height:10,color:"inherit"}})})]})}function Z({type:e}){return(0,r.jsx)(k.Z,{style:{fontSize:12,textAlign:"center",color:y.rS.errorText,marginBottom:5},children:(0,f.zQ)(e)})}function L({error:e,style:t,children:n}){return(0,r.jsxs)(j.Z,{style:t,"data-testid":"editor-row",children:[(0,r.jsx)(S.Z,{direction:"row",align:"center",spacing:1,style:{padding:"3px 5px"},children:n}),e&&(0,r.jsx)(Z,{type:e})]})}function N({ops:e,condition:t,editorStyle:n,isSchedule:o,onChange:i,onDelete:a,onAdd:s}){const{field:l,op:u,value:c,type:f,options:h,error:p}=t;let g=l;if(g==="amount"&&h){if(h.inflow){g="amount-inflow"}else if(h.outflow){g="amount-outflow"}}let v;if(f==="number"&&u==="isbetween"){v=(0,r.jsx)(I.I,{defaultValue:c,onChange:e=>i("value",e)})}else{v=(0,r.jsx)(M.Z,{field:g,type:f,value:c,multi:u==="oneOf"||u==="notOneOf",onChange:e=>i("value",e)})}return(0,r.jsxs)(L,{style:n,error:p,children:[(0,r.jsx)(O,{fields:q,value:g,onChange:i}),(0,r.jsx)(R,{ops:e,value:u,type:f,onChange:i}),(0,r.jsx)(j.Z,{style:{flex:1},children:v}),(0,r.jsx)(S.Z,{direction:"row",children:(0,r.jsx)(z,{onAdd:s,onDelete:o&&g==="date"?null:a})})]})}function B(e){if(!e){return(0,h.zA)(0)}else if(typeof e==="number"){return(0,h.zA)(e)}else{return`${(0,h.zA)(e.num1)} to ${(0,h.zA)(e.num2)}`}}function H({id:e}){const t=(0,i.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});const n=(0,s.gZ)({transform:(0,o.useCallback)(t=>t.filter({id:e}),[])});if(n==null){return null}if(n.schedules.length===0){return(0,r.jsx)(j.Z,{style:{flex:1},children:e})}const[a]=n.schedules;const l=a&&n.statuses.get(a.id);return(0,r.jsxs)(j.Z,{style:{flex:1,flexDirection:"row",alignItems:"center"},children:[(0,r.jsxs)(j.Z,{style:{marginRight:15,flexDirection:"row"},children:[(0,r.jsxs)(k.Z,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:["Payee:"," ",(0,r.jsx)(_.Z,{type:"payees",id:a._payee,noneColor:y.rS.pageTextLight})]}),(0,r.jsx)(k.Z,{style:{margin:"0 5px"},children:" — "}),(0,r.jsxs)(k.Z,{style:{flexShrink:0},children:["Amount: ",B(a._amount)]}),(0,r.jsx)(k.Z,{style:{margin:"0 5px"},children:" — "}),(0,r.jsxs)(k.Z,{style:{flexShrink:0},children:["Next: ",c.WU(a.next_date,t)]})]}),(0,r.jsx)(C.O,{status:l})]})}const F=["category","payee","notes","cleared","account","date","amount"].map(e=>[e,(0,f.gL)(e)]);function V({ops:e,action:t,editorStyle:n,onChange:o,onDelete:i,onAdd:a}){const{field:s,op:l,value:u,type:c,error:h,inputKey:p="initial"}=t;return(0,r.jsxs)(L,{style:n,error:h,children:[l==="set"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:{padding:"5px 10px",lineHeight:"1em"},children:(0,f.w8)(l)}),(0,r.jsx)(O,{fields:F,value:s,onChange:o}),(0,r.jsx)(j.Z,{style:{flex:1},children:(0,r.jsx)(M.Z,{field:s,type:c,op:l,value:u,onChange:e=>o("value",e)},p)})]}):l==="link-schedule"?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j.Z,{style:{padding:"5px 10px",color:y.rS.pageTextPositive},children:(0,f.w8)(l)}),(0,r.jsx)(H,{id:u||null})]}):null,(0,r.jsx)(S.Z,{direction:"row",children:(0,r.jsx)(z,{onAdd:a,onDelete:l!=="link-schedule"&&i})})]})}function W(){const[e,t]=(0,o.useState)();return(0,r.jsxs)(j.Z,{style:{position:"relative",marginLeft:5},children:[(0,r.jsx)(j.Z,{onMouseEnter:()=>t(true),onMouseLeave:()=>t(false),children:(0,r.jsx)(m.Z,{style:{width:11,height:11,color:y.rS.pageTextLight}})}),e&&(0,r.jsx)(T.u,{position:"bottom-left",style:{padding:10,color:y.rS.pageTextLight,maxWidth:450,lineHeight:1.5},children:"The stage of a rule allows you to force a specific order. Pre rules always run first, and post rules always run last. Within each stage rules are automatically ordered from least to most specific."})]})}function U({selected:e,children:t,style:n,onSelect:o}){return(0,r.jsx)(x.Z,{type:"bare",style:{fontSize:"inherit",...e&&{backgroundColor:y.rS.pillBackgroundSelected,":hover":{backgroundColor:y.rS.pillBackgroundSelected}},...n},onClick:o,children:t})}function $(e){return{...e,inputKey:""+Math.random()}}function K({conditionsOp:e,conditions:t,editorStyle:n,isSchedule:o,onChangeConditions:i}){function a(n){let r=q.map(e=>e[0]).filter(e=>e!=="amount-inflow"&&e!=="amount-outflow");if(t.length&&e==="or"){r=[t[0].field]}else{r=r.filter(e=>!t.some(t=>t.field.includes(e)||e.includes(t.field)))}const o=r[0]||"payee";const a=[...t];a.splice(n+1,0,{type:f.Z9.get(o),field:o,op:"is",value:null});i(a)}function s(){a(-1)}function l(e){i(t.filter(t=>t!==e))}function u(e,n,r){i(D(t,e,()=>{if(n==="field"){const t={field:r};if(r==="amount-inflow"){t.field="amount";t.options={inflow:true}}else if(r==="amount-outflow"){t.field="amount";t.options={outflow:true}}t.type=f.Z9.get(t.field);const n=f.Z9.get(e.field);if((n==="string"||n==="number")&&n===t.type&&e.op!=="isbetween"){t.op=e.op;return $((0,f.l1)(e.value,t))}else{t.op=f.wZ[t.type].ops[0];return $((0,f.l1)(null,t))}}else if(n==="op"){const t=r;if(e.op!=="oneOf"&&e.op!=="notOneOf"&&(t==="oneOf"||t==="notOneOf")){return $((0,f.l1)(e.value!=null?[e.value]:[],{...e,op:r}))}else if((e.op==="oneOf"||e.op==="notOneOf")&&t!=="oneOf"&&t!=="notOneOf"){return $((0,f.l1)(e.value.length>0?e.value[0]:null,{...e,op:r}))}else if(e.op!=="isbetween"&&t==="isbetween"){return(0,f.l1)({num1:(0,h.l9)(e.value),num2:(0,h.l9)(e.value)},{...e,op:r})}else if(e.op==="isbetween"&&t!=="isbetween"){return(0,f.l1)((0,h.Bf)(e.value.num1||0),{...e,op:r})}else{return{...e,op:r}}}else if(n==="value"){return(0,f.l1)(r,e)}return e}))}return t.length===0?(0,r.jsx)(x.Z,{style:{alignSelf:"flex-start"},onClick:s,children:"Add condition"}):(0,r.jsx)(S.Z,{spacing:2,"data-testid":"condition-list",children:t.map((e,t)=>{let i=f.wZ[e.type].ops;if(e.type==="date"&&e.value&&e.value.frequency){i=["is","isapprox"]}else if(e.options&&(e.options.inflow||e.options.outflow)){i=i.filter(e=>e!=="isbetween")}return(0,r.jsx)(j.Z,{children:(0,r.jsx)(N,{editorStyle:n,ops:i,condition:e,isSchedule:o,onChange:(t,n)=>{u(e,t,n)},onDelete:()=>l(e),onAdd:()=>a(t)})},t)})})}const q=["imported_payee","account","category","date","payee","notes","amount"].map(e=>[e,(0,f.gL)(e)]).concat([["amount-inflow",(0,f.gL)("amount",{inflow:true})],["amount-outflow",(0,f.gL)("amount",{outflow:true})]]);function Y({modalProps:e,defaultRule:t,onSave:n}){const[s,c]=(0,o.useState)(t.conditions.map(f.Qc));const[h,g]=(0,o.useState)(t.actions.map(f.Qc));const[v,m]=(0,o.useState)(t.stage);const[b,C]=(0,o.useState)(t.conditionsOp);const[T,I]=(0,o.useState)([]);const _=(0,i.I0)();const M=(0,o.useRef)();const R=h.some(e=>e.op==="link-schedule");(0,o.useEffect)(()=>{_((0,a.Rr)());(0,a.Ew)(false);return()=>(0,a.Ew)(true)},[]);(0,o.useEffect)(()=>{if(M.current){const e=M.current;const t=e.scrollTop;e.scrollTop=t+1;e.scrollTop=t}async function e(){const{filters:e}=await (0,u.lW)("make-filters-from-conditions",{conditions:s.map(f.Z2)});if(e.length>0){const t=b==="or"?"$or":"$and";const{data:n}=await (0,l.Vn)((0,l.ZP)("transactions").filter({[t]:e}).select("*"));I(n)}else{I([])}}e()},[h,s,b]);const z=(0,p.ZP)("transactions",T,[]);function Z(){L(-1)}function L(e){let t=F.map(e=>e[0]);for(const e of h){t=t.filter(t=>t!==e.field)}const n=t[0]||"category";const r=[...h];r.splice(e+1,0,{type:f.Z9.get(n),field:n,op:"set",value:null});g(r)}function N(e,t,n){g(D(h,e,()=>{const r={...e};r[t]=n;if(t==="field"){r.type=f.Z9.get(r.field);r.value=null;return $(r)}else if(t==="op"){r.value=null;r.inputKey=""+Math.random();return $(r)}return r}))}function B(e){m(e)}function H(e,t){C(t)}function q(e){g(h.filter(t=>t!==e))}function Y(){(0,u.lW)("rule-apply-actions",{transactionIds:[...z.items],actions:h.map(f.Z2)}).then(()=>{g([...h])})}async function G(){const r={...t,stage:v,conditionsOp:b,conditions:s.map(f.Z2),actions:h.map(f.Z2)};const o=r.id?"rule-update":"rule-add";const{error:i,id:a}=await (0,u.lW)(o,r);if(i){if(i.conditionErrors){c(P(s,i.conditionErrors))}if(i.actionErrors){g(P(h,i.actionErrors))}}else{if(a){r.id=a}n?.(r);e.onClose()}}const X={color:y.rS.pillText,backgroundColor:y.rS.pillBackground,borderRadius:4};return(0,r.jsx)(w.C,{title:"Rule",padding:0,...e,style:{...e.style,flex:"inherit"},children:()=>(0,r.jsxs)(j.Z,{style:{maxWidth:"100%",width:900,height:"80vh",flexGrow:0,flexShrink:0,flexBasis:"auto",overflow:"hidden",color:y.rS.pageTextLight},children:[(0,r.jsxs)(j.Z,{style:{flexDirection:"row",alignItems:"center",marginBottom:15,padding:"0 20px"},children:[(0,r.jsx)(k.Z,{style:{marginRight:15},children:"Stage of rule:"}),(0,r.jsxs)(S.Z,{direction:"row",align:"center",spacing:1,children:[(0,r.jsx)(U,{selected:v==="pre",onSelect:()=>B("pre"),children:"Pre"}),(0,r.jsx)(U,{selected:v===null,onSelect:()=>B(null),children:"Default"}),(0,r.jsx)(U,{selected:v==="post",onSelect:()=>B("post"),children:"Post"}),(0,r.jsx)(W,{})]})]}),(0,r.jsx)(j.Z,{innerRef:M,style:{borderBottom:"1px solid "+y.rS.tableBorder,padding:20,overflow:"auto",maxHeight:"calc(100% - 300px)"},children:(0,r.jsxs)(j.Z,{style:{flexShrink:0},children:[(0,r.jsxs)(j.Z,{style:{marginBottom:30},children:[(0,r.jsxs)(k.Z,{style:{marginBottom:15},children:["If",(0,r.jsx)(O,{"data-testid":"conditions-op",style:{display:"inline-flex"},fields:[["and","all"],["or","any"]],value:b,onChange:H}),"of these conditions match:"]}),(0,r.jsx)(K,{conditionsOp:b,conditions:s,editorStyle:X,isSchedule:R,onChangeConditions:e=>c(e)})]}),(0,r.jsx)(k.Z,{style:{marginBottom:15},children:"Then apply these actions:"}),(0,r.jsx)(j.Z,{style:{flex:1},children:h.length===0?(0,r.jsx)(x.Z,{style:{alignSelf:"flex-start"},onClick:Z,children:"Add action"}):(0,r.jsx)(S.Z,{spacing:2,"data-testid":"action-list",children:h.map((e,t)=>(0,r.jsx)(j.Z,{children:(0,r.jsx)(V,{ops:["set","link-schedule"],action:e,editorStyle:X,onChange:(t,n)=>{N(e,t,n)},onDelete:()=>q(e),onAdd:()=>L(t)})},t))})})]})}),(0,r.jsx)(p.i5,{instance:z,children:(0,r.jsxs)(j.Z,{style:{padding:"20px",flex:1},children:[(0,r.jsxs)(j.Z,{style:{flexDirection:"row",alignItems:"center",marginBottom:12},children:[(0,r.jsx)(k.Z,{style:{color:y.rS.pageTextLight,marginBottom:0},children:"This rule applies to these transactions:"}),(0,r.jsx)(j.Z,{style:{flex:1}}),(0,r.jsxs)(x.Z,{disabled:z.items.size===0,onClick:Y,children:["Apply actions (",z.items.size,")"]})]}),(0,r.jsx)(E.Z,{transactions:T,fields:A(s,h),style:{border:"1px solid "+y.rS.tableBorder,borderRadius:"6px 6px 0 0"}}),(0,r.jsxs)(S.Z,{direction:"row",justify:"flex-end",style:{marginTop:20},children:[(0,r.jsx)(x.Z,{onClick:()=>e.onClose(),children:"Cancel"}),(0,r.jsx)(x.Z,{type:"primary",onClick:()=>G(),children:"Save"})]})]})})]})})}},99012:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(79982);var s=n(41071);var l=n(73416);var u=n(11504);var c=n(89362);var f=n(9579);var h=n(45492);var p=n(21920);var g=n(77644);function v({value:e,field:t,valueIsRaw:n,inline:v=false,data:m,describe:y=e=>e.name,style:x}){const w=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const b=(0,i.v9)(e=>e.queries.payees);const{list:S}=(0,f.Z)();const k=(0,i.v9)(e=>e.queries.accounts);const j={color:h.rS.pageTextPositive,...x};const C=m||(t==="payee"?b:t==="category"?S:t==="account"?k:[]);const[T,E]=(0,o.useState)(false);function I(e){e.preventDefault();E(true)}function _(e){if(e==null||e===""){return"(nothing)"}else if(typeof e==="boolean"){return e?"true":"false"}else{switch(t){case"amount":return(0,c.zA)(e);case"date":if(e){if(e.frequency){return(0,u.o7)(e,w)}return(0,a.Z)((0,s.Z)(e),w)}return null;case"month":return e?(0,a.Z)((0,s.Z)(e),(0,l.LT)(w)):null;case"year":return e?(0,a.Z)((0,s.Z)(e),"yyyy"):null;case"notes":case"imported_payee":return e;case"payee":case"category":case"account":case"rule":if(n){return e}if(C&&Array.isArray(C)){const t=C.find(t=>t.id===e);if(t){return y(t)}else{return"(deleted)"}}return"…";default:throw new Error(`Unknown field ${t}`)}}}if(Array.isArray(e)){if(e.length===0){return(0,r.jsx)(g.Z,{style:j,children:"(empty)"})}else if(e.length===1){return(0,r.jsxs)(g.Z,{children:["[",(0,r.jsx)(g.Z,{style:j,children:_(e[0])}),"]"]})}let t=e;if(!T&&e.length>4){t=e.slice(0,3)}const n=e.length-t.length;return(0,r.jsxs)(g.Z,{style:{color:h.rS.tableText},children:["[",t.map((t,n)=>{const o=(0,r.jsx)(g.Z,{style:j,children:_(t)});let i;if(v){i=n!==0?" ":""}else{i=(0,r.jsxs)(r.Fragment,{children:[n===0&&(0,r.jsx)("br",{}),"\xa0\xa0"]})}return(0,r.jsxs)(g.Z,{children:[i,o,n===e.length-1?"":",",!v&&(0,r.jsx)("br",{})]},n)}),n>0&&(0,r.jsxs)(g.Z,{style:j,children:["\xa0\xa0",(0,r.jsxs)(p.Z,{onClick:I,style:j,children:[n," more items..."]}),!v&&(0,r.jsx)("br",{})]}),"]"]})}else if(e&&e.num1!=null&&e.num2!=null){const{num1:t,num2:n}=e;return(0,r.jsxs)(g.Z,{children:[(0,r.jsx)(g.Z,{style:j,children:_(t)})," and"," ",(0,r.jsx)(g.Z,{style:j,children:_(n)})]})}else{return(0,r.jsx)(g.Z,{style:j,children:_(e)})}}},75497:function(e,t,n){"use strict";n.d(t,{Pz:function(){return E},dN:function(){return j},zB:function(){return T}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(99548);var s=n(68761);var l=n(73416);var u=n(11504);var c=n(89362);var f=n(94276);var h=n(25136);var p=n(45492);var g=n(56816);var v=n(31941);var m=n(77644);var y=n(24307);var x=n(44710);var w=n(91882);var b=n(19808);var S=n(10464);var k=n(60002);const j=43;function C({schedule:e,status:t,onAction:n}){const[i,a]=(0,o.useState)(false);const s=()=>{const e=[];if(t==="due"){e.push({name:"post-transaction",text:"Post transaction"})}if(t==="completed"){e.push({name:"restart",text:"Restart"})}else{e.push({name:"skip",text:"Skip next date"},{name:"complete",text:"Complete"})}e.push({name:"delete",text:"Delete"});return e};return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(g.Z,{type:"bare","aria-label":"Menu",onClick:e=>{e.stopPropagation();a(true)},children:(0,r.jsx)(f.Z,{width:15,height:15,style:{transform:"rotateZ(90deg)"}})}),i&&(0,r.jsx)(b.u,{position:"bottom-right",width:150,style:{padding:0},onClose:()=>a(false),children:(0,r.jsx)(v.Z,{onMenuSelect:t=>{n(t,e.id);a(false)},items:s()})})]})}function T({amount:e,op:t}){const n=(0,u.lP)(e);const o=(0,c.zA)(Math.abs(n||0));const i=t==="isapprox"||t==="isbetween";return(0,r.jsxs)(w.bL,{width:100,plain:true,style:{textAlign:"right",flexDirection:"row",alignItems:"center",padding:"0 5px"},name:"amount",children:[i&&(0,r.jsx)(y.Z,{style:{textAlign:"left",color:p.rS.pageTextSubdued,lineHeight:"1em",marginRight:10},title:(i?"Approximately ":"")+o,children:"~"}),(0,r.jsx)(m.Z,{style:{flex:1,color:n>0?p.rS.noticeTextLight:p.rS.tableText,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:(i?"Approximately ":"")+o,children:(0,r.jsx)(x.ZP,{children:n>0?`+${o}`:`${o}`})})]})}function E({schedules:e,statuses:t,filter:n,minimal:f,allowCompleted:g,style:v,onSelect:x,onAction:b,tableStyle:E}){const I=(0,i.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});const[_,M]=(0,o.useState)(false);const D=(0,s.n4)();const P=(0,a.gM)();const A=(0,o.useMemo)(()=>{if(!n){return e}const r=e=>e?e.toLowerCase().includes(n.toLowerCase())||n.toLowerCase().includes(e.toLowerCase()):false;return e.filter(e=>{const n=D.find(t=>e._payee===t.id);const o=P.find(t=>e._account===t.id);const i=(0,u.lP)(e._amount);const a=(e._amountOp==="isapprox"||e._amountOp==="isbetween"?"~":"")+(i>0?"+":"")+(0,c.zA)(Math.abs(i||0));const s=e.next_date?(0,l.WU)(e.next_date,I):null;return r(e.name)||r(n&&n.name)||r(o&&o.name)||r(a)||r(t.get(e.id))||r(s)})},[e,n,t]);const O=(0,o.useMemo)(()=>{const e=A.filter(e=>!e.completed);if(!g){return e}if(_){return A}const t=A.find(e=>e.completed);if(!t)return e;return[...e,{id:"show-completed"}]},[A,_,g]);function R({schedule:e}){return(0,r.jsxs)(w.X2,{height:j,inset:15,onClick:()=>x(e.id),style:{cursor:"pointer",backgroundColor:p.rS.tableBackground,color:p.rS.tableText,":hover":{backgroundColor:p.rS.tableRowBackgroundHover}},children:[(0,r.jsx)(w.gN,{width:"flex",name:"name",children:(0,r.jsx)(m.Z,{style:e.name==null?{color:p.rS.buttonNormalDisabledText}:null,title:e.name?e.name:"",children:e.name?e.name:"None"})}),(0,r.jsx)(w.gN,{width:"flex",name:"payee",children:(0,r.jsx)(S.Z,{type:"payees",id:e._payee})}),(0,r.jsx)(w.gN,{width:"flex",name:"account",children:(0,r.jsx)(S.Z,{type:"accounts",id:e._account})}),(0,r.jsx)(w.gN,{width:110,name:"date",children:e.next_date?(0,l.WU)(e.next_date,I):null}),(0,r.jsx)(w.gN,{width:120,name:"status",style:{alignItems:"flex-start"},children:(0,r.jsx)(k.O,{status:t.get(e.id)})}),(0,r.jsx)(T,{amount:e._amount,op:e._amountOp}),!f&&(0,r.jsx)(w.gN,{width:80,style:{textAlign:"center"},children:e._date&&e._date.frequency&&(0,r.jsx)(h.Z,{style:{width:13,height:13}})}),!f&&(0,r.jsx)(w.gN,{width:40,name:"actions",children:(0,r.jsx)(C,{schedule:e,status:t.get(e.id),onAction:b})})]})}function z({item:e}){if(e.id==="show-completed"){return(0,r.jsx)(w.X2,{height:j,inset:15,style:{cursor:"pointer",backgroundColor:"transparent",":hover":{backgroundColor:p.rS.tableRowBackgroundHover}},onClick:()=>M(true),children:(0,r.jsx)(w.gN,{width:"flex",style:{fontStyle:"italic",textAlign:"center",color:p.rS.tableText},children:"Show completed schedules"})})}return R({schedule:e})}return(0,r.jsxs)(y.Z,{style:{flex:1,...E},children:[(0,r.jsxs)(w.xD,{height:j,inset:15,version:"v2",children:[(0,r.jsx)(w.gN,{width:"flex",children:"Name"}),(0,r.jsx)(w.gN,{width:"flex",children:"Payee"}),(0,r.jsx)(w.gN,{width:"flex",children:"Account"}),(0,r.jsx)(w.gN,{width:110,children:"Next date"}),(0,r.jsx)(w.gN,{width:120,children:"Status"}),(0,r.jsx)(w.gN,{width:100,style:{textAlign:"right"},children:"Amount"}),!f&&(0,r.jsx)(w.gN,{width:80,style:{textAlign:"center"},children:"Recurring"}),!f&&(0,r.jsx)(w.gN,{width:40})]}),(0,r.jsx)(w.iA,{rowHeight:j,backgroundColor:"transparent",version:"v2",style:{flex:1,backgroundColor:"transparent",...v},items:O,renderItem:z,renderEmpty:n?"No matching schedules":"No schedules",allowPopupsEscape:O.length<6})]})}},60002:function(e,t,n){"use strict";n.d(t,{O:function(){return x},V:function(){return y}});var r=n(43188);var o=n(66204);var i=n(89362);var a=n(79494);var s=n(48880);var l=n(6564);var u=n(93757);var c=n(50798);var f=n(26858);var h=n(64355);var p=n(69350);var g=n(45492);var v=n(77644);var m=n(24307);function y(e){switch(e){case"missed":return{color:g.rS.errorTextDarker,backgroundColor:g.rS.errorBackground,Icon:c.Z};case"due":return{color:g.rS.warningTextDark,backgroundColor:g.rS.warningBackground,Icon:a.Z};case"upcoming":return{color:g.rS.upcomingText,backgroundColor:g.rS.upcomingBackground,Icon:s.Z};case"paid":return{color:g.rS.noticeText,backgroundColor:g.rS.noticeBackgroundLight,Icon:p.Z};case"completed":return{color:g.rS.tableHeaderText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:f.Z};case"pending":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.noticeBackgroundLight,Icon:s.Z};case"scheduled":return{color:g.rS.tableRowHeaderText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:s.Z};case"cleared":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.tableRowHeaderBackground,Icon:l.Z};case"reconciled":return{color:g.rS.noticeTextLight,backgroundColor:g.rS.tableRowHeaderBackground,Icon:h.Z};default:return{color:g.rS.buttonNormalDisabledText,backgroundColor:g.rS.tableRowHeaderBackground,Icon:u.Z}}}function x({status:e}){const{color:t,backgroundColor:n,Icon:o}=y(e);return(0,r.jsxs)(m.Z,{style:{color:t,backgroundColor:n,padding:"6px 8px",borderRadius:4,flexDirection:"row",alignItems:"center",flexShrink:0},children:[(0,r.jsx)(o,{style:{width:13,height:13,marginRight:7}}),(0,r.jsx)(v.Z,{style:{lineHeight:"1em"},children:(0,i.VL)(e)})]})}},37998:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(28548);var s=n(82862);var l=n(8780);var u=n(79982);var c=n(41071);var f=n(25432);var h=n(7851);var p=n.n(h);var g={};var v=n(73416);var m=n(89362);var y=n(45492);var x=n(383);var w=n(24307);var b=n(19808);var S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAQ0lEQVR4Ae3KIQ4AIBTD0N0/IeHGI3UIRA3ut/Zl+ltXc5++htVAmIAwAWECwgSEKbgthEoIlRAqIVRCqINQB9nDgQd7ktwFo6UpWQAAAABJRU5ErkJggg==";var k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAQAAACGG/bgAAAAP0lEQVQ4y+3TMQoAMAgEwfwfAvvjTZ1uGzuvHhBPPGczEG+FRqqRaqQaqUaqkX6QBmmjacvQ6qEVTjsh+xizebvlaWptGXZAAAAAAElFTkSuQmCC";const j={"& .pika-single.actual-date-picker":{color:y.rS.calendarText,background:y.rS.calendarBackground,border:"none",boxShadow:"0 0px 4px rgba(0, 0, 0, .25)",borderRadius:4},"& .actual-date-picker":{"& .pika-lendar":{float:"none",width:"auto"},"& .pika-label":{backgroundColor:y.rS.calendarBackground},"& .pika-prev":{backgroundImage:`url(${S})`},"& .pika-next":{backgroundImage:`url(${k})`},"& .pika-table th":{color:y.rS.calendarItemText,"& abbr":{textDecoration:"none"}},"& .pika-button":{backgroundColor:y.rS.calendarItemBackground,color:y.rS.calendarItemText},"& .is-today .pika-button":{textDecoration:"underline"},"& .is-selected .pika-button":{backgroundColor:y.rS.calendarSelectedBackground,boxShadow:"none"}}};const C=(0,o.forwardRef)(({value:e,firstDayOfWeekIdx:t,dateFormat:n,onUpdate:i,onSelect:c},f)=>{const h=(0,o.useRef)(null);const g=(0,o.useRef)(null);(0,o.useImperativeHandle)(f,()=>({handleInputKeyDown(e){let t=null;switch(e.key){case"ArrowLeft":e.preventDefault();t=(0,a.Z)(h.current.getDate(),1);break;case"ArrowUp":e.preventDefault();t=(0,a.Z)(h.current.getDate(),7);break;case"ArrowRight":e.preventDefault();t=(0,s.Z)(h.current.getDate(),1);break;case"ArrowDown":e.preventDefault();t=(0,s.Z)(h.current.getDate(),7);break;default:}if(t){h.current.setDate(t,true);i?.(t)}}}),[]);(0,o.useLayoutEffect)(()=>{h.current=new(p())({theme:"actual-date-picker",keyboardInput:false,firstDay:(0,m.CD)(t),defaultDate:e?(0,l.Z)(e,n,(0,v.cQ)()):(0,v.cQ)(),setDefaultDate:true,toString(e){return(0,u.Z)(e,n)},parse(e){return(0,l.Z)(e,n,new Date)},onSelect:c});g.current.appendChild(h.current.el);return()=>{h.current.destroy()}},[]);(0,o.useEffect)(()=>{if(h.current.getDate()!==e){h.current.setDate((0,l.Z)(e,n,new Date),true)}},[e,n]);return(0,r.jsx)(w.Z,{style:{...j,flex:1},innerRef:g})});function T(e){return e.key==="Enter"}function E({containerProps:e,inputProps:t,tooltipStyle:n,value:a,isOpen:s,embedded:h,dateFormat:p="yyyy-MM-dd",focused:g,openOnFocus:m=true,inputRef:y,shouldSaveFromKey:S=T,tableBehavior:k,onUpdate:j,onSelect:E}){const I=(0,o.useMemo)(()=>{if(a){const e=(0,c.Z)(a);if((0,f.Z)(e)){return(0,u.Z)(e,p)}}return""},[a,p]);const _=(0,o.useRef)(null);const[M,D]=(0,o.useState)(I);const[P,A]=(0,o.useState)(h||s||false);const O=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{if(y){y.current=O.current}},[]);const[R,z]=(0,o.useState)(M);const Z=(0,o.useRef)(R);const L=(0,i.v9)(e=>e.prefs.local?.firstDayOfWeekIdx?e.prefs.local.firstDayOfWeekIdx:"0");(0,o.useEffect)(()=>{Z.current=M},[M]);(0,o.useEffect)(()=>D(I),[I]);(0,o.useEffect)(()=>{if((0,v.Ze)(p).test(M)){const e=(0,l.Z)(M,(0,v.D1)(p),new Date);if((0,f.Z)(e)){j?.((0,u.Z)(e,"yyyy-MM-dd"));z((0,u.Z)(e,p))}}else if((0,v._y)(p).test(M)){const e=(0,l.Z)(M,(0,v.JC)(p),new Date);if((0,f.Z)(e)){j?.((0,u.Z)(e,"yyyy-MM-dd"));z((0,u.Z)(e,p))}}else{const e=(0,l.Z)(M,p,new Date);if((0,f.Z)(e)){const t=(0,u.Z)(e,"yyyy-MM-dd");j?.(t);z(M)}}},[M]);function N(e){if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.key)&&!e.shiftKey&&!e.metaKey&&!e.altKey&&P){_.current.handleInputKeyDown(e)}else if(e.key==="Escape"){D(I);z(I);if(I===M){if(P){if(!h){e.stopPropagation()}A(false)}}else{A(true);j?.(a)}}else if(S(e)){D(R);A(false);const n=(0,l.Z)(R,p,new Date);E((0,u.Z)(n,"yyyy-MM-dd"));if(P&&e.key==="Enter"){e.stopPropagation();e.preventDefault()}const{onKeyDown:r}=t||{};r?.(e)}else if(!P){A(true);if(O.current){O.current.setSelectionRange(0,1e4)}}}function B(e){D(e.target.value)}const H=e=>{return h?e:(0,r.jsx)(b.u,{position:"bottom-left",offset:2,style:{padding:0,minWidth:225,...n},"data-testid":"date-select-tooltip",children:e})};return(0,r.jsxs)(w.Z,{...e,children:[(0,r.jsx)(x.ZP,{focused:g,...t,inputRef:O,value:M,onPointerUp:e=>{if(!h){A(true)}},onKeyDown:N,onChange:B,onFocus:e=>{if(!h&&m){A(true)}t?.onFocus?.(e)},onBlur:e=>{if(!h){A(false)}t?.onBlur?.(e);if(!k){if(M===""){z(null);E(null)}else{D(R||"");const e=(0,l.Z)(R,p,new Date);if(e instanceof Date&&!isNaN(e.valueOf())){E((0,u.Z)(e,"yyyy-MM-dd"))}}}}}),P&&H((0,r.jsx)(C,{ref:_,value:R,firstDayOfWeekIdx:L,dateFormat:p,onUpdate:e=>{z((0,u.Z)(e,p));j?.((0,u.Z)(e,"yyyy-MM-dd"))},onSelect:e=>{D((0,u.Z)(e,p));E((0,u.Z)(e,"yyyy-MM-dd"));A(false)}}))]})}},66353:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(84094);var s=n(73416);var l=n(11504);var u=n(19450);var c=n(29325);var f=n(45492);var h=n(56816);var p=n(383);var g=n(78628);var v=n(84196);var m=n(77644);var y=n(24307);var x=n(10730);var w=n(19808);var b=n(37998);const S=5;const k=[{id:"daily",name:"Days"},{id:"weekly",name:"Weeks"},{id:"monthly",name:"Months"},{id:"yearly",name:"Years"}];const j=[...Array(31).keys()].map(e=>e+1);const C=[{id:"SU",name:"Sunday"},{id:"MO",name:"Monday"},{id:"TU",name:"Tuesday"},{id:"WE",name:"Wednesday"},{id:"TH",name:"Thursday"},{id:"FR",name:"Friday"},{id:"SA",name:"Saturday"}];function T(e){if(e==="last"){return-1}return Number(e)}function E(e){return e||{start:s.PR(),interval:1,frequency:"monthly",patterns:[_(s.PR())],skipWeekend:false,weekendSolveMode:"before",endMode:"never",endOccurrences:"1",endDate:s.PR()}}function I(e){return{...e,interval:A(e.interval),endOccurrences:A(e.endOccurrences)}}function _(e){return{value:parseInt(s.WU(e,"d")),type:"day"}}function M({field:e,value:t,recurrence:n}){if(e==="value"&&n.type!=="day"&&t>S||e==="type"&&t!=="day"&&n.value>S){return{[e]:t,value:S}}return{[e]:t}}function D(e,t){switch(t.type){case"replace-config":return{...e,config:t.config};case"change-field":return{...e,config:{...e.config,[t.field]:t.value,patterns:e.config.frequency!=="monthly"?[]:e.config.patterns}};case"update-recurrence":return{...e,config:{...e.config,patterns:e.config.patterns.map(e=>e===t.recurrence?{...t.recurrence,...M(t)}:e)}};case"add-recurrence":return{...e,config:{...e.config,patterns:[...e.config.patterns||[],_(e.config.start)]}};case"remove-recurrence":return{...e,config:{...e.config,patterns:e.config.patterns.filter(e=>e!==t.recurrence)}};case"set-skip-weekend":return{...e,config:{...e.config,skipWeekend:t.skipWeekend}};case"set-weekend-solve":return{...e,config:{...e.config,weekendSolveMode:t.value}};default:return e}}function P({previewDates:e}){const t=(0,i.v9)(e=>(e.prefs.local.dateFormat||"MM/dd/yyyy").replace("MM","M").replace("dd","d"));if(!e){return null}let n=null;if(typeof e==="string"){n=(0,r.jsx)(m.Z,{children:e})}else{n=(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(m.Z,{style:{fontWeight:600},children:"Upcoming dates"}),(0,r.jsx)(v.Z,{direction:"row",spacing:4,style:{marginTop:10},children:e.map((e,n)=>(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(m.Z,{children:s.WU(e,t)}),(0,r.jsx)(m.Z,{children:s.WU(e,"EEEE")})]},n))})]})}return(0,r.jsx)(v.Z,{direction:"column",spacing:1,style:{marginTop:15,color:f.rS.tableText},children:n})}function A(e){const t=parseInt(e);return Number.isInteger(t)&&t>0?t:1}function O({config:e,dispatch:t}){const n=(e,n,r)=>t({type:"update-recurrence",recurrence:e,field:n,value:r});return(0,r.jsx)(v.Z,{spacing:2,style:{marginTop:10},children:e.patterns.map((e,o)=>(0,r.jsxs)(y.Z,{style:{display:"flex",flexDirection:"row"},children:[(0,r.jsx)(g.Z,{options:[[-1,"Last"],["-","---"],...j.map(e=>[e,e])],value:e.value,onChange:t=>n(e,"value",T(t)),disabledKeys:["-"],wrapperStyle:{flex:1,marginRight:10},style:{minHeight:"1px",width:"100%"}}),(0,r.jsx)(g.Z,{options:[["day","Day"],["-","---"],...C.map(e=>[e.id,e.name])],value:e.type,onChange:t=>n(e,"type",t),disabledKeys:["-"],wrapperStyle:{flex:1,marginRight:10},style:{minHeight:"1px",width:"100%"}}),(0,r.jsx)(h.Z,{type:"bare","aria-label":"Remove recurrence",style:{padding:7},onClick:()=>t({type:"remove-recurrence",recurrence:e}),children:(0,r.jsx)(c.Z,{style:{width:8,height:8}})}),(0,r.jsx)(h.Z,{type:"bare","aria-label":"Add recurrence",style:{padding:7,marginLeft:5},onClick:()=>t({type:"add-recurrence"}),children:(0,r.jsx)(u.Z,{style:{width:10,height:10}})})]},o))})}function R({config:e,onClose:t,onSave:n}){const[s,l]=(0,o.useState)(null);const[u,c]=(0,o.useReducer)(D,{config:E(e)});const S=u.config.hasOwnProperty("skipWeekend")?u.config.skipWeekend:false;const j=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");(0,o.useEffect)(()=>{c({type:"replace-config",config:E(e)})},[e]);const{config:C}=u;const T=(e,t)=>c({type:"change-field",field:e,value:t});(0,o.useEffect)(()=>{async function e(){const{data:e,error:t}=await (0,a.OK)("schedule/get-upcoming-dates",{config:I(C),count:4});l(t?"Invalid rule":e)}e()},[C]);if(s==null){return null}return(0,r.jsxs)(w.u,{style:{padding:10,width:380},offset:1,position:"bottom-left",onClose:t,children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:5},children:[(0,r.jsx)("label",{htmlFor:"start",children:"From"}),(0,r.jsx)(b.Z,{id:"start",inputProps:{placeholder:"Start Date"},value:C.start,onSelect:e=>T("start",e),containerProps:{style:{width:100}},dateFormat:j}),(0,r.jsx)(g.Z,{id:"repeat_end_dropdown",bare:true,options:[["never","indefinitely"],["after_n_occurrences","for"],["on_date","until"]],value:C.endMode,onChange:e=>T("endMode",e),style:{border:"1px solid "+f.rS.formInputBorder,height:27.5}}),C.endMode==="after_n_occurrences"&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.ZP,{id:"end_occurrences",style:{width:40},type:"number",min:1,onChange:e=>T("endOccurrences",e.target.value),defaultValue:C.endOccurrences||1}),(0,r.jsxs)(m.Z,{children:["occurrence",C.endOccurrences==="1"?"":"s"]})]}),C.endMode==="on_date"&&(0,r.jsx)(b.Z,{id:"end_date",inputProps:{placeholder:"End Date"},value:C.endDate,onSelect:e=>T("endDate",e),containerProps:{style:{width:100}},dateFormat:j})]}),(0,r.jsxs)(v.Z,{direction:"row",align:"center",justify:"flex-start",style:{marginTop:10},spacing:1,children:[(0,r.jsx)(m.Z,{style:{whiteSpace:"nowrap"},children:"Repeat every"}),(0,r.jsx)(p.ZP,{id:"interval",style:{width:40},type:"number",min:1,onChange:e=>T("interval",e.target.value),defaultValue:C.interval||1}),(0,r.jsx)(g.Z,{bare:true,options:k.map(e=>[e.id,e.name]),value:C.frequency,onChange:e=>T("frequency",e),style:{border:"1px solid "+f.rS.formInputBorder,height:27.5}}),C.frequency==="monthly"&&(C.patterns==null||C.patterns.length===0)?(0,r.jsx)(h.Z,{style:{backgroundColor:f.rS.tableBackground,":hover":{backgroundColor:f.rS.tableBackground}},onClick:()=>c({type:"add-recurrence"}),children:"Add specific days"}):null]}),C.frequency==="monthly"&&C.patterns&&C.patterns.length>0&&(0,r.jsx)(O,{config:C,dispatch:c}),(0,r.jsx)(v.Z,{direction:"column",style:{marginTop:5},children:(0,r.jsxs)(y.Z,{style:{marginTop:5,flex:1,flexDirection:"row",alignItems:"center",userSelect:"none"},children:[(0,r.jsx)(x.XZ,{id:"form_skipwe",checked:S,onChange:e=>{c({type:"set-skip-weekend",skipWeekend:e.target.checked})}}),(0,r.jsxs)("label",{htmlFor:"form_skipwe",style:{userSelect:"none",marginRight:5},children:["Move schedule"," "]}),(0,r.jsx)(g.Z,{id:"solve_dropdown",options:[["before","before"],["after","after"]],value:u.config.weekendSolveMode,onChange:e=>c({type:"set-weekend-solve",value:e}),disabled:!S,style:{minHeight:"1px",width:"5rem"}}),(0,r.jsxs)("label",{htmlFor:"solve_dropdown",style:{userSelect:"none",marginLeft:5},children:[" ","weekend"]})]})}),(0,r.jsx)(P,{previewDates:s}),(0,r.jsxs)("div",{style:{display:"flex",marginTop:15,justifyContent:"flex-end"},children:[(0,r.jsx)(h.Z,{onClick:t,children:"Cancel"}),(0,r.jsx)(h.Z,{type:"primary",onClick:()=>n(I(C)),style:{marginLeft:10},children:"Apply"})]})]})}function z({value:e,buttonStyle:t,onChange:n}){const{isOpen:o,close:a,getOpenEvents:s}=(0,w.lL)();const u=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");function c(e){n(e);a()}return(0,r.jsxs)(y.Z,{children:[(0,r.jsx)(h.Z,{...s(),style:{textAlign:"left",...t},children:e?(0,l.o7)(e,u):"No recurring date"}),o&&(0,r.jsx)(R,{config:e,onClose:a,onSave:c})]})}},84367:function(e,t,n){"use strict";n.d(t,{Hn:function(){return ed},ZP:function(){return ep},Ap:function(){return ef}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(76074);var s=n(24307);var l=n(67238);var u=n(96424);var c=n(78800);var f=n(48880);var h=n(45492);var p=n(74684);var g=n(99818);var v=n(30715);var m=n(99147);var y=n(35562);var x=n(52582);const w={marginTop:-2,marginBottom:2,paddingTop:4,paddingBottom:4,paddingRight:15,paddingLeft:10,textDecoration:"none",color:h.rS.sidebarItemText,":hover":{backgroundColor:h.rS.sidebarItemBackgroundHover},...h.W2.smallText};function b({name:e,account:t,connected:n,failed:o,updated:i,to:a,query:l,style:u,outerStyle:c,onDragChange:f,onDrop:p}){const b=t?t.closed?"account-closed":t.offbudget?"account-offbudget":"account-onbudget":"title";const{dragRef:S}=(0,y.O1)({type:b,onDragChange:f,item:{id:t&&t.id},canDrag:t!=null});const{dropRef:k,dropPos:j}=(0,y.Zj)({types:t?[b]:[],id:t&&t.id,onDrop:p});return(0,r.jsx)(s.Z,{innerRef:k,style:{flexShrink:0,...c},children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(y.OJ,{pos:j}),(0,r.jsx)(s.Z,{innerRef:S,children:(0,r.jsxs)(m.Z,{to:a,style:{...w,...u,position:"relative",borderLeft:"4px solid transparent",...i&&{fontWeight:700}},activeStyle:{borderColor:h.rS.sidebarItemAccentSelected,color:h.rS.sidebarItemTextSelected,fontWeight:u&&u.fontWeight||"normal","& .dot":{backgroundColor:h.rS.sidebarItemAccentSelected,transform:"translateX(-4.5px)"}},children:[(0,r.jsx)(s.Z,{style:{position:"absolute",left:0,top:0,bottom:0,flexDirection:"row",alignItems:"center"},children:(0,r.jsx)("div",{className:`dot ${(0,g.iv)({marginRight:3,width:5,height:5,borderRadius:5,backgroundColor:o?h.rS.sidebarItemBackgroundFailed:h.rS.sidebarItemBackgroundPositive,marginLeft:2,transition:"transform .3s",opacity:n?1:0})}`})}),(0,r.jsx)(v.Z,{left:e,right:(0,r.jsx)(x.Z,{binding:l,type:"financial"})})]})})]})})}var S=b;var k=n(24924);function j({style:e,to:t,onClick:n,activeStyle:o,forceActive:i,children:a}){return n?(0,r.jsx)(s.Z,{role:"button",tabIndex:0,style:{...e,touchAction:"auto",userSelect:"none",userDrag:"none",cursor:"pointer",...i?o:{}},onClick:n,children:a}):(0,r.jsx)(m.Z,{to:t,style:e,activeStyle:o,children:a})}var C=j;const T=600;function E({Icon:e,title:t,style:n,to:o,onClick:i,bold:a,indent:l=0}){const u=(0,r.jsxs)(s.Z,{style:{flexDirection:"row",alignItems:"center",height:16},children:[e&&(0,r.jsx)(e,{width:12,height:12}),(0,r.jsx)(k.Z,{style:{marginLeft:e?8:0,color:"inherit"},children:t})]});return(0,r.jsx)(s.Z,{style:{flexShrink:0,...n},children:(0,r.jsx)(C,{style:{...w,color:h.rS.sidebarItemText,paddingLeft:14+l,fontWeight:a?T:null,":hover":{backgroundColor:h.rS.sidebarItemBackgroundHover}},to:o,onClick:i,activeStyle:{borderLeft:"4px solid "+h.rS.sidebarItemTextSelected,paddingLeft:14-4+l,color:h.rS.sidebarItemTextSelected,fontWeight:a?T:null},children:u})})}var I=E;const _=600;function M({accounts:e,failedAccounts:t,updatedAccounts:n,getAccountPath:i,allAccountsPath:a,budgetedAccountPath:l,offBudgetAccountPath:u,getBalanceQuery:c,getAllAccountBalance:f,getOnBudgetBalance:h,getOffBudgetBalance:g,showClosedAccounts:v,onAddAccount:m,onToggleClosedAccounts:y,onReorder:x}){const[w,b]=(0,o.useState)(false);const k=(0,o.useMemo)(()=>e.filter(e=>e.closed===0&&e.offbudget===1),[e]);const j=(0,o.useMemo)(()=>e.filter(e=>e.closed===0&&e.offbudget===0),[e]);const C=(0,o.useMemo)(()=>e.filter(e=>e.closed===1),[e]);function T(e){b(e.state==="start")}const E=(e,t)=>{if(e===0){return{paddingTop:w?15:0,marginTop:w?-15:0}}return null};return(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(S,{name:"All accounts",to:a,query:f(),style:{fontWeight:_,marginTop:15}}),j.length>0&&(0,r.jsx)(S,{name:"For budget",to:l,query:h(),style:{fontWeight:_,marginTop:13}}),j.map((e,o)=>(0,r.jsx)(S,{name:e.name,account:e,connected:!!e.bank,failed:t&&t.has(e.id),updated:n&&n.includes(e.id),to:i(e),query:c(e),onDragChange:T,onDrop:x,outerStyle:E(o,j.length)},e.id)),k.length>0&&(0,r.jsx)(S,{name:"Off budget",to:u,query:g(),style:{fontWeight:_,marginTop:13}}),k.map((e,o)=>(0,r.jsx)(S,{name:e.name,account:e,connected:!!e.bank,failed:t&&t.has(e.id),updated:n&&n.includes(e.id),to:i(e),query:c(e),onDragChange:T,onDrop:x,outerStyle:E(o,k.length)},e.id)),C.length>0&&(0,r.jsx)(I,{style:{marginTop:15},title:"Closed accounts"+(v?"":"..."),onClick:y,bold:true}),v&&C.map((e,t)=>(0,r.jsx)(S,{name:e.name,account:e,to:i(e),query:c(e),onDragChange:T,onDrop:x},e.id)),(0,r.jsx)(I,{style:{marginTop:15,marginBottom:9},onClick:m,Icon:p.Z,title:"Add account"})]})}var D=M;function P({children:e,Icon:t,title:n,style:o,to:i,onClick:a,indent:l=0,forceHover:u=false,forceActive:c=false}){const f={backgroundColor:h.rS.sidebarItemBackgroundHover};const p=(0,r.jsxs)(s.Z,{style:{flexDirection:"row",alignItems:"center",height:20},children:[(0,r.jsx)(t,{width:15,height:15}),(0,r.jsx)(k.Z,{style:{marginLeft:8},children:n}),(0,r.jsx)(s.Z,{style:{flex:1}})]});return(0,r.jsxs)(s.Z,{style:{flexShrink:0,...o},children:[(0,r.jsx)(C,{style:{...h.W2.mediumText,paddingTop:9,paddingBottom:9,paddingLeft:19+l,paddingRight:10,textDecoration:"none",color:h.rS.sidebarItemText,...u?f:{},":hover":f},to:i,onClick:a,activeStyle:{borderLeft:"4px solid "+h.rS.sidebarItemTextSelected,paddingLeft:19+l-4,color:h.rS.sidebarItemTextSelected},forceActive:c,children:p}),e?(0,r.jsx)(s.Z,{style:{marginTop:5},children:e}):null]})}var A=P;var O=n(58534);var R=n(93641);var z=n(56816);function Z({style:e,isFloating:t,onFloat:n}){return(0,r.jsx)(s.Z,{className:"float",style:{...e,flexShrink:0},children:(0,r.jsx)(z.Z,{type:"bare","aria-label":`${t?"Pin":"Unpin"} sidebar`,onClick:n,color:h.rS.buttonMenuBorder,children:t?(0,r.jsx)(O.Z,{style:{margin:-2,width:15,height:15,transform:"rotate(45deg)"}}):(0,r.jsx)(R.Z,{style:{width:13,height:13}})})})}var L=Z;var N=n(59379);var B=n(85025);var H=n(48164);var F=n(52506);var V=n(7122);var W=n(7056);function U(){const[e,t]=(0,o.useState)(false);const n=(0,o.useCallback)(()=>t(e=>!e),[]);const i=(0,N.TH)();const a=["/payees","/rules","/settings","/tools"].some(e=>i.pathname.startsWith(e));(0,o.useEffect)(()=>{if(a){t(true)}},[i.pathname]);return(0,r.jsxs)(s.Z,{style:{flexShrink:0},children:[(0,r.jsx)(A,{title:"More",Icon:e?B.Z:H.Z,onClick:n,style:{marginBottom:e?8:0},forceActive:!e&&a}),e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I,{title:"Payees",Icon:V.Z,to:"/payees",indent:15}),(0,r.jsx)(I,{title:"Rules",Icon:W.Z,to:"/rules",indent:15}),(0,r.jsx)(I,{title:"Settings",Icon:F.Z,to:"/settings",indent:15})]})]})}var $=U;const K=240;function q({style:e,budgetName:t,accounts:n,failedAccounts:o,updatedAccounts:i,getBalanceQuery:a,getAllAccountBalance:p,getOnBudgetBalance:g,getOffBudgetBalance:v,showClosedAccounts:m,isFloating:y,onFloat:x,onAddAccount:w,onToggleClosedAccounts:b,onReorder:S}){const k=!l.jU&&l.OS==="mac";const j=ef();return(0,r.jsxs)(s.Z,{style:{width:K,color:h.rS.sidebarItemText,backgroundColor:h.rS.sidebarBackground,"& .float":{opacity:y?1:0,transition:"opacity .25s, width .25s",width:k||y?null:0},"&:hover .float":{opacity:1,width:k?null:"auto"},...e},children:[(0,r.jsxs)(s.Z,{style:{paddingTop:35,height:30,flexDirection:"row",alignItems:"center",margin:"0 8px 23px 20px",transition:"padding .4s",...k&&{paddingTop:20,justifyContent:"flex-start"}},children:[t,(0,r.jsx)(s.Z,{style:{flex:1,flexDirection:"row"}}),!j.alwaysFloats&&(0,r.jsx)(L,{isFloating:y,onFloat:x})]}),(0,r.jsxs)(s.Z,{style:{overflow:"auto"},children:[(0,r.jsx)(A,{title:"Budget",Icon:c.Z,to:"/budget"}),(0,r.jsx)(A,{title:"Reports",Icon:u.Z,to:"/reports"}),(0,r.jsx)(A,{title:"Schedules",Icon:f.Z,to:"/schedules"}),(0,r.jsx)($,{}),(0,r.jsx)(s.Z,{style:{height:1,backgroundColor:h.rS.sidebarItemBackgroundHover,marginTop:15,flexShrink:0}}),(0,r.jsx)(D,{accounts:n,failedAccounts:o,updatedAccounts:i,getAccountPath:e=>`/accounts/${e.id}`,allAccountsPath:"/accounts",budgetedAccountPath:"/accounts/budgeted",offBudgetAccountPath:"/accounts/offbudget",getBalanceQuery:a,getAllAccountBalance:p,getOnBudgetBalance:g,getOffBudgetBalance:v,showClosedAccounts:m,onAddAccount:w,onToggleClosedAccounts:b,onReorder:S})]})]})}var Y=q;var G=n(99103);var X=n(46055);var Q=n(84094);var J=n(1447);var ee=n(24868);var et=n(67459);var en=n(71053);var er=n(383);var eo=n(31941);var ei=n(77644);var ea=n(19808);function es({prefs:e,savePrefs:t}){const n=(0,i.I0)();const a=(0,ee.Z)();const[s,u]=(0,o.useState)(false);const[c,f]=(0,o.useState)(false);function p(e){f(false);switch(e){case"rename":u(true);break;case"settings":a("/settings");break;case"help":window.open("https://actualbudget.org/docs/","_blank");break;case"close":n((0,G.ej)());break;default:}}const g=[{name:"rename",text:"Rename budget"},{name:"settings",text:"Settings"},...l.jU?[{name:"help",text:"Help"}]:[],{name:"close",text:"Close file"}];if(s){return(0,r.jsx)(en.Z,{children:(0,r.jsx)(er.ZP,{style:{width:160,fontSize:16,fontWeight:500},defaultValue:e.budgetName,onEnter:async e=>{const n=e.target;const r=n.value;if(r.trim()!==""){await t({budgetName:n.value});u(false)}},onBlur:()=>u(false)})})}else{return(0,r.jsxs)(z.Z,{type:"bare",color:h.rS.buttonNormalBorder,style:{fontSize:16,fontWeight:500,marginLeft:-5,flex:"0 auto"},onClick:()=>f(true),children:[(0,r.jsx)(ei.Z,{style:{whiteSpace:"nowrap",overflow:"hidden"},children:e.budgetName||"A budget has no name"}),(0,r.jsx)(et.Z,{width:7,height:7,style:{marginLeft:5}}),c&&(0,r.jsx)(ea.u,{position:"bottom-left",style:{padding:0},onClose:()=>f(false),children:(0,r.jsx)(eo.Z,{onMenuSelect:p,items:g})})]})}}function el(){const e=(0,i.v9)(e=>e.queries.accounts);const t=(0,i.v9)(e=>e.account.failedAccounts);const n=(0,i.v9)(e=>e.queries.updatedAccounts);const a=(0,i.v9)(e=>e.prefs.local);const s=(0,i.v9)(e=>e.prefs.global.floatingSidebar);const{getAccounts:l,replaceModal:u,savePrefs:c,saveGlobalPrefs:f}=(0,J.o)();(0,o.useEffect)(()=>void l(),[l]);async function p(t,n,r){if(n==="bottom"){const t=e.findIndex(e=>e.id===r)+1;r=t<e.length?e[t].id:null}await (0,Q.lW)("account-move",{id:t,targetId:r});await l()}return(0,r.jsx)(Y,{budgetName:(0,r.jsx)(es,{prefs:a,savePrefs:c}),isFloating:s,accounts:e,failedAccounts:t,updatedAccounts:n,getBalanceQuery:X.cW,getAllAccountBalance:X.Gm,getOnBudgetBalance:X.SZ,getOffBudgetBalance:X.An,onFloat:()=>f({floatingSidebar:!s}),onReorder:p,onAddAccount:()=>u("add-account"),showClosedAccounts:a["ui.showClosedAccounts"],onToggleClosedAccounts:()=>c({"ui.showClosedAccounts":!a["ui.showClosedAccounts"]}),style:{flex:1,...h.W2.darkScrollbar}})}var eu=el;const ec=(0,o.createContext)(null);function ed({children:e}){const t=(0,i.v9)(e=>e.prefs.global.floatingSidebar);const[n,s]=(0,o.useState)(true);const{width:l}=(0,a.F)();const u=l<668;const c=t||u;return(0,r.jsx)(ec.Provider,{value:{hidden:n,setHidden:s,floating:c,alwaysFloats:u},children:e})}function ef(){const{hidden:e,setHidden:t,floating:n,alwaysFloats:r}=(0,o.useContext)(ec);return(0,o.useMemo)(()=>({hidden:e,setHidden:t,floating:n,alwaysFloats:r}),[e,t,n,r])}function eh(){const e=(0,i.v9)(e=>e.prefs.global.floatingSidebar);const t=ef();const{isNarrowWidth:n}=(0,a.F)();const o=e||t.alwaysFloats;return n?null:(0,r.jsx)(s.Z,{onMouseOver:o?e=>{e.stopPropagation();t.setHidden(false)}:null,onMouseLeave:o?()=>t.setHidden(true):null,style:{position:o?"absolute":null,top:12,bottom:o?12:-50,zIndex:1001,borderRadius:o?"0 6px 6px 0":0,overflow:"hidden",boxShadow:!o||t.hidden?"none":"0 15px 30px 0 rgba(0,0,0,0.25), 0 3px 15px 0 rgba(0,0,0,.5)",transform:`translateY(${!o?-12:0}px)
|
|
199
|
+
translateX(${o&&t.hidden?-K:0}px)`,transition:"transform .5s, box-shadow .5s, border-radius .5s, bottom .5s"},children:(0,r.jsx)(eu,{})})}var ep=eh},35562:function(e,t,n){"use strict";n.d(t,{OJ:function(){return ee},aB:function(){return J},O1:function(){return X},Zj:function(){return Q}});var r=n(43188);var o=n(66204);var i=n(21251);var a=n(28926);const s=typeof window!=="undefined"?o.useLayoutEffect:o.useEffect;function l(e,t,n){const[r,i]=(0,o.useState)(()=>t(e));const l=(0,o.useCallback)(()=>{const o=t(e);if(!a(r,o)){i(o);if(n){n()}}},[r,e,n]);s(l);return[r,l]};function u(e,t,n){const[r,o]=l(e,t,n);s(function t(){const t=e.getHandlerId();if(t==null){return}return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]);return r};function c(e,t,n){return u(t,e||(()=>({})),()=>n.reconnect())};function f(e,t){const n=[...t||[]];if(t==null&&typeof e!=="function"){n.push(e)}return(0,o.useMemo)(()=>{return typeof e==="function"?e():e},n)};function h(e){return(0,o.useMemo)(()=>e.hooks.dragSource(),[e])}function p(e){return(0,o.useMemo)(()=>e.hooks.dragPreview(),[e])};function g(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0){return!!o}if(e===t){return true}if(typeof e!=="object"||!e||typeof t!=="object"||!t){return false}const i=Object.keys(e);const a=Object.keys(t);if(i.length!==a.length){return false}const s=Object.prototype.hasOwnProperty.bind(t);for(let a=0;a<i.length;a++){const l=i[a];if(!s(l)){return false}const u=e[l];const c=t[l];o=n?n.call(r,u,c,l):void 0;if(o===false||o===void 0&&u!==c){return false}}return true};function v(e){return e!==null&&typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,"current")};function m(e){if(typeof e.type==="string"){return}const t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+`You can either wrap ${t} into a <div>, or turn it into a `+"drag source or a drop target itself.")}function y(e){return(t=null,n=null)=>{if(!(0,o.isValidElement)(t)){const r=t;e(r,n);return r}const r=t;m(r);const i=n?t=>e(t,n):e;return b(r,i)}}function x(e){const t={};Object.keys(e).forEach(n=>{const r=e[n];if(n.endsWith("Ref")){t[n]=e[n]}else{const e=y(r);t[n]=()=>e}});return t}function w(e,t){if(typeof e==="function"){e(t)}else{e.current=t}}function b(e,t){const n=e.ref;(0,i.k)(typeof n!=="string","Cannot connect React DnD to an element with an existing string ref. "+"Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. "+"Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs");if(!n){return(0,o.cloneElement)(e,{ref:t})}else{return(0,o.cloneElement)(e,{ref:e=>{w(n,e);w(t,e)}})}};class S{receiveHandlerId(e){if(this.handlerId===e){return}this.handlerId=e;this.reconnect()}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource;const t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();if(t){this.disconnectDragSource()}if(!this.handlerId){return t}if(!e){this.lastConnectedDragSource=e;return t}if(t){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragSource=e;this.lastConnectedDragSourceOptions=this.dragSourceOptions;this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)}return t}reconnectDragPreview(e=false){const t=this.dragPreview;const n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n){this.disconnectDragPreview()}if(!this.handlerId){return}if(!t){this.lastConnectedDragPreview=t;return}if(n){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDragPreview=t;this.lastConnectedDragPreviewOptions=this.dragPreviewOptions;this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!g(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!g(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){if(this.dragSourceUnsubscribe){this.dragSourceUnsubscribe();this.dragSourceUnsubscribe=undefined}}disconnectDragPreview(){if(this.dragPreviewUnsubscribe){this.dragPreviewUnsubscribe();this.dragPreviewUnsubscribe=undefined;this.dragPreviewNode=null;this.dragPreviewRef=null}}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null;this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null;this.dragPreviewRef=null}constructor(e){this.hooks=x({dragSource:(e,t)=>{this.clearDragSource();this.dragSourceOptions=t||null;if(v(e)){this.dragSourceRef=e}else{this.dragSourceNode=e}this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview();this.dragPreviewOptions=t||null;if(v(e)){this.dragPreviewRef=e}else{this.dragPreviewNode=e}this.reconnectDragPreview()}});this.handlerId=null;this.dragSourceRef=null;this.dragSourceOptionsInternal=null;this.dragPreviewRef=null;this.dragPreviewOptionsInternal=null;this.lastConnectedHandlerId=null;this.lastConnectedDragSource=null;this.lastConnectedDragSourceOptions=null;this.lastConnectedDragPreview=null;this.lastConnectedDragPreviewOptions=null;this.backend=e}}var k=n(13577);function j(){const{dragDropManager:e}=(0,o.useContext)(k.L);(0,i.k)(e!=null,"Expected drag drop context");return e};function C(e,t){const n=j();const r=(0,o.useMemo)(()=>new S(n.getBackend()),[n]);s(()=>{r.dragSourceOptions=e||null;r.reconnect();return()=>r.disconnectDragSource()},[r,e]);s(()=>{r.dragPreviewOptions=t||null;r.reconnect();return()=>r.disconnectDragPreview()},[r,t]);return r};let T=false;let E=false;class I{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,i.k)(!T,"You may not call monitor.canDrag() inside your canDrag() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{T=true;return this.internalMonitor.canDragSource(this.sourceId)}finally{T=false}}isDragging(){if(!this.sourceId){return false}(0,i.k)(!E,"You may not call monitor.isDragging() inside your isDragging() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{E=true;return this.internalMonitor.isDraggingSource(this.sourceId)}finally{E=false}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null;this.internalMonitor=e.getMonitor()}};function _(){const e=j();return(0,o.useMemo)(()=>new I(e),[e])};function M(e,t,n){const r=n.getRegistry();const o=r.addTarget(e,t);return[o,()=>r.removeTarget(o)]}function D(e,t,n){const r=n.getRegistry();const o=r.addSource(e,t);return[o,()=>r.removeSource(o)]};class P{beginDrag(){const e=this.spec;const t=this.monitor;let n=null;if(typeof e.item==="object"){n=e.item}else if(typeof e.item==="function"){n=e.item(t)}else{n={}}return n!==null&&n!==void 0?n:null}canDrag(){const e=this.spec;const t=this.monitor;if(typeof e.canDrag==="boolean"){return e.canDrag}else if(typeof e.canDrag==="function"){return e.canDrag(t)}else{return true}}isDragging(e,t){const n=this.spec;const r=this.monitor;const{isDragging:o}=n;return o?o(r):t===e.getSourceId()}endDrag(){const e=this.spec;const t=this.monitor;const n=this.connector;const{end:r}=e;if(r){r(t.getItem(),t)}n.reconnect()}constructor(e,t,n){this.spec=e;this.monitor=t;this.connector=n}};function A(e,t,n){const r=(0,o.useMemo)(()=>new P(e,t,n),[t,n]);(0,o.useEffect)(()=>{r.spec=e},[e]);return r};function O(e){return(0,o.useMemo)(()=>{const t=e.type;(0,i.k)(t!=null,"spec.type must be defined");return t},[e])};function R(e,t,n){const r=j();const o=A(e,t,n);const i=O(e);s(function e(){if(i!=null){const[e,a]=D(i,o,r);t.receiveHandlerId(e);n.receiveHandlerId(e);return a}return},[r,t,n,o,i])};function z(e,t){const n=f(e,t);(0,i.k)(!n.begin,`useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)`);const r=_();const o=C(n.options,n.previewOptions);R(n,r,o);return[c(n.collect,r,o),h(o),p(o)]};function Z(e){return(0,o.useMemo)(()=>e.hooks.dropTarget(),[e])};class L{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();if(e){this.disconnectDropTarget()}const t=this.dropTarget;if(!this.handlerId){return}if(!t){this.lastConnectedDropTarget=t;return}if(e){this.lastConnectedHandlerId=this.handlerId;this.lastConnectedDropTarget=t;this.lastConnectedDropTargetOptions=this.dropTargetOptions;this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)}}receiveHandlerId(e){if(e===this.handlerId){return}this.handlerId=e;this.reconnect()}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!g(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){if(this.unsubscribeDropTarget){this.unsubscribeDropTarget();this.unsubscribeDropTarget=undefined}}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null;this.dropTargetNode=null}constructor(e){this.hooks=x({dropTarget:(e,t)=>{this.clearDropTarget();this.dropTargetOptions=t;if(v(e)){this.dropTargetRef=e}else{this.dropTargetNode=e}this.reconnect()}});this.handlerId=null;this.dropTargetRef=null;this.dropTargetOptionsInternal=null;this.lastConnectedHandlerId=null;this.lastConnectedDropTarget=null;this.lastConnectedDropTargetOptions=null;this.backend=e}};function N(e){const t=j();const n=(0,o.useMemo)(()=>new L(t.getBackend()),[t]);s(()=>{n.dropTargetOptions=e||null;n.reconnect();return()=>n.disconnectDropTarget()},[e]);return n};let B=false;class H{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId){return false}(0,i.k)(!B,"You may not call monitor.canDrop() inside your canDrop() implementation. "+"Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{B=true;return this.internalMonitor.canDropOnTarget(this.targetId)}finally{B=false}}isOver(e){if(!this.targetId){return false}return this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null;this.internalMonitor=e.getMonitor()}};function F(){const e=j();return(0,o.useMemo)(()=>new H(e),[e])};function V(e){const{accept:t}=e;return(0,o.useMemo)(()=>{(0,i.k)(e.accept!=null,"accept must be defined");return Array.isArray(t)?t:[t]},[t])};class W{canDrop(){const e=this.spec;const t=this.monitor;return e.canDrop?e.canDrop(t.getItem(),t):true}hover(){const e=this.spec;const t=this.monitor;if(e.hover){e.hover(t.getItem(),t)}}drop(){const e=this.spec;const t=this.monitor;if(e.drop){return e.drop(t.getItem(),t)}return}constructor(e,t){this.spec=e;this.monitor=t}};function U(e,t){const n=(0,o.useMemo)(()=>new W(e,t),[t]);(0,o.useEffect)(()=>{n.spec=e},[e]);return n};function $(e,t,n){const r=j();const o=U(e,t);const i=V(e);s(function e(){const[e,a]=M(i,o,r);t.receiveHandlerId(e);n.receiveHandlerId(e);return a},[r,t,o,n,i.map(e=>e.toString()).join("|")])};function K(e,t){const n=f(e,t);const r=F();const o=N(n.options);$(n,r,o);return[c(n.collect,r,o),Z(o)]}var q=n(15685);var Y=n(45492);var G=n(24307);function X({item:e,type:t,canDrag:n,onDragChange:r}){const i=(0,o.useRef)(r);const[,a]=z({type:t,item:()=>{i.current({state:"start-preview",type:t,item:e});setTimeout(()=>{i.current({state:"start"})},0);return{type:t,item:e}},collect:e=>({isDragging:e.isDragging()}),end(e){i.current({state:"end",type:t,item:e.item})},canDrag(){return n}});(0,o.useLayoutEffect)(()=>{i.current=r});return{dragRef:a}}function Q({types:e,id:t,onDrop:n,onLongHover:r}){const i=(0,o.useRef)(null);const[a,s]=(0,o.useState)(null);const[{isOver:l},u]=K({accept:e,drop({item:e}){n(e.id,a,t)},hover(e,t){const n=i.current.getBoundingClientRect();const r=(n.bottom-n.top)/2;const o=t.getClientOffset();const a=o.y-n.top;const l=a<r?"top":"bottom";s(l)},collect(e){return{isOver:e.isOver()}}});(0,o.useEffect)(()=>{let e;if(r&&l){e=setTimeout(r,700)}return()=>e&&clearTimeout(e)},[l]);return{dropRef:(0,q.r)(u,i),dropPos:l?a:null}}const J=(0,o.createContext)(null);function ee({pos:e,offset:t}){const n=(0,o.useContext)(J);if(e==null){return null}const i=(n==="first"?2:0)+(t?.top||0);const a=(n==="last"?2:0)+(t?.bottom||0);const s=e==="top"?{top:-2+i}:{bottom:-1+a};return(0,r.jsx)(G.Z,{style:{position:"absolute",left:2,right:2,borderRadius:3,height:3,background:Y.rS.pageTextLink,zIndex:1e4,pointerEvents:"none",...s}})}},52582:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);var i=n(45492);var a=n(77644);var s=n(44710);var l=n(5291);var u=n(50606);var c=n(57651);function f({binding:e,type:t,formatter:n,style:o,getStyle:f,privacyFilter:h,"data-testid":p,...g}){const{fullSheetName:v}=(0,u.Z)(e);const m=(0,c.Z)(e);const y=(0,l.Z)();return(0,r.jsx)(s.wq,{privacyFilter:h!=null?h:t==="financial"?true:undefined,children:(0,r.jsx)(a.Z,{style:{...t==="financial"&&i.W2.tnum,...o,...f&&f(m)},"data-testid":p||v,"data-cellname":v,...g,children:n?n(m):y(m,t)})})}t.Z=f},57201:function(e,t,n){"use strict";var r=n(66204);t.Z=(0,r.createContext)(undefined)},5291:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(66204);var o=n(37496);var i="NOT_FOUND";function a(e){var t;return{get:function n(n){if(t&&e(t.key,n)){return t.value}return i},put:function e(e,n){t={key:e,value:n}},getEntries:function e(){return t?[t]:[]},clear:function e(){t=undefined}}}function s(e,t){var n=[];function r(e){var r=n.findIndex(function(n){return t(e,n.key)});if(r>-1){var o=n[r];if(r>0){n.splice(r,1);n.unshift(o)}return o.value}return i}function o(t,o){if(r(t)===i){n.unshift({key:t,value:o});if(n.length>e){n.pop()}}}function a(){return n}function s(){n=[]}return{get:r,put:o,getEntries:a,clear:s}}var l=function e(e,t){return e===t};function u(e){return function t(t,n){if(t===null||n===null||t.length!==n.length){return false}var r=t.length;for(var o=0;o<r;o++){if(!e(t[o],n[o])){return false}}return true}}function c(e,t){var n=typeof t==="object"?t:{equalityCheck:t};var r=n.equalityCheck,o=r===void 0?l:r,c=n.maxSize,f=c===void 0?1:c,h=n.resultEqualityCheck;var p=u(o);var g=f===1?a(p):s(f,p);function v(){var t=g.get(arguments);if(t===i){t=e.apply(null,arguments);if(h){var n=g.getEntries();var r=n.find(function(e){return h(e.value,t)});if(r){t=r.value}}g.put(arguments,t)}return t}v.clearCache=function(){return g.clear()};return v};function f(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return typeof e==="function"})){var n=t.map(function(e){return typeof e==="function"?"function "+(e.name||"unnamed")+"()":typeof e}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function h(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++){n[r-1]=arguments[r]}var o=function t(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++){r[o]=arguments[o]}var i=0;var a;var s={memoizeOptions:undefined};var l=r.pop();if(typeof l==="object"){s=l;l=r.pop()}if(typeof l!=="function"){throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]")}var u=s,c=u.memoizeOptions,h=c===void 0?n:c;var p=Array.isArray(h)?h:[h];var g=f(r);var v=e.apply(void 0,[function e(){i++;return l.apply(null,arguments)}].concat(p));var m=e(function e(){var e=[];var t=g.length;for(var n=0;n<t;n++){e.push(g[n].apply(null,arguments))}a=v.apply(null,e);return a});Object.assign(m,{resultFunc:l,memoizedResultFunc:v,dependencies:g,lastResult:function e(){return a},recomputations:function e(){return i},resetRecomputations:function e(){return i=0}});return m};return o}var p=h(c);var g=function e(e,t){if(t===void 0){t=p}if(typeof e!=="object"){throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof e))}var n=Object.keys(e);var r=t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return t.reduce(function(e,t,r){e[n[r]]=t;return e},{})});return r};var v=n(89362);const m=e=>e;const y=p(m,e=>e.prefs);const x=p(y,e=>e.local);const w=p(x,e=>(0,v.ff)({format:e.numberFormat,hideFraction:e.hideFraction}));function b(e,t="string",n){switch(t){case"string":const r=JSON.stringify(e);if(r.charAt(0)==='"'&&r.charAt(r.length-1)==='"'){return r.slice(1,-1)}return r;case"number":return""+e;case"financial-with-sign":const o=b(e,"financial",n);if(typeof e==="number"&&e>=0){return"+"+o}return o;case"financial":if(e==null||e===""||e===0){return(0,v.zA)(0,n)}else if(typeof e==="string"){const t=parseFloat(e);e=isNaN(t)?0:t}if(typeof e!=="number"){throw new Error("Value is not a number ("+typeof e+"): "+e)}return(0,v.zA)(e,n);default:throw new Error("Unknown format type: "+t)}}function S(){const e=(0,o.v9)(w);return(0,r.useCallback)((t,n="string")=>b(t,n,e.formatter),[e])}},50606:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(57201);function i(e){const t=e.indexOf("!");if(t!==-1){return{sheet:e.slice(0,t),name:e.slice(t+1)}}return{sheet:null,name:e}}function a(e){if(!e){throw new Error("Sheet binding is required")}const t=typeof e==="string";let a=t?e:e.name;if(n.g.IS_TESTING&&!t&&!a){a=e.value.toString()}if(a==null){throw new Error("Binding name is now required")}let s=(0,r.useContext)(o.Z)||"__global";const l=i(a);if(l.sheet){s=l.sheet;a=l.name}return{sheetName:s,bindingName:a,fullSheetName:`${s}!${a}`}}},57651:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(55833);var i=n(50606);function a(e,t){const{sheetName:n,fullSheetName:a}=(0,i.Z)(e);const s=typeof e==="string"?{name:e,value:null}:e;const l=(0,o.M)();const[u,c]=(0,r.useState)({name:a,value:s.value===undefined?null:s.value,query:s.query});const f=(0,r.useRef)(t);const h=(0,r.useRef)(u.value);(0,r.useLayoutEffect)(()=>{f.current=t;h.current=u.value});(0,r.useLayoutEffect)(()=>{if(s.query){l.createQuery(n,s.name,s.query)}return l.bind(n,e,null,e=>{if(f.current){f.current(e)}if(e.value!==h.current){c(e)}})},[n,s.name]);return u.value}},91882:function(e,t,n){"use strict";n.d(t,{bL:function(){return R},Sx:function(){return W},wh:function(){return F},nu:function(){return V},gN:function(){return A},F3:function(){return B},dN:function(){return D},X2:function(){return z},_7:function(){return U},Vg:function(){return q},OX:function(){return $},iA:function(){return X},xD:function(){return K},pX:function(){return G},rt:function(){return O},wz:function(){return Q}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(38638);var s=n(5904);var l=n(11892);var u=n(99458);var c=n(72285);var f=n(67459);var h=n(29813);var p=n(45492);var g=n(56816);var v=n(383);var m=n(31941);var y=n(77644);var x=n(24307);var w=n(99024);var b=n(37418);const S=150;const k=e=>e;function j({onResize:e,children:t}){const n=(0,b.Z)(e);return t(n)}class C extends o.PureComponent{_outerRef;_resetIsScrollingTimeoutId=null;lastPositions;needsAnimationRerender;animationEnabled;requestScrollUpdateHandled;anchored=null;rerenderTimeout;static defaultProps={direction:"ltr",renderRow:undefined,layout:"vertical",overscanCount:2,useIsScrolling:false,headerHeight:0};constructor(e){super(e);this.lastPositions=(0,o.createRef)();this.lastPositions.current=new Map;this.needsAnimationRerender=(0,o.createRef)();this.needsAnimationRerender.current=false;this.animationEnabled=false;this.state={isScrolling:false,scrollDirection:"forward",scrollOffset:typeof this.props.initialScrollOffset==="number"?this.props.initialScrollOffset:0,scrollUpdateWasRequested:false}}scrollTo(e){e=Math.max(0,e);this.setState(t=>{if(t.scrollOffset===e){return null}this.requestScrollUpdateHandled=false;return{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:true}},this._resetIsScrollingDebounced)}scrollToItem(e,t="auto"){const{itemCount:n}=this.props;const{scrollOffset:r}=this.state;e=Math.max(0,Math.min(e,n-1));this.scrollTo(this.getOffsetForIndexAndAlignment(e,t,r))}componentDidMount(){const{initialScrollOffset:e}=this.props;if(typeof e==="number"&&this._outerRef!=null){let t=this._outerRef;t=this._outerRef;t.scrollTop=e}this._callPropsCallbacks()}getAnchoredScrollPos(){if(this.anchored&&this.props.indexForKey&&this._outerRef!=null){const e=this.props.indexForKey(this.anchored.key);const t=this.getOffsetForIndexAndAlignment(e,"start");return t+this.anchored.offset}return null}componentDidUpdate(){const{scrollOffset:e,scrollUpdateWasRequested:t}=this.state;const n=this.getAnchoredScrollPos();if(n!=null){const e=this._outerRef;e.scrollTop=n}else if(t&&!this.requestScrollUpdateHandled&&this._outerRef!=null){this.requestScrollUpdateHandled=true;const t=this._outerRef;t.scrollTop=e}if(this.needsAnimationRerender.current){this.needsAnimationRerender.current=false;this.rerenderTimeout=setTimeout(()=>{this.forceUpdate()},10)}this._callPropsCallbacks()}componentWillUnmount(){if(this._resetIsScrollingTimeoutId!==null){clearTimeout(this._resetIsScrollingTimeoutId)}}render(){const{className:e,height:t,header:n,innerRef:o,itemCount:i,renderRow:a,itemKey:s=k,useIsScrolling:l,width:u}=this.props;const{isScrolling:c}=this.state;const[f,h]=this._getRangeToRender();const p=new Map;const g=[];if(i>0){for(let e=f;e<=h;e++){const t=s(e);let n=this._getItemStyle(e);const r=this.lastPositions.current.get(t);let o=false;p.set(t,n.top);if(this.animationEnabled&&r!=null&&r!==n.top){n={...n,top:r};this.needsAnimationRerender.current=true;o=true}g.push(a({index:e,key:t,style:n,isScrolling:l?c:undefined,isAnimating:o}))}}this.lastPositions.current=p;const v=this.getEstimatedTotalSize();return(0,r.jsx)(j,{onResize:this.onHeaderResize,children:i=>(0,r.jsxs)("div",{className:e,onScroll:this._onScrollVertical,ref:this._outerRefSetter,style:{height:t,width:u,overflow:"hidden auto"},children:[(0,r.jsx)(x.Z,{innerRef:i,children:n}),(0,r.jsx)("div",{ref:o,style:{position:"relative",height:v,width:"100%",pointerEvents:c?"none":undefined},children:g})]})})}setRowAnimation=e=>{this.animationEnabled=e;const t=this._outerRef;if(t){if(this.animationEnabled){t.classList.add("animated")}else{t.classList.remove("animated")}}};onHeaderResize=e=>{};anchor(){const e=this.props.itemKey||k;const t=this._outerRef;const n=t?t.scrollTop:0;const r=this.getStartIndexForOffset(n);const o=e(r);this.anchored={key:o,offset:n-this.getItemOffset(r)}}unanchor(){this.anchored=null}isAnchored(){return this.anchored!=null}getItemOffset=e=>e*this.props.itemSize;getItemSize=()=>this.props.itemSize;getEstimatedTotalSize=()=>this.props.itemSize*this.props.itemCount;getOffsetForIndexAndAlignment=(e,t,n)=>{const r=this.props.height;const o=Math.max(0,this.props.itemCount*this.props.itemSize-r);const i=Math.min(o,e*this.props.itemSize);const a=Math.max(0,e*this.props.itemSize-r+this.props.itemSize);if(t==="smart"){if(n>=a-r&&n<=i+r){t="auto"}else{t="center"}}switch(t){case"start":return i;case"end":return a;case"center":{const e=Math.round(a+(i-a)/2);if(e<Math.ceil(r/2)){return 0}else if(e>o+Math.floor(r/2)){return o}else{return e}}case"auto":default:if(n>=a&&n<=i){return n}else if(n<a){return a}else{return i}}};getStartIndexForOffset=e=>Math.max(0,Math.min(this.props.itemCount-1,Math.floor(e/this.props.itemSize)));getStopIndexForStartIndex=(e,t)=>{const n=e*this.props.itemSize;const r=this.props.height;const o=Math.ceil((r+t-n)/this.props.itemSize);return Math.max(0,Math.min(this.props.itemCount-1,e+o-1))};_callOnItemsRendered=(0,w.Z)((e,t,n,r)=>this.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:r}));_callOnScroll=(0,w.Z)((e,t,n)=>this.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n}));_callPropsCallbacks(){if(typeof this.props.onItemsRendered==="function"){const{itemCount:e}=this.props;if(e>0){const[e,t,n,r]=this._getRangeToRender();this._callOnItemsRendered(e,t,n,r)}}if(typeof this.props.onScroll==="function"){const{scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n}=this.state;this._callOnScroll(e,t,n)}}_getItemStyle=e=>{const{direction:t,itemSize:n,layout:r}=this.props;const o=this._getItemStyleCache(n,r,t);let i;if(o.hasOwnProperty(e)){i=o[e]}else{const t=this.getItemOffset(e);const n=this.getItemSize();o[e]=i={position:"absolute",left:0,top:t,height:n,width:"100%"}}return i};_getItemStyleCache=(0,w.Z)((e,t,n)=>({}));_getRangeToRender(){const{itemCount:e,overscanCount:t}=this.props;const{isScrolling:n,scrollDirection:r,scrollOffset:o}=this.state;const i=this.getAnchoredScrollPos();let a=o;if(i!=null){a=i}if(e===0){return[0,0,0,0]}const s=this.getStartIndexForOffset(a);const l=this.getStopIndexForStartIndex(s,a);const u=!n||r==="backward"?Math.max(1,t):1;const c=!n||r==="forward"?Math.max(1,t):1;return[Math.max(0,s-u),Math.max(0,Math.min(e-1,l+c)),s,l]}_onScrollVertical=e=>{const{scrollTop:t}=e.currentTarget;this.setState(e=>{if(e.scrollOffset===t){return null}const n=t;return{isScrolling:true,scrollDirection:e.scrollOffset<n?"forward":"backward",scrollOffset:n,scrollUpdateWasRequested:false}},this._resetIsScrollingDebounced)};_outerRefSetter=e=>{const{outerRef:t}=this.props;this._outerRef=e;if(t!=null&&typeof t==="object"&&t.hasOwnProperty("current")){t.current=e}};_resetIsScrollingDebounced=()=>{if(this._resetIsScrollingTimeoutId!==null){clearTimeout(this._resetIsScrollingTimeoutId)}this._resetIsScrollingTimeoutId=setTimeout(this._resetIsScrolling,S)};_resetIsScrolling=()=>{this._resetIsScrollingTimeoutId=null;this.setState({isScrolling:false},()=>{this._getItemStyleCache(-1,null)})}}var T=n(39235);var E=n(44710);var I=n(5291);var _=n(57651);var M=n(19808);const D=32;function P(e,t){if(document.hasFocus()){e?.(t)}else{t.stopPropagation()}}const A=(0,o.forwardRef)(function e({width:e,name:t,truncate:n=true,children:o,style:i,contentStyle:a,...s},l){return(0,r.jsx)(x.Z,{innerRef:l,...s,style:{...e==="flex"?{flex:1,flexBasis:0}:{width:e},borderTopWidth:1,borderBottomWidth:1,borderColor:p.rS.tableBorder,...p.W2.smallText,...i},"data-testid":t,children:(0,r.jsx)(x.Z,{style:{flex:1,padding:"0 5px",justifyContent:"center",...a},children:n?(0,r.jsx)(y.Z,{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o}):o})})});function O({value:e,formatter:t}){return(0,r.jsx)(y.Z,{style:{flexGrow:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t?t(e):e})}function R({width:e,name:t,exposed:i,focused:a,value:l,formatter:u,textAlign:c,alignItems:f,onExpose:h,children:g,plain:v,style:m,valueStyle:y,unexposedContent:w,privacyFilter:b,...S}){const k=(0,o.useRef)(null);const j=(0,o.useRef)(null);(0,s.X)(j,a!==undefined?a:i);const C=e==="flex"?{flex:1,flexBasis:0}:{width:e};const T={position:"relative",textAlign:c||"left",justifyContent:"center",borderTopWidth:1,borderBottomWidth:1,borderColor:p.rS.tableBorder,alignItems:f};const I=(0,o.useMemo)(()=>(0,r.jsx)(E.wq,{privacyFilter:(0,E.JS)({activationFilters:[!a,!i],style:{position:"absolute",width:"100%",height:"100%"}},b),children:v?g:i?g():(0,r.jsx)(x.Z,{style:{flexDirection:"row",flex:1,padding:"0 5px",alignItems:"center",...p.W2.smallText,...y},onMouseDown:e=>k.current=[e.clientX,e.clientY],onClick:n.g.IS_TESTING?()=>h?.(t):e=>{if(k.current&&Math.abs(e.clientX-k.current[0])<5&&Math.abs(e.clientY-k.current[1])<5){h?.(t)}},children:w||(0,r.jsx)(O,{value:l,formatter:u})})}),[b,a,i,g,v,i,y,h,t,w,l,u]);return(0,r.jsx)(x.Z,{innerRef:j,style:{...C,...T,...m},...S,"data-testid":t,children:I})}function z({inset:e=0,collapsed:t,children:n,height:o,style:i,...a}){return(0,r.jsxs)(x.Z,{style:{flexDirection:"row",height:o||D,flex:"0 0 "+(o||D)+"px",userSelect:"text",...t&&{marginTop:-1},...i},"data-testid":"row",...a,children:[e!==0&&(0,r.jsx)(A,{width:e}),n,e!==0&&(0,r.jsx)(A,{width:e})]})}const Z={padding:"5px 3px",margin:"0 1px"};const L={backgroundColor:"transparent","::selection":{backgroundColor:p.rS.formInputTextReadOnlySelection}};function N({value:e,onUpdate:t,onBlur:n,...i}){const[a,s]=(0,o.useState)(e);function l(e){t?.(a);if(n){P(n,e)}}function u(n){if(n.key!=="Enter"&&n.key!=="Tab"){n.stopPropagation()}if(n.key==="Escape"){if(a!==e){s(e)}}else if(H(n)){t?.(a)}}return(0,r.jsx)(v.ZP,{...i,value:a,onUpdate:e=>s(e),onBlur:l,onKeyDown:u,style:{...Z,...i.readOnly?L:null,...i.style}})}function B({inputProps:e,onUpdate:t,onBlur:n,textAlign:o,error:i,...a}){return(0,r.jsx)(R,{textAlign:o,...a,children:()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N,{value:a.value,onUpdate:t,onBlur:n,style:{textAlign:o,...e&&e.style},...e}),i&&(0,r.jsx)(M.u,{targetHeight:D,width:180,position:"bottom-left",children:i},"error")]})})}function H(e){switch(e.key){case"Tab":case"Enter":e.preventDefault();return true;default:}}function F({value:e,children:t,onUpdate:n,onBlur:i,...a}){const[s,l]=(0,o.useState)(e);const[u,c]=(0,o.useState)(e);if(u!==e){l(e);c(e)}function f(e){if(document.hasFocus()){n?.(s);P(i,e)}}function h(e){if(H(e)){n?.(s)}}return(0,r.jsx)(R,{...a,value:e,children:()=>t({onBlur:f,onKeyDown:h,onUpdate:e=>l(e),onSave:e=>{l(e);n?.(e)},shouldSaveFromKey:H,inputStyle:Z})})}function V({onDelete:e,style:t,...n}){return(0,r.jsx)(R,{...n,name:"delete",width:20,style:{alignItems:"center",userSelect:"none",...t},onClick:t=>{t.stopPropagation();e?.()},children:()=>(0,r.jsx)(c.Z,{width:7,height:7})})}const W=(0,o.forwardRef)(({children:e,style:t,primary:n,bare:o,disabled:i,clickBehavior:a,onSelect:s,onEdit:l,className:u},c)=>{return(0,r.jsx)(x.Z,{innerRef:c,className:u,tabIndex:0,onKeyDown:e=>{if(e.key==="x"||e.key===" "){e.preventDefault();if(!i){s?.(e)}}},style:{flexDirection:"row",alignItems:"center",cursor:"default",transition:"box-shadow .15s",backgroundColor:o?"transparent":i?p.rS.buttonNormalDisabledBackground:n?p.rS.buttonPrimaryBackground:p.rS.buttonNormalBackground,border:o?"none":"1px solid "+(i?p.rS.buttonNormalDisabledBorder:n?p.rS.buttonPrimaryBorder:p.rS.buttonNormalBorder),color:o?"inherit":i?p.rS.buttonNormalDisabledText:n?p.rS.buttonPrimaryText:p.rS.buttonNormalText,":focus":o?null:{outline:0,boxShadow:`1px 1px 2px ${p.rS.buttonNormalShadow}`},...t},onFocus:()=>l&&l(),"data-testid":"cell-button",onClick:a==="none"?null:e=>{if(!i){s?.(e);l?.()}},children:e})});function U({focused:e,selected:t,style:n,onSelect:o,onEdit:i,buttonProps:a={},...s}){return(0,r.jsx)(R,{...s,focused:e,name:"select",width:20,style:{alignItems:"center",userSelect:"none",...n},onClick:e=>{e.stopPropagation();o?.(e);i?.()},children:()=>(0,r.jsx)(W,{style:{width:12,height:12,justifyContent:"center",alignItems:"center",borderRadius:3,border:t?"1px solid "+p.rS.checkboxBorderSelected:"1px solid "+p.rS.formInputBorder,color:p.rS.checkboxText,backgroundColor:t?p.rS.checkboxBackgroundSelected:p.rS.tableBackground,":focus":{border:"1px solid "+p.rS.checkboxBorderSelected,boxShadow:"0 1px 2px "+p.rS.checkboxShadowSelected}},onEdit:i,onSelect:o,clickBehavior:"none",...a,children:t&&(0,r.jsx)(h.Z,{width:6,height:6})})})}function $({valueProps:e,valueStyle:t,inputProps:n,textAlign:o,onSave:i,...a}){const{binding:s,type:l,getValueStyle:u,formatExpr:c,unformatExpr:f,privacyFilter:h}=e;const p=(0,_.Z)(s,e=>{if(a.exposed&&n&&n.onBlur){n.onBlur(e)}});const g=(0,I.Z)();return(0,r.jsx)(R,{valueStyle:u?{...t,...u(p)}:t,textAlign:o,...a,value:p,formatter:e=>a.formatter?a.formatter(e,l):g(e,l),privacyFilter:h!=null?h:l==="financial"?true:undefined,"data-cellname":p,children:()=>{return(0,r.jsx)(N,{value:c?c(p):p,onUpdate:e=>{i(f?f(e):e)},...n,style:{textAlign:o,...n?.style||{}}})}})}function K({headers:e,children:t,version:n,...o}){return(0,r.jsx)(x.Z,{style:{borderRadius:"6px 6px 0 0",overflow:"hidden",flexShrink:0},children:(0,r.jsx)(z,{collapsed:true,...o,style:{color:p.rS.tableHeaderText,backgroundColor:p.rS.tableHeaderBackground,zIndex:200,fontWeight:500,...o.style},children:e?e.map(e=>{return(0,r.jsx)(R,{value:e.name,width:e.width,style:e.style,valueStyle:e.valueStyle},e.name)}):t})})}function q({name:e,keyHandlers:t,items:n,onSelect:i}){const a=(0,l.D9)();const[s,u]=(0,o.useState)(null);if(a.size===0){return null}return(0,r.jsxs)(x.Z,{style:{marginLeft:10,flexShrink:0},children:[(0,r.jsx)(T.U,{keys:t||{}}),(0,r.jsxs)(g.Z,{type:"bare",style:{color:p.rS.pageTextPositive},onClick:()=>u(true),children:[(0,r.jsx)(f.Z,{width:8,height:8,style:{marginRight:5,color:p.rS.pageText}}),a.size," ",e]}),s&&(0,r.jsx)(M.u,{position:"bottom-right",width:200,style:{padding:0,backgroundColor:p.rS.menuBackground},onClose:()=>u(false),children:(0,r.jsx)(m.Z,{onMenuSelect:e=>{i(e,[...a]);u(false)},items:n})})]})}const Y={position:"absolute",willChange:"transform",width:"100%"};const G=(0,o.forwardRef)(({fields:e,...t},n)=>{const o=Q(t.items,e);return(0,r.jsx)(X,{...t,navigator:o})});const X=(0,o.forwardRef)(({items:e,count:t,headers:n,contentHeader:i,loading:l,rowHeight:c=D,backgroundColor:f=p.rS.tableHeaderBackground,renderItem:h,renderEmpty:g,getItemKey:v,loadMore:m,style:y,navigator:w,onScroll:b,version:S="v1",allowPopupsEscape:k,isSelected:j,saveScrollWidth:T,...E},I)=>{if(!w){w={onEdit:()=>{},editingId:null,focusedField:null,getNavigatorProps:e=>e}}const{onEdit:_,editingId:P,focusedField:A,getNavigatorProps:O}=w;const R=(0,o.useRef)(null);const z=(0,o.useRef)(null);const Z=(0,o.useRef)(null);const L=(0,o.useRef)(null);const N=(0,o.useRef)(false);(0,o.useImperativeHandle)(I,()=>({scrollTo:(t,n="smart")=>{const r=e.findIndex(e=>e.id===t);if(r!==-1){if(!R.current){L.current=r}else{R.current.scrollToItem(r,n)}}},scrollToTop:()=>{R.current?.scrollTo(0)},getScrolledItem:()=>{if(Z.current){const t=Z.current.scrollTop;const n=R.current.getStartIndexForOffset(t);return e[n].id}return 0},setRowAnimation:e=>{R.current?.setRowAnimation(e)},edit(e,t,n){_(e,t);if(e&&n){I.scrollTo(e)}},anchor(){R.current?.anchor()},unanchor(){R.current?.unanchor()},isAnchored(){return R.current&&R.current.isAnchored()}}));(0,o.useLayoutEffect)(()=>{if(!N.current&&z.current){R.current?.setRowAnimation(true);N.current=true}if(Z.current&&T){T(Z.current.offsetParent?Z.current.offsetParent.clientWidth:0,Z.current?Z.current.clientWidth:0)}});function B({index:t,style:n,key:o}){const i=e[t];const a=P===i.id;const s=j&&j(i.id);const l=h({item:i,editing:a,focusedField:a&&A,onEdit:_,index:t,position:n.top});return(0,r.jsx)(x.Z,{style:{...Y,zIndex:a||s?101:"auto",transform:"translateY(var(--pos))"},nativeStyle:{"--pos":`${n.top-1}px`},"data-focus-key":i.id,children:l},o)}function H(e,t){return t*(c-1)+(c-1)/2-e/2+(c-1)*2}function F({overscanStartIndex:t,overscanStopIndex:n}){if(m&&n>e.length-100){m()}}function V(e){if(e==null){return null}else if(typeof e==="function"){return e()}return(0,r.jsx)(x.Z,{style:{justifyContent:"center",alignItems:"center",fontStyle:"italic",color:p.rS.tableText,flex:1},children:e})}if(l){return(0,r.jsx)(x.Z,{style:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:f},children:(0,r.jsx)(u.Z,{width:25,color:p.rS.tableText})})}const W=(t||e.length)===0;return(0,r.jsxs)(x.Z,{style:{flex:1,outline:"none",...y},tabIndex:1,...O(E),"data-testid":"table",children:[n&&(0,r.jsx)(K,{height:c,...Array.isArray(n)?{headers:n}:{children:n}}),(0,r.jsx)(x.Z,{style:{flex:`1 1 ${c*Math.max(2,e.length)}px`,backgroundColor:f},children:W?V(g):(0,r.jsx)(a.Z,{children:({width:n,height:o})=>{if(n===0||o===0){return null}return(0,r.jsx)(M.Hp.Provider,{value:!k&&z,children:(0,r.jsx)(s.M,{children:(0,r.jsx)(C,{ref:R,header:i,innerRef:z,outerRef:Z,width:n,height:o,renderRow:B,itemCount:t||e.length,itemSize:c-1,itemKey:v||(t=>e[t].id),indexForKey:t=>e.findIndex(e=>e.id===t),initialScrollOffset:L.current?H(o,L.current):0,overscanCount:5,onItemsRendered:F,onScroll:b})})})}})})]})});function Q(e,t){const n=typeof t!=="function"?()=>t:t;const[r,a]=(0,o.useState)(null);const[s,l]=(0,o.useState)(null);const u=(0,o.useRef)();const c=(0,i.oR)();const f=(0,o.useRef)(0);const h=(0,o.useCallback)((e,t)=>{a(e);l(e?t:null)},[]);(0,o.useEffect)(()=>{f.current=c.getState().modals.modalStack.length},[]);function p(){u.current.focus();h(null);setTimeout(()=>{h(r,s)},100)}function g(){const t=e.findIndex(e=>e.id===r);if(t>0){const r=e[t-1];const o=n(r);h(r.id,o[o.length-1])}else{p()}}function v(){const t=e.findIndex(e=>e.id===r);if(t<e.length-1){const r=e[t+1];const o=n(r);h(r.id,o[0])}else{p()}}function m(t){if(r){const o=n(e.find(e=>e.id===r));const i=o.indexOf(s)+t;if(i<0){g()}else if(i>=o.length){v()}else{l(o[i])}}}function y(t){if(r){const o=e.findIndex(e=>e.id===r);let i=o;while(true){i=i+t;if(i>=0&&i<e.length){const t=e[i];if(n(t).includes(s)){h(t.id,s);break}}else{p();break}}}}function x(e){switch(e){case"left":m(-1);break;case"right":m(1);break;case"up":y(-1);break;case"down":y(1);break;default:throw new Error("Unknown direction: "+e)}}function w(e){return{...e,innerRef:u,onKeyDown:t=>{e?.onKeyDown?.(t);if(t.isPropagationStopped()){return}switch(t.key){case"ArrowUp":case"k":if(t.target.tagName!=="INPUT"){x("up")}break;case"ArrowDown":case"j":if(t.target.tagName!=="INPUT"){x("down")}break;case"Enter":case"Tab":t.preventDefault();t.stopPropagation();x(t.key==="Enter"?t.shiftKey?"up":"down":t.shiftKey?"left":"right");break;default:}},onBlur:e=>{const t=f.current;const n=c.getState().modals.modalStack.length;if(document.hasFocus()&&(e.relatedTarget==null||!u.current.contains(e.relatedTarget)||u.current===e.relatedTarget)&&t===n){h(null)}}}}return{onEdit:h,editingId:r,focusedField:s,getNavigatorProps:w}}},19808:function(e,t,n){"use strict";n.d(t,{Hp:function(){return l},lL:function(){return u},u:function(){return c}});var r=n(43188);var o=n(66204);var i=n(42457);var a=n(99818);var s=n(45492);const l=(0,o.createContext)(null);function u(){const[e,t]=(0,o.useState)(false);return{getOpenEvents:(e={})=>({onClick:n=>{n.stopPropagation();e.onClick?.(n);t(true)}}),isOpen:e,open:()=>t(true),close:()=>t(false)}}class c extends o.Component{static contextType=l;position;contentRef;cleanup;target;context=this.context;constructor(e){super(e);this.position=e.position||"bottom-right";this.contentRef=(0,o.createRef)()}isHTMLElement(e){return e instanceof HTMLElement}setup(){this.layout();const e=e=>{let t=e.target;while(t&&t!==document.documentElement){if(t.dataset.istooltip||t.dataset.reachPopover!=null){break}t=t.parentNode}if(t===document.documentElement){this.props.onClose?.()}};const t=e=>{if(e.key==="Escape"){this.props.onClose?.()}};window.document.addEventListener("pointerdown",e,false);this.contentRef.current?.addEventListener("keydown",t,false);this.cleanup=()=>{window.document.removeEventListener("pointerdown",e,false);this.contentRef.current?.removeEventListener("keydown",t,false)}}componentDidMount(){if(this.getContainer()){this.setup()}else{this.forceUpdate(()=>{if(this.getContainer()){this.setup()}else{console.log("Warning: could not mount tooltip, container missing")}})}}componentDidUpdate(e){if(e.targetRect!==this.props.targetRect||e.forceTop!==this.props.forceTop||this.props.forceLayout){this.layout()}}getContainer(){const{ignoreBoundary:e=false}=this.props;if(!e&&this.context){return this.context.current}return document.body}getBoundsContainer(){const e=this.getContainer();if(e.parentNode&&this.isHTMLElement(e.parentNode)&&e.parentNode.style.overflow==="auto"){return e.parentNode}return e}layout(){const{targetRect:e,offset:t=0}=this.props;const n=this.contentRef.current;if(!n){return}const r=n.getBoundingClientRect();const o=this.target.parentNode;let i=e||(this.isHTMLElement(o)?o?.getBoundingClientRect():undefined);if(!i){return}i={top:i.top,left:i.left,width:i.width,height:i.height};const a=this.getBoundsContainer();if(!a){return}const s=a.getBoundingClientRect();i.left-=s.left;i.top-=s.top;if(this.props.forceTop){i.top=this.props.forceTop}else{const e=r.height+t;const n=i.top-e;const o=i.top+i.height+e;if(this.position.indexOf("top")!==-1&&n<s.top||this.position.indexOf("bottom")!==-1&&o>s.height&&n>0){this.position=this.getOppositePosition(this.position)}i.top+=a.scrollTop}const l=this.getStyleForPosition(this.position,r,i,this.getContainer().getBoundingClientRect(),t);n.style.top=l.top;n.style.bottom=l.bottom;n.style.left=l.left;n.style.right=l.right;n.style.width=l.width}componentWillUnmount(){if(this.cleanup){this.cleanup()}}getOppositePosition(e){switch(e){case"top":case"top-left":return"bottom";case"top-right":return"bottom-right";case"bottom":case"bottom-left":return"top";case"bottom-right":return"top-right";case"bottom-stretch":return"top-stretch";case"top-stretch":return"bottom-stretch";case"bottom-center":return"top-center";case"top-center":return"bottom-center";case"right":return"right";default:}}getStyleForPosition(e,t,n,r,o){const i={top:"inherit",bottom:"inherit",left:"inherit",right:"inherit",width:undefined};if(e==="top"||e==="top-right"||e==="top-left"){i.top=n.top-t.height-o+"px";if(e==="top-right"){i.left=n.left+(n.width-t.width)+"px"}else{i.left=n.left+"px"}}else if(e==="bottom"||e==="bottom-right"||e==="bottom-left"){i.top=n.top+n.height+o+"px";if(e==="bottom-right"){i.left=n.left+(n.width-t.width)+"px"}else{i.left=n.left+"px"}}else if(e==="bottom-center"){i.top=n.top+n.height+o+"px";i.left=n.left-(t.width-n.width)/2+"px"}else if(e==="top-center"){i.top=n.top-t.height-o+"px";i.left=n.left-(t.width-n.width)/2+"px"}else if(e==="left-center"){i.top=n.top-(t.height-n.height)/2+"px";i.left=n.left-t.width+"px"}else if(e==="top-stretch"){i.bottom=r.height-n.top+o+"px";i.left=n.left+"px";i.width=n.width+"px"}else if(e==="bottom-stretch"){i.top=n.top+n.height+o+"px";i.left=n.left+"px";i.width=n.width+"px"}else if(e==="right"){i.top=n.top+"px";i.left=n.left+n.width+o+"px"}else{throw new Error("Invalid position for Tooltip: "+e)}return i}render(){const{children:e,width:t,style:n}=this.props;const o={position:"absolute",zIndex:3e3,padding:5,width:t,...s.W2.shadowLarge,borderRadius:4,backgroundColor:s.rS.menuBackground,color:s.rS.menuItemText};if(!this.getContainer()){return null}return(0,r.jsx)("div",{ref:e=>this.target=e,children:i.createPortal((0,r.jsx)("div",{className:`${(0,a.iv)(o,n,s.W2.darkScrollbar)}`,ref:this.contentRef,"data-testid":this.props["data-testid"]||"tooltip","data-istooltip":true,onClick:e=>{e.stopPropagation()},children:e}),this.getContainer())})}}},88681:function(e,t,n){"use strict";n.d(t,{$:function(){return tb},z:function(){return tk}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(59379);var s=n(14313);var l=n(90696);var u=n(4689);function c(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=(0,l.Me)(t);let a=(0,l.Me)();let s={};if(n){r=r?`${a} ${r}`:a;s={id:a,htmlFor:i==="label"?t:undefined}}else if(!r&&!o)console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=(0,l.bE)({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:s,fieldProps:u}}function f(e){let{description:t,errorMessage:n,validationState:r}=e;let{labelProps:o,fieldProps:i}=(0,c)(e);let a=(0,$iD7q0$useSlotId)([Boolean(t),Boolean(n),r]);let s=(0,$iD7q0$useSlotId)([Boolean(t),Boolean(n),r]);i=(0,$iD7q0$mergeProps)(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||undefined});return{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}var h=n(6860);const p=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]);const g=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function v(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return p.has(t)}let t=e.split("-")[0];return g.has(t)}function m(){let e=typeof navigator!=="undefined"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:(0,v)(e)?"rtl":"ltr"}}let y=m();let x=new Set;function w(){y=m();for(let e of x)e(y)}function b(){let e=(0,h.Av)();let[t,n]=(0,o.useState)(y);(0,o.useEffect)(()=>{if(x.size===0)window.addEventListener("languagechange",w);x.add(n);return()=>{x.delete(n);if(x.size===0)window.removeEventListener("languagechange",w)}},[]);if(e)return{locale:"en-US",direction:"ltr"};return t}const S=(0,o).createContext(null);function k(e){let{locale:t,children:n}=e;let r=(0,b)();let o=t?{locale:t,direction:(0,v)(t)?"rtl":"ltr"}:r;return(0,$iFADg$react).createElement(S.Provider,{value:o},n)}function j(){let e=(0,b)();let t=(0,o.useContext)(S);return t||e}var C={};"use strict";const T=new WeakMap;function E(e){let t=T.get(e);if(!t){t=new(0,$iFADg$LocalizedStringDictionary)(e);T.set(e,t)}return t}function I(e){let{locale:t}=(0,j)();let n=(0,$iFADg$useMemo)(()=>E(e),[e]);return(0,$iFADg$useMemo)(()=>new(0,$iFADg$LocalizedStringFormatter)(t,n),[t,n])}function _(e={}){let{locale:t}=(0,j)();return(0,$iFADg$useMemo)(()=>new Intl.ListFormat(t,e),[t,e])}function M(e){e=(0,$iFADg$useDeepMemo)(e,D);let{locale:t}=(0,j)();return(0,$iFADg$useMemo)(()=>new(0,$iFADg$DateFormatter)(t,e),[t,e])}function D(e,t){if(e===t)return true;let n=Object.keys(e);let r=Object.keys(t);if(n.length!==r.length)return false;for(let r of n){if(t[r]!==e[r])return false}return true}function P(e={}){let{locale:t}=(0,j)();return(0,$iFADg$useMemo)(()=>new(0,$iFADg$NumberFormatter)(t,e),[t,e])}let A=new Map;function O(e){let{locale:t}=(0,j)();let n=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(A.has(n))return A.get(n);let r=new Intl.Collator(t,e);A.set(n,r);return r}function R(e){let t=(0,O)({usage:"search",...e});let n=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");return t.compare(e.slice(0,n.length),n)===0},[t]);let r=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");return t.compare(e.slice(-n.length),n)===0},[t]);let o=(0,$iFADg$useCallback)((e,n)=>{if(n.length===0)return true;e=e.normalize("NFC");n=n.normalize("NFC");let r=0;let o=n.length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(t.compare(n,i)===0)return true}return false},[t]);return(0,$iFADg$useMemo)(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])};function z(e){return(0,l.ad)()?e.altKey:e.ctrlKey}function Z(e){if((0,l.V5)())return e.metaKey;return e.ctrlKey}const L=1e3;function N(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e;let i=(0,o.useRef)({search:"",timeout:null}).current;let a=e=>{let o=B(e.key);if(!o||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;if(o===" "&&i.search.trim().length>0){e.preventDefault();if(!("continuePropagation"in e))e.stopPropagation()}i.search+=o;let a=t.getKeyForSearch(i.search,n.focusedKey);if(a==null)a=t.getKeyForSearch(i.search);if(a!=null){n.setFocusedKey(a);if(r)r(a)}clearTimeout(i.timeout);i.timeout=setTimeout(()=>{i.search=""},L)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function B(e){if(e.length===1||!/^[A-Z]/i.test(e))return e;return""}function H(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=false,shouldFocusWrap:a=false,disallowEmptySelection:c=false,disallowSelectAll:f=false,selectOnFocus:h=t.selectionBehavior==="replace",disallowTypeAhead:p=false,shouldUseVirtualFocus:g,allowsTabNavigation:v=false,isVirtualized:m,scrollRef:y=r}=e;let{direction:x}=(0,j)();let w=e=>{if(e.altKey&&e.key==="Tab")e.preventDefault();if(!r.current.contains(e.target))return;const o=(n,r)=>{if(n!=null){t.setFocusedKey(n,r);if(e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(n);else if(h&&!(0,z)(e))t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var i,u;e.preventDefault();let r=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(i=n.getFirstKey)===null||i===void 0?void 0:i.call(n);if(r==null&&a)r=(u=n.getFirstKey)===null||u===void 0?void 0:u.call(n,t.focusedKey);o(r)}break;case"ArrowUp":if(n.getKeyAbove){var p,g;e.preventDefault();let r=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(p=n.getLastKey)===null||p===void 0?void 0:p.call(n);if(r==null&&a)r=(g=n.getLastKey)===null||g===void 0?void 0:g.call(n,t.focusedKey);o(r)}break;case"ArrowLeft":if(n.getKeyLeftOf){var m,y;e.preventDefault();let r=n.getKeyLeftOf(t.focusedKey);if(r==null&&a)r=x==="rtl"?(m=n.getFirstKey)===null||m===void 0?void 0:m.call(n,t.focusedKey):(y=n.getLastKey)===null||y===void 0?void 0:y.call(n,t.focusedKey);o(r,x==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var w,b;e.preventDefault();let r=n.getKeyRightOf(t.focusedKey);if(r==null&&a)r=x==="rtl"?(w=n.getLastKey)===null||w===void 0?void 0:w.call(n,t.focusedKey):(b=n.getFirstKey)===null||b===void 0?void 0:b.call(n,t.focusedKey);o(r,x==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,(0,Z)(e));t.setFocusedKey(r);if((0,Z)(e)&&e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(r);else if(h)t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,(0,Z)(e));t.setFocusedKey(r);if((0,Z)(e)&&e.shiftKey&&t.selectionMode==="multiple")t.extendSelection(r);else if(h)t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){e.preventDefault();let r=n.getKeyPageBelow(t.focusedKey);o(r)}break;case"PageUp":if(n.getKeyPageAbove){e.preventDefault();let r=n.getKeyPageAbove(t.focusedKey);o(r)}break;case"a":if((0,Z)(e)&&t.selectionMode==="multiple"&&f!==true){e.preventDefault();t.selectAll()}break;case"Escape":e.preventDefault();if(!c)t.clearSelection();break;case"Tab":if(!v){if(e.shiftKey)r.current.focus();else{let e=(0,s.QL)(r.current,{tabbable:true});let t;let n;do{n=e.lastChild();if(n)t=n}while(n);if(t&&!t.contains(document.activeElement))(0,l.Ao)(t)}break}}};let b=(0,o.useRef)({top:0,left:0});(0,l.zX)(y,"scroll",m?null:()=>{b.current={top:y.current.scrollTop,left:y.current.scrollLeft}});let S=e=>{if(t.isFocused){if(!e.currentTarget.contains(e.target))t.setFocused(false);return}if(!e.currentTarget.contains(e.target))return;t.setFocused(true);if(t.focusedKey==null){let r=e=>{if(e!=null){t.setFocusedKey(e);if(h)t.replaceSelection(e)}};let a=e.relatedTarget;var o,i;if(a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING)r((o=t.lastSelectedKey)!==null&&o!==void 0?o:n.getLastKey());else r((i=t.firstSelectedKey)!==null&&i!==void 0?i:n.getFirstKey())}else if(!m){y.current.scrollTop=b.current.top;y.current.scrollLeft=b.current.left}if(!m&&t.focusedKey!=null){let e=y.current.querySelector(`[data-key="${t.focusedKey}"]`);if(e){if(!e.contains(document.activeElement))(0,l.Ao)(e);let t=(0,u.Jz)();if(t==="keyboard")(0,l.Gt)(e,{containingElement:r.current})}}};let k=e=>{if(!e.currentTarget.contains(e.relatedTarget))t.setFocused(false)};const C=(0,o.useRef)(i);(0,o.useEffect)(()=>{if(C.current){let e=null;if(i==="first")e=n.getFirstKey();if(i==="last")e=n.getLastKey();let o=t.selectedKeys;if(o.size)e=o.values().next().value;t.setFocused(true);t.setFocusedKey(e);if(e==null&&!g)(0,s.ex)(r.current)}C.current=false},[]);let T=(0,o.useRef)(t.focusedKey);(0,o.useEffect)(()=>{let e=(0,u.Jz)();if(t.isFocused&&t.focusedKey!=null&&(y===null||y===void 0?void 0:y.current)){let n=y.current.querySelector(`[data-key="${t.focusedKey}"]`);if(n&&e==="keyboard"){if(!m)(0,l.zT)(y.current,n);(0,l.Gt)(n,{containingElement:r.current})}}if(t.isFocused&&t.focusedKey==null&&T.current!=null)(0,s.ex)(r.current);T.current=t.focusedKey},[m,y,t.focusedKey,t.isFocused,r]);let E={onKeyDown:w,onFocus:S,onBlur:k,onMouseDown(e){if(y.current===e.target)e.preventDefault()}};let{typeSelectProps:I}=(0,N)({keyboardDelegate:n,selectionManager:t});if(!p)E=(0,l.dG)(I,E);let _;if(!g)_=t.focusedKey==null?0:-1;return{collectionProps:{...E,tabIndex:_}}}function F(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:c,isDisabled:f,onAction:h,allowsDifferentPressOrigin:p}=e;let g=e=>{if(e.pointerType==="keyboard"&&(0,z)(e))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.selectionMode==="single"){if(t.isSelected(n)&&!t.disallowEmptySelection)t.toggleSelection(n);else t.replaceSelection(n)}else if(e&&e.shiftKey)t.extendSelection(n);else if(t.selectionBehavior==="toggle"||e&&((0,Z)(e)||e.pointerType==="touch"||e.pointerType==="virtual"))t.toggleSelection(n);else t.replaceSelection(n)}};(0,o.useEffect)(()=>{let e=n===t.focusedKey;if(e&&t.isFocused&&!a){if(c)c();else if(document.activeElement!==r.current)(0,s.ex)(r.current)}},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]);f=f||t.isDisabled(n);let v={};if(!a&&!f)v={tabIndex:n===t.focusedKey?0:-1,onFocus(e){if(e.target===r.current)t.setFocusedKey(n)}};else if(f)v.onMouseDown=e=>{e.preventDefault()};let m=!f&&t.canSelectItem(n);let y=h&&!f;let x=y&&(t.selectionBehavior==="replace"?!m:t.isEmpty);let w=y&&m&&t.selectionBehavior==="replace";let b=x||w;let S=(0,o.useRef)(null);let k=b&&m;let j=(0,o.useRef)(false);let C=(0,o.useRef)(false);let T={};if(i){T.onPressStart=e=>{S.current=e.pointerType;j.current=k;if(e.pointerType==="keyboard"&&(!b||W()))g(e)};if(!p)T.onPress=e=>{if(x||w&&e.pointerType!=="mouse"){if(e.pointerType==="keyboard"&&!V())return;h()}else if(e.pointerType!=="keyboard")g(e)};else{T.onPressUp=e=>{if(e.pointerType!=="keyboard")g(e)};T.onPress=x?()=>h():null}}else{T.onPressStart=e=>{S.current=e.pointerType;j.current=k;C.current=x;if(e.pointerType==="mouse"&&!x||e.pointerType==="keyboard"&&(!h||W()))g(e)};T.onPress=e=>{if(e.pointerType==="touch"||e.pointerType==="pen"||e.pointerType==="virtual"||e.pointerType==="keyboard"&&b&&V()||e.pointerType==="mouse"&&C.current){if(b)h();else g(e)}}}v["data-key"]=n;T.preventFocusOnPress=a;let{pressProps:E,isPressed:I}=(0,u.r7)(T);let _=w?e=>{if(S.current==="mouse"){e.stopPropagation();e.preventDefault();h()}}:undefined;let{longPressProps:M}=(0,u.TA)({isDisabled:!k,onLongPress(e){if(e.pointerType==="touch"){g(e);t.setSelectionBehavior("toggle")}}});let D=e=>{if(S.current==="touch"&&j.current)e.preventDefault()};return{itemProps:(0,l.dG)(v,m||x?E:{},k?M:{},{onDoubleClick:_,onDragStartCapture:D}),isPressed:I,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:f,allowsSelection:m,hasAction:b}}function V(){let e=window.event;return(e===null||e===void 0?void 0:e.key)==="Enter"}function W(){let e=window.event;return(e===null||e===void 0?void 0:e.key)===" "||(e===null||e===void 0?void 0:e.code)==="Space"}class U{getNextKey(e){e=this.collection.getKeyAfter(e);while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){e=this.collection.getKeyBefore(e);while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,n){let r=this.getItem(e);if(!r)return null;let o=r.getBoundingClientRect();do{e=t(e);r=this.getItem(e)}while(r&&n(o,r.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}getKeyBelow(e){if(this.layout==="grid"&&this.orientation==="vertical")return this.findKey(e,e=>this.getNextKey(e),this.isSameRow);else return this.getNextKey(e)}getKeyAbove(e){if(this.layout==="grid"&&this.orientation==="vertical")return this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow);else return this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){if(this.layout==="grid"){if(this.orientation==="vertical")return this.getNextColumn(e,this.direction==="rtl");else return this.findKey(e,e=>this.getNextColumn(e,this.direction==="rtl"),this.isSameColumn)}else if(this.orientation==="horizontal")return this.getNextColumn(e,this.direction==="rtl");return null}getKeyLeftOf(e){if(this.layout==="grid"){if(this.orientation==="vertical")return this.getNextColumn(e,this.direction==="ltr");else return this.findKey(e,e=>this.getNextColumn(e,this.direction==="ltr"),this.isSameColumn)}else if(this.orientation==="horizontal")return this.getNextColumn(e,this.direction==="ltr");return null}getFirstKey(){let e=this.collection.getFirstKey();while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();while(e!=null){let t=this.collection.getItem(e);if(t.type==="item"&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current;let n=this.getItem(e);if(!n)return null;if(!(0,l.a9)(t))return this.getFirstKey();let r=t.getBoundingClientRect();let o=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=r.x-t.scrollLeft;let a=Math.max(0,o.x-i+o.width-r.width);while(n&&o.x-i>a){e=this.getKeyAbove(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}else{let i=r.y-t.scrollTop;let a=Math.max(0,o.y-i+o.height-r.height);while(n&&o.y-i>a){e=this.getKeyAbove(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}return e!==null&&e!==void 0?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current;let n=this.getItem(e);if(!n)return null;if(!(0,l.a9)(t))return this.getLastKey();let r=t.getBoundingClientRect();let o=n.getBoundingClientRect();if(this.orientation==="horizontal"){let i=r.x-t.scrollLeft;let a=Math.min(t.scrollWidth,o.x-i-o.width+r.width);while(n&&o.x-i<a){e=this.getKeyBelow(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}else{let i=r.y-t.scrollTop;let a=Math.min(t.scrollHeight,o.y-i-o.height+r.height);while(n&&o.y-i<a){e=this.getKeyBelow(e);n=e==null?null:this.getItem(e);o=n===null||n===void 0?void 0:n.getBoundingClientRect()}}return e!==null&&e!==void 0?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection;let r=t||this.getFirstKey();while(r!=null){let t=n.getItem(r);let o=t.textValue.slice(0,e.length);if(t.textValue&&this.collator.compare(o,e)===0)return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection;this.ref=t.ref;this.disabledKeys=t.disabledKeys||new Set;this.orientation=t.orientation;this.direction=t.direction;this.layout=t.layout||"stack"}else{this.collection=e[0];this.disabledKeys=e[1];this.ref=e[2];this.collator=e[3];this.layout="stack";this.orientation="vertical"}if(this.layout==="stack"&&this.orientation==="vertical"){this.getKeyLeftOf=undefined;this.getKeyRightOf=undefined}}}function $(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a,autoFocus:s,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:f=t.selectionBehavior==="replace",disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:g}=e;let v=(0,O)({usage:"search",sensitivity:"base"});let m=t.disabledBehavior;let y=(0,o.useMemo)(()=>a||new(0,U)(n,m==="selection"?new Set:r,i,v),[a,n,r,i,v,m]);let{collectionProps:x}=(0,H)({ref:i,selectionManager:t,keyboardDelegate:y,autoFocus:s,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:f,disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:g,isVirtualized:u,scrollRef:i});return{listProps:x}};function K(e){return null}K.getCollectionNode=function* e(e,t){let{childItems:n,title:r,children:i}=e;let a=e.title||e.children;let s=e.textValue||(typeof a==="string"?a:"")||e["aria-label"]||"";if(!s&&!(t===null||t===void 0?void 0:t.suppressTextValueWarning))console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop.");yield{type:"item",props:e,rendered:a,textValue:s,"aria-label":e["aria-label"],hasChildNodes:q(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(r){let e=[];(0,o).Children.forEach(i,t=>{e.push({type:"item",element:t})});yield*e}}}};function q(e){if(e.hasChildItems!=null)return e.hasChildItems;if(e.childItems)return true;if(e.title&&(0,o).Children.count(e.children)>0)return true;return false}let Y=K;function G(e){return null}G.getCollectionNode=function* e(e){let{children:t,title:n,items:r}=e;yield{type:"section",props:e,hasChildNodes:true,rendered:n,"aria-label":e["aria-label"],*childNodes(){if(typeof t==="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];(0,o).Children.forEach(t,t=>{e.push({type:"item",element:t})});yield*e}}}};let X=G;class Q{build(e,t){this.context=t;return J(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(typeof t==="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];(0,o).Children.forEach(t,t=>{e.push(t)});let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e){n++;yield t}}}}getKey(e,t,n,r){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${r}${t.key}`;let o=t.value;if(o!=null){var i;let e=(i=o.key)!==null&&i!==void 0?i:o.id;if(e==null)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index;n.parentKey=r?r.key:null;yield n;return}i=t.renderer(e.value)}if((0,o).isValidElement(i)){let o=i.type;if(typeof o!=="function"&&typeof o.getCollectionNode!=="function"){let e=typeof i.type==="function"?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=o.getCollectionNode(i.props,this.context);let s=e.index;let l=a.next();while(!l.done&&l.value){let o=l.value;e.index=s;let u=o.key;if(!u)u=o.element?null:this.getKey(i,e,t,n);let c=this.getFullNode({...o,key:u,index:s,wrapper:ee(e.wrapper,o.wrapper)},this.getChildState(t,o),n?`${n}${i.key}`:i.key,r);let f=[...c];for(let t of f){t.value=o.value||e.value;if(t.value)this.cache.set(t.value,t);if(e.type&&t.type!==e.type)throw new Error(`Unsupported type <${et(t.type)}> in <${et(r.type)}>. Only <${et(e.type)}> is supported.`);s++;yield t}l=a.next(f)}return}if(e.key==null)return;let a=this;let s={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:J(function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){if(r.key!=null)r.key=`${s.key}${r.key}`;r.index=n;let e=a.getFullNode(r,a.getChildState(t,r),s.key,s);for(let t of e){n++;yield t}}})};yield s}constructor(){this.cache=new WeakMap}}function J(e){let t=[];let n=null;return{*[Symbol.iterator](){for(let e of t)yield e;if(!n)n=e();for(let e of n){t.push(e);yield e}}}}function ee(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function et(e){return e[0].toUpperCase()+e.slice(1)}function en(e,t,n){let r=(0,o.useMemo)(()=>new(0,Q),[]);let{children:i,items:a,collection:s}=e;let l=(0,o.useMemo)(()=>{if(s)return s;let e=r.build({children:i,items:a},n);return t(e)},[r,i,a,s,n,t]);return l}function er(e,t){if(typeof t.getChildren==="function")return t.getChildren(e.key);return e.childNodes}function eo(e){return ei(e,0)}function ei(e,t){if(t<0)return undefined;let n=0;for(let r of e){if(n===t)return r;n++}}function ea(e){let t=undefined;for(let n of e)t=n;return t}function es(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...el(e,t),t];let o=[...el(e,n),n];let i=r.slice(0,o.length).findIndex((e,t)=>e!==o[t]);if(i!==-1){t=r[i];n=o[i];return t.index-n.index}if(r.findIndex(e=>e===n)>=0)return 1;else if(o.findIndex(e=>e===t)>=0)return-1;return-1}function el(e,t){let n=[];while((t===null||t===void 0?void 0:t.parentKey)!=null){t=e.getItem(t.parentKey);n.unshift(t)}return n}const eu=new WeakMap;function ec(e){let t=eu.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)if(o.type==="section")n((0,er)(o,e));else t++};n(e);eu.set(e,t);return t};const ed=new WeakMap;function ef(e){if(typeof e==="string")return e.replace(/\s*/g,"");return""+e}function eh(e,t){let n=ed.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${ef(t)}`}function ep(e,t,n){let r=(0,l.zL)(e,{labelable:true});let{listProps:o}=(0,$)({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys});let{focusWithinProps:i}=(0,u.L_)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange});let a=(0,l.Me)(e.id);(0,ed).set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:s,fieldProps:f}=(0,c)({...e,id:a,labelElementType:"span"});return{labelProps:s,listBoxProps:(0,l.dG)(r,i,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,l.dG)(f,o)})}}function eg(e,t,n){let{key:r}=e;let o=(0,ed).get(t);var i;let a=(i=e.isDisabled)!==null&&i!==void 0?i:t.disabledKeys.has(r);var s;let c=(s=e.isSelected)!==null&&s!==void 0?s:t.selectionManager.isSelected(r);var f;let h=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:o===null||o===void 0?void 0:o.shouldSelectOnPressUp;var p;let g=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:o===null||o===void 0?void 0:o.shouldFocusOnHover;var v;let m=(v=e.shouldUseVirtualFocus)!==null&&v!==void 0?v:o===null||o===void 0?void 0:o.shouldUseVirtualFocus;var y;let x=(y=e.isVirtualized)!==null&&y!==void 0?y:o===null||o===void 0?void 0:o.isVirtualized;let w=(0,l.mp)();let b=(0,l.mp)();let S={role:"option","aria-disabled":a||undefined,"aria-selected":t.selectionManager.selectionMode!=="none"?c:undefined};if(!((0,l.V5)()&&(0,l.Pf)())){S["aria-label"]=e["aria-label"];S["aria-labelledby"]=w;S["aria-describedby"]=b}if(x){var k;let e=Number((k=t.collection.getItem(r))===null||k===void 0?void 0:k.index);S["aria-posinset"]=Number.isNaN(e)?undefined:e+1;S["aria-setsize"]=(0,ec)(t.collection)}let{itemProps:j,isPressed:C,isFocused:T,hasAction:E,allowsSelection:I}=(0,F)({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&g,isVirtualized:x,shouldUseVirtualFocus:m,isDisabled:a,onAction:(o===null||o===void 0?void 0:o.onAction)?()=>{var e;return o===null||o===void 0?void 0:(e=o.onAction)===null||e===void 0?void 0:e.call(o,r)}:undefined});let{hoverProps:_}=(0,u.XI)({isDisabled:a||!g,onHoverStart(){if(!(0,u.E)()){t.selectionManager.setFocused(true);t.selectionManager.setFocusedKey(r)}}});return{optionProps:{...S,...(0,l.dG)(j,_),id:(0,eh)(t,r)},labelProps:{id:w},descriptionProps:{id:b},isFocused:T,isFocusVisible:T&&(0,u.E)(),isSelected:c,isDisabled:a,isPressed:C,allowsSelection:I,hasAction:E}}function ev(e){let{heading:t,"aria-label":n}=e;let r=(0,l.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:undefined}}};function em(e,t,n){let[r,i]=(0,o.useState)(e||t);let a=(0,o.useRef)(e!==undefined);let s=e!==undefined;(0,o.useEffect)(()=>{let e=a.current;if(e!==s)console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`);a.current=s},[s]);let l=s?e:r;let u=(0,o.useCallback)((e,...t)=>{let r=(e,...t)=>{if(n){if(!Object.is(l,e))n(e,...t)}if(!s)l=e};if(typeof e==="function"){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320");let n=(n,...o)=>{let i=e(s?l:n,...o);r(i,...t);if(!s)return i;return n};i(n)}else{if(!s)i(e);r(e,...t)}},[s,l,n]);return[l,u]}function ey(e,t=-Infinity,n=Infinity){let r=Math.min(Math.max(e,t),n);return r}function ex(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r;let i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;if(!isNaN(t)){if(i<t)i=t;else if(!isNaN(n)&&i>n)i=t+Math.floor((n-t)/r)*r}else if(!isNaN(n)&&i>n)i=Math.floor(n/r)*r;let a=r.toString();let s=a.indexOf(".");let l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function ew(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r};class eb extends Set{constructor(e,t,n){super(e);if(e instanceof eb){this.anchorKey=t||e.anchorKey;this.currentKey=n||e.currentKey}else{this.anchorKey=t;this.currentKey=n}}}function eS(e,t){if(e.size!==t.size)return false;for(let n of e){if(!t.has(n))return false}return true}function ek(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e;let s=(0,o.useRef)(false);let[,l]=(0,o.useState)(false);let u=(0,o.useRef)(null);let c=(0,o.useRef)(null);let[,f]=(0,o.useState)(null);let h=(0,o.useMemo)(()=>ej(e.selectedKeys),[e.selectedKeys]);let p=(0,o.useMemo)(()=>ej(e.defaultSelectedKeys,new(0,eb)),[e.defaultSelectedKeys]);let[g,v]=(0,em)(h,p,e.onSelectionChange);let m=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]);let[y,x]=(0,o.useState)(i);if(i==="replace"&&y==="toggle"&&typeof g==="object"&&g.size===0)x("replace");let w=(0,o.useRef)(i);(0,o.useEffect)(()=>{if(i!==w.current){x(i);w.current=i}},[i]);return{selectionMode:t,disallowEmptySelection:n,selectionBehavior:y,setSelectionBehavior:x,get isFocused(){return s.current},setFocused(e){s.current=e;l(e)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(e,t="first"){u.current=e;c.current=t;f(e)},selectedKeys:g,setSelectedKeys(e){if(r||!eS(e,g))v(e)},disabledKeys:m,disabledBehavior:a}}function ej(e,t){if(!e)return t;return e==="all"?"all":new(0,eb)(e)}class eC{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){if(e==null||this.collection.getItem(e))this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return false;e=this.getKey(e);return this.state.selectedKeys==="all"?this.canSelectItem(e):this.state.selectedKeys.has(e)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return false;if(this.state.selectedKeys==="all")return true;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys();let t=this.state.selectedKeys;this._isSelectAll=e.every(e=>t.has(e));return this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);if(!e||n&&(0,es)(this.collection,n,e)<0)e=n}return e===null||e===void 0?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);if(!e||n&&(0,es)(this.collection,n,e)>0)e=n}return e===null||e===void 0?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}e=this.getKey(e);let t;if(this.state.selectedKeys==="all")t=new(0,eb)([e],e,e);else{let n=this.state.selectedKeys;let r=n.anchorKey||e;t=new(0,eb)(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))if(this.canSelectItem(n))t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e);let r=this.collection.getItem(t);if(n&&r){if((0,es)(this.collection,n,r)<=0)return this.getKeyRangeInternal(e,t);return this.getKeyRangeInternal(t,e)}return[]}getKeyRangeInternal(e,t){let n=[];let r=e;while(r){let e=this.collection.getItem(r);if(e&&e.type==="item"||e.type==="cell"&&this.allowsCellSelection)n.push(r);if(r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if(t.type==="cell"&&this.allowsCellSelection)return e;while(t.type!=="item"&&t.parentKey!=null)t=this.collection.getItem(t.parentKey);if(!t||t.type!=="item")return null;return t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}e=this.getKey(e);if(e==null)return;let t=new(0,eb)(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);if(t.has(e))t.delete(e);else if(this.canSelectItem(e)){t.add(e);t.anchorKey=e;t.currentKey=e}if(this.disallowEmptySelection&&t.size===0)return;this.state.setSelectedKeys(t)}replaceSelection(e){if(this.selectionMode==="none")return;e=this.getKey(e);if(e==null)return;let t=this.canSelectItem(e)?new(0,eb)([e],e,e):new(0,eb);this.state.setSelectedKeys(t)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new(0,eb);for(let n of e){n=this.getKey(n);if(n!=null){t.add(n);if(this.selectionMode==="single")break}}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[];let t=n=>{while(n){if(this.canSelectItem(n)){let r=this.collection.getItem(n);if(r.type==="item")e.push(n);if(r.hasChildNodes&&(this.allowsCellSelection||r.type!=="item"))t((0,eo)((0,er)(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};t(this.collection.getFirstKey());return e}selectAll(){if(!this.isSelectAll&&this.selectionMode==="multiple")this.state.setSelectedKeys("all")}clearSelection(){if(!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0))this.state.setSelectedKeys(new(0,eb))}toggleSelectAll(){if(this.isSelectAll)this.clearSelection();else this.selectAll()}select(e,t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){if(this.isSelected(e)&&!this.disallowEmptySelection)this.toggleSelection(e);else this.replaceSelection(e)}else if(this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual"))this.toggleSelection(e);else this.replaceSelection(e)}isSelectionEqual(e){if(e===this.state.selectedKeys)return true;let t=this.selectedKeys;if(e.size!==t.size)return false;for(let n of e){if(!t.has(n))return false}for(let n of t){if(!e.has(n))return false}return true}canSelectItem(e){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return false;let t=this.collection.getItem(e);if(!t||t.type==="cell"&&!this.allowsCellSelection)return false;return true}isDisabled(e){return this.state.disabledKeys.has(e)&&this.state.disabledBehavior==="all"}constructor(e,t,n){this.collection=e;this.state=t;var r;this.allowsCellSelection=(r=n===null||n===void 0?void 0:n.allowsCellSelection)!==null&&r!==void 0?r:false;this._isSelectAll=null}};class eT{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(t===null||t===void 0?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map;this.iterable=e;let t=e=>{this.keyMap.set(e.key,e);if(e.childNodes&&e.type==="section")for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n;let r=0;for(let[e,t]of this.keyMap){if(n){n.nextKey=e;t.prevKey=n.key}else{this.firstKey=e;t.prevKey=undefined}if(t.type==="item")t.index=r++;n=t;n.nextKey=undefined}this.lastKey=n===null||n===void 0?void 0:n.key}}function eE(e){let{filter:t}=e;let n=(0,ek)(e);let r=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]);let i=(0,o.useCallback)(e=>t?new(0,eT)(t(e)):new(0,eT)(e),[t]);let a=(0,o.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]);let s=(0,en)(e,i,a);let l=(0,o.useMemo)(()=>new(0,eC)(s,n),[s,n]);const u=(0,o.useRef)(null);(0,o.useEffect)(()=>{if(n.focusedKey!=null&&!s.getItem(n.focusedKey)){const e=u.current.getItem(n.focusedKey);const t=[...u.current.getKeys()].map(e=>{const t=u.current.getItem(e);return t.type==="item"?t:null}).filter(e=>e!==null);const r=[...s.getKeys()].map(e=>{const t=s.getItem(e);return t.type==="item"?t:null}).filter(e=>e!==null);const o=t.length-r.length;let i=Math.min(o>1?Math.max(e.index-o+1,0):e.index,r.length-1);let a;while(i>=0){if(!l.isDisabled(r[i].key)){a=r[i];break}if(i<r.length-1)i++;else{if(i>e.index)i=e.index;i--}}n.setFocusedKey(a?a.key:null)}u.current=s},[s,l,n,n.focusedKey]);return{collection:s,disabledKeys:r,selectionManager:l}}function eI(e){var t;let[n,r]=(0,$58Phs$useControlledState)(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange);let o=(0,$58Phs$useMemo)(()=>n!=null?[n]:[],[n]);let{collection:i,disabledKeys:a,selectionManager:s}=(0,eE)({...e,selectionMode:"single",disallowEmptySelection:true,allowDuplicateSelectionEvents:true,selectedKeys:o,onSelectionChange:t=>{let o=t.values().next().value;if(o===n&&e.onSelectionChange)e.onSelectionChange(o);r(o)}});let l=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:l}}var e_=n(79982);var eM=n(41071);var eD=n(8780);var eP=n(25432);var eA=n(99818);var eO=n(10959);var eR=n(84094);var ez=n(73416);var eZ=n(11504);var eL=n(76804);var eN=n(89362);var eB=n(1447);var eH=n(9579);var eF=n(24868);var eV=n(76926);const eW=(0,o.createContext)(undefined);function eU({formName:e,children:t}){const[n,i]=(0,o.useState)(null);const a=(0,o.useRef)(null);const s=()=>{const e=a.current;if(typeof e==="function"){e?.()}a.current=null};const l=e=>{a.current=e?.()};const u=e=>{setTimeout(()=>{s();i(null)},e)};const c=(e,t)=>{l(t);i(e)};const f=(e,t,r)=>{if(n===e){return}if(n){u(r?.clearActiveEditDelayMs)}else{c(e,t)}};return(0,r.jsx)(eW.Provider,{value:{formName:e,editingField:n,onRequestActiveEdit:f,onClearActiveEdit:u},children:t})}function e$(){const e=(0,o.useContext)(eW);if(!e){return null}return{formName:e.formName,editingField:e.editingField,onRequestActiveEdit:e.onRequestActiveEdit,onClearActiveEdit:e.onClearActiveEdit}}var eK=n(24317);var eq=n(74684);var eY=n(86357);var eG=n(78393);var eX=n(6564);var eQ=n(64355);var eJ=n(87107);var e0=n(45492);var e1=n(56816);var e2=n(77644);var e4=n(42308);var e5=n(24307);var e3=n(15685);const e6=(0,o.memo)(function e({focused:e,style:t,textStyle:n,...i}){const[a,s]=(0,o.useState)(false);const[l,u]=(0,o.useState)("");const[c,f]=(0,o.useState)(0);const h=(0,o.useRef)();const p=(0,e3.r)(i.inputRef,h);const g=()=>Math.abs(i.value);(0,o.useEffect)(()=>{if(e){y()}},[]);(0,o.useEffect)(()=>{if(e){y()}},[e]);(0,o.useEffect)(()=>{s(false);u("");f(g())},[i.value]);const v=()=>{return(0,eN.sD)(l.replace(/[,.]/,(0,eN.ff)().separator))};const m=e=>{if(e.key==="Backspace"&&l===""){s(true)}};const y=()=>{h.current?.focus();f(g())};const x=()=>{const e=v();const t=a?e:c;f(Math.abs(t));s(false);u("");return t};const w=e=>{i.onFocus?.(e)};const b=e=>{const t=x();i.onUpdate?.(t);i.onBlur?.(e)};const S=e=>{s(true);u(e);i.onChange?.(e)};const k=(0,r.jsx)("input",{type:"text",ref:p,value:l,inputMode:"decimal",autoCapitalize:"none",onChange:e=>S(e.target.value),onFocus:w,onBlur:b,onKeyUp:m,"data-testid":"amount-input",style:{flex:1,textAlign:"center",position:"absolute"}});return(0,r.jsxs)(e5.Z,{style:{justifyContent:"center",borderWidth:1,borderColor:e0.rS.pillBorderSelected,borderRadius:4,padding:5,backgroundColor:e0.rS.tableBackground,...t},children:[(0,r.jsx)(e5.Z,{style:{overflowY:"auto",overflowX:"hidden"},children:k}),(0,r.jsx)(e2.Z,{style:n,"data-testid":"amount-fake-input",pointerEvents:"none",children:a?l:(0,eN.eY)(c)})]})});const e8=(0,o.memo)(function e({value:e,sign:t,zeroSign:n,focused:i,textStyle:a,style:s,focusedStyle:l,buttonProps:u,onFocus:c,onBlur:f,...h}){const[p,g]=(0,o.useState)(true);(0,o.useEffect)(()=>{if(t){g(t==="-")}else if(e>0||n!=="-"&&e===0){g(false)}},[]);const v=()=>{g(!p);h.onUpdate?.(m(e,!p))};const m=(e,t)=>{const n=Math.abs(e);return t?-n:n};const y=e=>{h.onUpdate?.(m(e,p))};const x=e=>{h.onChange?.(m(e,p))};return(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(e6,{...h,value:e,onFocus:c,onBlur:f,onChange:x,onUpdate:y,focused:i,style:{width:80,justifyContent:"center",...s,...l,...!i&&{display:"none"}},textStyle:{fontSize:15,textAlign:"right",...a}}),(0,r.jsxs)(e5.Z,{children:[!i&&(0,r.jsx)(e1.Z,{style:{position:"absolute",right:"calc(100% + 5px)",top:"8px"},onClick:v,children:p?"-":"+"}),(0,r.jsx)(e1.Z,{onClick:c,...u,style:{...u&&u.style,...i&&{display:"none"},":hover":{backgroundColor:"transparent"}},type:"bare",children:(0,r.jsx)(e5.Z,{style:{borderBottomWidth:1,borderColor:"#e0e0e0",justifyContent:"center",transform:[{translateY:.5}],...s},children:(0,r.jsx)(e2.Z,{style:{fontSize:15,userSelect:"none",...a},children:(0,eN.eY)(Math.abs(e))})})})]})]})});var e7=n(383);const e9=40;function te({title:e,flush:t,style:n}){return(0,r.jsx)(e2.Z,{style:{marginBottom:5,marginTop:t?0:25,fontSize:13,color:e0.rS.tableRowHeaderText,padding:`0 ${e0.W2.mobileEditingPadding}px`,textTransform:"uppercase",userSelect:"none",...n},children:e})}const tt={borderWidth:1,borderColor:e0.rS.formInputBorder,marginLeft:8,marginRight:8,height:e9};const tn=(0,o.forwardRef)(function e({disabled:e,style:t,onUpdate:n,...o},i){return(0,r.jsx)(e7.ZP,{inputRef:i,autoCorrect:"false",autoCapitalize:"none",disabled:e,onBlur:e=>{n?.(e.target.value)},style:{...tt,...t,color:e?e0.rS.tableTextInactive:e0.rS.tableText,backgroundColor:e?e0.rS.formInputTextReadOnlySelection:e0.rS.tableBackground},...o})});function tr({value:e,children:t,disabled:n,rightContent:o,style:i,textStyle:a,onClick:s,...l}){return(0,r.jsxs)(e1.Z,{as:e5.Z,onClick:!n?s:undefined,style:{flexDirection:"row",alignItems:"center",...i,...tt,backgroundColor:e0.rS.tableBackground,...n&&{backgroundColor:e0.rS.formInputTextReadOnlySelection}},bounce:false,activeStyle:{opacity:.5,boxShadow:"none"},hoveredStyle:{boxShadow:"none"},...l,children:[t?t:(0,r.jsx)(e2.Z,{style:{flex:1,userSelect:"none",...a},children:e}),!n&&o]})}function to({checked:e,onUpdate:t,style:n,disabled:o=false}){return(0,r.jsx)("input",{disabled:o?true:undefined,type:"checkbox",checked:e,onChange:e=>t(e.target.checked),className:`${(0,eA.iv)([{marginInline:e0.W2.mobileEditingPadding,flexShrink:0,appearance:"none",outline:0,border:"1px solid "+e0.rS.formInputBorder,borderRadius:4,display:"flex",alignItems:"center",justifyContent:"center",color:e0.rS.checkboxText,backgroundColor:e0.rS.tableBackground,":checked":{border:"1px solid "+e0.rS.checkboxBorderSelected,backgroundColor:e0.rS.checkboxBackgroundSelected,"::after":{display:"block",background:e0.rS.checkboxBackgroundSelected+' url(\'data:image/svg+xml; utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="white" d="M0 11l2-2 5 5L18 3l2 2L7 18z"/></svg>\') 15px 15px',width:15,height:15,content:" "}}},n])}`})}var ti=n(82151);var ta=n(13308);var ts=n(82345);const tl={SECTION_HEADING:10};function tu(e,t){return`${t}-${e}`}function tc(e,t,n){const{amount:r}=e;if(n){return`Transfer ${r>0?"from":"to"} ${n.name}`}else if(t){return t.name}return""}function td(e,t){const{date:n,amount:r}=e;return{...e,date:(0,e_.Z)((0,eM.Z)(n),t),amount:(0,eN.Bf)(r||0)}}function tf(e,t,n){const{amount:r,date:o,...i}=e;const a=ez.Ze(n);let s=o;if(a.test(s)){const e=(0,eD.Z)(s,ez.D1(n),new Date);if((0,eP.Z)(e)){s=ez.is(e)}else{s=null}}else{const e=(0,eD.Z)(s,n,new Date);if(e.getFullYear()>2e3&&(0,eP.Z)(e)){s=ez.is(e)}else{s=null}}if(s==null){s=t&&t.date||ez.PR()}return{...i,date:s,amount:(0,eN.l9)(r||0)}}function th(e,t){if(!t){return null}return e.find(e=>e.id===t)?.name}function tp({status:e}){let t;switch(e){case"missed":t=e0.rS.errorText;break;case"due":t=e0.rS.warningText;break;case"upcoming":t=e0.rS.tableHeaderText;break;default:}return(0,r.jsx)(e2.Z,{style:{fontSize:11,color:t,fontStyle:"italic",textAlign:"left"},children:(0,eN.VL)(e)})}function tg({transactions:e,adding:t,onAdd:n,onSave:o,onSplit:i,onAddSplit:a,onEmptySplitFound:s}){const[l,...u]=e;const c=()=>{if(u.length===0){i(l.id)}else{const e=u.find(e=>e.amount===0);if(!e){a(l.id)}else{s?.(e.id)}}};return(0,r.jsx)(e5.Z,{style:{paddingLeft:e0.W2.mobileEditingPadding,paddingRight:e0.W2.mobileEditingPadding,paddingTop:10,paddingBottom:10,backgroundColor:e0.rS.tableHeaderBackground,borderTopWidth:1,borderColor:e0.rS.tableBorder},children:l.error?.type==="SplitTransactionError"?(0,r.jsxs)(e1.Z,{type:"primary",style:{height:40},onClick:c,onPointerDown:e=>e.preventDefault(),children:[(0,r.jsx)(eK.Z,{width:17,height:17}),(0,r.jsxs)(e2.Z,{style:{...e0.W2.text,marginLeft:6},children:["Amount left:"," ",(0,eN.zA)(l.amount>0?l.error.difference:-l.error.difference)]})]}):t?(0,r.jsxs)(e1.Z,{style:{height:40},onClick:n,onPointerDown:e=>e.preventDefault(),children:[(0,r.jsx)(eq.Z,{width:17,height:17,style:{color:e0.rS.formLabelText}}),(0,r.jsx)(e2.Z,{style:{...e0.W2.text,color:e0.rS.formLabelText,marginLeft:5},children:"Add transaction"})]}):(0,r.jsxs)(e1.Z,{style:{height:40},onClick:o,onPointerDown:e=>e.preventDefault(),children:[(0,r.jsx)(eJ.Z,{width:16,height:16,style:{color:e0.rS.formLabelText}}),(0,r.jsx)(e2.Z,{style:{...e0.W2.text,marginLeft:6,color:e0.rS.formLabelText},children:"Save changes"})]})})}const tv=(0,o.forwardRef)(({transaction:e,amountSign:t,getCategory:n,getPrettyPayee:o,isOffBudget:i,isBudgetTransfer:a,onClick:s,onEdit:l,onDelete:u},c)=>{const{editingField:f,onRequestActiveEdit:h,onClearActiveEdit:p}=e$();return(0,r.jsxs)(e5.Z,{innerRef:c,style:{backgroundColor:e0.rS.tableBackground,borderColor:e.amount===0?e0.rS.tableBorderSelected:e0.rS.tableBorder,borderWidth:"1px",borderRadius:"5px",padding:"5px",margin:"10px"},children:[(0,r.jsxs)(e5.Z,{style:{flexDirection:"row"},children:[(0,r.jsxs)(e5.Z,{style:{flexBasis:"75%"},children:[(0,r.jsx)(te,{title:"Payee"}),(0,r.jsx)(tr,{disabled:f&&f!==tu(e.id,"payee"),value:o(e),onClick:()=>s(e.id,"payee"),"data-testid":`payee-field-${e.id}`})]}),(0,r.jsxs)(e5.Z,{style:{flexBasis:"25%"},children:[(0,r.jsx)(te,{title:"Amount",style:{padding:0}}),(0,r.jsx)(ts._,{disabled:f&&f!==tu(e.id,"amount"),focused:e.amount===0,value:(0,eN.l9)(e.amount),zeroSign:t,style:{marginRight:8},textStyle:{...e0.W2.smallText,textAlign:"right"},onFocus:()=>h(tu(e.id,"amount")),onUpdate:t=>{const n=(0,eN.Bf)(t);if(e.amount!==n){l(e,"amount",n)}else{p()}}})]})]}),(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Category"}),(0,r.jsx)(tr,{style:{...(i||a(e))&&{fontStyle:"italic",color:e0.rS.pageTextSubdued,fontWeight:300}},value:n(e,i),disabled:f&&f!==tu(e.id,"category")||i||a(e),onClick:()=>s(e.id,"category"),"data-testid":`category-field-${e.id}`})]}),(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Notes"}),(0,r.jsx)(tn,{disabled:f&&f!==tu(e.id,"notes"),defaultValue:e.notes,onFocus:()=>h(tu(e.id,"notes")),onUpdate:t=>l(e,"notes",t)})]}),(0,r.jsx)(e5.Z,{style:{alignItems:"center"},children:(0,r.jsxs)(e1.Z,{onClick:()=>u(e.id),onPointerDown:e=>e.preventDefault(),style:{height:40,borderWidth:0,marginLeft:e0.W2.mobileEditingPadding,marginRight:e0.W2.mobileEditingPadding,marginTop:10,backgroundColor:"transparent"},type:"bare",children:[(0,r.jsx)(eY.Z,{width:17,height:17,style:{color:e0.rS.errorText}}),(0,r.jsx)(e2.Z,{style:{color:e0.rS.errorText,marginLeft:5,userSelect:"none"},children:"Delete split"})]})})]})});const tm=(0,o.memo)(function e({adding:e,accounts:t,categories:n,payees:i,dateFormat:a,transactions:s,navigate:l,pushModal:u,...c}){const{editingField:f,onRequestActiveEdit:h,onClearActiveEdit:p}=e$();const[g,v]=(0,o.useState)(false);const m=(0,o.useRef)({});const y=(0,o.useMemo)(()=>(0,eN.ZZ)(i),[i]);const x=(0,o.useMemo)(()=>(0,eN.ZZ)(t),[t]);const w=e=>{return e?.account&&x?.[e.account]};const b=e=>{return e?.payee&&y?.[e.payee]};const S=e=>{const t=e&&b(e);return t?.transfer_acct&&x?.[t.transfer_acct]};const k=e=>{const t=e&&b(e);const n=e&&S(e);return tc(e,t,n)};const j=e=>{const t=e&&S(e);return t&&!t.offbudget};const C=(e,t)=>{return t?"Off Budget":j(e)?"Transfer":th(n,e.category)};const T=()=>{h?.(tu(L.id,"amount"),()=>{v(true);return()=>v(false)})};(0,o.useEffect)(()=>{if(e){T()}},[]);const E=e=>{if(L.amount!==e){M(L,"amount",e.toString())}else{p()}};const I=async()=>{const[t]=s;const n=async()=>{const{account:n}=t;const r=x[n];if(s.find(e=>e.account==null)){return}let o=s;if(e){o=(0,eL.V6)(s)}c.onSave(o);l(`/accounts/${r.id}`,{replace:true})};if(t.reconciled){u("confirm-transaction-edit",{onConfirm:n,confirmReason:"editReconciled"})}else{n()}};const _=()=>{I()};const M=async(e,t,n)=>{const r={...e,[t]:n};await c.onEdit(r);p()};const D=(e,t)=>{h?.(tu(L.id,"payee"),()=>{u("edit-field",{name:t,onSubmit:(t,n)=>{const r=s.find(t=>t.id===e);M(td(r,a),t,n)},onClose:()=>{p()}})})};const P=e=>{const[t,...n]=s;const r=()=>{c.onDelete(e);if(t.id!==e){p();return}const{account:n}=t;if(n){l(`/accounts/${n}`,{replace:true})}else{l(-1)}};if(t.reconciled){u("confirm-transaction-edit",{onConfirm:r,confirmReason:"deleteReconciled"})}else{r()}};const A=e=>{const t=m.current?.[e];t?.scrollIntoView({behavior:"smooth"})};const O=e=>{c.onAddSplit(e)};const R=e=>{c.onSplit(e)};const z=e=>{A(e)};const Z=(0,o.useMemo)(()=>s.map(e=>td(e,a))||[],[s,a]);const[L,...N]=Z;(0,o.useEffect)(()=>{const e=N.find(e=>e.amount===0);if(e){A(e.id)}},[N]);const B=L.amount<=0?"-":"+";const H=w(L);const F=H&&!!H.offbudget;const V=tc(L,b(L),S(L));const W=(0,eD.Z)(L.date,a,new Date);const U=ez.is(W);return(0,r.jsx)(ta.T,{title:L.payee==null?e?"New Transaction":"Transaction":V,titleStyle:{fontSize:16,fontWeight:500},style:{flex:1,backgroundColor:e0.rS.mobilePageBackground},headerLeftContent:(0,r.jsx)(ti.Z,{}),footer:(0,r.jsx)(tg,{transactions:Z,adding:e,onAdd:_,onSave:I,onSplit:R,onAddSplit:O,onEmptySplitFound:z}),padding:0,children:(0,r.jsxs)(e5.Z,{style:{flexShrink:0,marginTop:20,marginBottom:20},children:[(0,r.jsxs)(e5.Z,{style:{alignItems:"center"},children:[(0,r.jsx)(te,{title:"Amount",flush:true,style:{marginBottom:0}}),(0,r.jsx)(e8,{value:L.amount,zeroSign:"-",focused:g,onFocus:T,onUpdate:E,focusedStyle:{width:"auto",padding:"5px",paddingLeft:"20px",paddingRight:"20px",minWidth:120,transform:[{translateY:-.5}]},textStyle:{fontSize:30,textAlign:"center"}})]}),(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Payee"}),(0,r.jsx)(tr,{disabled:f&&f!==tu(L.id,"payee"),value:k(L),onClick:()=>D(L.id,"payee"),"data-testid":"payee-field"})]}),!L.is_parent&&(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Category"}),(0,r.jsx)(tr,{style:{...(F||j(L))&&{fontStyle:"italic",color:e0.rS.pageTextSubdued,fontWeight:300}},value:C(L,F),disabled:f&&f!==tu(L.id,"category")||F||j(L),onClick:()=>D(L.id,"category"),"data-testid":"category-field"})]}),N.map(e=>(0,r.jsx)(tv,{transaction:e,amountSign:B,ref:t=>{m.current={...m.current,[e.id]:t}},isOffBudget:F,getCategory:C,getPrettyPayee:k,isBudgetTransfer:j,onEdit:M,onClick:D,onDelete:P},e.id)),L.amount!==0&&N.length===0&&(0,r.jsx)(e5.Z,{style:{alignItems:"center"},children:(0,r.jsxs)(e1.Z,{disabled:f,style:{height:40,borderWidth:0,marginLeft:e0.W2.mobileEditingPadding,marginRight:e0.W2.mobileEditingPadding,marginTop:10,backgroundColor:"transparent"},onClick:()=>R(L.id),type:"bare",children:[(0,r.jsx)(eK.Z,{width:17,height:17,style:{color:e0.rS.formLabelText}}),(0,r.jsx)(e2.Z,{style:{marginLeft:5,userSelect:"none",color:e0.rS.formLabelText},children:"Split"})]})}),(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Account"}),(0,r.jsx)(tr,{disabled:!e||f&&f!==tu(L.id,"account"),value:H?.name,onClick:()=>D(L.id,"account"),"data-testid":"account-field"})]}),(0,r.jsxs)(e5.Z,{style:{flexDirection:"row"},children:[(0,r.jsxs)(e5.Z,{style:{flex:1},children:[(0,r.jsx)(te,{title:"Date"}),(0,r.jsx)(tn,{type:"date",disabled:f&&f!==tu(L.id,"date"),required:true,style:{color:e0.rS.tableText,minWidth:"150px"},defaultValue:U,onFocus:()=>h(tu(L.id,"date")),onUpdate:e=>M(L,"date",(0,e_.Z)((0,eM.Z)(e),a))})]}),L.reconciled?(0,r.jsxs)(e5.Z,{style:{marginLeft:0,marginRight:8},children:[(0,r.jsx)(te,{title:"Reconciled"}),(0,r.jsx)(to,{disabled:true,checked:true,style:{margin:"auto",width:22,height:22}})]}):(0,r.jsxs)(e5.Z,{style:{marginLeft:0,marginRight:8},children:[(0,r.jsx)(te,{title:"Cleared"}),(0,r.jsx)(to,{disabled:f,checked:L.cleared,onUpdate:e=>M(L,"cleared",e),style:{margin:"auto",width:22,height:22}})]})]}),(0,r.jsxs)(e5.Z,{children:[(0,r.jsx)(te,{title:"Notes"}),(0,r.jsx)(tn,{disabled:f&&f!==tu(L.id,"notes"),defaultValue:L.notes,onFocus:()=>{h(tu(L.id,"notes"))},onUpdate:e=>M(L,"notes",e)})]}),!e&&(0,r.jsx)(e5.Z,{style:{alignItems:"center"},children:(0,r.jsxs)(e1.Z,{onClick:()=>P(L.id),style:{height:40,borderWidth:0,marginLeft:e0.W2.mobileEditingPadding,marginRight:e0.W2.mobileEditingPadding,marginTop:10,backgroundColor:"transparent"},type:"bare",children:[(0,r.jsx)(eY.Z,{width:17,height:17,style:{color:e0.rS.errorText}}),(0,r.jsx)(e2.Z,{style:{color:e0.rS.errorText,marginLeft:5,userSelect:"none"},children:"Delete transaction"})]})})]})})});function ty(e){return e.id.indexOf("temp")===0}function tx(e,t){return[{id:"temp",date:t||ez.PR(),account:e,amount:0,cleared:false}]}function tw(e){const{categories:t,accounts:n,payees:i,lastTransaction:s,dateFormat:l}=e;const{id:u,transactionId:c}=(0,a.UO)();const f=(0,eF.Z)();const[h,p]=(0,o.useState)([]);const[g,v]=(0,o.useState)([]);const m=(0,o.useRef)(false);const y=(0,o.useRef)(false);(0,eV.j)(e0.rS.mobileViewTheme);(0,o.useEffect)(()=>{e.getCategories();e.getAccounts();e.getPayees();async function t(){const{data:e}=await (0,eO.Vn)((0,eO.ZP)("transactions").filter({id:c}).select("*").options({splits:"grouped"}));v((0,eL.Xt)(e))}if(c){t()}else{m.current=true}},[c]);(0,o.useEffect)(()=>{p(g)},[g]);(0,o.useEffect)(()=>{if(m.current){p(tx(u||s?.account||null,s?.date))}},[m.current,u,s]);if(t.length===0||n.length===0||h.length===0){return null}const x=async e=>{let t=e;if(ty(e)){const n=await (0,eR.lW)("rules-run",{transaction:e});const r=(0,eN.k4)(e,n);t={...e};if(r){Object.keys(r).forEach(e=>{if(t[e]==null){t[e]=r[e]}})}}const{data:n}=(0,eL.Ld)(h,tf(t,null,l));p(n)};const w=async t=>{if(y.current){return}const n=(0,eN.Th)(g||[],t);if(n.added.length>0||n.updated.length>0||n.deleted.length){const e=await (0,eR.lW)("transactions-batch-update",{added:n.added,deleted:n.deleted,updated:n.updated})}if(m.current){e.setLastTransaction(t[0])}};const b=async e=>{const t=(0,eL.Ks)(h,e);if(m.current){y.current=true}else{const e=await (0,eR.lW)("transactions-batch-update",{deleted:t.diff.deleted})}p(t.data)};const S=e=>{const t=(0,eL.CX)(h,e);p(t.data)};const k=e=>{const t=(0,eL.oQ)(h,e);p(t.data)};return(0,r.jsx)(e5.Z,{style:{flex:1,backgroundColor:e0.rS.pageBackground},children:(0,r.jsx)(tm,{transactions:h,adding:m.current,categories:t,accounts:n,payees:i,pushModal:e.pushModal,navigate:f,dateFormat:l,onEdit:x,onSave:w,onDelete:b,onSplit:k,onAddSplit:S})})}const tb=e=>{const{list:t}=(0,eH.Z)();const n=(0,i.v9)(e=>e.queries.payees);const o=(0,i.v9)(e=>e.queries.lastTransaction);const a=(0,i.v9)(e=>e.queries.accounts);const s=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const l=(0,eB.o)();return(0,r.jsx)(eU,{formName:"mobile-transaction",children:(0,r.jsx)(tw,{...e,...l,categories:t,payees:n,lastTransaction:o,accounts:a,dateFormat:s})})};const tS=(0,o.memo)(function e({transaction:e,accounts:t,categories:n,payees:i,showCategory:a,added:s,onSelect:l,style:u}){const c=(0,o.useMemo)(()=>(0,eN.ZZ)(t),[t]);const f=(0,o.useMemo)(()=>(0,eN.ZZ)(i),[i]);const{id:h,payee:p,amount:g,category:v,cleared:m,is_parent:y,notes:x,schedule:w}=e;let b=g;if((0,eL.J4)(h)){b=(0,eZ.lP)(b)}const S=th(n,v);const k=f&&p&&f[p];const j=k&&k.transfer_acct&&c[k.transfer_acct];const C=tc(e,k,j);const T=j?"Transfer":y?"Split":S;const E=(0,eL.J4)(h);const I=e.reconciled;const _=E&&{fontStyle:"italic",color:e0.rS.pageTextLight};return(0,r.jsx)(e1.Z,{onClick:()=>l(e),style:{backgroundColor:e0.rS.tableBackground,border:"none",width:"100%"},children:(0,r.jsxs)(tI,{style:{flex:1,height:60,padding:"5px 10px",...E&&{backgroundColor:e0.rS.tableRowHeaderBackground},...u},children:[(0,r.jsxs)(e5.Z,{style:{flex:1},children:[(0,r.jsxs)(e5.Z,{style:{flexDirection:"row",alignItems:"center"},children:[w&&(0,r.jsx)(eG.Z,{style:{width:12,height:12,marginRight:5,color:_.color||e0.rS.menuItemText}}),(0,r.jsx)(e4.Z,{style:{...e0.W2.text,..._,fontSize:14,fontWeight:s?"600":"400",...C===""&&{color:e0.rS.tableTextLight,fontStyle:"italic"}},children:C||"Empty"})]}),E?(0,r.jsx)(tp,{status:x}):(0,r.jsxs)(e5.Z,{style:{flexDirection:"row",alignItems:"center",marginTop:3},children:[I?(0,r.jsx)(eQ.Z,{style:{width:11,height:11,color:e0.rS.noticeTextLight,marginRight:5}}):(0,r.jsx)(eX.Z,{style:{width:11,height:11,color:m?e0.rS.noticeTextLight:e0.rS.pageTextSubdued,marginRight:5}}),a&&(0,r.jsx)(e4.Z,{style:{fontSize:11,marginTop:1,fontWeight:"400",color:T?e0.rS.tableTextSelected:e0.rS.menuItemTextSelected,fontStyle:T?null:"italic",textAlign:"left"},children:T||"Uncategorized"})]})]}),(0,r.jsx)(e2.Z,{style:{...e0.W2.text,..._,marginLeft:25,marginRight:5,fontSize:14},children:(0,eN.zA)(b)})]})})});function tk({accounts:e,categories:t,payees:n,transactions:i,showCategory:a,isNew:s,onSelect:l,scrollProps:u={},onLoadMore:c}){const f=(0,o.useMemo)(()=>{const e=[];i.forEach(t=>{if(e.length===0||t.date!==e[e.length-1].date){const n=e[e.length-1];if(n&&n.data.length>0){const e=n.data;e[e.length-1].isLast=true}e.push({id:`${(0,eL.J4)(t.id)?"preview/":""}${t.date}`,date:t.date,data:[]})}if(!t.is_child){e[e.length-1].data.push(t)}});return e},[i]);return(0,r.jsxs)(r.Fragment,{children:[u.ListHeaderComponent,(0,r.jsxs)(tj,{...u,"aria-label":"transaction list",label:"",loadMore:c,selectionMode:"none",children:[f.length===0?(0,r.jsx)(X,{children:(0,r.jsx)(Y,{textValue:"No transactions",children:(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",width:"100%",backgroundColor:e0.rS.mobilePageBackground},children:(0,r.jsx)(e2.Z,{style:{fontSize:15},children:"No transactions"})})})}):null,f.map(o=>{return(0,r.jsx)(X,{title:(0,r.jsx)("span",{children:ez.WU(o.date,"MMMM dd, yyyy")}),children:o.data.map((o,i,u)=>{return(0,r.jsx)(Y,{style:{fontSize:i===u.length-1?98:"inherit"},textValue:o.id,children:(0,r.jsx)(tS,{transaction:o,categories:t,accounts:e,payees:n,showCategory:a,added:s(o.id),onSelect:l})},o.id)})},o.id)})]})]})}function tj(e){const t=eE(e);const n=(0,o.useRef)();const{listBoxProps:i,labelProps:a}=ep(e,t,n);(0,o.useEffect)(()=>{function t(){if(Math.abs(n.current.scrollHeight-n.current.clientHeight-n.current.scrollTop)<n.current.clientHeight){e.loadMore()}}n.current.addEventListener("scroll",t);return()=>{n.current?.removeEventListener("scroll",t)}},[t.collection]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{...a,children:e.label}),(0,r.jsx)("ul",{...i,ref:n,style:{padding:0,listStyle:"none",margin:0,width:"100%"},children:[...t.collection].map(e=>(0,r.jsx)(tC,{section:e,state:t},e.key))})]})}function tC({section:e,state:t}){const{itemProps:n,headingProps:o,groupProps:i}=ev({heading:e.rendered,"aria-label":e["aria-label"]});return(0,r.jsxs)("li",{...n,style:{width:"100%"},children:[e.rendered&&(0,r.jsx)("div",{...o,className:`${(0,eA.iv)(e0.W2.smallText,{backgroundColor:e0.rS.pageBackground,borderBottom:`1px solid ${e0.rS.tableBorder}`,borderTop:`1px solid ${e0.rS.tableBorder}`,color:e0.rS.tableHeaderText,display:"flex",justifyContent:"center",paddingBottom:4,paddingTop:4,position:"sticky",top:"0",width:"100%",zIndex:tl.SECTION_HEADING})}`,children:e.rendered}),(0,r.jsx)("ul",{...i,style:{padding:0,listStyle:"none"},children:[...e.childNodes].map((e,n,o)=>(0,r.jsx)(tT,{item:e,state:t,isLast:n===o.length-1},e.key))})]})}function tT({isLast:e,item:t,state:n}){const i=(0,o.useRef)();const{optionProps:a,isSelected:u}=eg({key:t.key},n,i);const{isFocusVisible:c,focusProps:f}=(0,s.Fx)();return(0,r.jsx)("li",{...(0,l.dG)(a,f),ref:i,style:{background:u?e0.rS.tableRowBackgroundHighlight:e0.rS.tableBackground,color:u?e0.rS.mobileModalText:null,outline:c?"2px solid orange":"none",...!e&&{borderBottom:`1px solid ${e0.rS.tableBorder}`}},children:t.rendered})}const tE=50;const tI=(0,o.forwardRef)(({children:e,style:t,...n},o)=>{return(0,r.jsx)(e5.Z,{style:{height:tE,flexDirection:"row",alignItems:"center",paddingLeft:10,paddingRight:10,...t},ref:o,...n,children:e})})},58214:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(25432);var s=n(41071);var l=n(79982);var u=n(18748);var c=n(89362);var f=n(9579);var h=n(11892);var p=n(78393);var g=n(45492);var v=n(91882);var m=n(10464);function y(e,t){let{date:n}=e;if(!(0,a.Z)((0,s.Z)(n))){n=null}return{...e,date:n?(0,l.Z)((0,s.Z)(n),t):null}}const x=(0,o.memo)(function e({transaction:e,fields:t,payees:n,categories:o,accounts:i,selected:a}){const s=(0,u.ch)(o)[e.category];const l=(0,u.gI)(i)[e.account];const f=(0,h.YP)();return(0,r.jsxs)(v.X2,{style:{color:g.rS.tableText},children:[(0,r.jsx)(v._7,{exposed:true,focused:false,onSelect:t=>{f({type:"select",id:e.id,event:t})},selected:a}),t.map((t,n)=>{switch(t){case"date":return(0,r.jsx)(v.gN,{width:100,children:e.date},n);case"imported_payee":return(0,r.jsx)(v.gN,{width:"flex",children:e.imported_payee},n);case"payee":return(0,r.jsx)(v.bL,{width:"flex",exposed:true,style:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:()=>(0,r.jsxs)(r.Fragment,{children:[e.schedule&&(0,r.jsx)(p.Z,{style:{width:13,height:13,margin:"0 5px"}}),(0,r.jsx)(m.Z,{type:"payees",id:e.payee})]})},n);case"category":return(0,r.jsx)(v.gN,{width:"flex",title:s&&s.name,children:s?s.name:""},n);case"account":return(0,r.jsx)(v.gN,{width:"flex",title:l.name,children:l.name},n);case"notes":return(0,r.jsx)(v.gN,{width:"flex",title:e.notes,children:e.notes},n);case"amount":return(0,r.jsx)(v.gN,{width:75,style:{textAlign:"right",...g.W2.tnum},children:(0,c.zA)(e.amount)},n);default:return null}})]})});function w({transactions:e,schedules:t,renderEmpty:n,fields:a=["date","payee","amount"],style:s}){const{grouped:l}=(0,f.Z)();const{payees:u,accounts:c,dateFormat:p}=(0,i.v9)(e=>{return{payees:e.queries.payees,accounts:e.queries.accounts,dateFormat:e.prefs.local.dateFormat||"MM/dd/yyyy"}});const g=(0,h.D9)();const m=(0,h.YP)();const w=(0,o.useMemo)(()=>a,[JSON.stringify(a)]);const b=(0,o.useMemo)(()=>{return e.map(e=>y(e,p))},[e]);const S=(0,o.useCallback)(({item:e})=>{return(0,r.jsx)(x,{transaction:e,payees:u,categories:l,accounts:c,fields:w,selected:g&&g.has(e.id)})},[u,l,w,g]);return(0,r.jsx)(v.iA,{style:s,items:b,renderEmpty:n,headers:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v._7,{exposed:true,focused:false,selected:g.size>0,width:20,onSelect:e=>m({type:"select-all",event:e})}),a.map((e,t)=>{switch(e){case"date":return(0,r.jsx)(v.gN,{width:100,children:"Date"},t);case"imported_payee":return(0,r.jsx)(v.gN,{width:"flex",children:"Imported payee"},t);case"payee":return(0,r.jsx)(v.gN,{width:"flex",children:"Payee"},t);case"category":return(0,r.jsx)(v.gN,{width:"flex",children:"Category"},t);case"account":return(0,r.jsx)(v.gN,{width:"flex",children:"Account"},t);case"notes":return(0,r.jsx)(v.gN,{width:"flex",children:"Notes"},t);case"amount":return(0,r.jsx)(v.gN,{width:75,style:{textAlign:"right"},children:"Amount"},t);default:return null}})]}),renderItem:S})}},82345:function(e,t,n){"use strict";n.d(t,{I:function(){return m},_:function(){return v}});var r=n(43188);var o=n(66204);var i=n(11535);var a=n(89362);var s=n(15685);var l=n(74684);var u=n(41883);var c=n(45492);var f=n(56816);var h=n(46405);var p=n(24307);var g=n(5291);function v({id:e,inputRef:t,value:n,zeroSign:c="-",onFocus:p,onBlur:v,onChange:m,onUpdate:y,style:x,textStyle:w,focused:b,disabled:S=false,...k}){const j=(0,g.Z)();const C=n===0&&c==="-"||n<0;const T=j(Math.abs(n||0),"financial");const[E,I]=(0,o.useState)(T);(0,o.useEffect)(()=>I(T),[T]);const _=(0,o.useRef)();const M=(0,o.useRef)();const D=(0,s.r)(t,M);(0,o.useEffect)(()=>{if(b){M.current?.focus()}},[b]);function P(){R(!C)}function A(e){const t=Math.abs((0,a.l9)((0,i.Z)(E,T)));return e?t*-1:t}function O(e){I(e?e:"");m?.(e)}function R(e){y?.(A(e))}function z(e){if(!M.current?.contains(e.relatedTarget)){R(C)}v?.(e)}return(0,r.jsx)(h.Z,{id:e,inputRef:D,inputMode:"decimal",leftContent:(0,r.jsx)(f.Z,{type:"bare",disabled:S,"aria-label":`Make ${C?"positive":"negative"}`,style:{padding:"0 7px"},onPointerUp:P,onPointerDown:e=>e.preventDefault(),ref:_,children:C?(0,r.jsx)(u.Z,{style:{width:8,height:8,color:"inherit"}}):(0,r.jsx)(l.Z,{style:{width:8,height:8,color:"inherit"}})}),value:E,disabled:S,focused:b,style:{flex:1,alignItems:"stretch",...x},inputStyle:{paddingLeft:0,...w},onKeyUp:e=>{if(e.key==="Enter"){R(C)}},onUpdate:O,onBlur:z,onFocus:p})}function m({defaultValue:e,onChange:t}){const[n,i]=(0,o.useState)(e.num1);const[a,s]=(0,o.useState)(e.num2);return(0,r.jsxs)(p.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,r.jsx)(v,{value:n,onUpdate:e=>{i(e);t({num1:e,num2:a})},style:{color:c.rS.formInputText}}),(0,r.jsx)(p.Z,{style:{margin:"0 5px"},children:"and"}),(0,r.jsx)(v,{value:a,onUpdate:e=>{s(e);t({num1:n,num2:e})},style:{color:c.rS.formInputText}})]})}},10464:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(43188);var o=n(66204);var i=n(99548);var a=n(68761);var s=n(45492);var l=n(77644);function u({type:e,id:t,noneColor:n=s.rS.pageTextSubdued}){let o;switch(e){case"payees":o=a.mp;break;case"accounts":o=i.Re;break;default:throw new Error("DisplayId: unknown object type: "+e)}return(0,r.jsx)(o,{idKey:true,children:e=>{const o=e[t];return(0,r.jsx)(l.Z,{style:o==null?{color:n}:null,title:o?o.name:"None",children:o?o.name:"None"})}})}},77119:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(73416);var s=n(9579);var l=n(49374);var u=n(25411);var c=n(691);var f=n(5710);var h=n(16261);var p=n(45492);var g=n(24307);function v({items:e,getItemProps:t,highlightedIndex:n,embedded:i}){return(0,r.jsx)(g.Z,{children:(0,r.jsx)(g.Z,{style:{overflow:"auto",padding:"5px 0",...!i&&{maxHeight:175}},children:e.map((e,r)=>{return[(0,o.createElement)("div",{...t?t({item:e}):null,key:e.id,style:{backgroundColor:n===r?p.rS.menuAutoCompleteBackgroundHover:"transparent",padding:4,paddingLeft:20,borderRadius:i?4:0},"data-testid":`${e.name}-filter-item`,"data-highlighted":n===r||undefined},e.name)]})})})}function m({embedded:e,...t}){const n=(0,h.m)()||[];return(0,r.jsx)(u.ZP,{strict:true,highlightFirst:true,embedded:e,suggestions:n,renderItems:(t,n,o)=>(0,r.jsx)(v,{items:t,getItemProps:n,highlightedIndex:o,embedded:e}),...t})}var y=n(383);var x=n(10730);var w=n(37998);var b=n(66353);function S({field:e,subfield:t,type:n,multi:o,value:h,inputRef:p,style:v,onChange:S}){const{grouped:k}=(0,s.Z)();const j=(0,i.v9)(e=>e.queries.saved);const C=(0,i.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");if(o&&!Array.isArray(h)){h=[]}else if(!o&&Array.isArray(h)){return null}const T=o?h.length===0:true;let E;switch(n){case"id":switch(e){case"payee":E=(0,r.jsx)(f.ZP,{multi:o,showMakeTransfer:false,openOnFocus:true,value:h,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;case"account":E=(0,r.jsx)(l.ZP,{value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;case"category":E=(0,r.jsx)(c.ZP,{categoryGroups:k,value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;default:}break;case"saved":switch(e){case"saved":E=(0,r.jsx)(m,{saved:j,value:h,multi:o,openOnFocus:true,onSelect:S,inputProps:{inputRef:p,...T?{placeholder:"nothing"}:null}});break;default:}break;case"date":switch(t){case"month":E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:(0,a.LT)(C).toLowerCase(),onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)});break;case"year":E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:"yyyy",onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)});break;default:if(h&&h.frequency){E=(0,r.jsx)(b.Z,{value:h,buttonStyle:{justifyContent:"flex-start"},onChange:S})}else{E=(0,r.jsx)(w.Z,{value:h,dateFormat:C,openOnFocus:false,inputRef:p,inputProps:{placeholder:C.toLowerCase()},onSelect:S})}break}break;case"boolean":E=(0,r.jsx)(x.XZ,{checked:h,value:h,onChange:()=>S(!h)});break;default:if(o){E=(0,r.jsx)(u.ZP,{multi:true,suggestions:[],value:h,inputProps:{inputRef:p},onSelect:S})}else{E=(0,r.jsx)(y.ZP,{inputRef:p,defaultValue:h||"",placeholder:"nothing",onEnter:e=>S(e.target.value),onBlur:e=>S(e.target.value)})}break}return(0,r.jsx)(g.Z,{style:{flex:1,...v},children:E})}},70425:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});var r=n(84094);function o(e,t,{onSuccess:n,onClose:o}){e("gocardless-external-msg",{onMoveExternal:async({institutionId:e})=>{const n=await (0,r.lW)("gocardless-create-web-token",{upgradingAccountId:t,institutionId:e,accessValidForDays:30});if("error"in n)return n;const{link:o,requisitionId:i}=n;window.Actual.openURLInBrowser(o);return(0,r.lW)("gocardless-poll-web-token",{upgradingAccountId:t,requisitionId:i})},onClose:o,onSuccess:n})}async function i(e,{upgradingAccountId:t}={}){o(e,t,{onSuccess:async n=>{e("select-linked-accounts",{accounts:n.accounts,requisitionId:n.id,upgradingAccountId:t})}})}},1447:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var r=n(66204);var o=n(37496);var i=n(65485);var a=n(43044);function s(){const e=(0,o.I0)();return(0,r.useMemo)(()=>{return(0,i.DE)(a,e)},[e])}},9579:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(66204);var o=n(37496);var i=n(1447);function a(){const{getCategories:e}=(0,i.o)();const t=(0,o.v9)(e=>e.queries.categories.list);(0,r.useEffect)(()=>{if(t.length===0){e()}},[]);return(0,o.v9)(e=>e.queries.categories)}},58068:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37496);const o={categorySpendingReport:false,sankeyReport:false,reportBudget:false,goalTemplatesEnabled:false,customReports:false,experimentalOfxParser:true};function i(e){return(0,r.v9)(t=>{const n=t.prefs.local[`flags.${e}`];return n===undefined?o[e]||false:n})}},15685:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(66204);function o(e,t){return(0,r.useMemo)(()=>{function n(n){[e,t].forEach(e=>{if(typeof e==="function"){e(n)}else if(e!=null){e.current=n}})}return n},[e,t])}},24868:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(66204);var o=n(59379);function i(){const e=(0,o.TH)();const t=(0,o.s0)();return(0,r.useCallback)((n,r={})=>{if(typeof n==="number"){t(n)}else{const o={replace:r.replace||a(n,e)?true:undefined,...r,state:{...r?.state,previousLocation:e}};const{previousLocation:i,...s}=e.state||{};if(i==null||!a(n,i)||JSON.stringify(r?.state||{})!==JSON.stringify(s)){t(n,o)}else{t(-1)}}},[t,e])}function a(e,t){return e===t.pathname+t.search+t.hash}},69289:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o(e){const t=(0,r.useRef)();(0,r.useEffect)(()=>{t.current=e},[e]);return t.current}},5904:function(e,t,n){"use strict";n.d(t,{M:function(){return l},X:function(){return u}});var r=n(43188);var o=n(66204);function i(e){let t=e;for(let e=0;e<10&&t;e++){const e="dataset"in t?t.dataset?.focusKey:undefined;if(e){return e}t=t.parentNode}return null}function a(e,t){if(t){const n=i(e);e.focus({preventScroll:n&&n===t.keyRef.current});t.onKeyChange(n)}else{e.focus()}if(e instanceof HTMLInputElement){e.setSelectionRange(0,1e4)}}const s=(0,o.createContext)(null);function l({children:e}){const t=(0,o.useRef)(null);const n=(0,o.useMemo)(()=>({keyRef:t,onKeyChange:e=>{t.current=e}}),[t]);return(0,r.jsx)(s.Provider,{value:n,children:e})}function u(e,t){const n=(0,o.useContext)(s);const r=(0,o.useRef)(null);(0,o.useLayoutEffect)(()=>{const o=r.current;const i=e.current;if(i&&t&&(o===null||o===false)){const e="input,button,div[tabindex]";const r=i.matches(e)?i:i.querySelector(e);if(t&&r){a(r,n)}}r.current=t},[t])}},37418:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(66204);function o(e){const t=(0,r.useRef)(null);if(!t.current){t.current=new ResizeObserver(t=>{e(t[0].contentRect)})}const n=(0,r.useCallback)(e=>{t.current.disconnect();if(e){t.current.observe(e,{box:"border-box"})}},[]);return n}},11892:function(e,t,n){"use strict";n.d(t,{D9:function(){return g},YP:function(){return p},ZP:function(){return c},i5:function(){return v},mL:function(){return m}});var r=n(43188);var o=n(66204);var i=n(37496);var a=n(84094);var s=n(57555);var l=n(50102);function u(e,t){const n=Math.min(e.start,e.end);const r=Math.max(e.start,e.end);for(let e=n;e<=r;e++){t(e)}}function c(e,t,n,r){const[l,c]=(0,o.useReducer)((e,n)=>{switch(n.type){case"select":{const{selectedRange:r}=e;const o=new Set(e.selectedItems);const{id:i,event:a}=n;if(a.shiftKey&&r){const n=t.findIndex(e=>e.id===i);const a=t.findIndex(e=>e.id===r.start);const s=t.findIndex(e=>e.id===r.end);let l;let c;if(s===-1){l={start:a,end:n}}else if(s<a){if(n<=a){l={start:a,end:n};if(n>s){c={start:n-1,end:s}}}else{l={start:s,end:n}}}else{if(n>=a){l={start:a,end:n};if(n<s){c={start:n+1,end:s}}}else{l={start:s,end:n}}}u(l,e=>o.add(t[e].id));if(c){u(c,e=>o.delete(t[e].id))}return{...e,selectedItems:o,selectedRange:{start:t[l.start].id,end:t[l.end].id}}}else{let t=null;if(!o.delete(i)){o.add(i);t={start:i,end:null}}return{...e,selectedItems:o,selectedRange:t}}}case"select-none":return{...e,selectedItems:new Set};case"select-all":let o=[];if(n.ids&&t&&r){const e=new Set(t.filter(r).map(e=>e.id));o=n.ids.filter(t=>e.has(t))}else if(t&&r){o=t.filter(r).map(e=>e.id)}else{o=n.ids||t.map(e=>e.id)}return{...e,selectedItems:new Set(o),selectedRange:n.ids&&n.ids.length===1?{start:n.ids[0],end:null}:null};default:throw new Error("Unexpected action: "+JSON.stringify(n))}},null,()=>({selectedItems:new Set(n||[]),selectedRange:n&&n.length===1?{start:n[0],end:null}:null}));const f=(0,o.useRef)(t);(0,o.useEffect)(()=>{if(l.selectedItems.size>0){const e=new Set(t.map(e=>e.id));const n=f.current.length===t.length&&f.current.every(t=>e.has(t.id));if(!n){const t=[...l.selectedItems];const n=t.filter(t=>e.has(t));if(t.length!==n.length){c({type:"select-all",ids:n})}}}f.current=t},[t,l.selectedItems]);(0,o.useEffect)(()=>{const t=s.a2("selectedItems");s.kp("selectedItems",{name:e,items:l.selectedItems});return()=>s.kp("selectedItems",t)},[l.selectedItems]);const h=(0,i.v9)(e=>e.app.lastUndoState);(0,o.useEffect)(()=>{function t({messages:t,undoTag:n}){const r=s.r8(n);const o=new Set(t.filter(e=>e.column==="tombstone"&&e.value===1).map(e=>e.row));if(r?.selectedItems?.name===e){c({type:"select-all",ids:[...r.selectedItems.items].filter(e=>!o.has(e))})}}if(h&&h.current){t(h.current)}return(0,a.oL)("undo-event",t)},[]);return{items:l.selectedItems,dispatch:c}}const f=(0,o.createContext)(null);const h=(0,o.createContext)(null);function p(){return(0,o.useContext)(f)}function g(){return(0,o.useContext)(h)}function v({instance:e,fetchAllIds:t,children:n}){const i=(0,o.useRef)(null);(0,o.useEffect)(()=>{i.current=e.items},[e.items]);const a=(0,o.useCallback)(async n=>{if(!n.event&&(0,l.Ry)()){throw new Error("SelectedDispatch actions must have an event")}if(n.type==="select-all"){if(i.current&&i.current.size>0){return e.dispatch({type:"select-none",event:n.event})}else{if(t){return e.dispatch({type:"select-all",ids:await t(),event:n.event})}return e.dispatch({type:"select-all",event:n.event})}}return e.dispatch(n)},[e.dispatch,t]);return(0,r.jsx)(h.Provider,{value:e.items,children:(0,r.jsx)(f.Provider,{value:a,children:n})})}function m({name:e,items:t,initialSelectedIds:n,fetchAllIds:i,registerDispatch:a,selectAllFilter:s,children:l}){const u=c(e,t,n,s);(0,o.useEffect)(()=>{a?.(u.dispatch)},[a]);return(0,r.jsx)(v,{instance:u,fetchAllIds:i,children:l})}},76926:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(66204);const o=/^var\((--.*)\)$/;function i(e){(0,r.useEffect)(()=>{a(s(e))},[e])}function a(e){const t=document.getElementsByTagName("meta");const n=[...t].find(e=>e.name==="theme-color");n.setAttribute("content",e)}function s(e){return o.test(e)?window.getComputedStyle(document.documentElement).getPropertyValue(e.match(o)[1]):e}},63495:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37496);var o=n(11800);function i(){const e=(0,o.o1)();const t=(0,r.v9)(e=>e.user.data);if(!e){return"no-server"}return!t||t.offline?"offline":"online"}},99458:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(43188);var o=n(66204);var i=n(99818);const a=e=>{const{color:t="currentColor"}=e;const[n]=(0,o.useState)("gradient-"+Math.random());return(0,r.jsxs)("svg",{...e,viewBox:"0 0 38 38",style:{...e.style},children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:n,children:[(0,r.jsx)("stop",{stopColor:t,stopOpacity:0,offset:"0%"}),(0,r.jsx)("stop",{stopColor:t,stopOpacity:.631,offset:"63.146%"}),(0,r.jsx)("stop",{stopColor:t,offset:"100%"})]})}),(0,r.jsxs)("g",{transform:"translate(1 2)",fill:"none",fillRule:"evenodd",children:[(0,r.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",stroke:"url(#"+n+")",strokeWidth:2,fill:"none"}),(0,r.jsx)("circle",{fill:t,cx:36,cy:18,r:1})]})]})};var s=a;const l=(0,i.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(666deg)"}});function u(e){return(0,r.jsx)("span",{className:`${(0,i.iv)({animationName:l,animationDuration:"1.6s",animationTimingFunction:"cubic-bezier(0.17, 0.67, 0.83, 0.67)",animationIterationCount:"infinite",lineHeight:0})}`,children:(0,r.jsx)(s,{...e})})}var c=u},19450:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M11.5 23a1.5 1.5 0 0 1-1.5-1.5v-20a1.5 1.5 0 0 1 3 0v20a1.5 1.5 0 0 1-1.5 1.5Z",fill:"currentColor"})]});t.Z=i},72285:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"none",stroke:"currentColor",d:"m2 2 20 20M22 2 2 22",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:4})});t.Z=i},67459:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 15",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M24.483.576c-.309-.327-.674-.49-1.097-.49H1.56C1.137.086.771.25.463.576A1.635 1.635 0 0 0 0 1.737c0 .448.154.834.463 1.161l10.913 11.558c.31.327.675.49 1.097.49.422 0 .788-.163 1.096-.49L24.483 2.898c.308-.327.463-.713.463-1.16 0-.448-.155-.835-.463-1.162Z"})});t.Z=i},45219:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 91 51",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M63.004.003a3 3 0 0 0-1.875 5.219L79.44 22.034H3.16a3.257 3.257 0 0 0-.313 0c-1.57.082-2.925 1.585-2.843 3.156.081 1.571 1.585 2.926 3.156 2.844H79.44L61.129 44.815a3 3 0 1 0 4.062 4.407l24-22a3 3 0 0 0 0-4.407l-24-22a3 3 0 0 0-2.187-.812Z"})});t.Z=i},24317:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.5,d:"m30 9-4-4M30 9l-4 4M6 5 2 9M2 9l4 4M10 9H3M22 9h7M16 15l6-6M16 15l-6-6M16 28V15"})});t.Z=i},29325:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",fill:"currentColor"})});t.Z=i},74684:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{fill:"currentColor",d:"M23 11.5a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20a1.5 1.5 0 0 1 1.5 1.5Z",className:"path"}),(0,r.jsx)("path",{fill:"currentColor",d:"M11.5 23a1.5 1.5 0 0 1-1.5-1.5v-20a1.5 1.5 0 0 1 3 0v20a1.5 1.5 0 0 1-1.5 1.5Z",className:"path"})]});t.Z=i},2483:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m9 16.172-6.071-6.071-1.414 1.414L10 20l.707-.707 7.778-7.778-1.414-1.414L11 16.172V0H9z",fill:"currentColor"})});t.Z=i},93734:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m3.828 9 6.071-6.071-1.414-1.414L0 10l.707.707 7.778 7.778 1.414-1.414L3.828 11H20V9H3.828z",fill:"currentColor"})});t.Z=i},21741:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m3.828 9 6.071-6.071-1.414-1.414L0 10l.707.707 7.778 7.778 1.414-1.414L3.828 11H20V9H3.828z",fill:"currentColor"})});t.Z=i},75433:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m16.172 9-6.071-6.071 1.414-1.414L20 10l-.707.707-7.778 7.778-1.414-1.414L16.172 11H0V9z",fill:"currentColor"})});t.Z=i},67473:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M9 3.828 2.929 9.899 1.515 8.485 10 0l.707.707 7.778 7.778-1.414 1.414L11 3.828V20H9V3.828z",fill:"currentColor"})});t.Z=i},1549:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm3 1v2h10V3H5zm0 4v2h2V7H5zm4 0v2h2V7H9zm4 0v2h2V7h-2zm-8 4v2h2v-2H5zm4 0v2h2v-2H9zm4 0v6h2v-6h-2zm-8 4v2h2v-2H5zm4 0v2h2v-2H9z",fill:"currentColor"})});t.Z=i},29460:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M4.13 12H4a2 2 0 1 0 1.8 1.11L7.86 10a2.03 2.03 0 0 0 .65-.07l1.55 1.55a2 2 0 1 0 3.72-.37L15.87 8H16a2 2 0 1 0-1.8-1.11L12.14 10a2.03 2.03 0 0 0-.65.07L9.93 8.52a2 2 0 1 0-3.72.37L4.13 12zM0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4z",fill:"currentColor"})});t.Z=i},82019:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M1 10h3v10H1V10zM6 0h3v20H6V0zm5 8h3v12h-3V8zm5-4h3v16h-3V4z",fill:"currentColor"})});t.Z=i},47953:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M19.95 11A10 10 0 1 1 9 .05V11h10.95zm-.08-2.6H11.6V.13a10 10 0 0 1 8.27 8.27z",fill:"currentColor"})});t.Z=i},29813:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m0 11 2-2 5 5L18 3l2 2L7 18z",fill:"currentColor"})});t.Z=i},85025:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m9.293 12.95.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z",fill:"currentColor"})});t.Z=i},89116:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M7.05 9.293 6.343 10 12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z",fill:"currentColor"})});t.Z=i},48164:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12.95 10.707.707-.707L8 4.343 6.586 5.757 10.828 10l-4.242 4.243L8 15.657l4.95-4.95z",fill:"currentColor"})});t.Z=i},52267:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 8.586 2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z",fill:"currentColor"})});t.Z=i},28127:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M24 11.113a5.765 5.765 0 0 0-5.216-5.952.249.249 0 0 1-.191-.12 7.684 7.684 0 0 0-14.1 2.294.251.251 0 0 1-.227.2A4.643 4.643 0 0 0 .624 9.774 4.47 4.47 0 0 0 0 12.223a4.293 4.293 0 0 0 1.235 3.1 4.624 4.624 0 0 0 1.78 1.062.963.963 0 0 0 1.243-.86v-.026a.985.985 0 0 0-.658-1.033 2.58 2.58 0 0 1-.96-.572A2.374 2.374 0 0 1 2 12.109a2.588 2.588 0 0 1 2.586-2.588 2.7 2.7 0 0 1 .535.054.989.989 0 0 0 .811-.184 1 1 0 0 0 .392-.779c.085-5.736 8.293-7.372 10.818-2.044a.974.974 0 0 0 .941.57 3.733 3.733 0 0 1 3 1.309 3.888 3.888 0 0 1 .9 2.812 3.428 3.428 0 0 1-1.473 2.667.973.973 0 0 0-.4.964l.01.059a.968.968 0 0 0 1.525.608A5.4 5.4 0 0 0 24 11.113Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M12.231 9.7a6.5 6.5 0 1 0 6.5 6.5 6.508 6.508 0 0 0-6.5-6.5Zm3.124 4.155a.75.75 0 0 1 .15 1.05l-2.905 3.87a1.493 1.493 0 0 1-1.1.6h-.111a1.485 1.485 0 0 1-1.055-.443l-1.5-1.5a.75.75 0 0 1 1.066-1.06l1.3 1.3a.249.249 0 0 0 .376-.026L14.305 14a.751.751 0 0 1 1.05-.149Z",fill:"currentColor"})]});t.Z=i},85554:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M24 10.663A5.817 5.817 0 0 0 22.228 6.5a5.711 5.711 0 0 0-3.447-1.585.249.249 0 0 1-.191-.12 7.684 7.684 0 0 0-14.1 2.294.251.251 0 0 1-.227.2A4.59 4.59 0 0 0 0 11.859a4.324 4.324 0 0 0 1.236 3.21 5.529 5.529 0 0 0 3.605 1.377 1 1 0 0 0 .985-1.015 1.023 1.023 0 0 0-1.015-.985 3.3 3.3 0 0 1-2.172-.8A2.374 2.374 0 0 1 2 11.859a2.576 2.576 0 0 1 .954-2.007 2.6 2.6 0 0 1 2.167-.527 1 1 0 0 0 1.2-.919 5.686 5.686 0 0 1 10.82-2.088.959.959 0 0 0 .941.57 3.687 3.687 0 0 1 2.758 1.049A3.752 3.752 0 0 1 22 10.663a3.835 3.835 0 0 1-3.438 3.791 1 1 0 0 0 .132 1.992.961.961 0 0 0 .131-.009A5.807 5.807 0 0 0 24 10.663Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M15.5 17.446h-1.75a.25.25 0 0 1-.25-.25v-7.25a1.5 1.5 0 1 0-3 0V17.2a.25.25 0 0 1-.25.25H8.5a1 1 0 0 0-.707 1.707l3.5 3.5a1 1 0 0 0 1.414 0l3.5-3.5a1 1 0 0 0-.707-1.707Z",fill:"currentColor"})]});t.Z=i},52506:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M3.94 6.5 2.22 3.64l1.42-1.42L6.5 3.94c.52-.3 1.1-.54 1.7-.7L9 0h2l.8 3.24c.6.16 1.18.4 1.7.7l2.86-1.72 1.42 1.42-1.72 2.86c.3.52.54 1.1.7 1.7L20 9v2l-3.24.8c-.16.6-.4 1.18-.7 1.7l1.72 2.86-1.42 1.42-2.86-1.72c-.52.3-1.1.54-1.7.7L11 20H9l-.8-3.24c-.6-.16-1.18-.4-1.7-.7l-2.86 1.72-1.42-1.42 1.72-2.86c-.3-.52-.54-1.1-.7-1.7L0 11V9l3.24-.8c.16-.6.4-1.18.7-1.7zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});t.Z=i},94276:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});t.Z=i},19318:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 5h2v6H9V5zm0 8h2v2H9v-2z",fill:"currentColor"})});t.Z=i},52715:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M21.941 3.607 18.87.554A1.912 1.912 0 0 0 17.527 0H8.9A1.9 1.9 0 0 0 7 1.9V5H3.4a1.9 1.9 0 0 0-1.9 1.9v15.21A1.9 1.9 0 0 0 3.4 24h11.7a1.9 1.9 0 0 0 1.9-1.895V19h3.6a1.9 1.9 0 0 0 1.9-1.895V4.949a1.882 1.882 0 0 0-.559-1.342ZM14.5 22H4a.5.5 0 0 1-.5-.5v-14A.5.5 0 0 1 4 7h7.784a.5.5 0 0 1 .35.143L14.85 9.8a.5.5 0 0 1 .15.357V21.5a.5.5 0 0 1-.5.5Zm5.5-5h-2.75a.25.25 0 0 1-.25-.25v-6.8a1.892 1.892 0 0 0-.558-1.341L13.37 5.554A1.9 1.9 0 0 0 12.028 5H9.25A.25.25 0 0 1 9 4.75V2.5a.5.5 0 0 1 .5-.5l7.756-.026a.5.5 0 0 1 .351.143L20.35 4.8a.5.5 0 0 1 .15.357V16.5a.5.5 0 0 1-.5.5Z",fill:"currentColor"})});t.Z=i},28799:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z",fill:"currentColor"})});t.Z=i},98405:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M1 4h2v2H1V4zm4 0h14v2H5V4zM1 9h2v2H1V9zm4 0h14v2H5V9zm-4 5h2v2H1v-2zm4 0h14v2H5v-2z",fill:"currentColor"})});t.Z=i},20493:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:[(0,r.jsx)("g",{clipPath:"url(#a)",children:(0,r.jsx)("path",{fill:"currentColor",d:"M1.857 7.612H.98a.98.98 0 0 0-.98.98v2.224c0 .449.184.857.51 1.163.612.551 1.816 1.49 3.735 2.368a.571.571 0 0 1 .306.346l.939 3.286a.484.484 0 0 0 .469.347h1.47a.479.479 0 0 0 .469-.367l.47-1.817a.262.262 0 0 1 .326-.183c.571.122 1.183.163 1.795.163.613 0 1.225-.061 1.796-.163.143-.02.286.06.327.183l.47 1.817a.502.502 0 0 0 .468.367h1.47a.484.484 0 0 0 .47-.347l1.224-4.245a.487.487 0 0 1 .122-.224c.919-.98 1.53-2.163 1.735-3.47h.49c.53 0 .959-.448.938-.979-.02-.51-.47-.918-.98-.918h-.448C18.06 4.673 14.632 2 10.489 2c-1.775 0-3.428.49-4.755 1.326-.591-.408-1.469-.734-2.693-.632-.49.04-.715.612-.388.959.408.429.796 1 .877 1.735L1.857 7.612Zm3.122.98a.862.862 0 0 1-.857-.858c0-.469.388-.857.857-.857.47 0 .858.388.858.857 0 .47-.388.858-.858.858Z"})}),(0,r.jsx)("defs",{children:(0,r.jsx)("clipPath",{id:"a",children:(0,r.jsx)("path",{fill:"currentColor",d:"M0 0h20v20H0z"})})})]});t.Z=i},58534:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M11 12h6v-1l-3-1V2l3-1V0H3v1l3 1v8l-3 1v1h6v7l1 1 1-1v-7z",fill:"currentColor"})});t.Z=i},46890:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 2h20v4H0V2zm0 8h20v2H0v-2zm0 6h20v2H0v-2z",fill:"currentColor"})});t.Z=i},89456:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10 3v2a5 5 0 0 0-3.54 8.54l-1.41 1.41A7 7 0 0 1 10 3zm4.95 2.05A7 7 0 0 1 10 17v-2a5 5 0 0 0 3.54-8.54l1.41-1.41zM10 20l-4-4 4-4v8zm0-12V0l4 4-4 4z",fill:"currentColor"})});t.Z=i},96424:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M19 18h-1v-8c0-.6-.4-1-1-1s-1 .4-1 1v8h-3V1c0-.6-.4-1-1-1s-1 .4-1 1v17H8V7c0-.6-.4-1-1-1s-1 .4-1 1v11H3V3c0-.6-.4-1-1-1s-1 .4-1 1v15c-.6 0-1 .4-1 1s.4 1 1 1h18c.6 0 1-.4 1-1s-.4-1-1-1z",fill:"currentColor"})});t.Z=i},7122:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z",fill:"currentColor"})});t.Z=i},41883:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 3",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"nonzero",d:"M23 1.5A1.5 1.5 0 0 1 21.5 3h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 1.5z"})});t.Z=i},27285:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 10V2l2-2h8l10 10-10 10L0 10zm4.5-4a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});t.Z=i},86357:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m6 2 2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z",fill:"currentColor"})});t.Z=i},7056:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M17 16v4h-2v-4h-2v-3h6v3h-2zM1 9h6v3H1V9zm6-4h6v3H7V5zM3 0h2v8H3V0zm12 0h2v12h-2V0zM9 0h2v4H9V0zM3 12h2v8H3v-8zm6-4h2v12H9V8z",fill:"currentColor"})});t.Z=i},78800:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M0 4c0-1.1.9-2 2-2h15a1 1 0 0 1 1 1v1H2v1h17a1 1 0 0 1 1 1v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm16.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});t.Z=i},85449:function(e,t,n){"use strict";n.d(t,{mm_:function(){return u.Z},bDn:function(){return nD.Z},wn$:function(){return rt}});var r=n(43188);var o=n(66204);const i=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9h4v2h-4v4H9v-4H5V9h4V5h2v4zm-1 11a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",fill:"currentColor"})});var a=null&&i;const s=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9V5H9v4H5v2h4v4h2v-4h4V9h-4zm-1 11a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var l=null&&s;var u=n(74684);const c=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 2v16a8 8 0 1 0 0-16zm0 18a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var f=null&&c;const h=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8.4 12H2.8L1 15H0V5h1l1.8 3h5.6L6 0h2l4.8 8H18a2 2 0 1 1 0 4h-5.2L8 20H6l2.4-8z",fill:"currentColor"})});var p=null&&h;const g=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v20H0V0zm10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var v=null&&g;const m=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM4 5h12v2H4V5zm0 8h12v2H4v-2z",fill:"currentColor"})});var y=null&&m;const x=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM1 5h18v2H1V5zm0 8h18v2H1v-2z",fill:"currentColor"})});var w=null&&x;const b=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM1 5h12v2H1V5zm0 8h12v2H1v-2z",fill:"currentColor"})});var S=null&&b;const k=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 8h18v2H1V9zm0 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2z",fill:"currentColor"})});var j=null&&k;const C=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4.34 15.66A7.97 7.97 0 0 0 9 17.94V10H5V8h4V5.83a3 3 0 1 1 2 0V8h4v2h-4v7.94a7.97 7.97 0 0 0 4.66-2.28l-1.42-1.42h5.66l-2.83 2.83a10 10 0 0 1-14.14 0L.1 14.24h5.66l-1.42 1.42zM10 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var T=null&&C;const E=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 6c0-1.1.9-2 2-2h8l4-4h2v16h-2l-4-4H5a2 2 0 0 1-2-2H1V6h2zm8 9v5H8l-1.67-5H5v-2h8v2h-2z",fill:"currentColor"})});var I=null&&E;const _=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 0H6L0 3v6l4-1v12h12V8l4 1V3l-6-3h-1a3 3 0 0 1-6 0z",fill:"currentColor"})});var M=null&&_;var D=n(2483);var P=n(93734);const A=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-2-8V5h4v5h3l-5 5-5-5h3z",fill:"currentColor"})});var O=null&&A;const R=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm2 0a8 8 0 1 0 16 0 8 8 0 0 0-16 0zm8-2h5v4h-5v3l-5-5 5-5v3z",fill:"currentColor"})});var z=null&&R;const Z=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0zm-8 2H5V8h5V5l5 5-5 5v-3z",fill:"currentColor"})});var L=null&&Z;const N=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm2 8v5H8v-5H5l5-5 5 5h-3z",fill:"currentColor"})});var B=null&&N;const H=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m16.172 9-6.071-6.071 1.414-1.414L20 10l-.707.707-7.778 7.778-1.414-1.414L16.172 11H0V9z",fill:"currentColor"})});var F=null&&H;const V=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 10V2h6v8h5l-8 8-8-8h5z",fill:"currentColor"})});var W=null&&V;const U=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 13h8V7h-8V2l-8 8 8 8v-5z",fill:"currentColor"})});var $=null&&U;const K=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 7H2v6h8v5l8-8-8-8v5z",fill:"currentColor"})});var q=null&&K;const Y=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 10v8h6v-8h5l-8-8-8 8h5z",fill:"currentColor"})});var G=null&&Y;const X=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9 16.172-6.071-6.071-1.414 1.414L10 20l.707-.707 7.778-7.778-1.414-1.414L11 16.172V0H9z",fill:"currentColor"})});var Q=null&&X;var J=n(21741);var ee=n(75433);const et=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 3.828 2.929 9.899 1.515 8.485 10 0l.707.707 7.778 7.778-1.414 1.414L11 3.828V20H9V3.828z",fill:"currentColor"})});var en=null&&et;var er=n(67473);const eo=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.75 8-3.74-3.75a3.99 3.99 0 0 1 6.82-3.08A4 4 0 0 1 15.75 8zm-13.9 7.3 9.2-9.19 2.83 2.83-9.2 9.2-2.82-2.84zm-1.4 2.83 2.11-2.12 1.42 1.42-2.12 2.12-1.42-1.42zM10 15l2-2v7h-2v-5z",fill:"currentColor"})});var ei=null&&eo;const ea=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13.6 13.47A4.99 4.99 0 0 1 5 10a5 5 0 0 1 8-4V5h2v6.5a1.5 1.5 0 0 0 3 0V10a8 8 0 1 0-4.42 7.16l.9 1.79A10 10 0 1 1 20 10h-.18.17v1.5a3.5 3.5 0 0 1-6.4 1.97zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});var es=null&&ea;const el=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 3H7a7 7 0 1 0 0 14h8v-2H7A5 5 0 0 1 7 5h8a3 3 0 0 1 0 6H7a1 1 0 0 1 0-2h8V7H7a3 3 0 1 0 0 6h8a5 5 0 0 0 0-10z",fill:"currentColor"})});var eu=null&⪙const ec=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 10 7-7h13v14H7l-7-7zm14.41 0 2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z",fill:"currentColor"})});var ed=null&&ec;const ef=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 5h3v10H4V5zm12 0v10l-9-5 9-5z",fill:"currentColor"})});var eh=null&&ef;const ep=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 5v10l-9-5 9-5zm-9 0v10l-9-5 9-5z",fill:"currentColor"})});var eg=null&&ep;const ev=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 12a6 6 0 1 1 0-12 6 6 0 0 1 0 12zm0-3a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm4 2.75V20l-4-4-4 4v-8.25a6.97 6.97 0 0 0 8 0z",fill:"currentColor"})});var em=null&&ev;const ey=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7zm5 0h4v6H8V7zm5 0h4v6h-4V7z",fill:"currentColor"})});var ex=null&&ey;const ew=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7zm5 0h4v6H8V7z",fill:"currentColor"})});var eb=null&&ew;const eS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v8h16V6H2zm1 1h4v6H3V7z",fill:"currentColor"})});var ek=null&&eS;const ej=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 18v-7L0 2V0h20v2l-9 9v7l5 1v1H4v-1l5-1zm2-10a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var eC=null&&ej;const eT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm16.32-4.9L5.09 16.31A8 8 0 0 0 16.32 5.09zm-1.41-1.42A8 8 0 0 0 3.68 14.91L14.91 3.68z",fill:"currentColor"})});var eE=null&&eT;const eI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9.41 0 6 6-4 4 4 4-6 6H9v-7.59l-3.3 3.3-1.4-1.42L8.58 10l-4.3-4.3L5.7 4.3 9 7.58V0h.41zM11 4.41V7.6L12.59 6 11 4.41zM12.59 14 11 12.41v3.18L12.59 14z",fill:"currentColor"})});var e_=null&&eI;const eM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 8V0L8.11 5.87 3 12h4v8L17 8h-4z",fill:"currentColor"})});var eD=null&&eM;const eP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z",fill:"currentColor"})});var eA=null&&eP;const eO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 12v1H8v5l-6-6 6-6v5h8V2h2z",fill:"currentColor"})});var eR=null&&eO;const ez=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.5 13H12v5l6-6-6-6v5H4V2H2v11z",fill:"currentColor"})});var eZ=null&&ez;const eL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2zm2 0v15l6-3 6 3V2H4zm5 5V5h2v2h2v2h-2v2H9V9H7V7h2z",fill:"currentColor"})});var eN=null&&eL;const eB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2zm2 0v15l6-3 6 3V2H4z",fill:"currentColor"})});var eH=null&&eB;const eF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v18l-8-4-8 4V2z",fill:"currentColor"})});var eV=null&&eF;const eW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 11v6h6v-6h-6zm0-2h6V3h-6v6zm-2 2H3v6h6v-6zm0-2V3H3v6h6zm-8 9V1h18v18H1v-1z",fill:"currentColor"})});var eU=null&&eW;const e$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h18v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm4-8h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm4-12h2v2h-2V1zm0 8h2v2h-2V9zm4-8h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eK=null&&e$;const eq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h18v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 16h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 8h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 16h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 8h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eY=null&&eq;const eG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 9V1h2v8h8v2h-8v8H9v-8H1V9h8zM1 1h2v2H1V1zm0 4h2v2H1V5zm0 8h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 16h2v2H5v-2zm8-16h2v2h-2V1zm0 16h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 8h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eX=null&&eG;const eQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v18H1V1zm4 0h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var eJ=null&&eQ;const e0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e1=null&&e0;const e2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 19H1V1h18v18H2zm1-2h14V3H3v14zm10-8h2v2h-2V9zM9 9h2v2H9V9zM5 9h2v2H5V9zm4-4h2v2H9V5zm0 8h2v2H9v-2z",fill:"currentColor"})});var e4=null&&e2;const e5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-16h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zM1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM17 1h2v18h-2V1z",fill:"currentColor"})});var e3=null&&e5;const e6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zm4-8h2v2H5V9zm0 8h2v2H5v-2zM9 5h2v2H9V5zm0 4h2v2H9V9zm0 4h2v2H9v-2zm0 4h2v2H9v-2zm4-8h2v2h-2V9zm0 8h2v2h-2v-2zm4-12h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e8=null&&e6;const e7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm0 4h2v2H1v-2zm0 4h2v2H1v-2zM5 1h2v2H5V1zm0 8h2v2H5V9zm0 8h2v2H5v-2zM9 1h2v18H9V1zm4 0h2v2h-2V1zm0 8h2v2h-2V9zm0 8h2v2h-2v-2zm4-16h2v2h-2V1zm0 4h2v2h-2V5zm0 4h2v2h-2V9zm0 4h2v2h-2v-2zm0 4h2v2h-2v-2z",fill:"currentColor"})});var e9=null&&e7;const te=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v2H0V2zm1 3h18v13a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5zm6 2v2h6V7H7z",fill:"currentColor"})});var tt=null&&te;const tn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 13a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM9 4a1 1 0 1 1 2 0 1 1 0 1 1-2 0zm4.54 1.05a1 1 0 1 1 1.41 1.41 1 1 0 1 1-1.41-1.41zM16 9a1 1 0 1 1 0 2 1 1 0 1 1 0-2zm-1.05 4.54a1 1 0 1 1-1.41 1.41 1 1 0 1 1 1.41-1.41zM11 16a1 1 0 1 1-2 0 1 1 0 1 1 2 0zm-4.54-1.05a1 1 0 1 1-1.41-1.41 1 1 0 1 1 1.41 1.41zM4 11a1 1 0 1 1 0-2 1 1 0 1 1 0 2zm1.05-4.54a1 1 0 1 1 1.41-1.41 1 1 0 1 1-1.41 1.41z",fill:"currentColor"})});var tr=null&&tn;const to=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 14a4 4 0 1 1 0-8 4 4 0 0 1 0 8zM9 1a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0V1zm6.65 1.94a1 1 0 1 1 1.41 1.41l-1.4 1.4a1 1 0 1 1-1.41-1.41l1.4-1.4zM18.99 9a1 1 0 1 1 0 2h-1.98a1 1 0 1 1 0-2h1.98zm-1.93 6.65a1 1 0 1 1-1.41 1.41l-1.4-1.4a1 1 0 1 1 1.41-1.41l1.4 1.4zM11 18.99a1 1 0 1 1-2 0v-1.98a1 1 0 1 1 2 0v1.98zm-6.65-1.93a1 1 0 1 1-1.41-1.41l1.4-1.4a1 1 0 1 1 1.41 1.41l-1.4 1.4zM1.01 11a1 1 0 1 1 0-2h1.98a1 1 0 1 1 0 2H1.01zm1.93-6.65a1 1 0 1 1 1.41-1.41l1.4 1.4a1 1 0 1 1-1.41 1.41l-1.4-1.4z",fill:"currentColor"})});var ti=null&&to;const ta=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var ts=null&&ta;const tl=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2zm8 3 4 5H6l4-5z",fill:"currentColor"})});var tu=null&&tl;const tc=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var td=null&&tc;const tf=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.3 14.89 2.77 2.77a1 1 0 0 1 0 1.41 1 1 0 0 1-1.41 0l-2.59-2.58A5.99 5.99 0 0 1 11 18V9.04a1 1 0 0 0-2 0V18a5.98 5.98 0 0 1-3.07-1.51l-2.59 2.58a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.41l2.77-2.77A5.95 5.95 0 0 1 4.07 13H1a1 1 0 1 1 0-2h3V8.41L.93 5.34a1 1 0 0 1 0-1.41 1 1 0 0 1 1.41 0l2.1 2.1h11.12l2.1-2.1a1 1 0 0 1 1.41 0 1 1 0 0 1 0 1.41L16 8.41V11h3a1 1 0 1 1 0 2h-3.07c-.1.67-.32 1.31-.63 1.89zM15 5H5a5 5 0 1 1 10 0z",fill:"currentColor"})});var th=null&&tf;const tp=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.16 6.42a8.03 8.03 0 0 0-3.58-3.58l-1.34 2.69a5.02 5.02 0 0 1 2.23 2.23l2.69-1.34zm0 7.16-2.69-1.34a5.02 5.02 0 0 1-2.23 2.23l1.34 2.69a8.03 8.03 0 0 0 3.58-3.58zM6.42 2.84a8.03 8.03 0 0 0-3.58 3.58l2.69 1.34a5.02 5.02 0 0 1 2.23-2.23L6.42 2.84zM2.84 13.58a8.03 8.03 0 0 0 3.58 3.58l1.34-2.69a5.02 5.02 0 0 1-2.23-2.23l-2.69 1.34zM10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-7a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",fill:"currentColor"})});var tg=null&&tp;var tv=n(1549);const tm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 4c0-1.1.9-2 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4zm2 2v12h14V6H3zm2-6h2v2H5V0zm8 0h2v2h-2V0zM5 9h2v2H5V9zm0 4h2v2H5v-2zm4-4h2v2H9V9zm0 4h2v2H9v-2zm4-4h2v2h-2V9zm0 4h2v2h-2v-2z",fill:"currentColor"})});var ty=null&&tm;const tx=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h3l2-2h6l2 2h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm10 10a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0-2a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var tw=null&&tx;var tb=n(82019);var tS=n(47953);var tk=n(29460);const tj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 15-4 4v-4H2a2 2 0 0 1-2-2V3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-8zM5 7v2h2V7H5zm4 0v2h2V7H9zm4 0v2h2V7h-2z",fill:"currentColor"})});var tC=null&&tj;const tT=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M18.48 6.449a1.249 1.249 0 0 0-1.747.265l-5.924 8.04-3.767-3.014a1.251 1.251 0 0 0-1.563 1.953l4.783 3.826a1.263 1.263 0 0 0 1.787-.235l6.7-9.087a1.25 1.25 0 0 0-.269-1.748Z",fill:"currentColor"}),_jsx("path",{d:"M12 0a12 12 0 1 0 12 12A12.013 12.013 0 0 0 12 0Zm0 22a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10Z",fill:"currentColor"})]});var tE=null&&tT;const tI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM6.7 9.29 9 11.6l4.3-4.3 1.4 1.42L9 14.4l-3.7-3.7 1.4-1.42z",fill:"currentColor"})});var t_=null&&tI;var tM=n(29813);var tD=n(85025);var tP=n(89116);const tA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0zM10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm-.7 10.54L5.75 9l1.41-1.41L10 10.4l2.83-2.82L14.24 9 10 13.24l-.7-.7z",fill:"currentColor"})});var tO=null&&tA;const tR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm8-10a8 8 0 1 0-16 0 8 8 0 0 0 16 0zM7.46 9.3 11 5.75l1.41 1.41L9.6 10l2.82 2.83L11 14.24 6.76 10l.7-.7z",fill:"currentColor"})});var tz=null&&tR;const tZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0a10 10 0 1 1 0 20 10 10 0 0 1 0-20zM2 10a8 8 0 1 0 16 0 8 8 0 0 0-16 0zm10.54.7L9 14.25l-1.41-1.41L10.4 10 7.6 7.17 9 5.76 13.24 10l-.7.7z",fill:"currentColor"})});var tL=null&&tZ;const tN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0zm10 8a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm.7-10.54L14.25 11l-1.41 1.41L10 9.6l-2.83 2.8L5.76 11 10 6.76l.7.7z",fill:"currentColor"})});var tB=null&&tN;var tH=n(48164);const tF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.707 7.05 10 6.343 4.343 12l1.414 1.414L10 9.172l4.243 4.242L15.657 12z",fill:"currentColor"})});var tV=null&&tF;const tW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7.03 2.6a3 3 0 0 1 5.94 0L15 3v1h1a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4zM5 6H4v12h12V6h-1v1H5V6zm5-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var tU=null&&tW;const t$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm1.41-1.41A8 8 0 1 0 15.66 4.34 8 8 0 0 0 4.34 15.66zm9.9-8.49L11.41 10l2.83 2.83-1.41 1.41L10 11.41l-2.83 2.83-1.41-1.41L8.59 10 5.76 7.17l1.41-1.41L10 8.59l2.83-2.83 1.41 1.41z",fill:"currentColor"})});var tK=null&&t$;const tq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM11.4 10l2.83-2.83-1.41-1.41L10 8.59 7.17 5.76 5.76 7.17 8.59 10l-2.83 2.83 1.41 1.41L10 11.41l2.83 2.83 1.41-1.41L11.41 10z",fill:"currentColor"})});var tY=null&&tq;var tG=n(52267);var tX=n(28127);var tQ=n(85554);const tJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.88 9.1A4 4 0 0 1 16 17H5a5 5 0 0 1-1-9.9V7a3 3 0 0 1 4.52-2.59A4.98 4.98 0 0 1 17 8c0 .38-.04.74-.12 1.1zM11 11h3l-4-4-4 4h3v3h2v-3z",fill:"currentColor"})});var t0=null&&tJ;const t1=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M3.924 17.376a1 1 0 0 0 1.052-.534 1.018 1.018 0 0 0-.743-1.476 2.518 2.518 0 0 1-1.594-.707A2.371 2.371 0 0 1 2 12.874a2.588 2.588 0 0 1 2.586-2.587 2.635 2.635 0 0 1 .535.056 1.008 1.008 0 0 0 .811-.186 1 1 0 0 0 .392-.779 4.521 4.521 0 0 1 .961-3.012c3.357-3.8 8.227-2.47 9.856.966a1.024 1.024 0 0 0 .978.57 3.666 3.666 0 0 1 2.721 1.05A3.757 3.757 0 0 1 22 11.679a3.9 3.9 0 0 1-2.483 3.61.969.969 0 0 0-.586 1.373.956.956 0 0 0 1.162.47 5.6 5.6 0 0 0 3.9-5.2 5.769 5.769 0 0 0-5.215-6.007.252.252 0 0 1-.191-.12 7.685 7.685 0 0 0-14.1 2.3.251.251 0 0 1-.227.2 4.642 4.642 0 0 0-3.64 2.242A4.482 4.482 0 0 0 0 12.994a4.287 4.287 0 0 0 1.235 3.09 5.057 5.057 0 0 0 2.689 1.292Z",fill:"currentColor"}),_jsx("path",{d:"M13.281 10.2a1.45 1.45 0 0 0-2.562 0l-5.056 9.634a1.429 1.429 0 0 0 .049 1.408 1.454 1.454 0 0 0 1.233.687h10.111a1.456 1.456 0 0 0 1.233-.687 1.431 1.431 0 0 0 .048-1.408ZM12 20.179a1 1 0 1 1 1-1 1 1 0 0 1-1 1Zm-.75-6.75a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-1.5 0Z",fill:"currentColor"})]});var t2=null&&t1;const t4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.88 9.1A4 4 0 0 1 16 17H5a5 5 0 0 1-1-9.9V7a3 3 0 0 1 4.52-2.59A4.98 4.98 0 0 1 17 8c0 .38-.04.74-.12 1.1z",fill:"currentColor"})});var t5=null&&t4;const t3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m.7 9.3 4.8-4.8 1.4 1.42L2.84 10l4.07 4.07-1.41 1.42L0 10l.7-.7zm18.6 1.4.7-.7-5.49-5.49-1.4 1.42L17.16 10l-4.07 4.07 1.41 1.42 4.78-4.78z",fill:"currentColor"})});var t6=null&&t3;const t8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 11H2a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h2V1h14v10a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4zm0-2V5H2v4h2zm-2 8v-1h18v1l-4 2H6l-4-2z",fill:"currentColor"})});var t7=null&&t8;var t9=n(52506);const ne=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 20v-1.7l.01-.24L15.07 12h2.94c1.1 0 1.99.89 1.99 2v4a2 2 0 0 1-2 2H9zm0-3.34V5.34l2.08-2.07a1.99 1.99 0 0 1 2.82 0l2.83 2.83a2 2 0 0 1 0 2.82L9 16.66zM0 1.99C0 .9.89 0 2 0h4a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zM4 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var nt=null&≠const nn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 4v14h14v-6l2-2v10H0V2h10L8 4H2zm10.3-.3 4 4L8 16H4v-4l8.3-8.3zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z",fill:"currentColor"})});var no=null&&nn;const ni=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 17H2a2 2 0 0 1-2-2V2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2h-5l4 2v1H3v-1l4-2zM2 2v11h16V2H2z",fill:"currentColor"})});var na=null&∋const ns=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 16h2v1a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1h2V4c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v12zM4 4v9h12V4H4zm4 11v1h4v-1H8z",fill:"currentColor"})});var nl=null&&ns;const nu=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 11v3l-3-3H8a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-1zm-3 2v2a2 2 0 0 1-2 2H6l-3 3v-3H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h2v3a4 4 0 0 0 4 4h6z",fill:"currentColor"})});var nc=null&νconst nd=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2z",fill:"currentColor"})});var nf=null&&nd;const nh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 6V4H2v2h16zm0 4H2v6h16v-6zM0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm4 8h4v2H4v-2z",fill:"currentColor"})});var np=null&&nh;const ng=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm1-5h1a3 3 0 0 0 0-6H7.99a1 1 0 0 1 0-2H14V5h-3V3H9v2H8a3 3 0 1 0 0 6h4a1 1 0 1 1 0 2H6v2h3v2h2v-2z",fill:"currentColor"})});var nv=null&&ng;const nm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64 3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z",fill:"currentColor"})});var ny=null&&nm;const nx=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 2h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h2V0h2v2h6V0h2v2zM3 6v12h14V6H3zm6 5V9h2v2h2v2h-2v2H9v-2H7v-2h2z",fill:"currentColor"})});var nw=null&&nx;const nb=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM5 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM5 14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5-6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var nS=null&&nb;const nk=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 0 10 10-10 10L0 10 10 0zM6 10v3h2v-3h3v3l4-4-4-4v3H8a2 2 0 0 0-2 2z",fill:"currentColor"})});var nj=null&&nk;const nC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zm-5 8h12V6h-4V2H4v16zm-2 1V0h12l4 4v16H2v-1z",fill:"currentColor"})});var nT=null&&nC;const nE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 18h12V6h-4V2H4v16zm-2 1V0h12l4 4v16H2v-1z",fill:"currentColor"})});var nI=null&&nE;const n_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var nM=null&&n_;var nD=n(94276);const nP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z",fill:"currentColor"})});var nA=null&&nP;const nO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2zm4 4v-2h2v2h2v2H8v2H6v-2H4v-2h2z",fill:"currentColor"})});var nR=null&&nO;const nz=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 6V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-4v4a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h4zm2 0h4a2 2 0 0 1 2 2v4h4V2H8v4zM2 8v10h10V8H2z",fill:"currentColor"})});var nZ=null&&nz;const nL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 16H6a2 2 0 0 1-2-2V6H0V4h4V0h2v14h14v2h-4v4h-2v-4zm0-3V6H7V4h7a2 2 0 0 1 2 2v7h-2z",fill:"currentColor"})});var nN=null&&nL;const nB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m9.77 11.5 5.34 3.91c.44.33 1.24.59 1.79.59H20L6.89 6.38A3.5 3.5 0 1 0 5.5 8.37L7.73 10 5.5 11.63a3.5 3.5 0 1 0 1.38 1.99l2.9-2.12zM3.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM15.1 4.59A3.53 3.53 0 0 1 16.9 4H20l-7.5 5.5L10.45 8l4.65-3.41z",fill:"currentColor"})});var nH=null&&nB;const nF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m12.3 3.7 4 4L4 20H0v-4L12.3 3.7zm1.4-1.4L16 0l4 4-2.3 2.3-4-4z",fill:"currentColor"})});var nV=null&&nF;const nW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.33 8 10 12l10-6-10-6L0 6h10v2H3.33zM0 8v8l2-2.22V9.2L0 8zm10 12-5-3-2-1.2v-6l7 4.2 7-4.2v6L10 20z",fill:"currentColor"})});var nU=null&&nW;const n$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 2a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h16zm-4.37 9.1L20 16v-2l-5.12-3.9L20 6V4l-10 8L0 4v2l5.12 4.1L0 14v2l6.37-4.9L10 14l3.63-2.9z",fill:"currentColor"})});var nK=null&&n$;const nq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 11",style:{color:"inherit",...e.style},children:_jsx("path",{fill:"currentColor",fillRule:"nonzero",d:"M23 1.5A1.5 1.5 0 0 1 21.5 3h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 1.5zm0 8a1.5 1.5 0 0 1-1.5 1.5h-20a1.5 1.5 0 0 1 0-3h20A1.5 1.5 0 0 1 23 9.5z"})});var nY=null&&nq;var nG=n(19318);const nX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM9 5v6h2V5H9zm0 8v2h2v-2H9z",fill:"currentColor"})});var nQ=null&&nX;const nJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM7.88 7.88l-3.54 7.78 7.78-3.54 3.54-7.78-7.78 3.54zM10 11a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",fill:"currentColor"})});var n0=null&&nJ;const n1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.5 20H0V7l5 3.33V7l5 3.33V7l5 3.33V0h5v20h-9.5z",fill:"currentColor"})});var n2=null&&n1;const n4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m1 5 9 5-9 5V5zm9 0 9 5-9 5V5z",fill:"currentColor"})});var n5=null&&n4;const n3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 5v10l-9-5 9-5zm-9 0v10l-9-5 9-5z",fill:"currentColor"})});var n6=null&&n3;var n8=n(52715);const n7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm6 0v12h8V4H6zM2 5v2h2V5H2zm0 4v2h2V9H2zm0 4v2h2v-2H2zm14-8v2h2V5h-2zm0 4v2h2V9h-2zm0 4v2h2v-2h-2zM8 7l5 3-5 3V7z",fill:"currentColor"})});var n9=null&&n7;const re=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12 12 8-8V0H0v4l8 8v8l4-4v-4z",fill:"currentColor"})});var rt=re;const rn=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7.667 12H2v8H0V0h12l.333 2H20l-3 6 3 6H8l-.333-2z",fill:"currentColor"})});var ro=null&&rn;const ri=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 7v11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V7L5 5V3h10v2l-2 2zM9 8v1a1 1 0 1 0 2 0V8a1 1 0 0 0-2 0zM5 0h10v2H5V0z",fill:"currentColor"})});var ra=null&&ri;const rs=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2 2v10h16V6H2zm7 4V8h2v2h2v2h-2v2H9v-2H7v-2h2z",fill:"currentColor"})});var rl=null&&rs;const ru=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2 2v10h16V6H2z",fill:"currentColor"})});var rc=null&&ru;const rd=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h7l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4z",fill:"currentColor"})});var rf=null&&rd;const rh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 19V1h8a5 5 0 0 1 3.88 8.16A5.5 5.5 0 0 1 11.5 19H3zm7.5-8H7v5h3.5a2.5 2.5 0 1 0 0-5zM7 4v4h3a2 2 0 1 0 0-4H7z",fill:"currentColor"})});var rp=null&&rh;const rg=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9v8h-2V9h-4V7h10v2h-4zM8 5v12H6V5H0V3h15v2H8z",fill:"currentColor"})});var rv=null&&rg;const rm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 1h9v2H8V1zm3 2h3L8 17H5l6-14zM2 17h9v2H2v-2z",fill:"currentColor"})});var ry=null&&rm;const rx=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9v8h-2V9h-4V7h10v2h-4zM8 5v12H6V5H0V3h15v2H8z",fill:"currentColor"})});var rw=null&℞const rb=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 9A6 6 0 1 1 4 9V1h3v8a3 3 0 0 0 6 0V1h3v8zM2 17h16v2H2v-2z",fill:"currentColor"})});var rS=null&&rb;const rk=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 5h3v10h-3V5zM4 5l9 5-9 5V5z",fill:"currentColor"})});var rj=null&&rk;const rC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m1 5 9 5-9 5V5zm9 0 9 5-9 5V5z",fill:"currentColor"})});var rT=null&&rC;const rE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14.83 4H20v6h-1v10H1V10H0V4h5.17A3 3 0 0 1 10 .76 3 3 0 0 1 14.83 4zM8 10H3v8h5v-8zm4 0v8h5v-8h-5zM8 6H2v2h6V6zm4 0v2h6V6h-6zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm4 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var rI=null&&rE;const r_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm2-2.25a8 8 0 0 0 4-2.46V9a2 2 0 0 1-2-2V3.07a7.95 7.95 0 0 0-3-1V3a2 2 0 0 1-2 2v1a2 2 0 0 1-2 2v2h3a2 2 0 0 1 2 2v5.75zm-4 0V15a2 2 0 0 1-2-2v-1h-.5A1.5 1.5 0 0 1 4 10.5V8H2.25A8.01 8.01 0 0 0 8 17.75z",fill:"currentColor"})});var rM=null&&r_;const rD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 16a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4.01V4a1 1 0 0 1 1-1 1 1 0 0 1 1 1v6h1V2a1 1 0 0 1 1-1 1 1 0 0 1 1 1v8h1V1a1 1 0 1 1 2 0v9h1V2a1 1 0 0 1 1-1 1 1 0 0 1 1 1v13h1V9a1 1 0 0 1 1-1h1v8z",fill:"currentColor"})});var rP=null&&rD;const rA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm10.4 5.6A5 5 0 1 0 15 12V5l-2.6 2.6zM10 14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM6 3v2h4V3H6zM4 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 16a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm12 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-16a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var rO=null&&rA;const rR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 8A6 6 0 1 0 4 8v11H2a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2V8a8 8 0 1 1 16 0v3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2V8zm-4 2h3v10h-3V10zm-7 0h3v10H5V10z",fill:"currentColor"})});var rz=null&&rR;const rZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 3.22-.61-.6a5.5 5.5 0 0 0-7.78 7.77L10 18.78l8.39-8.4a5.5 5.5 0 0 0-7.78-7.77l-.61.61z",fill:"currentColor"})});var rL=null&&rZ;const rN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 20H3V10H0L10 0l10 10h-3v10h-5v-6H8v6z",fill:"currentColor"})});var rB=null&&rN;const rH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0s8 7.58 8 12a8 8 0 1 1-16 0c0-1.5.91-3.35 2.12-5.15A3 3 0 0 0 10 6V0zM8 0a3 3 0 1 0 0 6V0z",fill:"currentColor"})});var rF=null&&rH;const rV=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3 18a7 7 0 0 1 4-6.33V8.33A7 7 0 0 1 3 2H1V0h18v2h-2a7 7 0 0 1-4 6.33v3.34A7 7 0 0 1 17 18h2v2H1v-2h2zM5 2a5 5 0 0 0 4 4.9V10h2V6.9A5 5 0 0 0 15 2H5z",fill:"currentColor"})});var rW=null&&rV;const rU=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM5 9l2-2 2 2 4-4 2 2-6 6-4-4z",fill:"currentColor"})});var r$=null&&rU;const rK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM9 8V5h2v3h3l-4 4-4-4h3z",fill:"currentColor"})});var rq=null&&rK;const rY=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 14h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2zM0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm4 2h12v2H4V4zm0 3h12v2H4V7zm0 3h12v2H4v-2z",fill:"currentColor"})});var rG=null&&rY;const rX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm14 12h4V2H2v12h4c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2z",fill:"currentColor"})});var rQ=null&&rX;const rJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm6 8h12v2H7V9zm-6 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2zM5 6v8l-4-4 4-4z",fill:"currentColor"})});var r0=null&&rJ;const r1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 1h18v2H1V1zm6 8h12v2H7V9zm-6 8h18v2H1v-2zM7 5h12v2H7V5zm0 8h12v2H7v-2zM1 6l4 4-4 4V6z",fill:"currentColor"})});var r2=null&&r1;var r4=n(28799);const r5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM9 11v4h2V9H9v2zm0-6v2h2V5H9z",fill:"currentColor"})});var r3=null&&r5;const r6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12.26 11.74 10 14H8v2H6v2l-2 2H0v-4l8.26-8.26a6 6 0 1 1 4 4zm4.86-4.62A3 3 0 0 0 15 2a3 3 0 0 0-2.12.88l4.24 4.24z",fill:"currentColor"})});var r8=null&&r6;const r7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z",fill:"currentColor"})});var r9=null&&r7;const oe=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 1 10 6-10 6L0 7l10-6zm6.67 10L20 13l-10 6-10-6 3.33-2L10 15l6.67-4z",fill:"currentColor"})});var ot=null&&oe;const on=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 6 10-6 10 6v2H0V6zm0 12h20v2H0v-2zm2-2h16v2H2v-2zm0-8h4v8H2V8zm6 0h4v8H8V8zm6 0h4v8h-4V8z",fill:"currentColor"})});var oo=null&&on;const oi=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 13.33a7 7 0 1 1 6 0V16H7v-2.67zM7 17h6v1.5c0 .83-.67 1.5-1.5 1.5h-3A1.5 1.5 0 0 1 7 18.5V17zm2-5.1V14h2v-2.1a5 5 0 1 0-2 0z",fill:"currentColor"})});var oa=null&&oi;const os=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9.26 13a2 2 0 0 1 .01-2.01A3 3 0 0 0 9 5H5a3 3 0 0 0 0 6h.08a6.06 6.06 0 0 0 0 2H5A5 5 0 0 1 5 3h4a5 5 0 0 1 .26 10zm1.48-6a2 2 0 0 1-.01 2.01A3 3 0 0 0 11 15h4a3 3 0 0 0 0-6h-.08a6.06 6.06 0 0 0 0-2H15a5 5 0 0 1 0 10h-4a5 5 0 0 1-.26-10z",fill:"currentColor"})});var ol=null&&os;const ou=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 9h-3v2h3v3h2v-3h3V9h-3V6h-2v3zM0 3h10v2H0V3zm0 8h10v2H0v-2zm0-4h10v2H0V7zm0 8h10v2H0v-2z",fill:"currentColor"})});var oc=null&&ou;var od=n(98405);const of=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M1 4h2v2H1V4zm4 0h14v2H5V4zM1 9h2v2H1V9zm4 0h14v2H5V9zm-4 5h2v2H1v-2zm4 0h14v2H5v-2z",fill:"currentColor"})});var oh=null&&of;const op=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 12h-6v4h1v4H8v-4h1v-4H3v4h1v4H0v-4h1v-4a2 2 0 0 1 2-2h6V6H7V0h6v6h-2v4h6a2 2 0 0 1 2 2v4h1v4h-4v-4h1v-4z",fill:"currentColor"})});var og=null&&op;const ov=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 20 8-8 4-2 8z",fill:"currentColor"})});var om=null&&ov;const oy=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 11v7a2 2 0 0 1-4 0v-5h-2V3a3 3 0 0 1 3-3h3v11zM4 10a2 2 0 0 1-2-2V1a1 1 0 0 1 2 0v4h1V1a1 1 0 0 1 2 0v4h1V1a1 1 0 0 1 2 0v7a2 2 0 0 1-2 2v8a2 2 0 0 1-4 0v-8z",fill:"currentColor"})});var ox=null&&oy;const ow=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 18h1v2H0v-2h1V2c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2v16zM3 2v6h8V2H3zm10 8h1a2 2 0 0 1 2 2v3a1 1 0 0 0 2 0v-5l-2-2V6l-2-2 1-1 5 5v7a3 3 0 0 1-6 0v-3h-1v-2z",fill:"currentColor"})});var ob=null&&ow;const oS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 12h18v6h-2v-2H2v2H0V2h2v10zm8-6h8a2 2 0 0 1 2 2v3H10V6zm-4 5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var ok=null&Ⓢconst oj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M8 1.88V0h2v16h10l-4 4H2l-2-4h8v-2H0v-.26A24.03 24.03 0 0 0 8 1.88zM19.97 14H10v-.36A11.94 11.94 0 0 0 10 .36v-.2A16.01 16.01 0 0 1 19.97 14z",fill:"currentColor"})});var oC=null&&oj;const oT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.33 12.77A4 4 0 1 1 3 5.13V5a4 4 0 0 1 5.71-3.62 3.5 3.5 0 0 1 6.26 1.66 2.5 2.5 0 0 1 2 2.08 4 4 0 1 1-2.7 7.49A5.02 5.02 0 0 1 12 14.58V18l2 1v1H6v-1l2-1v-3l-2.67-2.23zM5 10l3 3v-3H5z",fill:"currentColor"})});var oE=null&&oT;const oI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 16H9l2-4.5V9c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v2.5l2 4.5h-3v4h-4v-4zm-5-3h2V9a2 2 0 0 0-2-2H3a2 2 0 0 0-2 2v4h2v7h4v-7zM5 6a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm9 0a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var o_=null&&oI;const oM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 6v2h2l2 12H0L2 8h2V6a6 6 0 1 1 12 0zm-2 0a4 4 0 1 0-8 0v2h8V6zM4 10v2h2v-2H4zm10 0v2h2v-2h-2z",fill:"currentColor"})});var oD=null&&oM;const oP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var oA=null&&oP;const oO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});var oR=null&&oO;const oz=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8V6a6 6 0 1 1 12 0h-3v2h4a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});var oZ=null&&oz;const oL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 6 4 8-4 6 4v16l-6-4-8 4-6-4V0zm7 6v11l6-3V3L7 6z",fill:"currentColor"})});var oN=null&&oL;const oB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z",fill:"currentColor"})});var oH=null&&oB;const oF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 18v-1.06A8 8 0 0 1 2 9h2a6 6 0 1 0 12 0h2a8 8 0 0 1-7 7.94V18h3v2H6v-2h3zM6 4a4 4 0 1 1 8 0v5a4 4 0 1 1-8 0V4z",fill:"currentColor"})});var oV=null&&oF;const oW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm5-9v2H5V9h10z",fill:"currentColor"})});var oU=null&&oW;const o$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm5-11H5v2h10V9z",fill:"currentColor"})});var oK=null&&o$;const oq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 6V5h-2V2H3v14h5v4h3.25H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6zm-5.75 14H3a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5.75zM11 8v8h6V8h-6zm3 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var oY=null&&oq;const oG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 8h6a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2ZM9.471 4.5a.5.5 0 0 0 .5.438h4.064a.5.5 0 0 0 .5-.438 9.165 9.165 0 0 1 1.206-3.049.5.5 0 0 0-.638-.7l-1.862.8a.25.25 0 0 1-.33-.137l-.441-1.1a.5.5 0 0 0-.928 0l-.441 1.1a.25.25 0 0 1-.33.137L8.9.755a.5.5 0 0 0-.638.7A9.165 9.165 0 0 1 9.471 4.5ZM15.438 9.121A.591.591 0 0 0 15.081 9H8.919a.585.585 0 0 0-.357.121c-2.551 1.95-5.4 5.4-5.4 8.4C3.16 21.75 5.518 24 12 24s8.84-2.25 8.84-6.482c0-2.995-2.85-6.447-5.402-8.397ZM12.955 20.13a.25.25 0 0 0-.205.246v.374a.75.75 0 0 1-1.5 0v-.323a.25.25 0 0 0-.25-.25h-.588a.75.75 0 1 1 0-1.5h2.152a.671.671 0 0 0 .25-1.294l-2.185-.873a2.164 2.164 0 0 1 .416-4.14.25.25 0 0 0 .205-.246v-.374a.75.75 0 0 1 1.5 0v.323a.25.25 0 0 0 .25.25h.588a.75.75 0 1 1 0 1.5h-2.152a.671.671 0 0 0-.25 1.294l2.185.873a2.164 2.164 0 0 1-.416 4.14Z",fill:"currentColor"})});var oX=null&&oG;const oQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm2.16 3a6 6 0 0 1-11.32 0h11.32z",fill:"currentColor"})});var oJ=null&&oQ;const o0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm2.16 3H4.34a6 6 0 0 0 11.32 0z",fill:"currentColor"})});var o1=null&&o0;const o2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM7 13h6a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2z",fill:"currentColor"})});var o4=null&&o2;const o5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM7 13a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2H7z",fill:"currentColor"})});var o3=null&&o5;const o6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM6.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm7 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm2.16 6H4.34a6 6 0 0 1 11.32 0z",fill:"currentColor"})});var o8=null&&o6;const o7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM6.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm2.16 6a6 6 0 0 0-11.32 0h11.32z",fill:"currentColor"})});var o9=null&&o7;const ie=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 9V6A6 6 0 0 1 9 .08V9H4zm0 2v3a6 6 0 1 0 12 0v-3H4zm12-2V6a6 6 0 0 0-5-5.92V9h5z",fill:"currentColor"})});var it=null&&ie;const io=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.418 16.414a1 1 0 0 0 1.707-.707v-3.291a.25.25 0 0 1 .25-.25h13.542a.25.25 0 0 1 .25.25v5.208a1.25 1.25 0 0 0 2.5 0v-6.708a1.25 1.25 0 0 0-1.25-1.25H7.375a.25.25 0 0 1-.25-.25V6.124a1 1 0 0 0-1.707-.707L.626 10.209a1 1 0 0 0 0 1.414Z",fill:"currentColor"})});var ii=null&&io;const ia=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v20H0V0zm10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z",fill:"currentColor"})});var is=null&&ia;const il=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15.75 8-3.74-3.75a3.99 3.99 0 0 1 6.82-3.08A4 4 0 0 1 15.75 8zm-13.9 7.3 9.2-9.19 2.83 2.83-9.2 9.2-2.82-2.84zm-1.4 2.83 2.11-2.12 1.42 1.42-2.12 2.12-1.42-1.42zM10 15l2-2v7h-2v-5z",fill:"currentColor"})});var iu=null&&il;const ic=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 2.5V0L6 2v12.17A3 3 0 0 0 5 14H3a3 3 0 0 0 0 6h2a3 3 0 0 0 3-3V5.71L18 4.3v7.88a3 3 0 0 0-1-.17h-2a3 3 0 0 0 0 6h2a3 3 0 0 0 3-3V2.5z",fill:"currentColor"})});var id=null&⁣const ih=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 17a3 3 0 0 1-3 3h-2a3 3 0 0 1 0-6h2a3 3 0 0 1 1 .17V1l6-1v4l-4 .67V17zM0 3h12v2H0V3zm0 4h12v2H0V7zm0 4h12v2H0v-2zm0 4h6v2H0v-2z",fill:"currentColor"})});var ip=null&&ih;const ig=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 12a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm6 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var iv=null&&ig;const im=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm7.75-8a8.01 8.01 0 0 0 0-4h-3.82a28.81 28.81 0 0 1 0 4h3.82zm-.82 2h-3.22a14.44 14.44 0 0 1-.95 3.51A8.03 8.03 0 0 0 16.93 14zm-8.85-2h3.84a24.61 24.61 0 0 0 0-4H8.08a24.61 24.61 0 0 0 0 4zm.25 2c.41 2.4 1.13 4 1.67 4s1.26-1.6 1.67-4H8.33zm-6.08-2h3.82a28.81 28.81 0 0 1 0-4H2.25a8.01 8.01 0 0 0 0 4zm.82 2a8.03 8.03 0 0 0 4.17 3.51c-.42-.96-.74-2.16-.95-3.51H3.07zm13.86-8a8.03 8.03 0 0 0-4.17-3.51c.42.96.74 2.16.95 3.51h3.22zm-8.6 0h3.34c-.41-2.4-1.13-4-1.67-4S8.74 3.6 8.33 6zM3.07 6h3.22c.2-1.35.53-2.55.95-3.51A8.03 8.03 0 0 0 3.07 6z",fill:"currentColor"})});var iy=null&&im;const ix=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 2h4v15a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V0h16v2zm0 2v13a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4h-2zM2 2v15a1 1 0 0 0 1 1h11.17a2.98 2.98 0 0 1-.17-1V2H2zm2 8h8v2H4v-2zm0 4h8v2H4v-2zM4 4h8v4H4V4z",fill:"currentColor"})});var iw=null&&ix;const ib=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8a6 6 0 0 1 4.03-5.67 2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8zm8 10a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var iS=null&&ib;const ik=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6 8v7h8V8a4 4 0 1 0-8 0zm2.03-5.67a2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8a6 6 0 0 1 4.03-5.67zM12 18a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var ij=null&&ik;const iC=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 8a6 6 0 0 1 4.03-5.67 2 2 0 1 1 3.95 0A6 6 0 0 1 16 8v6l3 2v1H1v-1l3-2V8zm8 10a2 2 0 1 1-4 0h4z",fill:"currentColor"})});var iT=null&&iC;const iE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z",fill:"currentColor"})});var iI=null&&iE;const i_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM7 6h2v8H7V6zm4 0h2v8h-2V6z",fill:"currentColor"})});var iM=null&&i_;const iD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zM7 6v8h2V6H7zm4 0v8h2V6h-2z",fill:"currentColor"})});var iP=null&&iD;const iA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4h3v12H5V4zm7 0h3v12h-3V4z",fill:"currentColor"})});var iO=null&&iA;const iR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9.27V0l6 11-4 6H7l-4-6L9 0v9.27a2 2 0 1 0 2 0zM6 18h8v2H6v-2z",fill:"currentColor"})});var iz=null&&iR;const iZ=e=>_jsxs("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[_jsx("path",{d:"M13.937 15a1.977 1.977 0 0 1-.672.443L9.73 16.86a2.026 2.026 0 0 1-2.157-.442 2 2 0 0 1-.443-2.157l1.413-3.533a2.008 2.008 0 0 1 .444-.673l5.887-5.888a.251.251 0 0 0-.174-.427H3.368A3.118 3.118 0 0 0 .25 6.858v13.765a3.117 3.117 0 0 0 3.118 3.117h13.765a3.116 3.116 0 0 0 3.117-3.117V9.294a.25.25 0 0 0-.426-.177Z",fill:"currentColor"}),_jsx("path",{d:"M18.568 3.3a.514.514 0 0 0-.707 0l-7.813 7.814a.507.507 0 0 0-.111.168l-1.414 3.536a.5.5 0 0 0 .111.54.519.519 0 0 0 .539.11l3.535-1.414a.5.5 0 0 0 .168-.111L20.69 6.13a.5.5 0 0 0 0-.707ZM23.165 3.654a2 2 0 0 0 0-2.828 2.048 2.048 0 0 0-2.828 0l-1.061 1.061a.531.531 0 0 0-.042.063.49.49 0 0 0-.105.29.5.5 0 0 0 .147.354L21.4 4.715a.483.483 0 0 0 .649.039.452.452 0 0 0 .058-.039Z",fill:"currentColor"})]});var iL=null&&iZ;const iN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 18.35V19a1 1 0 0 1-1 1h-2A17 17 0 0 1 0 3V1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v4c0 .56-.31 1.31-.7 1.7L3.16 8.84c1.52 3.6 4.4 6.48 8 8l2.12-2.12c.4-.4 1.15-.71 1.7-.71H19a1 1 0 0 1 .99 1v3.35z",fill:"currentColor"})});var iB=null&&iN;const iH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 4c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm11 9-3-3-6 6h16l-5-5-2 2zm4-4a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var iF=null&&iH;const iV=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M10 12v8A10 10 0 0 1 8.17.17L10 2h5a5 5 0 0 1 5 4.99v9.02A4 4 0 0 1 16 20v-2a2 2 0 1 0 0-4h-4l-2-2zm5.5-3a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var iW=null&&iV;var iU=n(20493);var i$=n(58534);const iK=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM7 6l8 4-8 4V6z",fill:"currentColor"})});var iq=null&&iK;const iY=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m4 4 12 6-12 6z",fill:"currentColor"})});var iG=null&&iY;const iX=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 17a3 3 0 0 1-3 3h-2a3 3 0 0 1 0-6h2a3 3 0 0 1 1 .17V1l6-1v4l-4 .67V17zM0 3h12v2H0V3zm0 4h12v2H0V7zm0 4h12v2H0v-2zm0 4h6v2H0v-2z",fill:"currentColor"})});var iQ=null&&iX;const iJ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 14v4a2 2 0 0 1-2 2h-4v-2a2 2 0 0 0-2-2 2 2 0 0 0-2 2v2H6a2 2 0 0 1-2-2v-4H2a2 2 0 0 1-2-2 2 2 0 0 1 2-2h2V6c0-1.1.9-2 2-2h4V2a2 2 0 0 1 2-2 2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v4h-2a2 2 0 0 0-2 2 2 2 0 0 0 2 2h2z",fill:"currentColor"})});var i0=null&&iJ;const i1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 12H1v6a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-6h-8v2H9v-2zm0-1H0V5c0-1.1.9-2 2-2h4V2a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1h4a2 2 0 0 1 2 2v6h-9V9H9v2zm3-8V2H8v1h4z",fill:"currentColor"})});var i2=null&&i1;const i4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z",fill:"currentColor"})});var i5=null&&i4;const i3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.4 18H20v2H0v-2h2.6L8 0h4l5.4 18zm-3.2-4H5.8l-1.2 4h10.8l-1.2-4zm-2.4-8H8.2L7 10h6l-1.2-4z",fill:"currentColor"})});var i6=null&&i3;const i8=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm2-13c0 .28-.21.8-.42 1L10 9.58c-.57.58-1 1.6-1 2.42v1h2v-1c0-.29.21-.8.42-1L13 9.42c.57-.58 1-1.6 1-2.42a4 4 0 1 0-8 0h2a2 2 0 1 1 4 0zm-3 8v2h2v-2H9z",fill:"currentColor"})});var i7=null&&i8;var i9=n(46890);const ae=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 10a2 2 0 0 1-3.41 1.41A2 2 0 0 1 10 8V0a9.97 9.97 0 0 1 10 10h-8zm7.9 1.41A10 10 0 1 1 8.59.1v2.03a8 8 0 1 0 9.29 9.29h2.02zm-4.07 0a6 6 0 1 1-7.25-7.25v2.1a3.99 3.99 0 0 0-1.4 6.57 4 4 0 0 0 6.56-1.42h2.1z",fill:"currentColor"})});var at=null&&ae;const ao=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 10a2 2 0 0 1-3.41 1.41A2 2 0 0 1 10 8V0a9.97 9.97 0 0 1 10 10h-8zm7.9 1.41A10 10 0 1 1 8.59.1v2.03a8 8 0 1 0 9.29 9.29h2.02zm-4.07 0a6 6 0 1 1-7.25-7.25v2.1a3.99 3.99 0 0 0-1.4 6.57 4 4 0 0 0 6.56-1.42h2.1z",fill:"currentColor"})});var ai=null&&ao;const aa=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 9v9a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h13.8L.74 1.97 1.26.03 20 5.06V9zm-5 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM2 8v2h16V8H2zm1.5 10a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm6.5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var as=null&&aa;var al=n(89456);const au=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14.66 15.66A8 8 0 1 1 17 10h-2a6 6 0 1 0-1.76 4.24l1.42 1.42zM12 10h8l-4 4-4-4z",fill:"currentColor"})});var ac=null&&au;const ad=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 17v-2.99A4 4 0 0 0 14 10h-3v5L5 9l6-6v5h3a6 6 0 0 1 6 6v3h-2zM6 6V3L0 9l6 6v-3L3 9l3-3z",fill:"currentColor"})});var af=null&&ad;const ah=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z",fill:"currentColor"})});var ap=null&&ah;var ag=n(96424);const av=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 4a2 2 0 0 0-2 2v6H0l4 4 4-4H5V6h7l2-2H5zm10 4h-3l4-4 4 4h-3v6a2 2 0 0 1-2 2H6l2-2h7V8z",fill:"currentColor"})});var am=null&&av;const ay=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h14l4 4v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm5 0v6h10V2H5zm6 1h3v4h-3V3z",fill:"currentColor"})});var ax=null&&ay;const aw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2.8 15.8 0 13v7h7l-2.8-2.8 4.34-4.32-1.42-1.42L2.8 15.8zM17.2 4.2 20 7V0h-7l2.8 2.8-4.34 4.32 1.42 1.42L17.2 4.2zm-1.4 13L13 20h7v-7l-2.8 2.8-4.32-4.34-1.42 1.42 4.33 4.33zM4.2 2.8 7 0H0v7l2.8-2.8 4.32 4.34 1.42-1.42L4.2 2.8z",fill:"currentColor"})});var ab=null&&aw;const aS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z",fill:"currentColor"})});var ak=null&&aS;const aj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m0 0 20 10L0 20V0zm0 8v4l10-2L0 8z",fill:"currentColor"})});var aC=null&&aj;const aT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm0 7c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V9zm0 7c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2zM12 2v2h2V2h-2zm4 0v2h2V2h-2zm-4 7v2h2V9h-2zm4 0v2h2V9h-2zm-4 7v2h2v-2h-2zm4 0v2h2v-2h-2z",fill:"currentColor"})});var aE=null&&aT;const aI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 10c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-8zm2 0v8h8v-8h-2V8H8v2H6zm3-6.17V16h2V3.83l3.07 3.07 1.42-1.41L10 0l-.7.7-4.8 4.8 1.42 1.4L9 3.84z",fill:"currentColor"})});var a_=null&&aI;const aM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5.08 12.16A2.99 2.99 0 0 1 0 10a3 3 0 0 1 5.08-2.16l8.94-4.47a3 3 0 1 1 .9 1.79L5.98 9.63a3.03 3.03 0 0 1 0 .74l8.94 4.47A2.99 2.99 0 0 1 20 17a3 3 0 1 1-5.98-.37l-8.94-4.47z",fill:"currentColor"})});var aD=null&&aM;const aP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 10c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-8zm2 0v8h8v-8h-2V8H8v2H6zm3-6.17V16h2V3.83l3.07 3.07 1.42-1.41L10 0l-.7.7-4.8 4.8 1.42 1.4L9 3.84z",fill:"currentColor"})});var aA=null&&aP;const aO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M19 11a7.5 7.5 0 0 1-3.5 5.94L10 20l-5.5-3.06A7.5 7.5 0 0 1 1 11V3c3.38 0 6.5-1.12 9-3 2.5 1.89 5.62 3 9 3v8zm-9 1.08 2.92 2.04-1.03-3.41 2.84-2.15-3.56-.08L10 5.12 8.83 8.48l-3.56.08L8.1 10.7l-1.03 3.4L10 12.09z",fill:"currentColor"})});var aR=null&&aO;const az=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var aZ=null&&az;const aL=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 3H2v14h5V3zm2 0v14h9V3H9zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm3 1h3v2H3V4zm0 3h3v2H3V7zm0 3h3v2H3v-2z",fill:"currentColor"})});var aN=null&&aL;const aB=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6.59 12.83 4.4 15c-.58.58-1.59 1-2.4 1H0v-2h2c.29 0 .8-.2 1-.41l2.17-2.18 1.42 1.42zM16 4V1l4 4-4 4V6h-2c-.29 0-.8.2-1 .41l-2.17 2.18L9.4 7.17 11.6 5c.58-.58 1.59-1 2.41-1h2zm0 10v-3l4 4-4 4v-3h-2c-.82 0-1.83-.42-2.41-1l-8.6-8.59C2.8 6.21 2.3 6 2 6H0V4h2c.82 0 1.83.42 2.41 1l8.6 8.59c.2.2.7.41.99.41h2z",fill:"currentColor"})});var aH=null&&aB;const aF=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"m4.16 4.16 1.42 1.42A6.99 6.99 0 0 0 10 18a7 7 0 0 0 4.42-12.42l1.42-1.42a9 9 0 1 1-11.69 0zM9 0h2v8H9V0z",fill:"currentColor"})});var aV=null&&aF;const aW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m10 15-5.878 3.09 1.123-6.545L.489 6.91l6.572-.955L10 0l2.939 5.955 6.572.955-4.756 4.635 1.123 6.545z",fill:"currentColor"})});var aU=null&&aW;const a$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 11.73a2 2 0 1 1 2 0V20H9v-8.27zm5.24 2.51-1.41-1.41A3.99 3.99 0 0 0 10 6a4 4 0 0 0-2.83 6.83l-1.41 1.41a6 6 0 1 1 8.49 0zm2.83 2.83-1.41-1.41a8 8 0 1 0-11.31 0l-1.42 1.41a10 10 0 1 1 14.14 0z",fill:"currentColor"})});var aK=null&&a$;const aq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M4 5h3v10H4V5zm12 0v10l-9-5 9-5z",fill:"currentColor"})});var aY=null&&aq;const aG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 5h3v10h-3V5zM4 5l9 5-9 5V5z",fill:"currentColor"})});var aX=null&&aG;const aQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17 10.27V4.99a1 1 0 0 0-2 0V15a5 5 0 0 1-10 0v-1.08A6 6 0 0 1 0 8V2C0 .9.9 0 2 0h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1H2v6a4 4 0 1 0 8 0V2H9a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1a2 2 0 0 1 2 2v6a6 6 0 0 1-5 5.92V15a3 3 0 0 0 6 0V5a3 3 0 0 1 6 0v5.27a2 2 0 1 1-2 0z",fill:"currentColor"})});var aJ=null&&aQ;var a0=n(7122);const a1=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h20v5H0V0zm0 7h20v4H0V7zm0 6h20v3H0v-3zm0 5h20v2H0v-2z",fill:"currentColor"})});var a2=null&&a1;const a4=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M18 12v1H8v5l-6-6 6-6v5h8V2h2z",fill:"currentColor"})});var a5=null&&a4;const a3=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M3.5 13H12v5l6-6-6-6v5H4V2H2v11z",fill:"currentColor"})});var a6=null&&a3;var a8=n(41883);const a7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 6a4 4 0 1 1 8 0v8h3l-4 4-4-4h3V6a2 2 0 0 0-2-2 2 2 0 0 0-2 2v8a4 4 0 1 1-8 0V6H0l4-4 4 4H5v8a2 2 0 0 0 2 2 2 2 0 0 0 2-2V6z",fill:"currentColor"})});var a9=null&&a7;const se=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2zm2 0v14h12V2H4zm6 17a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",fill:"currentColor"})});var st=null&&se;var sn=n(27285);const so=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M17.94 11H13V9h4.94A8 8 0 0 0 11 2.06V7H9V2.06A8 8 0 0 0 2.06 9H7v2H2.06A8 8 0 0 0 9 17.94V13h2v4.94A8 8 0 0 0 17.94 11zM10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20z",fill:"currentColor"})});var si=null&&so;const sa=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h6v6H0V0zm2 2v2h2V2H2zm12-2h6v6h-6V0zm2 2v2h2V2h-2zm-2 12h6v6h-6v-6zm2 2v2h2v-2h-2zM0 14h6v6H0v-6zm2 2v2h2v-2H2zM6 2h8v2H6V2zm0 14h8v2H6v-2zM16 6h2v8h-2V6zM2 6h2v8H2V6zm5 1h6v2H7V7zm2 2h2v4H9V9z",fill:"currentColor"})});var ss=null&&sa;const sl=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 5h-2v12H8V3h8v2h-2v12h-2V5zM8 3a4 4 0 1 0 0 8V3z",fill:"currentColor"})});var su=null&&sl;const sc=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 11.17V7h2v4.17a3 3 0 1 1-2 0zm-1-.63a4 4 0 1 0 4 0V4a2 2 0 1 0-4 0v6.53zM6 9.53V4a4 4 0 0 1 8 0v5.53A5.99 5.99 0 0 1 10 20 6 6 0 0 1 6 9.53z",fill:"currentColor"})});var sd=null&≻const sf=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 20a2 2 0 0 1-2-2v-6H2a2 2 0 0 1-2-2V8l2.3-6.12A3.11 3.11 0 0 1 5 0h8a2 2 0 0 1 2 2v8l-3 7v3h-1zm6-10V0h3v10h-3z",fill:"currentColor"})});var sh=null&&sf;const sp=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 0h1v3l3 7v8a2 2 0 0 1-2 2H5c-1.1 0-2.31-.84-2.7-1.88L0 12v-2a2 2 0 0 1 2-2h7V2a2 2 0 0 1 2-2zm6 10h3v10h-3V10z",fill:"currentColor"})});var sg=null&&sp;const sv=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M20 12v5H0v-5a2 2 0 1 0 0-4V3h20v5a2 2 0 1 0 0 4zM3 5v10h14V5H3zm7 7.08-2.92 2.04L8.1 10.7 5.27 8.56l3.56-.08L10 5.12l1.17 3.36 3.56.08-2.84 2.15 1.03 3.4L10 12.09z",fill:"currentColor"})});var sm=null&&sv;const sy=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm-1-7.59V4h2v5.59l3.95 3.95-1.41 1.41L9 10.41z",fill:"currentColor"})});var sx=null&&sy;const sw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16.32 7.1A8 8 0 1 1 9 4.06V2h2v2.06c1.46.18 2.8.76 3.9 1.62l1.46-1.46 1.42 1.42-1.46 1.45zM10 18a6 6 0 1 0 0-12 6 6 0 0 0 0 12zM7 0h6v2H7V0zm5.12 8.46 1.42 1.42L10 13.4 8.59 12l3.53-3.54z",fill:"currentColor"})});var sb=null&&sw;const sS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 0s8 7.58 8 12a8 8 0 1 1-16 0c0-1.5.91-3.35 2.12-5.15A3 3 0 0 0 10 6V0zM8 0a3 3 0 1 0 0 6V0z",fill:"currentColor"})});var sk=null&&sS;const sj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m7.41 9 2.24 2.24-.83 2L6 10.4l-3.3 3.3-1.4-1.42L4.58 9l-.88-.88c-.53-.53-1-1.3-1.3-2.12h2.2c.15.28.33.53.51.7l.89.9.88-.88C7.48 6.1 8 4.84 8 4H0V2h5V0h2v2h5v2h-2c0 1.37-.74 3.15-1.7 4.12L7.4 9zm3.84 8L10 20H8l5-12h2l5 12h-2l-1.25-3h-5.5zm.83-2h3.84L14 10.4 12.08 15z",fill:"currentColor"})});var sC=null&&sj;var sT=n(86357);const sE=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 18H7v1a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-1a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1zM4 5v6h5V5H4zm7 0v6h5V5h-5zM5 2v1h10V2H5zm.5 14a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var sI=null&&sE;const s_=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 14v-3H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1l4-7h8l4 7h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1h-1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-3zm13.86-5L13 4H7L4.14 9h11.72zM5.5 14a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var sM=null&&s_;const sD=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 5h2v14H4V5h2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1zm3 0h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1V5zM3 5v14H2a2 2 0 0 1-2-2V7c0-1.1.9-2 2-2h1zm5-1v1h4V4H8z",fill:"currentColor"})});var sP=null&&sD;const sA=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 3h2l4 7h1a1 1 0 0 1 1 1 1 1 0 0 1-1 1h-1v6a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1H5v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-6H1a1 1 0 0 1-1-1 1 1 0 0 1 1-1h1l4-7h2V1h4v2zm3.86 7L13 5H7l-2.86 5h11.72zM5.5 15a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm9 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z",fill:"currentColor"})});var sO=null&&sA;const sR=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 18H8l-2 2H3l2-2a2 2 0 0 1-2-2V2c0-1.1.9-2 2-2h10a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2l2 2h-3l-2-2zM5 5v6h10V5H5zm1.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm7 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM8 2v1h4V2H8z",fill:"currentColor"})});var sz=null&&sR;const sZ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m11 7 1.44 2.16c.31.47 1.01.84 1.57.84H17V8h-3l-1.44-2.16a5.94 5.94 0 0 0-1.4-1.4l-1.32-.88a1.72 1.72 0 0 0-1.7-.04L4 6v5h2V7l2-1-3 14h2l2.35-7.65L11 14v6h2v-8l-2.7-2.7L11 7zm1-3a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",fill:"currentColor"})});var sL=null&&sZ;const sN=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M14 5h2v14H4V5h2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1zm3 0h1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1V5zM3 5v14H2a2 2 0 0 1-2-2V7c0-1.1.9-2 2-2h1zm5-1v1h4V4H8z",fill:"currentColor"})});var sB=null&&sN;const sH=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 9a3 3 0 0 0 3-3h2a5 5 0 0 1-5.1 5 5 5 0 0 1-3.9 3.9V17l5 2v1H4v-1l5-2v-2.1A5 5 0 0 1 5.1 11H5a5 5 0 0 1-5-5h2a3 3 0 0 0 3 3V4H2v2H0V2h5V0h10v2h5v4h-2V4h-3v5z",fill:"currentColor"})});var sF=null&&sH;var sV=n(7056);const sW=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M13 10v6H7v-6H2l8-8 8 8h-5zM0 18h20v2H0v-2z",fill:"currentColor"})});var sU=null&&sW;const s$=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M15 8v2h-4V4h2l-3-4-3 4h2v8H5V9.73a2 2 0 1 0-2 0V12a2 2 0 0 0 2 2h4v2.27a2 2 0 1 0 2 0V12h4a2 2 0 0 0 2-2V8h1V4h-4v4h1z",fill:"currentColor"})});var sK=null&&s$;const sq=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M2 6H0v2h2v2h2V8h2V6H4V4H2v2zm7 0a3 3 0 0 1 6 0v2a3 3 0 0 1-6 0V6zm11 9.14A15.93 15.93 0 0 0 12 13c-2.91 0-5.65.78-8 2.14V18h16v-2.86z",fill:"currentColor"})});var sY=null&&sq;const sG=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z",fill:"currentColor"})});var sX=null&&sG;const sQ=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zM7 6v2a3 3 0 1 0 6 0V6a3 3 0 1 0-6 0zm-3.65 8.44a8 8 0 0 0 13.3 0 15.94 15.94 0 0 0-13.3 0z",fill:"currentColor"})});var sJ=null&&sQ;const s0=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 2C0 .9.9 0 2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm7 4v2a3 3 0 1 0 6 0V6a3 3 0 1 0-6 0zm11 9.14A15.93 15.93 0 0 0 10 13c-2.91 0-5.65.78-8 2.14V18h16v-2.86z",fill:"currentColor"})});var s1=null&&s0;const s2=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 5a5 5 0 0 1 10 0v2A5 5 0 0 1 5 7V5zM0 16.68A19.9 19.9 0 0 1 10 14c3.64 0 7.06.97 10 2.68V20H0v-3.32z",fill:"currentColor"})});var s4=null&&s2;const s5=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 4h4.27a2 2 0 1 1 0 2h-2.14a9 9 0 0 1 4.84 7.25 2 2 0 1 1-2 .04 7 7 0 0 0-4.97-6V8H8v-.71a7 7 0 0 0-4.96 6 2 2 0 1 1-2-.04A9 9 0 0 1 5.86 6H3.73a2 2 0 1 1 0-2H8V3h4v1z",fill:"currentColor"})});var s3=null&&s5;const s6=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m16 7 4-4v14l-4-4v3a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2h12a2 2 0 0 1 2 2v3zm-8 7a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var s8=null&&s6;const s7=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M16 16v2H4v-2H0V4h4V2h12v2h4v12h-4zM14 5.5V4H6v12h8V5.5zm2 .5v8h2V6h-2zM4 6H2v8h2V6z",fill:"currentColor"})});var s9=null&&s7;const le=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M12 4H8v12h4V4zm2 0v12h4V4h-4zM6 4H2v12h4V4zM0 2h20v16H0V2z",fill:"currentColor"})});var lt=null&≤const ln=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m12.81 4.36-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99 1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z",fill:"currentColor"})});var lo=null&&ln;const li=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3h20v2H0V3zm0 4h20v2H0V7zm0 4h20v2H0v-2zm0 4h20v2H0v-2z",fill:"currentColor"})});var la=null&&li;const ls=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});var ll=null&&ls;const lu=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 0h9v9H0V0zm2 2v5h5V2H2zm-2 9h9v9H0v-9zm2 2v5h5v-5H2zm9-13h9v9h-9V0zm2 2v5h5V2h-5zm-2 9h9v9h-9v-9zm2 2v5h5v-5h-5z",fill:"currentColor"})});var lc=null&&lu;const ld=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M7 7H3v6h4l5 5V2L7 7zm8.54 6.54-1.42-1.42a3 3 0 0 0 0-4.24l1.42-1.42a4.98 4.98 0 0 1 0 7.08z",fill:"currentColor"})});var lf=null&&ld;const lh=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 7H5v6h4l5 5V2L9 7z",fill:"currentColor"})});var lp=null&&lh;const lg=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"m15 8.59-2.12-2.13-1.42 1.42L13.6 10l-2.13 2.12 1.42 1.42L15 11.4l2.12 2.13 1.42-1.42L16.4 10l2.13-2.12-1.42-1.42L15 8.6zM4 7H0v6h4l5 5V2L4 7z",fill:"currentColor"})});var lv=null&≶const lm=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M5 7H1v6h4l5 5V2L5 7zm11.36 9.36-1.41-1.41a6.98 6.98 0 0 0 0-9.9l1.41-1.41a8.97 8.97 0 0 1 0 12.72zm-2.82-2.82-1.42-1.42a3 3 0 0 0 0-4.24l1.42-1.42a4.98 4.98 0 0 1 0 7.08z",fill:"currentColor"})});var ly=null&&lm;var lx=n(78800);const lw=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M11 9h2v2H9V7h2v2zm-5.82 6.08a6.98 6.98 0 0 1 0-10.16L6 0h8l.82 4.92a6.98 6.98 0 0 1 0 10.16L14 20H6l-.82-4.92zM10 15a5 5 0 1 0 0-10 5 5 0 0 0 0 10z",fill:"currentColor"})});var lb=null&&lw;const lS=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M9 10V8h2v2h2v2h-2v2H9v-2H7v-2h2zM0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var lk=null&&lS;const lj=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2zm8 3 4 5H6l4-5z",fill:"currentColor"})});var lC=null&&lj;const lT=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M0 3c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3zm2 2v12h16V5H2z",fill:"currentColor"})});var lE=null&&lT;const lI=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{d:"M6.47 9.8A5 5 0 0 1 .2 3.22l3.95 3.95 2.82-2.83L3.03.41a5 5 0 0 1 6.4 6.68l10 10-2.83 2.83L6.47 9.8z",fill:"currentColor"})});var l_=null&&lI;const lM=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm0-18a8 8 0 1 0 0 16 4 4 0 1 1 0-8 4 4 0 1 0 0-8zm0 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0-8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",fill:"currentColor"})});var lD=null&&lM;const lP=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM7 7V5h2v2h2v2H9v2H7V9H5V7h2z",fill:"currentColor"})});var lA=null&&lP;const lO=e=>_jsx("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:_jsx("path",{fillRule:"evenodd",d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12zM5 7h6v2H5V7z",fill:"currentColor"})});var lR=null&&lO;},79494:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23.119 20 13.772 2.15a2 2 0 0 0-3.543 0L.881 20a2 2 0 0 0 1.772 2.928h18.694A2 2 0 0 0 23.119 20ZM11 8.423a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0Zm1.05 11.51h-.028a1.528 1.528 0 0 1-1.522-1.47 1.476 1.476 0 0 1 1.448-1.53h.028A1.527 1.527 0 0 1 13.5 18.4a1.475 1.475 0 0 1-1.45 1.533Z",fill:"currentColor"})});t.Z=i},93641:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M10.416 12a2.643 2.643 0 0 1 .775-1.875L20.732.584a1.768 1.768 0 0 1 2.5 2.5l-8.739 8.739a.25.25 0 0 0 0 .354l8.739 8.739a1.768 1.768 0 0 1-2.5 2.5l-9.541-9.541A2.643 2.643 0 0 1 10.416 12Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M.25 12a2.643 2.643 0 0 1 .775-1.875L10.566.584a1.768 1.768 0 0 1 2.5 2.5l-8.739 8.739a.25.25 0 0 0 0 .354l8.739 8.739a1.768 1.768 0 0 1-2.5 2.5l-9.541-9.541A2.643 2.643 0 0 1 .25 12Z",fill:"currentColor"})]});t.Z=i},78393:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("g",{fill:"#000",children:(0,r.jsx)("path",{d:"m23.962 17.457-.82-3.297a1.287 1.287 0 0 0-1.56-.934l-3.294.823a1.286 1.286 0 0 0-.343 2.35L19 17.03A9.538 9.538 0 0 1 12 20.604a8.652 8.652 0 0 1-8.085-5.667 1.286 1.286 0 0 0-2.415.884A11.232 11.232 0 0 0 12 23.175a12.108 12.108 0 0 0 9.214-4.8l.839.503a1.286 1.286 0 0 0 1.91-1.415ZM2.422 10.774l3.295-.823a1.286 1.286 0 0 0 .352-2.35l-.972-.583A9.588 9.588 0 0 1 12 3.396a8.652 8.652 0 0 1 8.085 5.667A1.286 1.286 0 0 0 22.5 8.18 11.232 11.232 0 0 0 12 .825 12.242 12.242 0 0 0 2.866 5.68l-.919-.552a1.286 1.286 0 0 0-1.91 1.414l.82 3.297a1.287 1.287 0 0 0 1.246.974 1.311 1.311 0 0 0 .32-.04Z",fill:"currentColor"})})});t.Z=i},48880:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M21.5 3h-2.75a.25.25 0 0 1-.25-.25V1a1 1 0 0 0-2 0v4.75a.75.75 0 0 1-.75.75.75.75 0 0 1-.75-.75V3.5a.5.5 0 0 0-.5-.5H8.25A.25.25 0 0 1 8 2.751V1a1 1 0 1 0-2 0v4.75a.75.75 0 0 1-.75.75.75.75 0 0 1-.75-.75V3.5A.5.5 0 0 0 4 3H2.5a2 2 0 0 0-2 2v17a2 2 0 0 0 2 2h19a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2ZM21 22H3a.5.5 0 0 1-.5-.5v-12A.5.5 0 0 1 3 9h18a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5Z",fill:"currentColor"})});t.Z=i},25136:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M6.847 21.429a3.408 3.408 0 0 1-2.662-1.34l-3.76-4.273a1.714 1.714 0 0 1 2.572-2.263l3.522 4.01a.429.429 0 0 0 .631.014L21.036 3.105a1.715 1.715 0 1 1 2.486 2.362l-14.06 14.8a3.327 3.327 0 0 1-2.615 1.162Z"})});t.Z=i},6564:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M12 0a12 12 0 1 0 12 12A12.014 12.014 0 0 0 12 0Zm6.927 8.2-6.845 9.289a1.011 1.011 0 0 1-1.43.188l-4.888-3.908a1 1 0 1 1 1.25-1.562l4.076 3.261 6.227-8.451a1 1 0 1 1 1.61 1.183Z",fill:"currentColor"})});t.Z=i},93757:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M12 0C1.308 0-4.044 12.925 3.516 20.484 11.075 28.044 24 22.692 24 12 23.992 5.376 18.624.008 12 0zm.01 1.988c5.521.007 9.995 4.48 10.002 10.002 0 8.912-10.774 13.373-17.075 7.072-6.3-6.3-1.839-17.074 7.073-17.074zm6.234 4.588a1 1 0 0 0-.928.442l-6.226 8.45-4.076-3.261a1 1 0 1 0-1.25 1.563l4.888 3.908a1.011 1.011 0 0 0 1.43-.19L18.928 8.2a1 1 0 0 0-.684-1.623z",fill:"currentColor"})});t.Z=i},27275:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M3.566 15.457a1 1 0 0 0-.5-.844 2.248 2.248 0 0 1-.431-.329A2.371 2.371 0 0 1 2 12.5a2.588 2.588 0 0 1 2.585-2.588 2.645 2.645 0 0 1 .536.056A1 1 0 0 0 6.324 9c.081-5.754 8.3-7.363 10.818-2.045a.97.97 0 0 0 .941.571 3.7 3.7 0 0 1 3 1.3 3.874 3.874 0 0 1 .908 2.811 3.428 3.428 0 0 1-1.1 2.375 1.316 1.316 0 0 0-.42 1.089.912.912 0 0 0 1.476.628A5.408 5.408 0 0 0 24 11.418a5.763 5.763 0 0 0-5.22-5.866.25.25 0 0 1-.19-.12 7.685 7.685 0 0 0-14.1 2.3.251.251 0 0 1-.227.2 4.642 4.642 0 0 0-3.643 2.24A4.471 4.471 0 0 0 0 12.619a4.287 4.287 0 0 0 1.235 3.09 4.177 4.177 0 0 0 .852.645 1 1 0 0 0 1.478-.9Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18.5 15.8a6.5 6.5 0 1 0-6.5 6.5 6.508 6.508 0 0 0 6.5-6.5Zm-7.25 1.25v-.55a1.257 1.257 0 0 1 .986-1.221 1.125 1.125 0 1 0-1.361-1.1.75.75 0 1 1-1.5 0 2.625 2.625 0 1 1 3.538 2.461.25.25 0 0 0-.163.234v.18a.75.75 0 0 1-1.5 0ZM12 18.8a1 1 0 1 1-1 1 1 1 0 0 1 1-1Z",fill:"currentColor"})]});t.Z=i},50798:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M12 0a10.286 10.286 0 0 0-6.243 18.45 1.714 1.714 0 0 1 .672 1.36v1.619A2.571 2.571 0 0 0 9 24a1.714 1.714 0 0 0 1.714-1.714V21a1.286 1.286 0 0 1 2.572 0v1.286A1.714 1.714 0 0 0 15 24a2.571 2.571 0 0 0 2.571-2.571V19.81a1.714 1.714 0 0 1 .672-1.36A10.286 10.286 0 0 0 12 0ZM7.714 12.429a2.143 2.143 0 1 1 2.143-2.143 2.143 2.143 0 0 1-2.143 2.143Zm8.572 0a2.143 2.143 0 1 1 2.143-2.143 2.143 2.143 0 0 1-2.143 2.143Z"})});t.Z=i},26858:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M23.91 9.113a1.785 1.785 0 0 0-1.453-1.227l-6.132-.926-2.714-5.506a1.863 1.863 0 0 0-3.222 0l-2.78 5.552-6.066.88a1.798 1.798 0 0 0-1 3.068l4.428 4.361-1.028 6.055a1.797 1.797 0 0 0 2.607 1.895l5.488-2.865 5.429 2.858a1.797 1.797 0 0 0 2.607-1.895l-1.011-6.128 4.394-4.286a1.786 1.786 0 0 0 .454-1.836Z"})});t.Z=i},54402:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M23.113 5.954 21.849 4.69l.881-.88a1.914 1.914 0 1 0-2.707-2.71L9.04 12.085a6.014 6.014 0 1 0 2.707 2.707l3.739-3.737.762.762a1.75 1.75 0 1 0 2.475-2.475l-.763-.762 1.416-1.417 1.264 1.263a1.788 1.788 0 0 0 2.473 0 1.751 1.751 0 0 0 0-2.472Zm-16.737 8.5a3 3 0 1 1-3 3 3 3 0 0 1 3-2.998Z",fill:"currentColor"})});t.Z=i},64355:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z",fill:"currentColor"})});t.Z=i},25104:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-moon-stars",viewBox:"0 0 16 16",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278zM4.858 1.311A7.269 7.269 0 0 0 1.025 7.71c0 4.02 3.279 7.276 7.319 7.276a7.316 7.316 0 0 0 5.205-2.162c-.337.042-.68.063-1.029.063-4.61 0-8.343-3.714-8.343-8.29 0-1.167.242-2.278.681-3.286z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z",fill:"currentColor"})]});t.Z=i},68476:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("rect",{width:23,height:3,x:.5,y:2.5,rx:1,ry:1,fill:"currentColor"}),(0,r.jsx)("rect",{width:23,height:3,x:.5,y:10.5,rx:1,ry:1,fill:"currentColor"}),(0,r.jsx)("rect",{width:23,height:3,x:.5,y:18.5,rx:1,ry:1,fill:"currentColor"})]});t.Z=i},2054:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M22 0H2a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h14a1 1 0 0 0 .707-.293l7-7A1 1 0 0 0 24 16V2a2 2 0 0 0-2-2ZM2 2.5a.5.5 0 0 1 .5-.5h19a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5h-4a2 2 0 0 0-2 2v4a.5.5 0 0 1-.5.5H2.5a.5.5 0 0 1-.5-.5Z",fill:"currentColor"})});t.Z=i},87107:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:[(0,r.jsx)("path",{d:"M20 11.491a1 1 0 0 0-1 1v8.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h10a1 1 0 0 0 0-2H3a3 3 0 0 0-3 3v17a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-8.5a1 1 0 0 0-1-1Z",fill:"currentColor"}),(0,r.jsx)("path",{d:"M18.818 3.051a.516.516 0 0 0-.707 0L10.3 10.865a.5.5 0 0 0-.111.168l-1.416 3.535a.5.5 0 0 0 .111.539.519.519 0 0 0 .539.11l3.535-1.417a.5.5 0 0 0 .168-.111L20.94 5.88a.5.5 0 0 0 0-.707ZM23.415.577a2.047 2.047 0 0 0-2.828 0l-1.061 1.06a.5.5 0 0 0 0 .707l2.12 2.121a.5.5 0 0 0 .707 0l1.061-1.06a2 2 0 0 0 0-2.828Z",fill:"currentColor"})]});t.Z=i},15988:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M10.664 20.073a1.249 1.249 0 1 0-.507 2.447A10.739 10.739 0 1 0 2.4 16.1a.25.25 0 0 1-.084.3l-1 .726a1 1 0 0 0 .377 1.787l3.946.849a1.062 1.062 0 0 0 .21.022 1 1 0 0 0 .978-.79l.945-4.4a1 1 0 0 0-1.565-1.02l-1.361.989a.25.25 0 0 1-.386-.128 8.255 8.255 0 1 1 6.205 5.643Z",fill:"currentColor"})});t.Z=i},5202:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M.439 21.44a1.5 1.5 0 0 0 2.122 2.121l9.262-9.261a.25.25 0 0 1 .354 0l9.262 9.263a1.5 1.5 0 1 0 2.122-2.121L14.3 12.177a.25.25 0 0 1 0-.354l9.263-9.262A1.5 1.5 0 0 0 21.439.44L12.177 9.7a.25.25 0 0 1-.354 0L2.561.44A1.5 1.5 0 0 0 .439 2.561L9.7 11.823a.25.25 0 0 1 0 .354Z",fill:"currentColor"})});t.Z=i},28339:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m23.384 21.619-6.529-6.529a9.284 9.284 0 1 0-1.768 1.768l6.529 6.529a1.266 1.266 0 0 0 1.768 0 1.251 1.251 0 0 0 0-1.768ZM2.75 9.5a6.75 6.75 0 1 1 6.75 6.75A6.758 6.758 0 0 1 2.75 9.5Z",fill:"currentColor"})});t.Z=i},32455:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-sun",viewBox:"0 0 16 16",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M8 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0 1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z",fill:"currentColor"})});t.Z=i},54785:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",className:"bi bi-system",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M4 16H20V5H4V16ZM13 18V20H17V22H7V20H11V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H13Z",fill:"currentColor"})});t.Z=i},69350:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{fill:"currentColor",d:"M7.176 22.5a4.111 4.111 0 0 1-3.17-1.486l-3.62-4.6a1.8 1.8 0 1 1 2.828-2.228l3.6 4.56a.384.384 0 0 0 .379.152.52.52 0 0 0 .408-.197L20.794 2.177a1.8 1.8 0 1 1 2.812 2.246L10.39 20.964A4.12 4.12 0 0 1 7.2 22.5Z"})});t.Z=i},38199:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"m12.81 4.36-1.77 1.78a4 4 0 0 0-4.9 4.9l-2.76 2.75C2.06 12.79.96 11.49.2 10a11 11 0 0 1 12.6-5.64zm3.8 1.85c1.33 1 2.43 2.3 3.2 3.79a11 11 0 0 1-12.62 5.64l1.77-1.78a4 4 0 0 0 4.9-4.9l2.76-2.75zm-.25-3.99 1.42 1.42L3.64 17.78l-1.42-1.42L16.36 2.22z",fill:"currentColor"})});t.Z=i},42632:function(e,t,n){"use strict";var r=n(43188);var o=n(66204);const i=e=>(0,r.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",style:{color:"inherit",...e.style},children:(0,r.jsx)("path",{d:"M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10zm9.8 4a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0-2a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fill:"currentColor"})});t.Z=i},45492:function(e,t,n){"use strict";n.d(t,{jy:function(){return u4},bA:function(){return u9},W2:function(){return u3},rS:function(){return u5},Jp:function(){return u1},Fg:function(){return u2}});var r={};n.r(r);n.d(r,{buttonBareBackground:function(){return rD},buttonBareBackgroundActive:function(){return rA},buttonBareBackgroundHover:function(){return rP},buttonBareDisabledBackground:function(){return rR},buttonBareDisabledText:function(){return rO},buttonBareText:function(){return r_},buttonBareTextHover:function(){return rM},buttonMenuBackground:function(){return n3},buttonMenuBackgroundHover:function(){return n6},buttonMenuBorder:function(){return n8},buttonMenuSelectedBackground:function(){return re},buttonMenuSelectedBackgroundHover:function(){return rt},buttonMenuSelectedBorder:function(){return rn},buttonMenuSelectedText:function(){return n7},buttonMenuSelectedTextHover:function(){return n9},buttonMenuText:function(){return n4},buttonMenuTextHover:function(){return n5},buttonNormalBackground:function(){return rg},buttonNormalBackgroundHover:function(){return rv},buttonNormalBorder:function(){return rm},buttonNormalDisabledBackground:function(){return rS},buttonNormalDisabledBorder:function(){return rk},buttonNormalDisabledText:function(){return rb},buttonNormalSelectedBackground:function(){return rw},buttonNormalSelectedText:function(){return rx},buttonNormalShadow:function(){return ry},buttonNormalText:function(){return rh},buttonNormalTextHover:function(){return rp},buttonPrimaryBackground:function(){return ra},buttonPrimaryBackgroundHover:function(){return rs},buttonPrimaryBorder:function(){return rl},buttonPrimaryDisabledBackground:function(){return rd},buttonPrimaryDisabledBorder:function(){return rf},buttonPrimaryDisabledText:function(){return rc},buttonPrimaryShadow:function(){return ru},buttonPrimaryText:function(){return ro},buttonPrimaryTextHover:function(){return ri},calendarBackground:function(){return rC},calendarItemBackground:function(){return rE},calendarItemText:function(){return rT},calendarSelectedBackground:function(){return rI},calendarText:function(){return rj},cardBackground:function(){return t3},cardBorder:function(){return t6},cardShadow:function(){return t8},checkboxBackgroundSelected:function(){return od},checkboxBorderSelected:function(){return of},checkboxShadowSelected:function(){return oh},checkboxText:function(){return oc},errorBackground:function(){return rY},errorBorder:function(){return r0},errorText:function(){return rG},errorTextDark:function(){return rX},errorTextDarker:function(){return rQ},errorTextMenu:function(){return rJ},formInputBackground:function(){return r6},formInputBackgroundSelected:function(){return r8},formInputBackgroundSelection:function(){return r7},formInputBorder:function(){return r9},formInputBorderSelected:function(){return ot},formInputShadowSelected:function(){return ol},formInputText:function(){return on},formInputTextHighlight:function(){return ou},formInputTextPlaceholder:function(){return oi},formInputTextPlaceholderSelected:function(){return oa},formInputTextReadOnlySelection:function(){return oe},formInputTextSelected:function(){return oo},formInputTextSelection:function(){return os},formLabelBackground:function(){return r3},formLabelText:function(){return r5},markdownDark:function(){return n1},markdownLight:function(){return n2},markdownNormal:function(){return n0},menuAutoCompleteBackground:function(){return nO},menuAutoCompleteBackgroundHover:function(){return nR},menuAutoCompleteText:function(){return nz},menuAutoCompleteTextHeader:function(){return nZ},menuBackground:function(){return nj},menuBorder:function(){return nD},menuBorderHover:function(){return nP},menuItemBackground:function(){return nC},menuItemBackgroundHover:function(){return nT},menuItemText:function(){return nE},menuItemTextHeader:function(){return nM},menuItemTextHover:function(){return nI},menuItemTextSelected:function(){return n_},menuKeybindingText:function(){return nA},mobileAccountShadow:function(){return nq},mobileAccountText:function(){return nY},mobileConfigServerViewTheme:function(){return nJ},mobileHeaderBackground:function(){return nB},mobileHeaderText:function(){return nH},mobileHeaderTextHover:function(){return nV},mobileHeaderTextSubdued:function(){return nF},mobileModalBackground:function(){return nG},mobileModalText:function(){return nX},mobileNavBackground:function(){return nU},mobileNavItem:function(){return n$},mobileNavItemSelected:function(){return nK},mobilePageBackground:function(){return nW},mobileViewTheme:function(){return nQ},modalBackground:function(){return nL},modalBorder:function(){return nN},noticeBackground:function(){return rz},noticeBackgroundDark:function(){return rL},noticeBackgroundLight:function(){return rZ},noticeBorder:function(){return rV},noticeText:function(){return rN},noticeTextDark:function(){return rH},noticeTextLight:function(){return rB},noticeTextMenu:function(){return rF},pageBackground:function(){return tU},pageBackgroundBottomRight:function(){return tq},pageBackgroundLineBottom:function(){return tX},pageBackgroundLineMid:function(){return tG},pageBackgroundLineTop:function(){return tY},pageBackgroundModalActive:function(){return t$},pageBackgroundTopLeft:function(){return tK},pageText:function(){return tQ},pageTextDark:function(){return t1},pageTextLight:function(){return tJ},pageTextLink:function(){return t4},pageTextLinkLight:function(){return t5},pageTextPositive:function(){return t2},pageTextSubdued:function(){return t0},pillBackground:function(){return op},pillBackgroundLight:function(){return og},pillBackgroundSelected:function(){return ow},pillBorder:function(){return oy},pillBorderDark:function(){return ox},pillBorderSelected:function(){return oS},pillText:function(){return ov},pillTextHighlighted:function(){return om},pillTextSelected:function(){return ob},reportsBlue:function(){return oj},reportsLabel:function(){return oC},reportsRed:function(){return ok},sidebarBackground:function(){return nm},sidebarItemAccnetSelected:function(){return nw},sidebarItemBackgroundFailed:function(){return nx},sidebarItemBackgroundHover:function(){return nb},sidebarItemBackgroundPositive:function(){return ny},sidebarItemText:function(){return nS},sidebarItemTextSelected:function(){return nk},tableBackground:function(){return t7},tableBorder:function(){return nu},tableBorderHover:function(){return nd},tableBorderSelected:function(){return nc},tableBorderSeparator:function(){return nf},tableHeaderBackground:function(){return nl},tableHeaderText:function(){return ns},tableRowBackgroundHighlight:function(){return nh},tableRowBackgroundHighlightText:function(){return np},tableRowBackgroundHover:function(){return t9},tableRowHeaderBackground:function(){return ng},tableRowHeaderText:function(){return nv},tableText:function(){return ne},tableTextHover:function(){return ni},tableTextInactive:function(){return na},tableTextLight:function(){return nt},tableTextSelected:function(){return no},tableTextSubdued:function(){return nn},upcomingBackground:function(){return r1},upcomingBorder:function(){return r4},upcomingText:function(){return r2},warningBackground:function(){return rW},warningBorder:function(){return rq},warningText:function(){return rU},warningTextDark:function(){return rK},warningTextLight:function(){return r$}});var o={};n.r(o);n.d(o,{buttonBareBackground:function(){return ag},buttonBareBackgroundActive:function(){return am},buttonBareBackgroundHover:function(){return av},buttonBareDisabledBackground:function(){return ax},buttonBareDisabledText:function(){return ay},buttonBareText:function(){return ah},buttonBareTextHover:function(){return ap},buttonMenuBackground:function(){return iF},buttonMenuBackgroundHover:function(){return iV},buttonMenuBorder:function(){return iW},buttonMenuSelectedBackground:function(){return iK},buttonMenuSelectedBackgroundHover:function(){return iq},buttonMenuSelectedBorder:function(){return iY},buttonMenuSelectedText:function(){return iU},buttonMenuSelectedTextHover:function(){return i$},buttonMenuText:function(){return iB},buttonMenuTextHover:function(){return iH},buttonNormalBackground:function(){return i8},buttonNormalBackgroundHover:function(){return i7},buttonNormalBorder:function(){return i9},buttonNormalDisabledBackground:function(){return aa},buttonNormalDisabledBorder:function(){return as},buttonNormalDisabledText:function(){return ai},buttonNormalSelectedBackground:function(){return ao},buttonNormalSelectedText:function(){return at},buttonNormalShadow:function(){return ae},buttonNormalText:function(){return i3},buttonNormalTextHover:function(){return i6},buttonPrimaryBackground:function(){return iQ},buttonPrimaryBackgroundHover:function(){return iJ},buttonPrimaryBorder:function(){return i0},buttonPrimaryDisabledBackground:function(){return i4},buttonPrimaryDisabledBorder:function(){return i5},buttonPrimaryDisabledText:function(){return i2},buttonPrimaryShadow:function(){return i1},buttonPrimaryText:function(){return iG},buttonPrimaryTextHover:function(){return iX},calendarBackground:function(){return au},calendarItemBackground:function(){return ad},calendarItemText:function(){return ac},calendarSelectedBackground:function(){return af},calendarText:function(){return al},cardBackground:function(){return oB},cardBorder:function(){return oH},cardShadow:function(){return oF},checkboxBackgroundSelected:function(){return a5},checkboxBorderSelected:function(){return a3},checkboxShadowSelected:function(){return a6},checkboxText:function(){return a4},errorBackground:function(){return aA},errorBorder:function(){return aL},errorText:function(){return aO},errorTextDark:function(){return aR},errorTextDarker:function(){return az},errorTextMenu:function(){return aZ},formInputBackground:function(){return aW},formInputBackgroundSelected:function(){return aU},formInputBackgroundSelection:function(){return a$},formInputBorder:function(){return aK},formInputBorderSelected:function(){return aY},formInputShadowSelected:function(){return a1},formInputText:function(){return aG},formInputTextHighlight:function(){return a2},formInputTextPlaceholder:function(){return aQ},formInputTextPlaceholderSelected:function(){return aJ},formInputTextReadOnlySelection:function(){return aq},formInputTextSelected:function(){return aX},formInputTextSelection:function(){return a0},formLabelBackground:function(){return aV},formLabelText:function(){return aF},markdownDark:function(){return iL},markdownLight:function(){return iN},markdownNormal:function(){return iZ},menuAutoCompleteBackground:function(){return im},menuAutoCompleteBackgroundHover:function(){return iy},menuAutoCompleteText:function(){return ix},menuAutoCompleteTextHeader:function(){return iw},menuBackground:function(){return ia},menuBorder:function(){return ip},menuBorderHover:function(){return ig},menuItemBackground:function(){return is},menuItemBackgroundHover:function(){return il},menuItemText:function(){return iu},menuItemTextHeader:function(){return ih},menuItemTextHover:function(){return ic},menuItemTextSelected:function(){return id},menuKeybindingText:function(){return iv},mobileAccountShadow:function(){return iD},mobileAccountText:function(){return iP},mobileConfigServerViewTheme:function(){return iz},mobileHeaderBackground:function(){return ik},mobileHeaderText:function(){return ij},mobileHeaderTextHover:function(){return iT},mobileHeaderTextSubdued:function(){return iC},mobileModalBackground:function(){return iA},mobileModalText:function(){return iO},mobileNavBackground:function(){return iI},mobileNavItem:function(){return i_},mobileNavItemSelected:function(){return iM},mobilePageBackground:function(){return iE},mobileViewTheme:function(){return iR},modalBackground:function(){return ib},modalBorder:function(){return iS},noticeBackground:function(){return aw},noticeBackgroundDark:function(){return aS},noticeBackgroundLight:function(){return ab},noticeBorder:function(){return aE},noticeText:function(){return ak},noticeTextDark:function(){return aC},noticeTextLight:function(){return aj},noticeTextMenu:function(){return aT},pageBackground:function(){return oT},pageBackgroundBottomRight:function(){return o_},pageBackgroundLineBottom:function(){return oP},pageBackgroundLineMid:function(){return oD},pageBackgroundLineTop:function(){return oM},pageBackgroundModalActive:function(){return oE},pageBackgroundTopLeft:function(){return oI},pageText:function(){return oA},pageTextDark:function(){return oz},pageTextLight:function(){return oO},pageTextLink:function(){return oL},pageTextLinkLight:function(){return oN},pageTextPositive:function(){return oZ},pageTextSubdued:function(){return oR},pillBackground:function(){return a8},pillBackgroundLight:function(){return a7},pillBackgroundSelected:function(){return so},pillBorder:function(){return st},pillBorderDark:function(){return sn},pillBorderSelected:function(){return sa},pillText:function(){return a9},pillTextHighlighted:function(){return se},pillTextSelected:function(){return si},reportsBlue:function(){return sl},reportsLabel:function(){return su},reportsRed:function(){return ss},sidebarBackground:function(){return o8},sidebarItemAccentSelected:function(){return it},sidebarItemBackgroundFailed:function(){return o9},sidebarItemBackgroundHover:function(){return ie},sidebarItemBackgroundPositive:function(){return o7},sidebarItemText:function(){return io},sidebarItemTextSelected:function(){return ii},tableBackground:function(){return oV},tableBorder:function(){return oJ},tableBorderHover:function(){return o1},tableBorderSelected:function(){return o0},tableBorderSeparator:function(){return o2},tableHeaderBackground:function(){return oQ},tableHeaderText:function(){return oX},tableRowBackgroundHighlight:function(){return o4},tableRowBackgroundHighlightText:function(){return o5},tableRowBackgroundHover:function(){return oW},tableRowHeaderBackground:function(){return o3},tableRowHeaderText:function(){return o6},tableText:function(){return oU},tableTextHover:function(){return oY},tableTextInactive:function(){return oG},tableTextLight:function(){return o$},tableTextSelected:function(){return oq},tableTextSubdued:function(){return oK},upcomingBackground:function(){return aN},upcomingBorder:function(){return aH},upcomingText:function(){return aB},warningBackground:function(){return aI},warningBorder:function(){return aP},warningText:function(){return a_},warningTextDark:function(){return aD},warningTextLight:function(){return aM}});var i={};n.r(i);n.d(i,{buttonBareBackground:function(){return l3},buttonBareBackgroundActive:function(){return l8},buttonBareBackgroundHover:function(){return l6},buttonBareDisabledBackground:function(){return l9},buttonBareDisabledText:function(){return l7},buttonBareText:function(){return l4},buttonBareTextHover:function(){return l5},buttonMenuBackground:function(){return lj},buttonMenuBackgroundHover:function(){return lC},buttonMenuBorder:function(){return lT},buttonMenuSelectedBackground:function(){return l_},buttonMenuSelectedBackgroundHover:function(){return lM},buttonMenuSelectedBorder:function(){return lD},buttonMenuSelectedText:function(){return lE},buttonMenuSelectedTextHover:function(){return lI},buttonMenuText:function(){return lS},buttonMenuTextHover:function(){return lk},buttonNormalBackground:function(){return lV},buttonNormalBackgroundHover:function(){return lW},buttonNormalBorder:function(){return lU},buttonNormalDisabledBackground:function(){return lG},buttonNormalDisabledBorder:function(){return lX},buttonNormalDisabledText:function(){return lY},buttonNormalSelectedBackground:function(){return lq},buttonNormalSelectedText:function(){return lK},buttonNormalShadow:function(){return l$},buttonNormalText:function(){return lH},buttonNormalTextHover:function(){return lF},buttonPrimaryBackground:function(){return lO},buttonPrimaryBackgroundHover:function(){return lR},buttonPrimaryBorder:function(){return lz},buttonPrimaryDisabledBackground:function(){return lN},buttonPrimaryDisabledBorder:function(){return lB},buttonPrimaryDisabledText:function(){return lL},buttonPrimaryShadow:function(){return lZ},buttonPrimaryText:function(){return lP},buttonPrimaryTextHover:function(){return lA},calendarBackground:function(){return lJ},calendarItemBackground:function(){return l1},calendarItemText:function(){return l0},calendarSelectedBackground:function(){return l2},calendarText:function(){return lQ},cardBackground:function(){return sj},cardBorder:function(){return sC},cardShadow:function(){return sT},checkboxBackgroundSelected:function(){return uN},checkboxBorderSelected:function(){return uB},checkboxShadowSelected:function(){return uH},checkboxText:function(){return uL},errorBackground:function(){return up},errorBorder:function(){return ux},errorText:function(){return ug},errorTextDark:function(){return uv},errorTextDarker:function(){return um},errorTextMenu:function(){return uy},formInputBackground:function(){return uC},formInputBackgroundSelected:function(){return uT},formInputBackgroundSelection:function(){return uE},formInputBorder:function(){return uI},formInputBorderSelected:function(){return uM},formInputShadowSelected:function(){return uz},formInputText:function(){return uD},formInputTextHighlight:function(){return uZ},formInputTextPlaceholder:function(){return uA},formInputTextPlaceholderSelected:function(){return uO},formInputTextReadOnlySelection:function(){return u_},formInputTextSelected:function(){return uP},formInputTextSelection:function(){return uR},formLabelBackground:function(){return uj},formLabelText:function(){return uk},markdownDark:function(){return lw},markdownLight:function(){return lb},markdownNormal:function(){return lx},menuAutoCompleteBackground:function(){return s7},menuAutoCompleteBackgroundHover:function(){return s9},menuAutoCompleteText:function(){return le},menuAutoCompleteTextHeader:function(){return lt},menuBackground:function(){return sQ},menuBorder:function(){return s3},menuBorderHover:function(){return s6},menuItemBackground:function(){return sJ},menuItemBackgroundHover:function(){return s0},menuItemText:function(){return s1},menuItemTextHeader:function(){return s5},menuItemTextHover:function(){return s2},menuItemTextSelected:function(){return s4},menuKeybindingText:function(){return s8},mobileAccountShadow:function(){return lh},mobileAccountText:function(){return lp},mobileConfigServerViewTheme:function(){return ly},mobileHeaderBackground:function(){return li},mobileHeaderText:function(){return la},mobileHeaderTextHover:function(){return ll},mobileHeaderTextSubdued:function(){return ls},mobileModalBackground:function(){return lg},mobileModalText:function(){return lv},mobileNavBackground:function(){return lc},mobileNavItem:function(){return ld},mobileNavItemSelected:function(){return lf},mobilePageBackground:function(){return lu},mobileViewTheme:function(){return lm},modalBackground:function(){return ln},modalBorder:function(){return lo},noticeBackground:function(){return ue},noticeBackgroundDark:function(){return un},noticeBackgroundLight:function(){return ut},noticeBorder:function(){return ul},noticeText:function(){return uo},noticeTextDark:function(){return ua},noticeTextLight:function(){return ui},noticeTextMenu:function(){return us},pageBackground:function(){return sc},pageBackgroundBottomRight:function(){return sh},pageBackgroundLineBottom:function(){return sv},pageBackgroundLineMid:function(){return sg},pageBackgroundLineTop:function(){return sp},pageBackgroundModalActive:function(){return sd},pageBackgroundTopLeft:function(){return sf},pageText:function(){return sm},pageTextDark:function(){return sw},pageTextLight:function(){return sy},pageTextLink:function(){return sS},pageTextLinkLight:function(){return sk},pageTextPositive:function(){return sb},pageTextSubdued:function(){return sx},pillBackground:function(){return uF},pillBackgroundLight:function(){return uV},pillBackgroundSelected:function(){return uq},pillBorder:function(){return u$},pillBorderDark:function(){return uK},pillBorderSelected:function(){return uG},pillText:function(){return uW},pillTextHighlighted:function(){return uU},pillTextSelected:function(){return uY},reportsBlue:function(){return uQ},reportsLabel:function(){return uJ},reportsRed:function(){return uX},sidebarBackground:function(){return sU},sidebarItemAccentSelected:function(){return sY},sidebarItemBackgroundFailed:function(){return sK},sidebarItemBackgroundHover:function(){return sq},sidebarItemBackgroundPositive:function(){return s$},sidebarItemText:function(){return sG},sidebarItemTextSelected:function(){return sX},tableBackground:function(){return sE},tableBorder:function(){return sZ},tableBorderHover:function(){return sN},tableBorderSelected:function(){return sL},tableBorderSeparator:function(){return sB},tableHeaderBackground:function(){return sz},tableHeaderText:function(){return sR},tableRowBackgroundHighlight:function(){return sH},tableRowBackgroundHighlightText:function(){return sF},tableRowBackgroundHover:function(){return sI},tableRowHeaderBackground:function(){return sV},tableRowHeaderText:function(){return sW},tableText:function(){return s_},tableTextHover:function(){return sA},tableTextInactive:function(){return sO},tableTextLight:function(){return sM},tableTextSelected:function(){return sP},tableTextSubdued:function(){return sD},upcomingBackground:function(){return uw},upcomingBorder:function(){return uS},upcomingText:function(){return ub},warningBackground:function(){return uu},warningBorder:function(){return uh},warningText:function(){return uc},warningTextDark:function(){return uf},warningTextLight:function(){return ud}});var a=n(99818);var s=n(67238);var l=n(90122);var u=n(43188);var c=n(66204);var f=n(37496);var h=n(50102);const p="#733309";const g="#87540d";const v="#B88115";const m="#D4A31C";const y="#E6BB20";const x="#F2D047";const w="#F5E35D";const b="#FCF088";const S="#FFF7C4";const k="#FFFBEA";const j="#FFFEFA";const C="#610316";const T="#8A041A";const E="#AB091E";const I="#CF1124";const _="#E12D39";const M="#EF4E4E";const D="#F86A6A";const P="#FF9B9B";const A="#FFBDBD";const O="#FFE3E3";const R="#FFF1F1";const z="#034388";const Z="#0B5FA3";const L="#1271BF";const N="#1980D4";const B="#2B8FED";const H="#40A5F7";const F="#66B5FA";const V="#8BCAFD";const W="#B3D9FF";const U="#E3F0FF";const $="#F5FCFF";const K="#102A43";const q="#243B53";const Y="#334E68";const G="#486581";const X="#627D98";const Q="#829AB1";const J="#9FB3C8";const ee="#BCCCDC";const et="#D9E2EC";const en="#E8ECF0";const er="#F7FAFC";const eo="#014D40";const ei="#0C6B58";const ea="#147D64";const es="#199473";const el="#27AB83";const eu="#3EBD93";const ec="#65D6AD";const ed="#8EEDC7";const ef="#C6F7E2";const eh="#EFFCF6";const ep="#FAFFFD";const eg="#44056E";const ev="#580A94";const em="#690CB0";const ey="#7A0ECC";const ex="#8719E0";const ew="#9446ED";const eb="#A368FC";const eS="#B990FF";const ek="#DAC4FF";const ej="#F2EBFE";const eC="#F9F6FE";const eT=null&&en;const eE="#fafafa";const eI=null&&W;const e_="#f6f8fa";const eM="#e8ecf0";const eD="#d4dae0";const eP="#bdc5cf";const eA="#98a1ae";const eO="#747c8b";const eR="#4d5768";const ez="#373b4a";const eZ="#242733";const eL="#141520";const eN="#080811";const eB=er;const eH=en;const eF=et;const eV=ee;const eW=J;const eU=Q;const e$=X;const eK=G;const eq=Y;const eY=q;const eG=K;const eX=$;const eQ=U;const eJ=W;const e0=V;const e1=F;const e2=H;const e4=B;const e5=N;const e3=L;const e6=Z;const e8=z;const e7=ep;const e9=eh;const te=ef;const tt=ed;const tn=ec;const tr=eu;const to=el;const ti=es;const ta=ea;const ts=ei;const tl=eo;const tu=j;const tc=k;const td=S;const tf=b;const th=w;const tp=x;const tg=y;const tv=m;const tm=v;const ty=g;const tx=p;const tw=R;const tb=O;const tS=A;const tk=P;const tj=D;const tC=M;const tT=_;const tE=I;const tI=E;const t_=T;const tM=C;const tD=eC;const tP=ej;const tA=ek;const tO=eS;const tR=eb;const tz=ew;const tZ=ex;const tL=ey;const tN=em;const tB=ev;const tH=eg;const tF="#ffffff";const tV="#000000";const tW=eE;const tU=eN;const t$=eL;const tK=eY;const tq=eZ;const tY=tz;const tG=eG;const tX=eF;const tQ=eF;const tJ=eW;const t0=e$;const t1=eH;const t2=tO;const t4=tz;const t5=tO;const t3=eL;const t6=tz;const t8=eq;const t7=eY;const t9=eq;const ne=eF;const nt=ne;const nn=e$;const no=eF;const ni=eU;const na=e$;const ns=eW;const nl=eq;const nu=eK;const nc=tz;const nd=tR;const nf=eU;const nh=tB;const np=eF;const ng=eq;const nv=eF;const nm=eG;const ny=to;const nx=tj;const nw=tO;const nb=eq;const nS=eF;const nk=tO;const nj=eK;const nC=eK;const nT=e$;const nE=eH;const nI=eB;const n_=tz;const nM=tZ;const nD=eY;const nP=tz;const nA=e$;const nO=eG;const nR=eK;const nz=eV;const nZ=tO;const nL=eL;const nN=eK;const nB=tB;const nH=eF;const nF=eP;const nV="rgba(200, 200, 200, .15)";const nW=eq;const nU=eY;const n$=eF;const nK=tz;const nq=t8;const nY=e6;const nG=eG;const nX=tF;const nQ=nB;const nJ=tZ;const n0=tN;const n1=tZ;const n2=tB;const n4=eV;const n5=n4;const n3="transparent";const n6="rgba(200, 200, 200, .25)";const n8=e$;const n7=ts;const n9=ty;const re=tf;const rt=th;const rn=re;const ro=tF;const ri=ro;const ra=tz;const rs=ra;const rl=ra;const ru="rgba(0, 0, 0, 0.6)";const rc=eq;const rd=eU;const rf=rd;const rh=eF;const rp=eF;const rg=eY;const rv=eK;const rm=eW;const ry="rgba(0, 0, 0, 0.4)";const rx=tF;const rw=tL;const rb=e$;const rS=eY;const rk=e$;const rj=eB;const rC=eG;const rT=eF;const rE=eY;const rI=rw;const r_=rh;const rM=rh;const rD="transparent";const rP="rgba(200, 200, 200, .3)";const rA="rgba(200, 200, 200, .5)";const rO=rb;const rR=rD;const rz=ts;const rZ=tl;const rL=to;const rN=tn;const rB=to;const rH=te;const rF=to;const rV=ts;const rW=ty;const rU=th;const r$=tg;const rK=tc;const rq=tg;const rY=t_;const rG=tk;const rX=tS;const rQ=rX;const rJ=tT;const r0=tT;const r1=tN;const r2=tP;const r4=nu;const r5=tA;const r3=e8;const r6=eY;const r8=eq;const r7=tz;const r9=eK;const oe=eY;const ot=tz;const on=eF;const oo=tV;const oi=eF;const oa=eH;const os=eY;const ol=tO;const ou=tz;const oc=ne;const od=tR;const of=tR;const oh=tZ;const op=eY;const og=eG;const ov=eV;const om=tO;const oy=eq;const ox=oy;const ow=tL;const ob=eF;const oS=tz;const ok=tj;const oj=e2;const oC=tQ;const oT=eH;const oE=eV;const oI=eH;const o_=eJ;const oM=tF;const oD=eH;const oP=eJ;const oA="#272630";const oO=e$;const oR=eW;const oz=eY;const oZ=tL;const oL=e5;const oN=e1;const oB=tF;const oH=tN;const oF=eq;const oV=tF;const oW=eB;const oU=oA;const o$=eU;const oK=eH;const oq=eq;const oY=eG;const oG=e$;const oX=eK;const oQ=tF;const oJ=eH;const o0=tZ;const o1=tz;const o2=eU;const o4=eJ;const o5=eq;const o3=eB;const o6=eY;const o8=eG;const o7=to;const o9=tj;const ie=eY;const it=tO;const io=eF;const ii=tO;const ia=tF;const is=eB;const il=eH;const iu=eG;const ic=iu;const id=tR;const ih=eU;const ip=eH;const ig=tP;const iv=eU;const im=eG;const iy=eK;const ix=tF;const iw=td;const ib=tF;const iS=tF;const ik=tz;const ij=eB;const iC=eP;const iT="rgba(200, 200, 200, .15)";const iE=eB;const iI=tF;const i_=eA;const iM=tZ;const iD=eW;const iP=e6;const iA=eG;const iO=tF;const iR=ik;const iz=tZ;const iZ=tA;const iL=tz;const iN=tP;const iB=eH;const iH=eB;const iF="transparent";const iV="rgba(200, 200, 200, .25)";const iW=e$;const iU=ts;const i$=ty;const iK=tf;const iq=th;const iY=iK;const iG=tF;const iX=iG;const iQ=tZ;const iJ=iQ;const i0=iQ;const i1="rgba(0, 0, 0, 0.3)";const i2=tF;const i4=eW;const i5=i4;const i3=eG;const i6=i3;const i8=tF;const i7=i8;const i9=eF;const ae="rgba(0, 0, 0, 0.2)";const at=tF;const ao=e5;const ai=eW;const aa=i8;const as=i9;const al=eB;const au=eG;const ac=eF;const ad=eY;const af=e$;const ah=i3;const ap=i3;const ag="transparent";const av="rgba(100, 100, 100, .15)";const am="rgba(100, 100, 100, .25)";const ay=ai;const ax=ag;const aw=te;const ab=e9;const aS=to;const ak=ta;const aj=to;const aC=tl;const aT=tt;const aE=to;const aI=tf;const a_=tm;const aM=tg;const aD=tx;const aP=tg;const aA=tb;const aO=tT;const aR=tI;const az=tM;const aZ=tk;const aL=tT;const aN=tP;const aB=tN;const aH=tZ;const aF=e5;const aV=e0;const aW=eB;const aU=tF;const a$=tZ;const aK=eF;const aq=eB;const aY=tZ;const aG=eG;const aX=eB;const aQ=eW;const aJ=eV;const a0=eH;const a1=tR;const a2=tO;const a4=oV;const a5=e4;const a3=e4;const a6=e1;const a8=eF;const a7=a8;const a9=eY;const se=tL;const st=eF;const sn=eW;const so=eJ;const si=e8;const sa=tZ;const ss=tj;const sl=e2;const su=eG;const sc=eH;const sd=eV;const sf=eH;const sh=eJ;const sp=tF;const sg=eH;const sv=eJ;const sm="#272630";const sy=e$;const sx=eW;const sw=eY;const sb=tL;const sS=e5;const sk=e1;const sj=tF;const sC=tN;const sT=eq;const sE=tF;const sI=eB;const s_=sm;const sM=eU;const sD=eH;const sP=eq;const sA=eG;const sO=e$;const sR=eK;const sz=tF;const sZ=eH;const sL=tZ;const sN=tz;const sB=eU;const sH=eJ;const sF=eq;const sV=eB;const sW=eY;const sU=eG;const s$=to;const sK=tj;const sq=eY;const sY=tO;const sG=eF;const sX=tO;const sQ=tF;const sJ=eB;const s0=eH;const s1=eG;const s2=s1;const s4=tR;const s5=eU;const s3=eH;const s6=tP;const s8=eU;const s7=eG;const s9=eK;const le=tF;const lt=td;const ln=tF;const lo=tF;const li=tz;const la=eB;const ls=eP;const ll="rgba(200, 200, 200, .15)";const lu=eB;const lc=tF;const ld=eA;const lf=tZ;const lh=eW;const lp=e6;const lg=eG;const lv=tF;const lm=li;const ly=tZ;const lx=tA;const lw=tz;const lb=tP;const lS=eH;const lk=eB;const lj="transparent";const lC="rgba(200, 200, 200, .25)";const lT=e$;const lE=ts;const lI=ty;const l_=tf;const lM=th;const lD=l_;const lP=tF;const lA=lP;const lO=tZ;const lR=lO;const lz=lO;const lZ="rgba(0, 0, 0, 0.3)";const lL=tF;const lN=eW;const lB=lN;const lH=eG;const lF=lH;const lV=tF;const lW=lV;const lU=eF;const l$="rgba(0, 0, 0, 0.2)";const lK=tF;const lq=e5;const lY=eW;const lG=lV;const lX=lU;const lQ=eB;const lJ=eG;const l0=eF;const l1=eY;const l2=e$;const l4=lH;const l5=lH;const l3="transparent";const l6="rgba(100, 100, 100, .15)";const l8="rgba(100, 100, 100, .25)";const l7=lY;const l9=l3;const ue=te;const ut=e9;const un=to;const uo=ta;const ui=to;const ua=tl;const us=tt;const ul=to;const uu=tf;const uc=tm;const ud=tg;const uf=tx;const uh=tg;const up=tb;const ug=tT;const uv=tI;const um=tM;const uy=tk;const ux=tT;const uw=tP;const ub=tN;const uS=tZ;const uk=e5;const uj=e0;const uC=eB;const uT=tF;const uE=tZ;const uI=eF;const u_=eB;const uM=tZ;const uD=eG;const uP=eB;const uA=eW;const uO=eV;const uR=eH;const uz=tR;const uZ=tO;const uL=sE;const uN=e4;const uB=e4;const uH=e1;const uF=eF;const uV=eH;const uW=eY;const uU=tL;const u$=eF;const uK=eW;const uq=eJ;const uY=e8;const uG=tZ;const uX=tj;const uQ=e2;const uJ=eG;const u0={light:{name:"Light",colors:i},dark:{name:"Dark",colors:r},auto:{name:"System default",colors:r},...(0,h.Ry)()&&{development:{name:"Development",colors:o}}};const u1=Object.entries(u0).map(([e,{name:t}])=>[e,t]);function u2(){return(0,f.v9)(e=>e.prefs.global?.theme)||"light"}function u4(){const e=u2();const[t,n]=(0,c.useState)(undefined);(0,c.useEffect)(()=>{if(e==="auto"){function t(e){if(e.matches){n(u0["dark"].colors)}else{n(u0["light"].colors)}}const e=window.matchMedia("(prefers-color-scheme: dark)");e.addEventListener("change",t);if(e.matches){n(u0["dark"].colors)}else{n(u0["light"].colors)}return()=>{e.removeEventListener("change",t)}}else{n(u0[e].colors)}},[e]);if(!t)return null;const r=Object.keys(t).map(e=>` --color-${e}: ${t[e]};`).join("\n");return(0,u.jsx)("style",{children:`:root {
|
|
200
|
+
${r}}`})}const u5=Object.fromEntries(Object.keys(i).map(e=>[e,`var(--color-${e})`]));const u3={incomeHeaderHeight:70,cardShadow:"0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)",monthRightPadding:5,menuBorderRadius:4,mobileEditingPadding:12,altMenuMaxHeight:250,altMenuText:{fontSize:13},altMenuHeaderText:{fontSize:13,fontWeight:700},veryLargeText:{fontSize:30,fontWeight:600},largeText:{fontSize:20,fontWeight:700,letterSpacing:.5},mediumText:{fontSize:15,fontWeight:500},smallText:{fontSize:13},verySmallText:{fontSize:13},page:{flex:1,"@media (max-height: 550px)":{minHeight:700},paddingTop:8,[`@media (min-width: ${l.Z.breakpoint_small})`]:{paddingTop:36}},pageContent:{paddingLeft:2,paddingRight:2,[`@media (min-width: ${l.Z.breakpoint_small})`]:{paddingLeft:20,paddingRight:20}},settingsPageContent:{padding:20,[`@media (min-width: ${l.Z.breakpoint_small})`]:{padding:"inherit"}},staticText:{cursor:"default",userSelect:"none"},shadow:{boxShadow:"0 2px 4px 0 rgba(0,0,0,0.1)"},shadowLarge:{boxShadow:"0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)"},tnum:{fontFeatureSettings:'"tnum"'},notFixed:{fontFeatureSettings:""},text:{fontSize:16},delayedFadeIn:{animationName:(0,a.F4)({"0%":{opacity:0},"100%":{opacity:1}}),animationDuration:"1s",animationFillMode:"both",animationDelay:"0.5s"},underlinedText:{textDecoration:"underline",textDecorationThickness:2,textDecorationColor:u5.pillBorder},noTapHighlight:{WebkitTapHighlightColor:"transparent",":focus":{outline:"none"}},lineClamp:e=>{return{display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word"}},lightScrollbar:null,darkScrollbar:null,scrollbarWidth:null};let u6=false;function u8(){u3.lightScrollbar=!u6&&{"& ::-webkit-scrollbar":{width:11,backgroundColor:"rgba(200, 200, 200, .2)"},"& ::-webkit-scrollbar-thumb":{width:7,borderRadius:30,backgroundClip:"padding-box",border:"2px solid rgba(0, 0, 0, 0)"},"& ::-webkit-scrollbar-thumb:vertical":{backgroundColor:"#d0d0d0"}};u3.darkScrollbar=!u6&&{"& ::-webkit-scrollbar":{width:7,backgroundColor:"rgba(0, 0, 0, 0)"},"& ::-webkit-scrollbar-thumb:vertical":{backgroundColor:"rgba(200, 200, 200, .5)"}};u3.scrollbarWidth=u6?0:13}if(s.OB==="web"){function u7(){const e=document.createElement("div");e.innerHTML='<div style="width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px;"/>';document.body.appendChild(e);const t=e.childNodes[0];if(t.offsetWidth===t.clientWidth){return true}return false}u6=u7();u8();window.addEventListener("focus",()=>{u6=u7();u8()})}const u9=()=>u6;},90122:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r;(function(e){e["small"]="small";e["medium"]="medium";e["wide"]="wide"})(r||(r={}));const o={small:512,medium:730,wide:1100};const i=Object.entries(o).reduce((e,[t,n])=>{e[`breakpoint_${t}`]=`${n}px`;return e},{});t.Z=i},55833:function(e,t,n){"use strict";n.d(t,{M:function(){return l},Y:function(){return c}});var r=n(66204);var o=n(42696);var i=n.n(o);var a=n(84094);const s=(0,r.createContext)(undefined);function l(){return(0,r.useContext)(s)}function u(){const e={};const t=new(i())({max:1200});const n={};let r=false;class o{observeCell(t,r){if(!e[t]){e[t]=[]}e[t].push(r);return()=>{e[t]=e[t].filter(e=>e!==r);if(e[t].length===0){n[t]=null}}}disableObservers(){r=true}enableObservers(){r=false}prewarmCache(e,n){t.set(e,n)}listen(){return(0,a.oL)("cells-changed",function(o){if(!r){o.forEach(r=>{const o=e[r.name];if(o){o.forEach(e=>e(r));n[r.name]=Promise.resolve(r);t.set(r.name,r)}})}})}bind(e="__global",r,o,i){r=typeof r==="string"?{name:r,value:null}:r;const a=`${e}!${r.name}`;const s=this.observeCell(a,i);if(t.has(a)){i(t.get(a))}if(n[a]!=null){n[a].then(i)}else{const o=this.get(e,r.name);n[a]=o;o.then(e=>{if(n[a]===o){t.set(a,e);i(e)}})}return s}get(e,t){return(0,a.lW)("getCell",{sheetName:e,name:t})}getCellNames(e){return(0,a.lW)("getCellNamesInSheet",{sheetName:e})}createQuery(e,t,n){return(0,a.lW)("create-query",{sheetName:e,name:t,query:n.serialize()})}}return new o}function c({children:e}){const t=(0,r.useMemo)(()=>u(),[]);(0,r.useEffect)(()=>{return t.listen()},[t]);return r.createElement(s.Provider,{value:t},e)}},13265:function(e,t,n){"use strict";n.d(t,{GL:function(){return a},KT:function(){return s},Np:function(){return i},cT:function(){return u},ht:function(){return l},si:function(){return c}});var r=n(84094);var o=n(62601);function i(e){return{type:o.wH,state:e}}function a(e){return()=>{(0,r.S1)(e)}}function s(){return async e=>{n.g.Actual.applyAppUpdate();e(i({updateInfo:null}))}}function l(e){return{type:o.HT,undoState:e}}function u(e,t){return()=>{return(0,r.lW)("upload-file-web",{filename:e,contents:t})}}function c(){return()=>{return(0,r.lW)("app-focused")}}},99103:function(e,t,n){"use strict";n.d(t,{$u:function(){return c},NK:function(){return h},S2:function(){return w},VM:function(){return g},aK:function(){return u},ef:function(){return y},ej:function(){return p},g4:function(){return b},il:function(){return x},nu:function(){return f},sX:function(){return v},xp:function(){return m}});var r=n(84094);var o=n(40400);var i=n(62601);var a=n(13265);var s=n(24418);var l=n(50389);function u(){return async e=>{const t=await (0,r.lW)("get-budgets");e({type:i.Ud,budgets:t})}}function c(){return async e=>{const t=await (0,r.lW)("get-remote-files");e({type:i.Oi,files:t})}}function f(){return async(e,t)=>{const n=await (0,r.lW)("get-budgets");const o=await (0,r.lW)("get-remote-files");e({type:i.GY,budgets:n,remoteFiles:o});return t().budgets.allFiles}}function h(e,t="",n={}){return async i=>{i((0,a.Np)({loadingText:t}));const{error:u}=await (0,r.lW)("load-budget",{id:e,...n});if(u){const t=(0,o.FL)(u,e);if(u==="out-of-sync-migrations"||u==="out-of-sync-data"){if(typeof window.confirm!=="undefined"){const n=window.confirm(t+" Make sure the app is up-to-date. Do you want to load a backup?");if(n){i((0,s.Ll)("load-backup",{budgetId:e}))}}else{alert(t+" Make sure the app is up-to-date.")}}else{alert(t)}i((0,a.Np)({loadingText:null}));return}i((0,s.Mr)());await i((0,l.D0)());i((0,a.Np)({loadingText:null}))}}function p(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){e({type:i.DC});e((0,a.Np)({loadingText:"Closing..."}));await (0,r.lW)("close-budget");e((0,a.Np)({loadingText:null}));if(localStorage.getItem("SharedArrayBufferOverride")){window.location.reload()}}}}function g(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){e({type:i.DC})}}}function v(e,t){return async n=>{await (0,r.lW)("delete-budget",{id:e,cloudFileId:t});await n(f())}}function m({testMode:e=false,demoMode:t=false}={}){return async n=>{n((0,a.Np)({loadingText:e||t?"Making demo...":""}));if(t){await (0,r.lW)("create-demo-budget")}else{await (0,r.lW)("create-budget",{testMode:e})}n((0,s.Mr)());await n(f());await n((0,l.D0)());n((0,a.Np)({loadingText:null}))}}function y(e,t){return async n=>{const{error:o}=await (0,r.lW)("import-budget",{filepath:e,type:t});if(o){throw new Error(o)}n((0,s.Mr)());await n((0,l.D0)());window.__navigate("/budget")}}function x(e){return async t=>{const{error:n}=await (0,r.lW)("upload-budget",{id:e});if(n){return{error:n}}await t(f());return{}}}function w(e){return async t=>{t((0,a.Np)({loadingText:"Downloading..."}));await t(p());t(b(e,{replace:true}))}}function b(e,{replace:t=false}={}){return async n=>{n((0,a.Np)({loadingText:"Downloading..."}));const{id:i,error:u}=await (0,r.lW)("download-budget",{fileId:e,replace:t});if(u){if(u.reason==="decrypt-failure"){const r={hasExistingKey:u.meta&&u.meta.isMissingKey,cloudFileId:e,onSuccess:()=>{n(b(e,{replace:t}))}};n((0,s.Ll)("fix-encryption-key",r));n((0,a.Np)({loadingText:null}))}else if(u.reason==="file-exists"){alert(`A file with id “${u.meta.id}” already exists with the name “${u.meta.name}.” `+"This file will be replaced. This probably happened because files were manually "+"moved around outside of Actual.");return n(b(e,{replace:true}))}else{n((0,a.Np)({loadingText:null}));alert((0,o.Ip)(u))}return null}else{await Promise.all([n((0,l.Pt)()),n(f()),n(h(i))]);n((0,a.Np)({loadingText:null}))}return i}}},43044:function(e,t,n){"use strict";n.r(t);n.d(t,{addGenericErrorNotification:function(){return a.R},addNotification:function(){return a.wN},applyBudgetAction:function(){return r.qu},closeAccount:function(){return r.Rc},closeAndDownloadBudget:function(){return j.S2},closeBudget:function(){return j.ej},closeBudgetUI:function(){return j.VM},closeModal:function(){return S.Mr},collapseModals:function(){return S.Sr},connectAccounts:function(){return p},connectGoCardlessAccounts:function(){return g},createAccount:function(){return r.o1},createBudget:function(){return j.xp},createCategory:function(){return r.k4},createGroup:function(){return r.sS},createPayee:function(){return r.fz},deleteBudget:function(){return j.sX},deleteCategory:function(){return r.uu},deleteGroup:function(){return r.iE},downloadBudget:function(){return j.g4},focused:function(){return C.si},forceCloseAccount:function(){return r.X_},getAccounts:function(){return r.T8},getCategories:function(){return r.CP},getPayees:function(){return r.WJ},getUserData:function(){return P.is},importBudget:function(){return j.ef},importTransactions:function(){return x},initiallyLoadPayees:function(){return r.Rr},linkAccount:function(){return h},loadAllFiles:function(){return j.nu},loadBackup:function(){return T},loadBudget:function(){return j.NK},loadBudgets:function(){return j.aK},loadGlobalPrefs:function(){return k.Pt},loadPrefs:function(){return k.D0},loadRemoteFiles:function(){return j.$u},loggedIn:function(){return P.Pl},makeBackup:function(){return E},markAccountFailed:function(){return l},markAccountRead:function(){return b},markAccountSuccess:function(){return u},moveCategory:function(){return r.Wr},moveCategoryGroup:function(){return r.eq},openAccountCloseModal:function(){return r.bJ},parseTransactions:function(){return y},popModal:function(){return S.GZ},pushModal:function(){return S.Ll},reconnect:function(){return C.GL},redo:function(){return r.KX},removeNotification:function(){return a.FV},reopenAccount:function(){return r.ly},replaceModal:function(){return S.OB},resetSync:function(){return _},saveGlobalPrefs:function(){return k.EY},savePrefs:function(){return k.p},setAccountsSyncing:function(){return s},setAppState:function(){return C.Np},setFailedAccounts:function(){return c},setLastTransaction:function(){return m},setLastUndoState:function(){return C.ht},setUndoEnabled:function(){return r.Ew},signOut:function(){return P.w7},sync:function(){return M},syncAccounts:function(){return v},syncAndDownload:function(){return D},undo:function(){return r.Yw},unlinkAccount:function(){return f},updateAccount:function(){return r.sG},updateApp:function(){return C.KT},updateCategory:function(){return r.yr},updateGroup:function(){return r.mD},updateNewTransactions:function(){return w},uploadBudget:function(){return j.il},uploadFile:function(){return C.cT}});var r=n(13910);var o=n(84094);var i=n(62601);var a=n(50898);function s(e){return{type:i._V,name:e}}function l(e,t,n){return{type:"ACCOUNT_SYNC_STATUS",id:e,failed:true,errorType:t,errorCode:n}}function u(e){return{type:"ACCOUNT_SYNC_STATUS",id:e,failed:false}}function c(e){return{type:i.Co,syncErrors:e}}function f(e){return async t=>{await (0,o.lW)("account-unlink",{id:e});t(u(e));t((0,r.T8)())}}function h(e,t,n){return async i=>{await (0,o.lW)("gocardless-accounts-link",{requisitionId:e,account:t,upgradingId:n});await i((0,r.WJ)());await i((0,r.T8)())}}function p(e,t,n,i){return async a=>{const s=await (0,o.lW)("accounts-connect",{institution:e,publicToken:t,accountIds:n,offbudgetIds:i});await a((0,r.WJ)());await a((0,r.T8)());return s}}function g(e,t,n,i){return async a=>{const s=await (0,o.lW)("gocardless-accounts-connect",{institution:e,publicToken:t,accountIds:n,offbudgetIds:i});await a((0,r.WJ)());await a((0,r.T8)());return s}}function v(e){return async(t,n)=>{if(n().account.accountsSyncing){return false}if(e){const r=n().queries.accounts.find(t=>t.id===e);t(s(r.name))}else{t(s("__all"))}const{errors:r,newTransactions:f,matchedTransactions:h,updatedAccounts:p}=await (0,o.lW)("gocardless-accounts-sync",{id:e});t(s(null));if(e){const n=r.find(t=>t.accountId===e);if(n){if(n.type==="SyncError"){t(l(e,n.category,n.code))}}else{t(u(e))}}else{t(c(r.filter(e=>e.type==="SyncError").map(e=>({id:e.accountId,type:e.category,code:e.code}))))}r.forEach(e=>{if(e.type==="SyncError"){t((0,a.wN)({type:"error",message:e.message}))}else{t((0,a.wN)({type:"error",message:e.message,internal:e.internal}))}});t({type:i.GZ,newTransactions:f,matchedTransactions:h,updatedAccounts:p});return f.length>0||h.length>0}}function m(e){return{type:i.Vi,transaction:e}}function y(e,t){return async n=>{return await (0,o.lW)("transactions-parse-file",{filepath:e,options:t})}}function x(e,t){return async n=>{const{errors:r=[],added:s,updated:l}=await (0,o.lW)("transactions-import",{accountId:e,transactions:t});r.forEach(e=>{n((0,a.wN)({type:"error",message:e.message}))});n({type:i.GZ,newTransactions:s,matchedTransactions:l,updatedAccounts:s.length>0?[e]:[]});return s.length>0||l.length>0}}function w(e){return{type:i.kY,changedId:e}}function b(e){return{type:i.ER,accountId:e}}var S=n(24418);var k=n(50389);var j=n(99103);var C=n(13265);function T(e,t){return async(n,r)=>{const i=r().prefs.local;if(i&&i.id){await n((0,j.ej)())}await (0,o.lW)("backup-load",{id:e,backupId:t});n((0,j.NK)(e))}}function E(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){await (0,o.lW)("backup-make",{id:n.id})}}}var I=n(40400);function _(){return async e=>{const{error:t}=await (0,o.lW)("sync-reset");if(t){alert((0,I.wg)(t));if(t.reason==="encrypt-failure"&&t.meta.isMissingKey||t.reason==="file-has-new-key"){e((0,S.Ll)("fix-encryption-key",{onSuccess:()=>{e(_())}}))}else if(t.reason==="encrypt-failure"){e((0,S.Ll)("create-encryption-key",{recreate:true}))}}else{await e(M());await e((0,k.D0)())}}}function M(){return async(e,t)=>{const n=t().prefs.local;if(n&&n.id){const e=await (0,o.lW)("sync");if("error"in e){return{error:e.error}}return{}}}}function D(e){return async t=>{const n=await t(M());if(n.error){return{error:n.error}}const r=await t(v(e));if(r){const e=await t(M());if(e.error){return{error:e.error}}return true}return{hasUpdated:r}}}var P=n(92178);},24418:function(e,t,n){"use strict";n.d(t,{GZ:function(){return a},Ll:function(){return o},Mr:function(){return s},OB:function(){return i},Sr:function(){return l}});var r=n(62601);function o(e,t){const n={name:e,options:t};return{type:r.jw,modal:n}}function i(e,t){const n={name:e,options:t};return{type:r.JA,modal:n}}function a(){return{type:r.TZ}}function s(){return{type:r.et}}function l(e){return{type:r.DG,rootModalName:e}}},50898:function(e,t,n){"use strict";n.d(t,{FV:function(){return s},R:function(){return a},wN:function(){return i}});var r=n(26505);var o=n(62601);function i(e){return{type:o.Dv,notification:{...e,id:e.id||(0,r.Z)()}}}function a(){return i({type:"error",message:"Something internally went wrong. You may want to restart the app if anything looks wrong. "+"Please report this as a new issue on Github."})}function s(e){return{type:o.Kf,id:e}}},50389:function(e,t,n){"use strict";n.d(t,{D0:function(){return a},EY:function(){return u},Pt:function(){return l},p:function(){return s}});var r=n(84094);var o=n(62601);var i=n(24418);function a(){return async(e,t)=>{const n=await (0,r.lW)("load-prefs");const a=t().prefs.local;if(n&&n.id&&!a){e((0,i.Mr)())}e({type:o.px,prefs:n,globalPrefs:await (0,r.lW)("load-global-prefs")});return n}}function s(e){return async t=>{await (0,r.lW)("save-prefs",e);t({type:o.uF,prefs:e})}}function l(){return async(e,t)=>{const n=await (0,r.lW)("load-global-prefs");e({type:o.px,prefs:t().prefs.local,globalPrefs:n});return n}}function u(e){return async t=>{await (0,r.lW)("save-global-prefs",e);t({type:o.CH,globalPrefs:e})}}},13910:function(e,t,n){"use strict";n.d(t,{CP:function(){return c},Ew:function(){return A},KX:function(){return R},Rc:function(){return E},Rr:function(){return b},T8:function(){return k},WJ:function(){return w},Wr:function(){return g},X_:function(){return _},Yw:function(){return O},bJ:function(){return T},eq:function(){return v},fz:function(){return S},iE:function(){return x},k4:function(){return f},ly:function(){return I},mD:function(){return y},o1:function(){return C},qu:function(){return u},sG:function(){return j},sS:function(){return m},uu:function(){return h},yr:function(){return p}});var r=n(49090);var o=n.n(r);var i=n(84094);var a=n(62601);var s=n(24418);var l=n(50898);function u(e,t,n){return async r=>{switch(t){case"budget-amount":await (0,i.lW)("budget/budget-amount",{month:e,category:n.category,amount:n.amount});break;case"copy-last":await (0,i.lW)("budget/copy-previous-month",{month:e});break;case"set-zero":await (0,i.lW)("budget/set-zero",{month:e});break;case"set-3-avg":await (0,i.lW)("budget/set-3month-avg",{month:e});break;case"check-templates":r((0,l.wN)(await (0,i.lW)("budget/check-templates")));break;case"apply-goal-template":await (0,i.lW)("budget/apply-goal-template",{month:e});break;case"overwrite-goal-template":await (0,i.lW)("budget/overwrite-goal-template",{month:e});break;case"cleanup-goal-template":r((0,l.wN)(await (0,i.lW)("budget/cleanup-goal-template",{month:e})));break;case"hold":await (0,i.lW)("budget/hold-for-next-month",{month:e,amount:n.amount});break;case"reset-hold":await (0,i.lW)("budget/reset-hold",{month:e});break;case"cover":await (0,i.lW)("budget/cover-overspending",{month:e,to:n.to,from:n.from});break;case"transfer-available":await (0,i.lW)("budget/transfer-available",{month:e,amount:n.amount,category:n.category});break;case"transfer-category":await (0,i.lW)("budget/transfer-category",{month:e,amount:n.amount,from:n.from,to:n.to});break;case"carryover":{await (0,i.lW)("budget/set-carryover",{startMonth:e,category:n.category,flag:n.flag});break}case"apply-single-category-template":await (0,i.lW)("budget/apply-single-template",{month:e,category:n.category});break;case"set-single-3-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:3,category:n.category});break;case"set-single-6-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:6,category:n.category});break;case"set-single-12-avg":await (0,i.lW)("budget/set-n-month-avg",{month:e,N:12,category:n.category});break;case"copy-single-last":await (0,i.lW)("budget/copy-single-month",{month:e,category:n.category});break;default:}}}function c(){return async e=>{const t=await (0,i.lW)("get-categories");e({type:a.X6,categories:t});return t}}function f(e,t,n,r){return async o=>{const a=await (0,i.lW)("category-create",{name:e,groupId:t,isIncome:n,hidden:r});o(c());return a}}function h(e,t){return async n=>{const{error:r}=await (0,i.lW)("category-delete",{id:e,transferId:t});if(r){switch(r){case"category-type":n((0,l.wN)({type:"error",message:"A category must be transferred to another of the same type (expense or income)"}));break;default:n((0,l.R)())}throw new Error(r)}else{n(c());n(w())}}}function p(e){return async t=>{await (0,i.lW)("category-update",e);t(c())}}function g(e,t,n){return async r=>{await (0,i.lW)("category-move",{id:e,groupId:t,targetId:n});await r(c())}}function v(e,t){return async n=>{await (0,i.lW)("category-group-move",{id:e,targetId:t});await n(c())}}function m(e){return async t=>{const n=await (0,i.lW)("category-group-create",{name:e});t(c());return n}}function y(e){const{categories:t,...n}=e;return async e=>{await (0,i.lW)("category-group-update",n);await e(c())}}function x(e,t){return async function(n,r){await (0,i.lW)("category-group-delete",{id:e,transferId:t});await n(c());await n(w())}}function w(){return async e=>{const t=await (0,i.lW)("payees-get");e({type:a.gp,payees:t});return t}}function b(){return async(e,t)=>{if(t().queries.payees.length===0){return e(w())}}}function S(e){return async()=>{return(0,i.lW)("payee-create",{name:e.trim()})}}function k(){return async e=>{const t=await (0,i.lW)("accounts-get");e({type:a.WF,accounts:t});return t}}function j(e){return async t=>{t({type:a.$E,account:e});await (0,i.lW)("account-update",e)}}function C(e,t,n){return async r=>{const o=await (0,i.lW)("account-create",{name:e,balance:t,offBudget:n});await r(k());await r(w());return o}}function T(e){return async(t,n)=>{const{balance:r,numTransactions:o}=await (0,i.lW)("account-properties",{id:e});const a=n().queries.accounts.find(t=>t.id===e);t((0,s.Ll)("close-account",{account:a,balance:r,canDelete:o===0}))}}function E(e,t,n,r){return async o=>{await (0,i.lW)("account-close",{id:e,transferAccountId:t,categoryId:n,forced:r});o(k())}}function I(e){return async t=>{await (0,i.lW)("account-reopen",{id:e});t(k())}}function _(e){return E(e,null,null,true)}const M=o()(()=>(0,i.lW)("undo"),100);const D=o()(()=>(0,i.lW)("redo"),100);let P=true;function A(e){P=e}function O(){return async()=>{if(P){M()}}}function R(){return async()=>{if(P){D()}}}},92178:function(e,t,n){"use strict";n.d(t,{Pl:function(){return l},is:function(){return s},w7:function(){return u}});var r=n(84094);var o=n(62601);var i=n(99103);var a=n(50389);function s(){return async e=>{const t=await (0,r.lW)("subscribe-get-user");e({type:o.q1,data:t});return t}}function l(){return async e=>{await e(s());e((0,i.nu)())}}function u(){return async e=>{await (0,r.lW)("subscribe-sign-out");e(s());e((0,a.Pt)());e((0,i.ej)());e({type:o.dp})}}},62601:function(e,t,n){"use strict";n.d(t,{$E:function(){return l},CH:function(){return p},Co:function(){return P},DC:function(){return y},DG:function(){return k},Dv:function(){return C},ER:function(){return a},GY:function(){return m},GZ:function(){return r},HT:function(){return I},JA:function(){return b},Kf:function(){return T},Oi:function(){return v},TZ:function(){return j},Ud:function(){return g},VM:function(){return _},Vi:function(){return i},WF:function(){return s},X6:function(){return u},_V:function(){return M},cV:function(){return D},dp:function(){return A},et:function(){return S},gp:function(){return c},jw:function(){return w},kY:function(){return o},px:function(){return f},q1:function(){return E},uF:function(){return h},wH:function(){return x}});const r="SET_NEW_TRANSACTIONS";const o="UPDATE_NEW_TRANSACTIONS";const i="SET_LAST_TRANSACTION";const a="MARK_ACCOUNT_READ";const s="LOAD_ACCOUNTS";const l="UPDATE_ACCOUNT";const u="LOAD_CATEGORIES";const c="LOAD_PAYEES";const f="SET_PREFS";const h="MERGE_LOCAL_PREFS";const p="MERGE_GLOBAL_PREFS";const g="SET_BUDGETS";const v="SET_REMOTE_FILES";const m="SET_ALL_FILES";const y="CLOSE_BUDGET";const x="SET_APP_STATE";const w="PUSH_MODAL";const b="REPLACE_MODAL";const S="CLOSE_MODAL";const k="COLLAPSE_MODALS";const j="POP_MODAL";const C="ADD_NOTIFICATION";const T="REMOVE_NOTIFICATION";const E="GET_USER_DATA";const I="SET_LAST_UNDO_STATE";const _="SET_LAST_SPLIT_STATE";const M="SET_ACCOUNTS_SYNCING";const D="ACCOUNT_SYNC_STATUS";const P="ACCOUNT_SYNC_FAILURES";const A="SIGN_OUT"},99548:function(e,t,n){"use strict";n.d(t,{BB:function(){return u},Re:function(){return c},gM:function(){return f}});var r=n(66204);var o=n(10959);var i=n(69304);var a=n(18748);function s(){return(0,i.y)(()=>(0,o.ZP)("accounts").select("*"),[])}const l=(0,r.createContext)(null);function u({children:e}){const t=s();return r.createElement(l.Provider,{value:t},e)}function c({children:e,idKey:t}){const n=f({idKey:t});return e(n)}function f({idKey:e}={}){const t=(0,r.useContext)(l);return e&&t?(0,a.gI)(t):t}},16261:function(e,t,n){"use strict";n.d(t,{m:function(){return s}});var r=n(66204);var o=n(10959);var i=n(69304);function a(e){const t=e.map(e=>{return{...e.fields,id:e.id,name:e.name,tombstone:e.tombstone,conditionsOp:e.conditions_op,conditions:e.conditions}});return t}function s(){const e=a((0,i.y)(()=>(0,o.ZP)("transaction_filters").select("*"),[])||[]);function t(e){return e.sort((e,t)=>e.name.trim().localeCompare(t.name.trim(),{ignorePunctuation:true}))}return(0,r.useMemo)(()=>t(e),[e])}},68761:function(e,t,n){"use strict";n.d(t,{Zr:function(){return u},mp:function(){return c},n4:function(){return f}});var r=n(66204);var o=n(10959);var i=n(69304);var a=n(18748);function s(){return(0,i.y)(()=>(0,o.ZP)("payees").select("*"),[])}const l=(0,r.createContext)(null);function u({children:e}){const t=s();return r.createElement(l.Provider,{value:t},e)}function c({children:e,idKey:t}){const n=f({idKey:t});return e(n)}function f({idKey:e}={}){const t=(0,r.useContext)(l);return e&&t?(0,a.yG)(t):t}},62829:function(e,t,n){"use strict";n.d(t,{gZ:function(){return s},oF:function(){return c},up:function(){return u}});var r=n(66204);var o=n(11504);var i=n(10959);function a(e,t){return(0,i.Y1)((0,o.eJ)(e),t,{mapper:t=>{const n=new Set(t.filter(Boolean).map(e=>e.schedule));return new Map(e.map(e=>[e.id,(0,o.lR)(e.next_date,e.completed,n.has(e.id))]))}})}function s({transform:e}={}){const[t,n]=(0,r.useState)(null);(0,r.useEffect)(()=>{const t=(0,i.ZP)("schedules").select("*");let r;const o=(0,i.Y1)(e?e(t):t,async e=>{if(o){if(r){r.unsubscribe()}r=a(e,t=>n({schedules:e,statuses:t}))}});return()=>{if(o){o.unsubscribe()}if(r){r.unsubscribe()}}},[e]);return t}const l=(0,r.createContext)(null);function u({transform:e,children:t}){const n=s({transform:e});return r.createElement(l.Provider,{value:n},t)}function c(){return(0,r.useContext)(l)}},67238:function(e,t,n){"use strict";n.d(t,{$8:function(){return i},OB:function(){return s},OS:function(){return a},jU:function(){return l}});const r=navigator.platform&&navigator.platform.toLowerCase()==="win32";const o=navigator.platform&&navigator.platform.toUpperCase().indexOf("MAC")>=0;const i=navigator.userAgent==="playwright";const a=r?"windows":o?"mac":"linux";const s="web";const l=true},69247:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37496);function o(){return(0,r.v9)(e=>e.prefs?.local?.isPrivacyEnabled??false)}},46055:function(e,t,n){"use strict";n.d(t,{An:function(){return g},Gm:function(){return h},PK:function(){return l},SZ:function(){return p},aK:function(){return x},cW:function(){return f},jS:function(){return c},sX:function(){return y},u8:function(){return w},yf:function(){return u}});var r=n(8780);var o=n(25432);var i=n(73416);var a=n(63654);var s=n(89362);function l(e,t="account"){if(e){if(e==="budgeted"){return{$and:[{[`${t}.offbudget`]:false},{[`${t}.closed`]:false}]}}else if(e==="offbudget"){return{$and:[{[`${t}.offbudget`]:true},{[`${t}.closed`]:false}]}}else if(e==="uncategorized"){return{[`${t}.offbudget`]:false,category:null,is_parent:false,$or:[{"payee.transfer_acct.offbudget":true,"payee.transfer_acct":null}]}}else{return{[t]:e}}}return null}function u(e){let t=(0,a.ZP)("transactions").options({splits:"grouped"});const n=l(e);if(n){t=t.filter(n)}return t}function c(e,t,n){const a=(0,s.Dz)(t);let l;if((0,i.Ze)(n).test(t)){l=(0,r.Z)(t,(0,i.D1)(n),new Date)}else if((0,i._y)(n).test(t)){l=(0,r.Z)(t,(0,i.JC)(n),new Date)}else{l=(0,r.Z)(t,n,new Date)}return e.filter({$or:{"payee.name":{$like:`%${t}%`},notes:{$like:`%${t}%`},"category.name":{$like:`%${t}%`},"account.name":{$like:`%${t}%`},$or:[(0,o.Z)(l)&&{date:(0,i.is)(l)},a!=null&&{amount:{$transform:"$abs",$eq:(0,s.l9)(a)}},a!=null&&Number.isInteger(a)&&{amount:{$transform:{$abs:{$idiv:["$",100]}},$eq:a}}].filter(Boolean)}})}function f(e){return{name:`balance-${e.id}`,query:(0,a.ZP)("transactions").filter({account:e.id}).options({splits:"none"}).calculate({$sum:"$amount"})}}function h(){return{query:(0,a.ZP)("transactions").filter({"account.closed":false}).calculate({$sum:"$amount"}),name:"accounts-balance"}}function p(){return{name:`budgeted-accounts-balance`,query:(0,a.ZP)("transactions").filter({"account.offbudget":false,"account.closed":false}).calculate({$sum:"$amount"})}}function g(){return{name:`offbudget-accounts-balance`,query:(0,a.ZP)("transactions").filter({"account.offbudget":true,"account.closed":false}).calculate({$sum:"$amount"})}}const v=(0,a.ZP)("transactions").filter({"account.offbudget":false,category:null,$or:[{"payee.transfer_acct.offbudget":true,"payee.transfer_acct":null}]});function m(){return{name:"uncategorized-balance",query:v.calculate({$sum:"$amount"})}}function y(){return{name:"uncategorized-amount",query:v.calculate({$count:"$id"})}}const x={incomeAvailable:"available-funds",lastMonthOverspent:"last-month-overspent",forNextMonth:"buffered",totalBudgeted:"total-budgeted",toBudget:"to-budget",fromLastMonth:"from-last-month",totalIncome:"total-income",totalSpent:"total-spent",totalBalance:"total-leftover",groupSumAmount:e=>`group-sum-amount-${e}`,groupIncomeReceived:"total-income",groupBudgeted:e=>`group-budget-${e}`,groupBalance:e=>`group-leftover-${e}`,catBudgeted:e=>`budget-${e}`,catSumAmount:e=>`sum-amount-${e}`,catBalance:e=>`leftover-${e}`,catCarryover:e=>`carryover-${e}`,catGoal:e=>`goal-${e}`};const w={totalBudgetedExpense:"total-budgeted",totalBudgetedIncome:"total-budget-income",totalBudgetedSaved:"total-saved",totalIncome:"total-income",totalSpent:"total-spent",totalSaved:"real-saved",totalLeftover:"total-leftover",groupSumAmount:e=>`group-sum-amount-${e}`,groupIncomeReceived:"total-income",groupBudgeted:e=>`group-budget-${e}`,groupBalance:e=>`group-leftover-${e}`,catBudgeted:e=>`budget-${e}`,catSumAmount:e=>`sum-amount-${e}`,catBalance:e=>`leftover-${e}`,catCarryover:e=>`carryover-${e}`,catGoal:e=>`goal-${e}`}},10959:function(e,t,n){"use strict";n.d(t,{Zn:function(){return f},ZP:function(){return s},Y1:function(){return u},Fr:function(){return c},Vn:function(){return l}});var r=n(84094);function o(e){const t={running:null,queue:[]};function n(){if(t.queue.length>0){const e=t.queue.shift();r(e.args,e.resolve,e.reject)}else{t.running=null}}function r(r,o,i){t.running=e.apply(null,r);t.running.then(e=>{n();o(e)},e=>{n();i(e)})}return(...e)=>{if(!t.running){return new Promise((t,n)=>{return r(e,t,n)})}else{return new Promise((n,r)=>{t.queue.push({resolve:n,reject:r,args:e})})}}}function i(e){let t=null;return(...n)=>{if(!t){t=e.apply(null,n).finally(()=>{t=null});return t}return t}}var a=n(63654);var s=a.ZP;async function l(e){return(0,r.lW)("query",e.serialize())}function u(e,t,n){const r=new f(e,t,n);r.run();return r}function c(e,t,n){const r=new h(e,t,n);r.run();return r}class f{_unsubscribe;data;dependencies;error;listeners;mappedData;mapper;onlySync;query;inflight;inflightRequestId;restart;constructor(e,t,n={}){this.error=new Error;this.query=e;this.data=null;this.mappedData=null;this.dependencies=null;this.mapper=n.mapper;this.onlySync=n.onlySync;this.listeners=[];this.inflight=false;this.restart=false;if(t){this.addListener(t)}}addListener(e){this.listeners.push(e);return()=>{this.listeners=this.listeners.filter(t=>t!==e)}}onData=(e,t)=>{for(let n=0;n<this.listeners.length;n++){this.listeners[n](e,t)}};onUpdate=e=>{if(this.dependencies==null||e.find(e=>this.dependencies.has(e))){this.run()}};run=()=>{this.subscribe();return this._fetchData(()=>l(this.query))};_fetchData=async e=>{const t=Math.random();this.inflightRequestId=t;const{data:n,dependencies:r}=await e();if(this.dependencies==null){this.dependencies=new Set(r)}if(this.inflightRequestId===t&&this._unsubscribe){const e=this.mappedData;this.data=n;this.mappedData=this.mapData(n);this.onData(this.mappedData,e);this.inflightRequestId=null}};subscribe=()=>{if(this._unsubscribe==null){this._unsubscribe=(0,r.oL)("sync-event",({type:e,tables:t})=>{const n=this.onlySync?["success"]:["applied","success"];if(n.indexOf(e)!==-1){this.onUpdate(t)}})}};unsubscribe=()=>{if(this._unsubscribe){this._unsubscribe();this._unsubscribe=null}};mapData=e=>{if(this.mapper){return this.mapper(e)}return e};getQuery=()=>{return this.query};getData=()=>{return this.mappedData};getNumListeners=()=>{return this.listeners.length};isRunning=()=>{return this._unsubscribe!=null};_optimisticUpdate=(e,t)=>{this.data=e(this.data);this.mappedData=t(this.mappedData)};optimisticUpdate=(e,t)=>{const n=this.mappedData;this._optimisticUpdate(e,t);this.onData(this.mappedData,n)}}class h extends f{done;onPageData;pageCount;runPromise;totalCount;constructor(e,t,n={}){super(e,t,n);this.totalCount=null;this.pageCount=n.pageCount||500;this.runPromise=null;this.done=false;this.onPageData=n.onPageData||(()=>{})}_fetchCount=()=>{return l(this.query.calculate({$count:"*"})).then(({data:e})=>{this.totalCount=e})};run=()=>{this.subscribe();this.runPromise=this._fetchData(async()=>{this.done=false;this._fetchCount();return l(this.query.limit(this.data==null?this.pageCount:Math.max(this.data.length,this.pageCount)))});return this.runPromise};refetchUpToRow=async(e,t)=>{this.runPromise=this._fetchData(async()=>{this.done=false;this._fetchCount();const n=(0,a.zW)(this.query,t);if(n==null){throw new Error(`refetchUpToRow requires a query with orderBy`)}const{field:r,order:o}=n;let i=await l(this.query.filter({id:e}).select(r));if(i.data.length===0){return}const s=i.data[0];i=await l(this.query.filter({[r]:{[o==="asc"?"$lte":"$gte"]:s[r]}}));const u=i.data;i=await l(this.query.filter({[r]:{[o==="asc"?"$gt":"$lt"]:s[r]}}).limit(this.pageCount));return{data:u.concat(i.data),dependencies:i.dependencies}});return this.runPromise};_fetchNext=async()=>{while(this.inflightRequestId){await this.runPromise}const e=this.data;if(!this.done){const{data:t}=await l(this.query.limit(this.pageCount).offset(e.length));if(this.inflightRequestId||e!==this.data){return this._fetchNext()}else{if(t.length===0){this.done=true}else{this.done=t.length<this.pageCount;this.data=this.data.concat(t);const e=this.mappedData;const n=this.mapData(t);this.mappedData=this.mappedData.concat(n);this.onPageData(n);this.onData(this.mappedData,e)}}}};fetchNext=i(this._fetchNext);isFinished=()=>{return this.done};getTotalCount=()=>{return this.totalCount};optimisticUpdate=(e,t)=>{const n=this.data;const r=this.mappedData;this._optimisticUpdate(e,t);this.totalCount+=this.data.length-n.length;this.onData(this.mappedData,r)}}},69304:function(e,t,n){"use strict";n.d(t,{n:function(){return a},y:function(){return s}});var r=n(66204);var o=n(10959);function i(e,t,n){const o=new n(e,null,t);const i=(0,r.createContext)(null);function a({children:e}){const[t,n]=(0,r.useState)(o.getData());const a=(0,r.useMemo)(()=>({data:t,query:o}),[t,o]);(0,r.useEffect)(()=>{if(o.getNumListeners()!==0){throw new Error("Query already has listeners. You cannot use the same query context `Provider` twice")}const e=o.addListener(e=>n(e));if(!o.isRunning()){o.run()}n(o.getData());return()=>{e();o.unsubscribe()}},[]);return r.createElement(i.Provider,{value:a},e)}function s(){const e=(0,r.useContext)(i);if(e==null){throw new Error("`useQuery` tried to access a query that hasn’t been run. You need to put its `Provider` in a parent component")}return e}return{Provider:a,useQuery:s}}function a(e,t){return i(e,t,o.Zn)}function s(e,t){const[n,i]=(0,r.useState)(null);const a=(0,r.useMemo)(e,t);(0,r.useEffect)(()=>{let e=(0,o.Y1)(a,async t=>{if(e){i(t)}});return()=>{e.unsubscribe();e=null}},[a]);return n}},18748:function(e,t,n){"use strict";n.d(t,{ZP:function(){return s},ch:function(){return c},gI:function(){return l},nc:function(){return f},yG:function(){return u}});var r=n(99024);var o=n(89362);var i=n(62601);const a={newTransactions:[],matchedTransactions:[],lastTransaction:null,updatedAccounts:[],accounts:[],categories:{grouped:[],list:[]},payees:[],earliestTransaction:null};function s(e=a,t){switch(t.type){case i.GZ:return{...e,newTransactions:t.newTransactions||[],matchedTransactions:t.matchedTransactions||[],updatedAccounts:t.updatedAccounts||[]};case i.kY:return{...e,newTransactions:e.newTransactions.filter(e=>e!==t.changedId),matchedTransactions:e.matchedTransactions.filter(e=>e!==t.changedId)};case i.Vi:return{...e,lastTransaction:t.transaction};case i.ER:return{...e,updatedAccounts:e.updatedAccounts.filter(e=>e!==t.accountId)};case i.WF:return{...e,accounts:t.accounts};case i.$E:{return{...e,accounts:e.accounts.map(e=>{if(e.id===t.account.id){return{...e,...t.account}}return e})}}case i.X6:return{...e,categories:t.categories};case i.gp:return{...e,payees:t.payees};default:}return e}const l=(0,r.Z)(e=>(0,o.ZZ)(e));const u=(0,r.Z)(e=>(0,o.ZZ)(e));const c=(0,r.Z)(e=>{const t={};e.forEach(e=>{e.categories.forEach(e=>{t[e.id]=e})});return t});const f=(0,r.Z)((e,t)=>{const n=l(t);return e.filter(e=>{if(e.transfer_acct){const t=n[e.transfer_acct];return t!=null&&!t.closed}return true})})},84094:function(e,t,n){"use strict";n.d(t,{S1:function(){return g},oL:function(){return y},lW:function(){return v},OK:function(){return m},Ev:function(){return x}});var r=n(26505);const o=function(e){console.log("[Exception]",e)};const i=function(e){};var a=n(57555);const s=new Map;const l=new Map;let u=[];let c=null;class f extends Error{url;line;column;constructor(e,t,n,r,o){super(e);this.name=this.constructor.name;this.message=e;Object.defineProperty(this,"stack",{get:function(){return"extended "+this._stack},set:function(e){this._stack=e}});this.stack=t;this.url=n;this.line=r;this.column=o}}function h(e){if(e.type==="error"){const{id:t}=e;s.delete(t)}else if(e.type==="reply"){const{id:t,result:n,mutated:r,undoTag:o}=e;const i=s.get(t);if(i){s.delete(t);if(!r){a.gc(o)}i.resolve(n)}}else if(e.type==="push"){const{name:t,args:n}=e;const r=l.get(t);if(r){for(let e=0;e<r.length;e++){const t=r[e](n);if(t===true){break}}}}else{if(!e.type.startsWith("__")){throw new Error("Unknown message type: "+JSON.stringify(e))}}}function p(e,t,n){c=e;e.onmessage=r=>{const a=r.data;if(a.type==="connect"){if(u.length>0){u.forEach(t=>e.postMessage(t));u=null}t()}else if(a.type==="app-init-failure"){n(a)}else if(a.type==="capture-exception"){o(a.stack?new f(a.message,a.stack,a.url,a.line,a.column):a.exc);if(a.message&&a.message.includes("indexeddb-quota-error")){alert("We hit a limit on the local storage available. Edits may not be saved. Please get in touch https://actualbudget.org/contact/ so we can help debug this.")}}else if(a.type==="capture-breadcrumb"){i(a.data)}else{h(a)}};if(e instanceof MessagePort){e.start()}}const g=async function(e){return new Promise((t,n)=>p(e,t,n))};const v=function(e,t,{catchErrors:n=false}={}){return new Promise((o,i)=>{const l=(0,r.Z)();s.set(l,{resolve:o,reject:i});const f={id:l,name:e,args:t,undoTag:a.CO(),catchErrors:n};if(u){u.push(f)}else{c.postMessage(f)}})};const m=function(e,t){return v(e,t,{catchErrors:true})};const y=function(e,t){if(!l.get(e)){l.set(e,[])}l.get(e).push(t);return()=>{const n=l.get(e);l.set(e,n.filter(e=>e!==t))}};const x=function(e){l.set(e,[])};const w=async function(){}},57555:function(e,t,n){"use strict";n.d(t,{CO:function(){return c},a2:function(){return l},gc:function(){return f},kp:function(){return s},r8:function(){return u}});var r=n(26505);const o=40;let i=[];const a={url:null,openModal:null,selectedItems:null};const s=function(e,t){a[e]=t;a.id=(0,r.Z)()};const l=function(e){return a[e]};const u=function(e){return i.find(t=>t.id===e)};const c=function(){const e={...a,id:(0,r.Z)()};i.unshift(e);i=i.slice(0,o);return e.id};const f=function(e){i=i.filter(t=>t.id!==e)}},11535:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(89362);function o(e,t){throw new Error(t+": "+JSON.stringify(e.str.slice(e.index,10)))}function i(e){return e.str[e.index]}function a(e){if(e.index>=e.str.length){return null}const t=i(e);e.index++;return t}function s(e,t){if(i(e)===t){a(e);return true}return false}function l(e){const t=i(e)==="-";if(t){a(e)}if(/\p{Sc}/u.test(i(e))){a(e)}let n="";while(i(e)&&i(e).match(/[0-9,.]/)){const t=(0,r.ff)().separator===","?".":",";if(i(e)===t){a(e)}else{n+=a(e)}}if(n===""){o(e,"Unexpected character")}const s=parseFloat(n.replace((0,r.ff)().separator,"."));return t?-s:s}function u(e){if(i(e)==="("){a(e);const t=f(e);if(i(e)!==")"){o(e,"Unbalanced parentheses")}a(e);return t}return l(e)}function c(...e){return e.reduce((e,t)=>{return n=>{let r=e(n);while(s(n,t)){r={op:t,left:r,right:e(n)}}return r}},u)}const f=c("^","/","*","-","+");function h(e){const t={str:e.replace(/\s/g,""),index:0};return f(t)}function p(e){if(typeof e==="number"){return e}const{left:t,right:n,op:r}=e;switch(r){case"+":return p(t)+p(n);case"-":return p(t)-p(n);case"*":return p(t)*p(n);case"/":return p(t)/p(n);case"^":return Math.pow(p(t),p(n));default:throw new Error("Unknown operator: "+r)}}function g(e,t=null){if(e===""){return t}let n;try{n=p(h(e))}catch(e){return t}return isNaN(n)?t:n}},50102:function(e,t,n){"use strict";n.d(t,{Ry:function(){return i},d:function(){return a}});function r(){return String({"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"26846256cb1531298b26"}.REACT_APP_NETLIFY)==="true"}function o(){return"production"==="development"}function i(){return r()||o()}function a(){if(navigator.userAgent.indexOf("Electron")>=0){return true}return false}},40400:function(e,t,n){"use strict";n.d(t,{Ez:function(){return a},FL:function(){return s},Ip:function(){return o},wg:function(){return r},zJ:function(){return i}});function r({reason:e,meta:t}){switch(e){case"unauthorized":return"You are not logged in.";case"encrypt-failure":if(t.isMissingKey){return"Encrypting your file failed because you are missing your encryption key. Create your key in the next step."}return"Encrypting the file failed. You have the correct key so this is an internal bug. To fix this, generate a new key in the next step.";case"file-has-reset":return"Something went wrong while resetting your file. Please try again.";case"file-has-new-key":return"Unable to encrypt your data because you are missing the key. Create the latest key in the next step.";case"network":return"Uploading the file failed. Check your network connection.";default:return`An internal error occurred, sorry! Visit https://actualbudget.org/contact/ for support. (ref: ${e})`}}function o({reason:e,meta:t,fileName:n}){switch(e){case"network":case"download-failure":return"Downloading the file failed. Check your network connection.";case"not-zip-file":case"invalid-zip-file":case"invalid-meta-file":return"Downloaded file is invalid, sorry! Visit https://actualbudget.org/contact/ for support.";case"decrypt-failure":return"Unable to decrypt file "+(n||"(unknown)")+". To change your key, first "+"download this file with the proper password.";case"out-of-sync-migrations":return"This budget cannot be loaded with this version of the app. "+"Make sure the app is up-to-date.";default:const r=t&&t.fileId?`, fileId: ${t.fileId}`:"";return"Something went wrong trying to download that file, sorry! "+"Visit https://actualbudget.org/contact/ for support. "+`(reason: ${e}${r})`}}function i(e){return r(e)}function a({reason:e}){switch(e){case"network":return"Unable to connect to the server. We need to access the server to get some information about your keys.";case"old-key-style":return"This file is encrypted with an old unsupported key style. Recreate the key "+"on a device where the file is available, or use an older version of Actual to download "+"it.";case"decrypt-failure":return"Unable to decrypt file with this password. Please try again.";default:return"Something went wrong trying to create a key, sorry! Visit https://actualbudget.org/contact/ for support."}}function s(e,t){if(e==="out-of-sync-migrations"||e==="out-of-sync-data"){return"This budget cannot be loaded with this version of the app."}else if(e==="budget-not-found"){return`Budget “${t}” not found. Check the id of your budget in the Advanced section of the settings page.`}else{return`We had an unknown problem opening “${t}”.`}}},73416:function(e,t,n){"use strict";n.d(t,{E4:function(){return A},zI:function(){return I},cQ:function(){return k},PR:function(){return j},dK:function(){return S},is:function(){return b},Gn:function(){return V},WU:function(){return Q},D1:function(){return ee},Ze:function(){return et},jw:function(){return K},sl:function(){return W},yl:function(){return U},LT:function(){return en},JC:function(){return eo},_y:function(){return ei},So:function(){return $},Q9:function(){return Y},W8:function(){return q},Ax:function(){return z},DT:function(){return w},dy:function(){return E},D$:function(){return T},Do:function(){return B},cv:function(){return G},kw:function(){return O},W9:function(){return P}});var r=n(79982);var o=n(8780);var i=n(71578);var a=n(2864);var s=n(78354);function l(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,i.Z)(t);if(isNaN(r)){return new Date(NaN)}if(!r){return n}var o=n.getDate();var l=new Date(n.getTime());l.setMonth(n.getMonth()+r+1,0);var u=l.getDate();if(o>=u){return l}else{n.setFullYear(l.getFullYear(),l.getMonth(),o);return n}};function u(e,t){(0,s.Z)(2,arguments);var n=(0,i.Z)(t);return l(e,-n)}var c=n(82862);var f=n(28548);function h(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,a.Z)(t);return n.getTime()>r.getTime()};function p(e,t){(0,s.Z)(2,arguments);var n=(0,a.Z)(e);var r=(0,a.Z)(t);return n.getTime()<r.getTime()}var g=n(99024);var v=n(67238);function m(e){if(typeof e==="string"){const[t,n,r]=e.split("-");if(r!=null){return new Date(parseInt(t),parseInt(n)-1,parseInt(r),12)}else if(n!=null){return new Date(parseInt(t),parseInt(n)-1,1,12)}else{return new Date(parseInt(t),0,1,12)}}if(typeof e==="number"){return new Date(e)}return e}const y=null&&m;function x(e){return d.format(m(e),"yyyy")}function w(e){return r.Z(m(e),"yyyy-MM")}function b(e){return r.Z(m(e),"yyyy-MM-dd")}function S(){if(n.g.IS_TESTING||v.$8){return n.g.currentMonth||"2017-01"}else{return r.Z(new Date,"yyyy-MM")}}function k(){if(n.g.IS_TESTING||v.$8){return o.Z(j(),"yyyy-MM-dd",new Date)}return new Date}function j(){if(n.g.IS_TESTING||v.$8){return"2017-01-01"}else{return r.Z(new Date,"yyyy-MM-dd")}}function C(e){return d.format(d.addMonths(m(e),1),"yyyy-MM")}function T(e){return r.Z(u(m(e),12),"yyyy-MM")}function E(e){return r.Z(u(m(e),1),"yyyy-MM")}function I(e,t){return r.Z(l(m(e),t),"yyyy-MM")}function _(e,t){return d.format(d.addWeeks(m(e),t),"yyyy-MM-dd")}function M(e,t){return d.differenceInCalendarMonths(m(e),m(t))}function D(e,t){return d.differenceInCalendarDays(m(e),m(t))}function P(e,t){return r.Z(u(m(e),t),"yyyy-MM")}function A(e,t){return r.Z(c.Z(m(e),t),"yyyy-MM-dd")}function O(e,t){return r.Z(f.Z(m(e),t),"yyyy-MM-dd")}function R(e,t){return d.isBefore(m(e),m(t))}function z(e,t){return h(m(e),m(t))}function Z(e){return{start:parseInt(d.format(d.startOfMonth(m(e)),"yyyyMMdd")),end:parseInt(d.format(d.endOfMonth(m(e)),"yyyyMMdd"))}}function L(e,t,n=false){const r=[];let o=w(e);while(p(m(o),m(t))){r.push(o);o=I(o,1)}if(n){r.push(o)}return r}function N(e,t){return L(e,t)}function B(e,t){return L(e,t,true)}function H(e,t,n=false){const r=[];let o=e;while(p(m(o),m(t))){r.push(o);o=A(o,1)}if(n){r.push(o)}return r}function F(e,t){return H(e,t)}function V(e,t){return H(e,t,true)}function W(e,t){const n=`${t+1}`.padStart(2,"0");return`${e}-${n}`}function U(e){return parseInt(e.slice(5,7))-1}function $(e){return e.slice(0,4)}function K(e){return e.slice(0,7)}function q(e){return $(e)+"-01"}function Y(e){return $(e)+"-12"}function G(e){return"budget"+e.replace("-","")}function X(e){return d.format(m(e),"MMMM 'yy")}function Q(e,t){return r.Z(m(e),t)}const J=(0,g.Z)(e=>{return new RegExp(e.replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{4}"))});const ee=(0,g.Z)(e=>{return e.replace(/y+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"")});const et=(0,g.Z)(e=>{const t=e.replace(/y+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}");return new RegExp("^"+t+"$")});const en=(0,g.Z)(e=>{return e.replace(/d+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/\/\//,"/").replace(/\.\./,".").replace(/--/,"-")});const er=(0,g.Z)(e=>{const t=e.replace(/d+/g,"").replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/\/\//,"/").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{2,4}");return new RegExp("^"+t+"$")});const eo=(0,g.Z)(e=>{return e.replace(/y+/g,"yy")});const ei=(0,g.Z)(e=>{const t=e.replace(/[^\w]$/,"").replace(/^[^\w]/,"").replace(/d+/g,"\\d{1,2}").replace(/M+/g,"\\d{1,2}").replace(/y+/g,"\\d{2}");return new RegExp("^"+t+"$")})},63654:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i},zW:function(){return o}});class r{state;constructor(e){this.state={filterExpressions:e.filterExpressions||[],selectExpressions:e.selectExpressions||[],groupExpressions:e.groupExpressions||[],orderExpressions:e.orderExpressions||[],calculation:false,rawMode:false,withDead:false,validateRefs:true,limit:null,offset:null,...e}}filter(e){return new r({...this.state,filterExpressions:[...this.state.filterExpressions,e]})}unfilter(e){const t=new Set(e);return new r({...this.state,filterExpressions:this.state.filterExpressions.filter(e=>!t.has(Object.keys(e)[0]))})}select(e=[]){if(!Array.isArray(e)){e=[e]}const t=new r({...this.state,selectExpressions:e});t.state.calculation=false;return t}calculate(e){const t=this.select({result:e});t.state.calculation=true;return t}groupBy(e){if(!Array.isArray(e)){e=[e]}return new r({...this.state,groupExpressions:[...this.state.groupExpressions,...e]})}orderBy(e){if(!Array.isArray(e)){e=[e]}return new r({...this.state,orderExpressions:[...this.state.orderExpressions,...e]})}limit(e){return new r({...this.state,limit:e})}offset(e){return new r({...this.state,offset:e})}raw(){return new r({...this.state,rawMode:true})}withDead(){return new r({...this.state,withDead:true})}withoutValidatedRefs(){return new r({...this.state,validateRefs:false})}options(e){return new r({...this.state,tableOptions:e})}serialize(){return this.state}}function o(e,t){const n=e.serialize().orderExpressions;if(n.length===0){if(t){return{order:"asc",...t}}return null}const r=n[0];if(typeof r==="string"){return{field:r,order:"asc"}}const[o]=Object.keys(r);return{field:o,order:r[o]}}function i(e){return new r({table:e})}},3189:function(e,t,n){"use strict";n.d(t,{Qc:function(){return f},Z:function(){return l},Z2:function(){return h},Z9:function(){return i},gL:function(){return a},l1:function(){return p},w8:function(){return s},wZ:function(){return o},zQ:function(){return u}});var r=n(89362);const o={date:{ops:["is","isapprox","gt","gte","lt","lte"],nullable:false},id:{ops:["is","contains","oneOf","isNot","doesNotContain","notOneOf"],nullable:true},saved:{ops:[],nullable:false},string:{ops:["is","contains","oneOf","isNot","doesNotContain","notOneOf"],nullable:true},number:{ops:["is","isapprox","isbetween","gt","gte","lt","lte"],nullable:false},boolean:{ops:["is"],nullable:false}};const i=new Map(Object.entries({imported_payee:"string",payee:"id",date:"date",notes:"string",amount:"number",amountInflow:"number",amountOutfow:"number",category:"id",account:"id",cleared:"boolean",saved:"saved"}));function a(e,t){t=t||{};switch(e){case"imported_payee":return"imported payee";case"amount":if(t.inflow){return"amount (inflow)"}else if(t.outflow){return"amount (outflow)"}return"amount";case"amount-inflow":return"amount (inflow)";case"amount-outflow":return"amount (outflow)";default:return e}}function s(e,t){switch(e){case"oneOf":return"one of";case"notOneOf":return"not one of";case"is":return"is";case"isNot":return"is not";case"isapprox":return"is approx";case"isbetween":return"is between";case"contains":return"contains";case"doesNotContain":return"does not contain";case"gt":if(t==="date"){return"is after"}return"is greater than";case"gte":if(t==="date"){return"is after or equals"}return"is greater than or equals";case"lt":if(t==="date"){return"is before"}return"is less than";case"lte":if(t==="date"){return"is before or equals"}return"is less than or equals";case"true":return"is true";case"false":return"is false";case"set":return"set";case"link-schedule":return"link schedule";case"and":return"and";case"or":return"or";default:return""}}function l(e){if(e==="amount-inflow"){return{field:"amount",options:{inflow:true}}}else if(e==="amount-outflow"){return{field:"amount",options:{outflow:true}}}else{return{field:e}}}function u(e){switch(e){case"date-format":return"Invalid date format";case"no-null":case"no-empty-array":case"no-empty-string":return"Value cannot be empty";case"not-number":return"Value must be a number";case"invalid-field":return"Please choose a valid field for this type of rule";default:return"Internal error, sorry! Please get in touch https://actualbudget.org/contact/ for support"}}function c(e,t){if(e<t){return[e,t]}return[t,e]}function f(e){switch(e.type){case"number":{let t=e.value;if(e.field==="amount"&&e.op!=="isbetween"&&t!=null){t=(0,r.Bf)(t)}return{...e,value:t}}case"string":{const t=e.value==null?"":e.value;return{...e,value:t}}case"boolean":{const t=e.value;return{...e,value:t}}default:}return{...e,error:null}}function h({error:e,inputKey:t,...n}){switch(n.type){case"number":{let e=n.value;if(n.field==="amount"&&n.op!=="isbetween"){e=(0,r.l9)(e)}return{...n,value:e}}case"string":{const e=n.value==null?"":n.value;return{...n,value:e}}case"boolean":{const e=n.value==null?false:n.value;return{...n,value:e}}default:}return n}function p(e,t){switch(t.type){case"number":{if(t.op!=="isbetween"){return{...t,error:null,value:e?(0,r.Dz)(String(e))||0:0}}break}default:}return{...t,error:null,value:e}}function g(e){return Math.round(Math.abs(e)*.075)}},11504:function(e,t,n){"use strict";n.d(t,{b5:function(){return p},eJ:function(){return a},lP:function(){return h},lR:function(){return i},lq:function(){return f},o7:function(){return u}});var r=n(73416);var o=n(63654);function i(e,t,n){const o=r.PR();if(t){return"completed"}else if(n){return"paid"}else if(e===o){return"due"}else if(e>o&&e<=r.E4(o,7)){return"upcoming"}else if(e<o){return"missed"}else{return"scheduled"}}function a(e){const t=e.map(e=>{const t=e._conditions.find(e=>e.field==="date");return{$and:{schedule:e.id,date:{$gte:t&&t.op==="is"?e.next_date:r.kw(e.next_date,2)}}}});return(0,o.ZP)("transactions").filter({$or:t}).orderBy({date:"desc"}).groupBy("schedule").select(["schedule","date"])}function s(e){return r.WU(new Date(2020,0,e,12),"do")}function l(e){const t={SU:"Sunday",MO:"Monday",TU:"Tuesday",WE:"Wednesday",TH:"Thursday",FR:"Friday",SA:"Saturday"};return t[e]}function u(e,t){const n=e.interval||1;let o="";switch(e.endMode){case"after_n_occurrences":if(e.endOccurrences===1){o=`, once`}else{o=`, ${e.endOccurrences} times`}break;case"on_date":o=`, until ${r.WU(e.endDate,t)}`;break;default:}const i=e.skipWeekend?` (${e.weekendSolveMode} weekend) `:"";const a=o+i;switch(e.frequency){case"daily":{let e="Every ";e+=n!==1?`${n} days`:"day";return e+a}case"weekly":{let t="Every ";t+=n!==1?`${n} weeks`:"week";t+=" on "+r.WU(e.start,"EEEE");return t+a}case"monthly":{let t="Every ";t+=n!==1?`${n} months`:"month";if(e.patterns&&e.patterns.length>0){let n=[...e.patterns].sort((e,t)=>{const n=(e.type==="day"?1:0)-(t.type==="day"?1:0);const r=e.value-t.value;if(n===0){return r}return n}).filter(e=>e.value!==-1);n=n.concat(e.patterns.filter(e=>e.value===-1));t+=" on the ";const r=[];const o=new Set(n.map(e=>e.type));const i=o.size===1&&!o.has("day");for(const e of n){if(e.type==="day"){if(e.value===-1){r.push("last day")}else{r.push(s(e.value))}}else{const t=i?"":" "+l(e.type);if(e.value===-1){r.push("last"+t)}else{r.push(s(e.value)+t)}}}if(r.length>2){t+=r.slice(0,r.length-1).join(", ");t+=", and ";t+=r[r.length-1]}else{t+=r.join(" and ")}if(i){t+=" "+l(n[0].type)}}else{t+=" on the "+r.WU(e.start,"do")}return t+a}case"yearly":{let t="Every ";t+=n!==1?`${n} years`:"year";t+=" on "+r.WU(e.start,"LLL do");return t+a}default:return"Recurring error"}}function c(e){const t={start:monthUtils.parseDate(e.start),frequency:e.frequency.toUpperCase(),byHourOfDay:[12]};if(e.interval){t.interval=e.interval}switch(e.endMode){case"after_n_occurrences":t.count=e.endOccurrences;break;case"on_date":t.end=monthUtils.parseDate(e.endDate);break;default:}const n=e=>e.slice(0,2).toUpperCase();switch(e.frequency){case"daily":return[t];case"weekly":return[t];case"monthly":if(e.patterns&&e.patterns.length>0){const r=e.patterns.filter(e=>e.type==="day");const o=e.patterns.filter(e=>e.type!=="day");return[r.length>0&&{...t,byDayOfMonth:r.map(e=>e.value)},o.length>0&&{...t,byDayOfWeek:o.map(e=>[n(e.type),e.value])}].filter(Boolean)}else{return[t]}case"yearly":return[t];default:throw new Error("Invalid recurring date config")}}function f(e){return{payee:e.find(e=>e.op==="is"&&e.field==="payee")||e.find(e=>e.op==="is"&&e.field==="description")||null,account:e.find(e=>e.op==="is"&&e.field==="account")||e.find(e=>e.op==="is"&&e.field==="acct")||null,amount:e.find(e=>(e.op==="is"||e.op==="isapprox"||e.op==="isbetween")&&e.field==="amount")||null,date:e.find(e=>(e.op==="is"||e.op==="isapprox")&&e.field==="date")||null}}function h(e){if(e&&typeof e!=="number"){return Math.round((e.num1+e.num2)/2)}return e}function p(e,t){if(t){return`${t.name} (${e.next_date})`}else{return`Next: ${e.next_date}`}}},76804:function(e,t,n){"use strict";n.d(t,{CX:function(){return y},F6:function(){return g},J4:function(){return i},Ks:function(){return w},Ld:function(){return x},V6:function(){return S},Xt:function(){return h},_n:function(){return v},oQ:function(){return b}});var r=n(26505);var o=n(89362);function i(e){return e.indexOf("preview/")!==-1}function a(e){return typeof e==="number"?e:0}function s(e,t){const n=a(t.amount)-e;return{type:"SplitTransactionError",version:1,difference:n}}function l(e,t){const n=e.id==="temp"?"temp":"";return{amount:0,...t,payee:t.payee||e.payee,id:t.id?t.id:n+(0,r.Z)(),account:e.account,date:e.date,cleared:e.cleared!=null?e.cleared:null,starting_balance_flag:e.starting_balance_flag!=null?e.starting_balance_flag:null,is_child:true,parent_id:e.id,error:null}}function u(e){const t=e.subtransactions.reduce((e,t)=>e+a(t.amount),0);return{...e,error:t===a(e.amount)?null:s(t,e)}}function c(e,t){while(t>=0){const n=e[t];if(n.is_parent){return t}t--}return null}function f(e,t){const n=[e[t]];let r=t+1;while(r<e.length&&e[r].is_child){n.push(e[r]);r++}return n}function h(e){return e.reduce((e,t)=>{const{subtransactions:n,...r}=t;const o=n||[];e.push(r);for(let t=0;t<o.length;t++){e.push(o[t])}return e},[])}function p(e){return{...e[0],subtransactions:e.slice(1)}}function g(e){if(e==null){return null}return h([e])}function v(e,t){return p((0,o.zb)(t,g(e)))}function m(e,t,n){const r=e.findIndex(e=>e.id===t);const i=e[r];const a=[...e];if(r===-1){throw new Error("Tried to edit unknown transaction id: "+t)}if(i.is_parent||i.is_child){const t=c(e,r);if(t==null){console.log("Cannot find parent index");return{diff:{deleted:[],updated:[]}}}const i=f(e,t);let s=n(p(i));const l=g(s);let u;if(l==null){u={deleted:[{id:i[0].id}],updated:[]};s={id:i[0].id,_deleted:true};a.splice(t,i.length)}else{u=(0,o.Th)(i,l);a.splice(t,i.length,...l)}return{data:a,newTransaction:s,diff:u}}else{const e=n(i);const t=g(e)||[];if(e){e.subtransactions=e.subtransactions||[]}a.splice(r,1,...t);return{data:a,newTransaction:e||{id:i.id,_deleted:true},diff:(0,o.Th)([i],t)}}}function y(e,t){return m(e,t,e=>{if(!e.is_parent){return e}const t=(0,o.Z$)(e.subtransactions);e.subtransactions.push(l(e,{amount:0,sort_order:a(t&&t.sort_order)-1}));return e})}function x(e,t){return m(e,t.id,e=>{if(e.is_parent){const n=e.id===t.id?t:e;const r=e.subtransactions.map(r=>{let o=r;if(e.id===t.id){o={...r,payee:r.payee===e.payee?t.payee:r.payee}}else if(r.id===t.id){o=t}return l(n,o)});return u({...n,subtransactions:r})}else{return t}})}function w(e,t){return m(e,t,e=>{if(e.is_parent){if(e.id===t){return null}else if(e.subtransactions.length===1){return{...e,subtransactions:null,is_parent:false,error:null}}else{const n=e.subtransactions.filter(e=>e.id!==t);return u({...e,subtransactions:n})}}else{return null}})}function b(e,t){return m(e,t,e=>{if(e.is_parent||e.is_child){return e}return{...e,is_parent:true,error:a(e.amount)===0?null:s(0,e),subtransactions:[l(e,{amount:0,sort_order:-1})]}})}function S(e){let t=e.find(e=>!e.is_child);t={...t,id:(0,r.Z)()};const n=e.filter(e=>e.is_child);return[t,...n.map(e=>({...e,id:(0,r.Z)(),parent_id:t.id}))]}},89362:function(e,t,n){"use strict";n.d(t,{Bf:function(){return D},CD:function(){return _},Dz:function(){return E},Th:function(){return c},VL:function(){return v},Z$:function(){return r},ZZ:function(){return f},eY:function(){return T},ff:function(){return w},id:function(){return m},k4:function(){return o},l9:function(){return M},qP:function(){return P},qT:function(){return I},sD:function(){return j},yC:function(){return x},zA:function(){return C},zb:function(){return a}});function r(e){return e[e.length-1]}function o(e,t){const n=e.id?{id:e.id}:{};const r=Object.keys(t);let o=false;for(let i=0;i<r.length;i++){const a=r[i];if(e[a]!==t[a]){n[a]=t[a];o=true}}return o?n:null}function i(e,t,n){let r=false;for(let o=0;o<n.length;o++){const i=n[o];if(e[i]!==t[i]){r=true;break}}return r}function a(e,t){t=[...t];if(e.added){e.added.forEach(e=>{t.push(e)})}if(e.updated){e.updated.forEach(({id:e,...n})=>{const r=t.findIndex(t=>t.id===e);t[r]={...t[r],...n}})}if(e.deleted){e.deleted.forEach(e=>{const n=t.findIndex(t=>e.id===t.id);if(n!==-1){t.splice(n,1)}})}return t}function s(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r];const i=o[t];const a=n.get(i)||[];a.push(o);n.set(i,a)}return n}function l(e,t){const n=new Map;for(let r=0;r<e.length;r++){const o=e[r];const i=o[t];const a=n.get(i)||[];n.set(i,a.concat([o]))}return n}function u(e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n];t.set(r.id,r)}return t}function c(e,t){const n=u(e);const r=u(t);const i=[];const a=[];const s=e.filter(e=>!r.has(e.id)).map(e=>({id:e.id}));t.forEach(e=>{const t=n.get(e.id);if(!t){i.push(e)}else{const n=o(t,e);if(n){a.push(n)}}});return{added:i,updated:a,deleted:s}}function f(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[r.id]=r}return t}function h(e,t,n){for(let r=0;r<t.length;r++){const o=t[r];if(r===t.length-1){e.set(o,n)}else{if(!e.has(o)){e.set(o,new Map)}e=e.get(o)}}}function p(e,t){let n=e;for(let e=0;e<t.length;e++){n=n.get(t[e]);if(n==null){return n}}return n}function g(e,t){const n=new Set(e);const r=t.values();let o=r.next();while(!o.done){n.add(o.value);o=r.next()}return n}function v(e){return e[0].toUpperCase()+e.slice(1)}const m=[{value:"comma-dot",label:"1,000.33",labelNoFraction:"1,000"},{value:"dot-comma",label:"1.000,33",labelNoFraction:"1.000"},{value:"space-comma",label:"1 000,33",labelNoFraction:"1 000"},{value:"space-dot",label:"1 000.33",labelNoFraction:"1 000"},{value:"comma-dot-in",label:"1,00,000.33",labelNoFraction:"1,00,000"}];let y={format:"comma-dot",hideFraction:false};function x(e){y=e}function w({format:e,hideFraction:t}=y){let n,r,o;switch(e){case"space-comma":n="en-SE";r=/[^-0-9,]/g;o=",";break;case"dot-comma":n="de-DE";r=/[^-0-9,]/g;o=",";break;case"space-dot":n="dje";r=/[^-0-9.]/g;o=".";break;case"comma-dot-in":n="en-IN";r=/[^-0-9.]/g;o=".";break;case"comma-dot":default:n="en-US";r=/[^-0-9.]/g;o="."}return{value:e,separator:o,formatter:new Intl.NumberFormat(n,{minimumFractionDigits:t?0:2,maximumFractionDigits:t?0:2}),regex:r}}const b=2**51-1;const S=-b;function k(e){if(!Number.isInteger(e)){throw new Error("safeNumber: number is not an integer: "+JSON.stringify(e))}if(e>b||e<S){throw new Error("safeNumber: can’t safely perform arithmetic with number: "+e)}return e}function j(e){return D(I(e)||0)}function C(e,t=w().formatter){return t.format(k(e)/100)}function T(e){return w().formatter.format(e)}function E(e){const t=parseFloat(e.replace(w().regex,"").replace(w().separator,"."));return isNaN(t)?null:t}function I(e){const t=E(e);return t==null?null:M(t)}function _(e){const t=parseInt(e.replace(/[^-0-9.,]/g,""));if(!isNaN(t)){return t}return null}function M(e){return Math.round(e*100)}function D(e){return parseFloat((k(e)/100).toFixed(2))}function P(e){function t(e){return isNaN(e)?null:e}function n(e){return e.replace(/[^0-9-]/g,"")}if(e.startsWith("(")&&e.endsWith(")")){e=e.replace("(","-").replace(")","")}const r=e.match(/[.,][^.,]*$/);if(!r||r.index===0){return t(parseFloat(n(e)))}const o=n(e.slice(0,r.index));const i=n(e.slice(r.index+1));return t(parseFloat(o+"."+i))}function A(e,t){return[...e].sort((e,n)=>{if(e[t]<n[t]){return-1}else if(e[t]>n[t]){return 1}return 0})}},1718:function(e,t,n){"use strict";e.exports=n.p+"static/media/browser-server.4fea7aa4628e0f1edc35.js"},80753:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}},56666:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(45850);function o(e,t,n){t=(0,r.Z)(t);if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}},7896:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(){r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return r.apply(this,arguments)}},88960:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function e(e,t){e.__proto__=t;return e};return r(e,t)}},45850:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86522);function o(e,t){if((0,r.Z)(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var o=n.call(e,t||"default");if((0,r.Z)(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)};function i(e){var t=o(e,"string");return(0,r.Z)(t)==="symbol"?t:String(t)}},86522:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e){"@babel/helpers - typeof";return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},14313:function(e,t,n){"use strict";n.d(t,{Fx:function(){return N},MT:function(){return h},QL:function(){return A},ex:function(){return a}});var r=n(66204);var o=n(90696);var i=n(4689);function a(e){if((0,i.Jz)()==="virtual"){let t=document.activeElement;(0,o.QB)(()=>{if(document.activeElement===t&&document.contains(e))(0,o.Ao)(e)})}else(0,o.Ao)(e)}function s(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return false;let{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r=n!=="none"&&o!=="hidden"&&o!=="collapse"}return r}function l(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):true)}function u(e,t){return e.nodeName!=="#comment"&&s(e)&&l(e,t)&&(!e.parentElement||u(e.parentElement,e))}const c=(0,r).createContext(null);let f=null;function h(e){let{children:t,contain:n,restoreFocus:i,autoFocus:a}=e;let s=(0,r.useRef)();let l=(0,r.useRef)();let u=(0,r.useRef)([]);let{parentNode:h}=(0,r.useContext)(c)||{};let p=(0,r.useMemo)(()=>new Z({scopeRef:u}),[u]);(0,o.bt)(()=>{let e=h||L.root;if(L.getTreeNode(e.scopeRef)&&f&&!T(f,e.scopeRef)){let t=L.getTreeNode(f);if(t)e=t}e.addChild(p);L.addNode(p)},[p,h]);(0,o.bt)(()=>{let e=L.getTreeNode(u);e.contain=n},[n]);(0,o.bt)(()=>{let e=s.current.nextSibling;let t=[];while(e&&e!==l.current){t.push(e);e=e.nextSibling}u.current=t},[t]);M(u,i,n);b(u,n);P(u,i,n);_(u,a);(0,r.useEffect)(()=>{if(u){let e=document.activeElement;let t=null;if(k(e,u.current)){for(let n of L.traverse())if(k(e,n.scopeRef.current))t=n;if(t===L.getTreeNode(u))f=t.scopeRef}return()=>{let e=L.getTreeNode(u).parent.scopeRef;if((u===f||T(u,f))&&(!e||L.getTreeNode(e)))f=e;L.removeTreeNode(u)}}},[u]);let v=(0,r.useMemo)(()=>g(u),[]);let m=(0,r.useMemo)(()=>({focusManager:v,parentNode:p}),[p,v]);return(0,r).createElement(c.Provider,{value:m},(0,r).createElement("span",{"data-focus-scope-start":true,hidden:true,ref:s}),t,(0,r).createElement("span",{"data-focus-scope-end":true,hidden:true,ref:l}))}function p(){var e;return(e=(0,$6nfFC$useContext)(c))===null||e===void 0?void 0:e.focusManager}function g(e){return{focusNext(t={}){let n=e.current;let{from:r,tabbable:o,wrap:i,accept:a}=t;let s=r||document.activeElement;let l=n[0].previousElementSibling;let u=A(x(n),{tabbable:o,accept:a},n);u.currentNode=k(s,n)?s:l;let c=u.nextNode();if(!c&&i){u.currentNode=l;c=u.nextNode()}if(c)E(c,true);return c},focusPrevious(t={}){let n=e.current;let{from:r,tabbable:o,wrap:i,accept:a}=t;let s=r||document.activeElement;let l=n[n.length-1].nextElementSibling;let u=A(x(n),{tabbable:o,accept:a},n);u.currentNode=k(s,n)?s:l;let c=u.previousNode();if(!c&&i){u.currentNode=l;c=u.previousNode()}if(c)E(c,true);return c},focusFirst(t={}){let n=e.current;let{tabbable:r,accept:o}=t;let i=A(x(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();if(a)E(a,true);return a},focusLast(t={}){let n=e.current;let{tabbable:r,accept:o}=t;let i=A(x(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();if(a)E(a,true);return a}}}const v=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"];const m=v.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";v.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const y=v.join(':not([hidden]):not([tabindex="-1"]),');function x(e){return e[0].parentElement}function w(e){let t=L.getTreeNode(f);while(t&&t.scopeRef!==e){if(t.contain)return false;t=t.parent}return true}function b(e,t){let n=(0,r.useRef)();let i=(0,r.useRef)(null);(0,o.bt)(()=>{let r=e.current;if(!t){if(i.current){cancelAnimationFrame(i.current);i.current=null}return}let o=t=>{if(t.key!=="Tab"||t.altKey||t.ctrlKey||t.metaKey||!w(e))return;let n=document.activeElement;let r=e.current;if(!k(n,r))return;let o=A(x(r),{tabbable:true},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(!i){o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling;i=t.shiftKey?o.previousNode():o.nextNode()}t.preventDefault();if(i)E(i,true)};let a=t=>{if((!f||T(f,e))&&k(t.target,e.current)){f=e;n.current=t.target}else if(w(e)&&!j(t.target,e)){if(n.current)n.current.focus();else if(f)I(f.current)}else if(w(e))n.current=t.target};let s=t=>{if(i.current)cancelAnimationFrame(i.current);i.current=requestAnimationFrame(()=>{if(w(e)&&!j(document.activeElement,e)){f=e;if(document.body.contains(t.target)){n.current=t.target;n.current.focus()}else if(f)I(f.current)}})};document.addEventListener("keydown",o,false);document.addEventListener("focusin",a,false);r.forEach(e=>e.addEventListener("focusin",a,false));r.forEach(e=>e.addEventListener("focusout",s,false));return()=>{document.removeEventListener("keydown",o,false);document.removeEventListener("focusin",a,false);r.forEach(e=>e.removeEventListener("focusin",a,false));r.forEach(e=>e.removeEventListener("focusout",s,false))}},[e,t]);(0,o.bt)(()=>{return()=>{if(i.current)cancelAnimationFrame(i.current)}},[i])}function S(e){return j(e)}function k(e,t){return t.some(t=>t.contains(e))}function j(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return true;for(let{scopeRef:n}of L.traverse(L.getTreeNode(t))){if(k(e,n.current))return true}return false}function C(e){return j(e,f)}function T(e,t){var n;let r=(n=L.getTreeNode(t))===null||n===void 0?void 0:n.parent;while(r){if(r.scopeRef===e)return true;r=r.parent}return false}function E(e,t=false){if(e!=null&&!t)try{(0,a)(e)}catch(e){}else if(e!=null)try{e.focus()}catch(e){}}function I(e,t=true){let n=e[0].previousElementSibling;let r=A(x(e),{tabbable:t},e);r.currentNode=n;let o=r.nextNode();if(t&&!o){r=A(x(e),{tabbable:false},e);r.currentNode=n;o=r.nextNode()}E(o)}function _(e,t){const n=(0,r).useRef(t);(0,r.useEffect)(()=>{if(n.current){f=e;if(!k(document.activeElement,f.current))I(e.current)}n.current=false},[e])}function M(e,t,n){(0,o.bt)(()=>{if(t||n)return;let r=e.current;let o=t=>{let n=t.target;if(k(n,e.current))f=e;else if(!S(n))f=null};document.addEventListener("focusin",o,false);r.forEach(e=>e.addEventListener("focusin",o,false));return()=>{document.removeEventListener("focusin",o,false);r.forEach(e=>e.removeEventListener("focusin",o,false))}},[e,t,n])}function D(e){let t=L.getTreeNode(f);while(t&&t.scopeRef!==e){if(t.nodeToRestore)return false;t=t.parent}return(t===null||t===void 0?void 0:t.scopeRef)===e}function P(e,t,n){const i=(0,r.useRef)(typeof document!=="undefined"?document.activeElement:null);(0,o.bt)(()=>{let r=e.current;if(!t||n)return;let o=()=>{if((!f||T(f,e))&&k(document.activeElement,e.current))f=e};document.addEventListener("focusin",o,false);r.forEach(e=>e.addEventListener("focusin",o,false));return()=>{document.removeEventListener("focusin",o,false);r.forEach(e=>e.removeEventListener("focusin",o,false))}},[e,n]);(0,o.bt)(()=>{if(!t)return;let r=t=>{if(t.key!=="Tab"||t.altKey||t.ctrlKey||t.metaKey||!w(e))return;let n=document.activeElement;if(!k(n,e.current))return;let r=L.getTreeNode(e).nodeToRestore;let o=A(document.body,{tabbable:true});o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();if(!document.body.contains(r)||r===document.body){r=null;L.getTreeNode(e).nodeToRestore=null}if((!i||!k(i,e.current))&&r){o.currentNode=r;do i=t.shiftKey?o.previousNode():o.nextNode();while(k(i,e.current));t.preventDefault();t.stopPropagation();if(i)E(i,true);else if(!S(r))n.blur();else E(r,true)}};if(!n)document.addEventListener("keydown",r,true);return()=>{if(!n)document.removeEventListener("keydown",r,true)}},[e,t,n]);(0,o.bt)(()=>{if(!t)return;L.getTreeNode(e).nodeToRestore=i.current;return()=>{let n=L.getTreeNode(e).nodeToRestore;if(t&&n&&(k(document.activeElement,e.current)||document.activeElement===document.body&&D(e))){let t=L.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);while(n){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore)){E(n.nodeToRestore);return}n=n.parent}n=t.getTreeNode(e);while(n){if(n.scopeRef&&L.getTreeNode(n.scopeRef)){I(n.scopeRef.current,true);return}n=n.parent}}})}}},[e,t])}function A(e,t,n){let r=(t===null||t===void 0?void 0:t.tabbable)?y:m;let o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;if(t===null||t===void 0?void 0:(o=t.from)===null||o===void 0?void 0:o.contains(e))return NodeFilter.FILTER_REJECT;if(e.matches(r)&&(0,u)(e)&&(!n||k(e,n))&&(!(t===null||t===void 0?void 0:t.accept)||t.accept(e)))return NodeFilter.FILTER_ACCEPT;return NodeFilter.FILTER_SKIP}});if(t===null||t===void 0?void 0:t.from)o.currentNode=t.from;return o}function O(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n;let l=o||document.activeElement;let u=A(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;let c=u.nextNode();if(!c&&a){u.currentNode=r;c=u.nextNode()}if(c)E(c,true);return c},focusPrevious(n=t){let r=e.current;if(!r)return;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=n;let l=o||document.activeElement;let u=A(r,{tabbable:i,accept:s});if(r.contains(l))u.currentNode=l;else{let e=R(u);if(e)E(e,true);return e}let c=u.previousNode();if(!c&&a){u.currentNode=r;c=R(u)}if(c)E(c,true);return c},focusFirst(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n;let a=A(r,{tabbable:o,accept:i});let s=a.nextNode();if(s)E(s,true);return s},focusLast(n=t){let r=e.current;if(!r)return;let{tabbable:o=t.tabbable,accept:i=t.accept}=n;let a=A(r,{tabbable:o,accept:i});let s=R(a);if(s)E(s,true);return s}}}function R(e){let t;let n;do{n=e.lastChild();if(n)t=n}while(n);return t}class z{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(t!==null&&t!==void 0?t:null);let o=new Z({scopeRef:e});r.addChild(o);o.parent=r;this.fastMap.set(e,o);if(n)o.nodeToRestore=n}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(e===null)return;let t=this.fastMap.get(e);let n=t.parent;for(let e of this.traverse())if(e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef.current&&k(e.nodeToRestore,t.scopeRef.current))e.nodeToRestore=t.nodeToRestore;let r=t.children;n.removeChild(t);if(r.size>0)r.forEach(e=>n.addChild(e));this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(e.scopeRef!=null)yield e;if(e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){let e=new z;for(let t of this.traverse())e.addTreeNode(t.scopeRef,t.parent.scopeRef,t.nodeToRestore);return e}constructor(){this.fastMap=new Map;this.root=new Z({scopeRef:null});this.fastMap.set(null,this.root)}}class Z{addChild(e){this.children.add(e);e.parent=this}removeChild(e){this.children.delete(e);e.parent=undefined}constructor(e){this.children=new Set;this.contain=false;this.scopeRef=e.scopeRef}}let L=new z;function N(e={}){let{autoFocus:t=false,isTextInput:n,within:o}=e;let a=(0,r.useRef)({isFocused:false,isFocusVisible:t||(0,i.E)()});let[s,l]=(0,r.useState)(false);let[u,c]=(0,r.useState)(()=>a.current.isFocused&&a.current.isFocusVisible);let f=(0,r.useCallback)(()=>c(a.current.isFocused&&a.current.isFocusVisible),[]);let h=(0,r.useCallback)(e=>{a.current.isFocused=e;l(e);f()},[f]);(0,i.mG)(e=>{a.current.isFocusVisible=e;f()},[],{isTextInput:n});let{focusProps:p}=(0,i.KK)({isDisabled:o,onFocusChange:h});let{focusWithinProps:g}=(0,i.L_)({isDisabled:!o,onFocusWithinChange:h});return{isFocused:s,isFocusVisible:u,focusProps:o?g:p}}function B(e){let{children:t,focusClass:n,focusRingClass:r}=e;let{isFocused:o,isFocusVisible:i,focusProps:a}=(0,N)(e);let s=(0,$6nfFC$react).Children.only(t);return(0,$6nfFC$react).cloneElement(s,(0,$6nfFC$mergeProps)(s.props,{...a,className:(0,$6nfFC$clsx)({[n||""]:o,[r||""]:i})}))}let H=null&&(0,$6nfFC$react).createContext(null);function F(e){let t=(0,$6nfFC$useContext)(H)||{};(0,$6nfFC$useSyncRef)(t,e);let{ref:n,...r}=t;return r}function V(e,t){let{children:n,...r}=e;let o={...r,ref:t};return(0,$6nfFC$react).createElement(H.Provider,{value:o},n)}let W=null&&(0,$6nfFC$react).forwardRef(V);function U(e,t){let{focusProps:n}=(0,$6nfFC$useFocus)(e);let{keyboardProps:r}=(0,$6nfFC$useKeyboard)(e);let o=(0,$6nfFC$mergeProps)(n,r);let i=F(t);let s=e.isDisabled?{}:i;let l=(0,$6nfFC$useRef)(e.autoFocus);(0,$6nfFC$useEffect)(()=>{if(l.current&&t.current)(0,a)(t.current);l.current=false},[t]);return{focusableProps:(0,$6nfFC$mergeProps)({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:undefined},s)}}function $(e,t){let n=t===null||t===void 0?void 0:t.isDisabled;let[r,o]=(0,$6nfFC$useState)(false);(0,$6nfFC$useLayoutEffect)(()=>{if((e===null||e===void 0?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=(0,A)(e.current,{tabbable:true});o(!!t.nextNode())}};t();let n=new MutationObserver(t);n.observe(e.current,{subtree:true,childList:true,attributes:true,attributeFilter:["tabIndex","disabled"]});return()=>{n.disconnect()}}});return n?false:r}},4689:function(e,t,n){"use strict";n.d(t,{Jz:function(){return et},E:function(){return ee},KK:function(){return N},mG:function(){return ea},L_:function(){return es},XI:function(){return eh},TA:function(){return eb},r7:function(){return S}});var r=n(90696);var o=n(66204);function i(e,t){if(t.get)return t.get.call(e);return t.value};function a(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)};function s(e,t){var n=a(e,t,"get");return i(e,n)};function l(e,t){if(t.has(e)){throw new TypeError("Cannot initialize the same private elements twice on an object")}};function u(e,t,n){l(e,t);t.set(e,n)};function c(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable){throw new TypeError("attempted to set read only private field")}t.value=n}};function f(e,t,n){var r=a(e,t,"set");c(e,r,n);return n};let h="default";let p="";let g=new WeakMap;function v(e){if((0,r.gn)()){if(h==="default"){p=document.documentElement.style.webkitUserSelect;document.documentElement.style.webkitUserSelect="none"}h="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){g.set(e,e.style.userSelect);e.style.userSelect="none"}}function m(e){if((0,r.gn)()){if(h!=="disabled")return;h="restoring";setTimeout(()=>{(0,r.QB)(()=>{if(h==="restoring"){if(document.documentElement.style.webkitUserSelect==="none")document.documentElement.style.webkitUserSelect=p||"";p="";h="default"}})},300)}else if(e instanceof HTMLElement||e instanceof SVGElement){if(e&&g.has(e)){let t=g.get(e);if(e.style.userSelect==="none")e.style.userSelect=t;if(e.getAttribute("style")==="")e.removeAttribute("style");g.delete(e)}}}const y=(0,o).createContext(null);y.displayName="PressResponderContext";function x(e){let t=(0,o.useContext)((0,y));if(t){let{register:n,...o}=t;e=(0,r.dG)(o,e);n()}(0,r.lE)(t,e.ref);return e}var w=new WeakMap;class b{continuePropagation(){(0,f)(this,w,false)}get shouldStopPropagation(){return(0,s)(this,w)}constructor(e,t,n){(0,u)(this,w,{writable:true,value:void 0});(0,f)(this,w,true);this.type=e;this.pointerType=t;this.target=n.currentTarget;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.ctrlKey=n.ctrlKey;this.altKey=n.altKey}}function S(e){let{onPress:t,onPressChange:n,onPressStart:i,onPressEnd:a,onPressUp:s,isDisabled:l,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:h,ref:p,...g}=x(e);let[y,w]=(0,o.useState)(false);let S=(0,o.useRef)({isPressed:false,ignoreEmulatedMouseEvents:false,ignoreClickAfterPress:false,didFirePressStart:false,activePointerId:null,target:null,isOverTarget:false,pointerType:null});let{addGlobalListener:I,removeAllGlobalListeners:_}=(0,r.xi)();let A=(0,r.iW)((e,t)=>{let r=S.current;if(l||r.didFirePressStart)return;let o=true;if(i){let n=new b("pressstart",t,e);i(n);o=n.shouldStopPropagation}if(n)n(true);r.didFirePressStart=true;w(true);return o});let O=(0,r.iW)((e,r,o=true)=>{let i=S.current;if(!i.didFirePressStart)return;i.ignoreClickAfterPress=true;i.didFirePressStart=false;let s=true;if(a){let t=new b("pressend",r,e);a(t);s=t.shouldStopPropagation}if(n)n(false);w(false);if(t&&o&&!l){let n=new b("press",r,e);t(n);s&&(s=n.shouldStopPropagation)}return s});let R=(0,r.iW)((e,t)=>{if(l)return;if(s){let n=new b("pressup",t,e);s(n);return n.shouldStopPropagation}return true});let z=(0,r.iW)(e=>{let t=S.current;if(t.isPressed){if(t.isOverTarget)O(E(t.target,e),t.pointerType,false);t.isPressed=false;t.isOverTarget=false;t.activePointerId=null;t.pointerType=null;_();if(!h)(0,m)(t.target)}});let Z=(0,r.iW)(e=>{if(f)z(e)});let L=(0,o.useMemo)(()=>{let e=S.current;let t={onKeyDown(t){if(j(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){if(P(t.target,t.key))t.preventDefault();let r=true;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget;e.isPressed=true;r=A(t,"keyboard");I(document,"keyup",n,false)}if(r)t.stopPropagation()}else if(t.key==="Enter"&&k(t.currentTarget))t.stopPropagation()},onKeyUp(t){if(j(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target))R(E(e.target,t),"keyboard")},onClick(t){if(t&&!t.currentTarget.contains(t.target))return;if(t&&t.button===0){let n=true;if(l)t.preventDefault();if(!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&(e.pointerType==="virtual"||(0,r.Zj)(t.nativeEvent))){if(!l&&!c)(0,r.Ao)(t.currentTarget);let e=A(t,"virtual");let o=R(t,"virtual");let i=O(t,"virtual");n=e&&o&&i}e.ignoreEmulatedMouseEvents=false;e.ignoreClickAfterPress=false;if(n)t.stopPropagation()}}};let n=t=>{if(e.isPressed&&j(t,e.target)){if(P(t.target,t.key))t.preventDefault();e.isPressed=false;let n=t.target;let r=O(E(e.target,t),"keyboard",e.target.contains(n));_();if(r)t.stopPropagation();if(e.target instanceof HTMLElement&&e.target.contains(n)&&(k(e.target)||e.target.getAttribute("role")==="link"))e.target.click()}};if(typeof PointerEvent!=="undefined"){t.onPointerDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if((0,r.cr)(t.nativeEvent)){e.pointerType="virtual";return}if(D(t.currentTarget))t.preventDefault();e.pointerType=t.pointerType;let a=true;if(!e.isPressed){e.isPressed=true;e.isOverTarget=true;e.activePointerId=t.pointerId;e.target=t.currentTarget;if(!l&&!c)(0,r.Ao)(t.currentTarget);if(!h)(0,v)(e.target);a=A(t,e.pointerType);I(document,"pointermove",n,false);I(document,"pointerup",o,false);I(document,"pointercancel",i,false)}if(a)t.stopPropagation()};t.onMouseDown=e=>{if(!e.currentTarget.contains(e.target))return;if(e.button===0){if(D(e.currentTarget))e.preventDefault();e.stopPropagation()}};t.onPointerUp=t=>{if(!t.currentTarget.contains(t.target)||e.pointerType==="virtual")return;if(t.button===0&&M(t,t.currentTarget))R(t,e.pointerType||t.pointerType)};let n=t=>{if(t.pointerId!==e.activePointerId)return;if(M(t,e.target)){if(!e.isOverTarget){e.isOverTarget=true;A(E(e.target,t),e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=false;O(E(e.target,t),e.pointerType,false);Z(t)}};let o=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&t.button===0){if(M(t,e.target))O(E(e.target,t),e.pointerType);else if(e.isOverTarget)O(E(e.target,t),e.pointerType,false);e.isPressed=false;e.isOverTarget=false;e.activePointerId=null;e.pointerType=null;_();if(!h)(0,m)(e.target)}};let i=e=>{z(e)};t.onDragStart=e=>{if(!e.currentTarget.contains(e.target))return;z(e)}}else{t.onMouseDown=t=>{if(t.button!==0||!t.currentTarget.contains(t.target))return;if(D(t.currentTarget))t.preventDefault();if(e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=true;e.isOverTarget=true;e.target=t.currentTarget;e.pointerType=(0,r.Zj)(t.nativeEvent)?"virtual":"mouse";if(!l&&!c)(0,r.Ao)(t.currentTarget);let o=A(t,e.pointerType);if(o)t.stopPropagation();I(document,"mouseup",n,false)};t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=true;if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=true;n=A(t,e.pointerType)}if(n)t.stopPropagation()};t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=true;if(e.isPressed&&!e.ignoreEmulatedMouseEvents){e.isOverTarget=false;n=O(t,e.pointerType,false);Z(t)}if(n)t.stopPropagation()};t.onMouseUp=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.ignoreEmulatedMouseEvents&&t.button===0)R(t,e.pointerType)};let n=t=>{if(t.button!==0)return;e.isPressed=false;_();if(e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=false;return}if(M(t,e.target))O(E(e.target,t),e.pointerType);else if(e.isOverTarget)O(E(e.target,t),e.pointerType,false);e.isOverTarget=false};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=C(t.nativeEvent);if(!n)return;e.activePointerId=n.identifier;e.ignoreEmulatedMouseEvents=true;e.isOverTarget=true;e.isPressed=true;e.target=t.currentTarget;e.pointerType="touch";if(!l&&!c)(0,r.Ao)(t.currentTarget);if(!h)(0,v)(e.target);let i=A(t,e.pointerType);if(i)t.stopPropagation();I(window,"scroll",o,true)};t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=T(t.nativeEvent,e.activePointerId);let r=true;if(n&&M(n,t.currentTarget)){if(!e.isOverTarget){e.isOverTarget=true;r=A(t,e.pointerType)}}else if(e.isOverTarget){e.isOverTarget=false;r=O(t,e.pointerType,false);Z(t)}if(r)t.stopPropagation()};t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=T(t.nativeEvent,e.activePointerId);let r=true;if(n&&M(n,t.currentTarget)){R(t,e.pointerType);r=O(t,e.pointerType)}else if(e.isOverTarget)r=O(t,e.pointerType,false);if(r)t.stopPropagation();e.isPressed=false;e.activePointerId=null;e.isOverTarget=false;e.ignoreEmulatedMouseEvents=true;if(!h)(0,m)(e.target);_()};t.onTouchCancel=t=>{if(!t.currentTarget.contains(t.target))return;t.stopPropagation();if(e.isPressed)z(t)};let o=t=>{if(e.isPressed&&t.target.contains(e.target))z({currentTarget:e.target,shiftKey:false,ctrlKey:false,metaKey:false,altKey:false})};t.onDragStart=e=>{if(!e.currentTarget.contains(e.target))return;z(e)}}return t},[I,l,c,_,h,z,Z,O,A,R]);(0,o.useEffect)(()=>{return()=>{if(!h)(0,m)(S.current.target)}},[h]);return{isPressed:u||y,pressProps:(0,r.dG)(g,L)}}function k(e){return e.tagName==="A"&&e.hasAttribute("href")}function j(e,t){const{key:n,code:r}=e;const o=t;const i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof HTMLInputElement&&!O(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!k(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function C(e){const{targetTouches:t}=e;if(t.length>0)return t[0];return null}function T(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function E(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function I(e){let t=e.width/2||e.radiusX||0;let n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function _(e,t){if(e.left>t.right||t.left>e.right)return false;if(e.top>t.bottom||t.top>e.bottom)return false;return true}function M(e,t){let n=t.getBoundingClientRect();let r=I(e);return _(n,r)}function D(e){return!(e instanceof HTMLElement)||!e.draggable}function P(e,t){if(e instanceof HTMLInputElement)return!O(e,t);if(e instanceof HTMLButtonElement)return e.type!=="submit"&&e.type!=="reset";return true}const A=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":A.has(e.type)}const R=null&&(0,$bx7SL$react).forwardRef(({children:e,...t},n)=>{let r=(0,$bx7SL$useRef)();n=n!==null&&n!==void 0?n:r;let{pressProps:o}=(0,S)({...t,ref:n});let i=(0,$bx7SL$react).Children.only(e);return(0,$bx7SL$react).cloneElement(i,{ref:n,...(0,$bx7SL$mergeProps)(i.props,o)})});const z=null&&(0,$bx7SL$react).forwardRef(({children:e,...t},n)=>{let r=(0,$bx7SL$useRef)(false);let o=(0,$bx7SL$useContext)((0,y));let i=(0,$bx7SL$mergeProps)(o||{},{...t,ref:n||(o===null||o===void 0?void 0:o.ref),register(){r.current=true;if(o)o.register()}});(0,$bx7SL$useSyncRef)(o,n);(0,$bx7SL$useEffect)(()=>{if(!r.current){console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");r.current=true}},[]);return(0,$bx7SL$react).createElement((0,y).Provider,{value:i},e)});class Z{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=true;this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation();this.isPropagationStopped=()=>true}isPropagationStopped(){return false}persist(){}constructor(e,t){this.nativeEvent=t;this.target=t.target;this.currentTarget=t.currentTarget;this.relatedTarget=t.relatedTarget;this.bubbles=t.bubbles;this.cancelable=t.cancelable;this.defaultPrevented=t.defaultPrevented;this.eventPhase=t.eventPhase;this.isTrusted=t.isTrusted;this.timeStamp=t.timeStamp;this.type=e}}function L(e){let t=(0,o.useRef)({isFocused:false,observer:null});(0,r.bt)(()=>{const e=t.current;return()=>{if(e.observer){e.observer.disconnect();e.observer=null}}},[]);let n=(0,r.iW)(t=>{e===null||e===void 0?void 0:e(t)});return(0,o.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=true;let r=e.target;let o=e=>{t.current.isFocused=false;if(r.disabled)n(new Z("blur",e));if(t.current.observer){t.current.observer.disconnect();t.current.observer=null}};r.addEventListener("focusout",o,{once:true});t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer.disconnect();let e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e}));r.dispatchEvent(new FocusEvent("focusout",{bubbles:true,relatedTarget:e}))}});t.current.observer.observe(r,{attributes:true,attributeFilter:["disabled"]})}},[n])}function N(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=(0,o.useCallback)(e=>{if(e.target===e.currentTarget){if(r)r(e);if(i)i(false);return true}},[r,i]);const s=(0,L)(a);const l=(0,o.useCallback)(e=>{if(e.target===e.currentTarget&&document.activeElement===e.target){if(n)n(e);if(i)i(true);s(e)}},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?l:undefined,onBlur:!t&&(r||i)?a:undefined}}}let B=null;let H=new Set;let F=false;let V=false;let W=false;const U={Tab:true,Escape:true};function $(e,t){for(let n of H)n(e,t)}function K(e){return!(e.metaKey||!(0,r.V5)()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function q(e){V=true;if(K(e)){B="keyboard";$("keyboard",e)}}function Y(e){B="pointer";if(e.type==="mousedown"||e.type==="pointerdown"){V=true;$("pointer",e)}}function G(e){if((0,r.Zj)(e)){V=true;B="virtual"}}function X(e){if(e.target===window||e.target===document)return;if(!V&&!W){B="virtual";$("virtual",e)}V=false;W=false}function Q(){V=false;W=true}function J(){if(typeof window==="undefined"||F)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){V=true;e.apply(this,arguments)};document.addEventListener("keydown",q,true);document.addEventListener("keyup",q,true);document.addEventListener("click",G,true);window.addEventListener("focus",X,true);window.addEventListener("blur",Q,false);if(typeof PointerEvent!=="undefined"){document.addEventListener("pointerdown",Y,true);document.addEventListener("pointermove",Y,true);document.addEventListener("pointerup",Y,true)}else{document.addEventListener("mousedown",Y,true);document.addEventListener("mousemove",Y,true);document.addEventListener("mouseup",Y,true)}F=true}if(typeof document!=="undefined"){if(document.readyState!=="loading")J();else document.addEventListener("DOMContentLoaded",J)}function ee(){return B!=="pointer"}function et(){return B}function en(e){B=e;$(e,null)}function er(){J();let[e,t]=(0,$bx7SL$useState)(B);(0,$bx7SL$useEffect)(()=>{let e=()=>{t(B)};H.add(e);return()=>{H.delete(e)}},[]);return(0,$bx7SL$useIsSSR)()?null:e}function eo(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!U[n.key])}function ei(e={}){let{isTextInput:t,autoFocus:n}=e;let[r,o]=(0,$bx7SL$useState)(n||ee());ea(e=>{o(e)},[t],{isTextInput:t});return{isFocusVisible:r}}function ea(e,t,n){J();(0,o.useEffect)(()=>{let t=(t,r)=>{if(!eo(n===null||n===void 0?void 0:n.isTextInput,t,r))return;e(ee())};H.add(t);return()=>{H.delete(t)}},t)}function es(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e;let a=(0,o.useRef)({isFocusWithin:false});let s=(0,o.useCallback)(e=>{if(a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)){a.current.isFocusWithin=false;if(n)n(e);if(i)i(false)}},[n,i,a]);let l=(0,L)(s);let u=(0,o.useCallback)(e=>{if(!a.current.isFocusWithin&&document.activeElement===e.target){if(r)r(e);if(i)i(true);a.current.isFocusWithin=true;l(e)}},[r,i,l]);if(t)return{focusWithinProps:{onFocus:null,onBlur:null}};return{focusWithinProps:{onFocus:u,onBlur:s}}}let el=false;let eu=0;function ec(){el=true;setTimeout(()=>{el=false},50)}function ed(e){if(e.pointerType==="touch")ec()}function ef(){if(typeof document==="undefined")return;if(typeof PointerEvent!=="undefined")document.addEventListener("pointerup",ed);else document.addEventListener("touchend",ec);eu++;return()=>{eu--;if(eu>0)return;if(typeof PointerEvent!=="undefined")document.removeEventListener("pointerup",ed);else document.removeEventListener("touchend",ec)}}function eh(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e;let[a,s]=(0,o.useState)(false);let l=(0,o.useRef)({isHovered:false,ignoreEmulatedMouseEvents:false,pointerType:"",target:null}).current;(0,o.useEffect)(ef,[]);let{hoverProps:u,triggerHoverEnd:c}=(0,o.useMemo)(()=>{let e=(e,r)=>{l.pointerType=r;if(i||r==="touch"||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=true;let o=e.currentTarget;l.target=o;if(t)t({type:"hoverstart",target:o,pointerType:r});if(n)n(true);s(true)};let o=(e,t)=>{l.pointerType="";l.target=null;if(t==="touch"||!l.isHovered)return;l.isHovered=false;let o=e.currentTarget;if(r)r({type:"hoverend",target:o,pointerType:t});if(n)n(false);s(false)};let a={};if(typeof PointerEvent!=="undefined"){a.onPointerEnter=t=>{if(el&&t.pointerType==="mouse")return;e(t,t.pointerType)};a.onPointerLeave=e=>{if(!i&&e.currentTarget.contains(e.target))o(e,e.pointerType)}}else{a.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=true};a.onMouseEnter=t=>{if(!l.ignoreEmulatedMouseEvents&&!el)e(t,"mouse");l.ignoreEmulatedMouseEvents=false};a.onMouseLeave=e=>{if(!i&&e.currentTarget.contains(e.target))o(e,"mouse")}}return{hoverProps:a,triggerHoverEnd:o}},[t,n,r,i,l]);(0,o.useEffect)(()=>{if(i)c({currentTarget:l.target},l.pointerType)},[i]);return{hoverProps:u,isHovered:a}}function ep(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e;let i=(0,$bx7SL$useRef)({isPointerDown:false,ignoreEmulatedMouseEvents:false});let a=(0,$bx7SL$useEffectEvent)(e=>{if(n&&eg(e,t)){if(o)o(e);i.current.isPointerDown=true}});let s=(0,$bx7SL$useEffectEvent)(e=>{if(n)n(e)});(0,$bx7SL$useEffect)(()=>{let e=i.current;if(r)return;if(typeof PointerEvent!=="undefined"){let n=n=>{if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};document.addEventListener("pointerdown",a,true);document.addEventListener("pointerup",n,true);return()=>{document.removeEventListener("pointerdown",a,true);document.removeEventListener("pointerup",n,true)}}else{let n=n=>{if(e.ignoreEmulatedMouseEvents)e.ignoreEmulatedMouseEvents=false;else if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};let r=n=>{e.ignoreEmulatedMouseEvents=true;if(e.isPointerDown&&eg(n,t))s(n);e.isPointerDown=false};document.addEventListener("mousedown",a,true);document.addEventListener("mouseup",n,true);document.addEventListener("touchstart",a,true);document.addEventListener("touchend",r,true);return()=>{document.removeEventListener("mousedown",a,true);document.removeEventListener("mouseup",n,true);document.removeEventListener("touchstart",a,true);document.removeEventListener("touchend",r,true)}}},[t,r,a,s])}function eg(e,t){if(e.button>0)return false;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return false;if(e.target.closest("[data-react-aria-top-layer]"))return false}return t.current&&!t.current.contains(e.target)}function ev(e){if(!e)return;let t=true;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=false}};e(r);if(t)n.stopPropagation()}}function em(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:(0,ev)(e.onKeyDown),onKeyUp:(0,ev)(e.onKeyUp)}}}function ey(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e;let o=(0,$bx7SL$useRef)({didMove:false,lastPosition:null,id:null});let{addGlobalListener:i,removeGlobalListener:a}=(0,$bx7SL$useGlobalListeners)();let s=(0,$bx7SL$useEffectEvent)((e,r,i,a)=>{if(i===0&&a===0)return;if(!o.current.didMove){o.current.didMove=true;t===null||t===void 0?void 0:t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})}n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})});let l=(0,$bx7SL$useEffectEvent)((e,t)=>{(0,m)();if(o.current.didMove)r===null||r===void 0?void 0:r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})});let u=(0,$bx7SL$useMemo)(()=>{let e={};let t=()=>{(0,v)();o.current.didMove=false};if(typeof PointerEvent==="undefined"){let n=e=>{if(e.button===0){s(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY);o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}};let r=e=>{if(e.button===0){l(e,"mouse");a(window,"mousemove",n,false);a(window,"mouseup",r,false)}};e.onMouseDown=e=>{if(e.button===0){t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:e.pageX,pageY:e.pageY};i(window,"mousemove",n,false);i(window,"mouseup",r,false)}};let u=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===o.current.id);if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];s(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY);o.current.lastPosition={pageX:n,pageY:r}}};let c=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===o.current.id);if(t>=0){l(e,"touch");o.current.id=null;a(window,"touchmove",u);a(window,"touchend",c);a(window,"touchcancel",c)}};e.onTouchStart=e=>{if(e.changedTouches.length===0||o.current.id!=null)return;let{pageX:n,pageY:r,identifier:a}=e.changedTouches[0];t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:n,pageY:r};o.current.id=a;i(window,"touchmove",u,false);i(window,"touchend",c,false);i(window,"touchcancel",c,false)}}else{let n=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";s(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY);o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}};let r=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t);o.current.id=null;a(window,"pointermove",n,false);a(window,"pointerup",r,false);a(window,"pointercancel",r,false)}};e.onPointerDown=e=>{if(e.button===0&&o.current.id==null){t();e.stopPropagation();e.preventDefault();o.current.lastPosition={pageX:e.pageX,pageY:e.pageY};o.current.id=e.pointerId;i(window,"pointermove",n,false);i(window,"pointerup",r,false);i(window,"pointercancel",r,false)}}}let n=(e,n,r)=>{t();s(e,"keyboard",n,r);l(e,"keyboard")};e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault();e.stopPropagation();n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault();e.stopPropagation();n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault();e.stopPropagation();n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault();e.stopPropagation();n(e,0,1);break}};return e},[o,i,a,s,l]);return{moveProps:u}}function ex(e,t){let{onScroll:n,isDisabled:r}=e;let o=(0,$bx7SL$useCallback)(e=>{if(e.ctrlKey)return;e.preventDefault();e.stopPropagation();if(n)n({deltaX:e.deltaX,deltaY:e.deltaY})},[n]);(0,$bx7SL$useEvent)(t,"wheel",r?null:o)}const ew=500;function eb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:i,onLongPress:a,threshold:s=ew,accessibilityDescription:l}=e;const u=(0,o.useRef)(null);let{addGlobalListener:c,removeGlobalListener:f}=(0,r.xi)();let{pressProps:h}=(0,S)({isDisabled:t,onPressStart(e){e.continuePropagation();if(e.pointerType==="mouse"||e.pointerType==="touch"){if(n)n({...e,type:"longpressstart"});u.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:true}));if(a)a({...e,type:"longpress"});u.current=null},s);if(e.pointerType==="touch"){let t=e=>{e.preventDefault()};c(e.target,"contextmenu",t,{once:true});c(window,"pointerup",()=>{setTimeout(()=>{f(e.target,"contextmenu",t)},30)},{once:true})}}},onPressEnd(e){if(u.current)clearTimeout(u.current);if(i&&(e.pointerType==="mouse"||e.pointerType==="touch"))i({...e,type:"longpressend"})}});let p=(0,r.PK)(a&&!t?l:null);return{longPressProps:(0,r.dG)(h,p)}}},6860:function(e,t,n){"use strict";n.d(t,{Av:function(){return x},gP:function(){return g}});var r=n(66204);const o={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:false};const i=(0,r).createContext(o);function a(e){let t=(0,$73SJx$useContext)(i);let n=f(t===o);let[r,a]=(0,$73SJx$useState)(true);let s=(0,$73SJx$useMemo)(()=>({prefix:t===o?"":`${t.prefix}-${n}`,current:0,isSSR:r}),[t,n,r]);if(typeof document!=="undefined")(0,$73SJx$useLayoutEffect)(()=>{a(false)},[]);return(0,$73SJx$react).createElement(i.Provider,{value:s},e.children)}let s=false;function l(e){if(typeof(0,$73SJx$react)["useId"]==="function"){if(true&&!s){console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.");s=true}return(0,$73SJx$react).createElement((0,$73SJx$react).Fragment,null,e.children)}return(0,$73SJx$react).createElement(a,e)}let u=Boolean(typeof window!=="undefined"&&window.document&&window.document.createElement);let c=new WeakMap;function f(e=false){let t=(0,r.useContext)(i);let n=(0,r.useRef)(null);if(n.current===null&&!e){var o,a;let e=(o=(0,r).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0?void 0:(a=o.ReactCurrentOwner)===null||a===void 0?void 0:a.current;if(e){let n=c.get(e);if(n==null)c.set(e,{id:t.current,state:e.memoizedState});else if(e.memoizedState!==n.state){t.current=n.id;c.delete(e)}}n.current=++t.current}return n.current}function h(e){let t=(0,r.useContext)(i);if(t===o&&!u)console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=f(!!e);let a=t===o&&"production"==="test"?0:`react-aria${t.prefix}`;return e||`${a}-${n}`}function p(e){let t=(0,r).useId();let[n]=(0,r.useState)(x());let i=n||"production"==="test"?"react-aria":`react-aria${o.prefix}`;return e||`${i}-${t}`}const g=typeof(0,r)["useId"]==="function"?p:h;function v(){return false}function m(){return true}function y(e){return()=>{}}function x(){if(typeof(0,r)["useSyncExternalStore"]==="function")return(0,r)["useSyncExternalStore"](y,v,m);let e=(0,r.useContext)(i);return e.isSSR}},90696:function(e,t,n){"use strict";n.d(t,{zL:function(){return b},Ao:function(){return S},ad:function(){return et},gn:function(){return ee},V5:function(){return X},a9:function(){return F},Zj:function(){return ec},cr:function(){return ed},Pf:function(){return en},dG:function(){return v},QB:function(){return D},zT:function(){return es},Gt:function(){return eu},PK:function(){return q},iW:function(){return ei},zX:function(){return ea},xi:function(){return O},Me:function(){return f},bE:function(){return R},bt:function(){return l},mp:function(){return p},lE:function(){return B},nP:function(){return W}});var r=n(66204);var o=n(6860);function i(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function a(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}var s=a;const l=typeof document!=="undefined"?(0,r).useLayoutEffect:()=>{};function u(e){let[t,n]=(0,r.useState)(e);let o=(0,r.useRef)(t);let i=(0,r.useRef)(null);let a=(0,r.useCallback)(()=>{let e=i.current.next();while(!e.done&&o.current===e.value)e=i.current.next();if(e.done){i.current=null;return}n(e.value);o.current=e.value},[n,o,i]);(0,l)(()=>{if(i.current)a()});let s=(0,r.useCallback)(e=>{i.current=e(o.current);a()},[a,i,o]);return[t,s]}let c=new Map;function f(e){let[t,n]=(0,r.useState)(e);let i=(0,r.useRef)(null);let a=(0,o.gP)(t);let s=(0,r.useCallback)(e=>{i.current=e},[]);c.set(a,s);(0,l)(()=>{let e=a;return()=>{c.delete(e)}},[a]);(0,r.useEffect)(()=>{let e=i.current;if(e){i.current=null;n(e)}});return a}function h(e,t){if(e===t)return e;let n=c.get(e);if(n){n(t);return t}let r=c.get(t);if(r){r(e);return e}return t}function p(e=[]){let t=f();let[n,o]=(0,u)(t);let i=(0,r.useCallback)(()=>{o(function*(){yield t;yield document.getElementById(t)?t:undefined})},[t,o]);(0,l)(i,[t,i,...e]);return n}function g(...e){return(...t)=>{for(let n of e)if(typeof n==="function")n(...t)}}function v(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e];let o=r[e];if(typeof n==="function"&&typeof o==="function"&&e[0]==="o"&&e[1]==="n"&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90)t[e]=(0,g)(n,o);else if((e==="className"||e==="UNSAFE_className")&&typeof n==="string"&&typeof o==="string")t[e]=(0,s)(n,o);else if(e==="id"&&n&&o)t.id=(0,h)(n,o);else t[e]=o!==undefined?o:n}}return t}function m(...e){if(e.length===1)return e[0];return t=>{for(let n of e){if(typeof n==="function")n(t);else if(n!=null)n.current=t}}}const y=new Set(["id"]);const x=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]);const w=/^(data-.*)$/;function b(e,t={}){let{labelable:n,propNames:r}=t;let o={};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&(y.has(t)||n&&x.has(t)||(r===null||r===void 0?void 0:r.has(t))||w.test(t)))o[t]=e[t];return o}function S(e){if(j())e.focus({preventScroll:true});else{let t=C(e);e.focus();T(t)}}let k=null;function j(){if(k==null){k=false;try{var e=document.createElement("div");e.focus({get preventScroll(){k=true;return true}})}catch(e){}}return k}function C(e){var t=e.parentNode;var n=[];var r=document.scrollingElement||document.documentElement;while(t instanceof HTMLElement&&t!==r){if(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft});t=t.parentNode}if(r instanceof HTMLElement)n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}function T(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e){t.scrollTop=n;t.scrollLeft=r}}function E(e,t,n="horizontal"){let r=e.getBoundingClientRect();if(t)return n==="horizontal"?r.right:r.bottom;return n==="horizontal"?r.left:r.top}let I=new Map;let _=new Set;function M(){if(typeof window==="undefined")return;let e=e=>{let n=I.get(e.target);if(!n){n=new Set;I.set(e.target,n);e.target.addEventListener("transitioncancel",t)}n.add(e.propertyName)};let t=e=>{let n=I.get(e.target);if(!n)return;n.delete(e.propertyName);if(n.size===0){e.target.removeEventListener("transitioncancel",t);I.delete(e.target)}if(I.size===0){for(let e of _)e();_.clear()}};document.body.addEventListener("transitionrun",e);document.body.addEventListener("transitionend",t)}if(typeof document!=="undefined"){if(document.readyState!=="loading")M();else document.addEventListener("DOMContentLoaded",M)}function D(e){requestAnimationFrame(()=>{if(I.size===0)e();else _.add(e)})}const P=null&&[];function A(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:u,onDecrementToMin:c,onCollapseToggle:f}=e;let h=e=>r==="horizontal"?e.clientX:e.clientY;let p=e=>{let o=(0,E)(t.current,n,r);let i=h(e);let a=n?o-i:i-o;return a};let g=(0,$12uGp$useRef)(false);let v=(0,$12uGp$useRef)(0);let m=(0,$12uGp$useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i;m.current.onPositionChange=a;let y=e=>{e.preventDefault();let t=p(e);if(!g.current){g.current=true;if(m.current.onDrag)m.current.onDrag(true);if(m.current.onPositionChange)m.current.onPositionChange(t)}if(v.current===t)return;v.current=t;if(a)a(t)};let x=e=>{const t=e.target;g.current=false;let n=p(e);if(m.current.onDrag)m.current.onDrag(false);if(m.current.onPositionChange)m.current.onPositionChange(n);P.splice(P.indexOf(t),1);window.removeEventListener("mouseup",x,false);window.removeEventListener("mousemove",y,false)};let w=e=>{const t=e.currentTarget;if(P.some(e=>t.contains(e)))return;P.push(t);window.addEventListener("mousemove",y,false);window.addEventListener("mouseup",x,false)};let b=()=>{if(o)o(true)};let S=()=>{if(o)o(false)};let k=e=>{switch(e.key){case"Left":case"ArrowLeft":if(r==="horizontal"){e.preventDefault();if(l&&!n)l();else if(s&&n)s()}break;case"Up":case"ArrowUp":if(r==="vertical"){e.preventDefault();if(l&&!n)l();else if(s&&n)s()}break;case"Right":case"ArrowRight":if(r==="horizontal"){e.preventDefault();if(s&&!n)s();else if(l&&n)l()}break;case"Down":case"ArrowDown":if(r==="vertical"){e.preventDefault();if(s&&!n)s();else if(l&&n)l()}break;case"Home":e.preventDefault();if(c)c();break;case"End":e.preventDefault();if(u)u();break;case"Enter":e.preventDefault();if(f)f();break}};return{onMouseDown:w,onMouseEnter:b,onMouseOut:S,onKeyDown:k}}function O(){let e=(0,r.useRef)(new Map);let t=(0,r.useCallback)((t,n,r,o)=>{let i=(o===null||o===void 0?void 0:o.once)?(...t)=>{e.current.delete(r);r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o});t.addEventListener(n,r,o)},[]);let n=(0,r.useCallback)((t,n,r,o)=>{var i;let a=((i=e.current.get(r))===null||i===void 0?void 0:i.fn)||r;t.removeEventListener(n,a,o);e.current.delete(r)},[]);let o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);(0,r.useEffect)(()=>{return o},[o]);return{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}function R(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;n=(0,f)(n);if(o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else if(o)o=o.trim().split(/\s+/).join(" ");if(!r&&!o&&t)r=t;return{id:n,"aria-label":r,"aria-labelledby":o}}function z(e){const t=(0,$12uGp$useRef)();return(0,$12uGp$useMemo)(()=>({get current(){return t.current},set current(value){t.current=value;if(typeof e==="function")e(value);else if(e)e.current=value}}),[e])}function Z(e,t){const n=(0,$12uGp$useRef)(true);const r=(0,$12uGp$useRef)(null);(0,$12uGp$useEffect)(()=>{n.current=true;return()=>{n.current=false}},[]);(0,$12uGp$useEffect)(()=>{if(n.current)n.current=false;else if(!r.current||t.some((e,t)=>!Object.is(e,r[t])))e();r.current=t},t)}function L(){return typeof window.ResizeObserver!=="undefined"}function N(e){const{ref:t,onResize:n}=e;(0,$12uGp$useEffect)(()=>{let e=t===null||t===void 0?void 0:t.current;if(!e)return;if(!L()){window.addEventListener("resize",n,false);return()=>{window.removeEventListener("resize",n,false)}}else{const t=new window.ResizeObserver(e=>{if(!e.length)return;n()});t.observe(e);return()=>{if(e)t.unobserve(e)}}},[n,t])}function B(e,t){(0,l)(()=>{if(e&&e.ref&&t){e.ref.current=t.current;return()=>{e.ref.current=null}}},[e,t])}function H(e){if(F(e))e=e.parentElement;while(e&&!F(e))e=e.parentElement;return e||document.scrollingElement||document.documentElement}function F(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let V=typeof document!=="undefined"&&window.visualViewport;function W(){let[e,t]=(0,r.useState)(()=>U());(0,r.useEffect)(()=>{let e=()=>{t(e=>{let t=U();if(t.width===e.width&&t.height===e.height)return e;return t})};if(!V)window.addEventListener("resize",e);else V.addEventListener("resize",e);return()=>{if(!V)window.removeEventListener("resize",e);else V.removeEventListener("resize",e)}},[]);return e}function U(){return{width:(V===null||V===void 0?void 0:V.width)||window.innerWidth,height:(V===null||V===void 0?void 0:V.height)||window.innerHeight}}let $=0;const K=new Map;function q(e){let[t,n]=(0,r.useState)(undefined);(0,l)(()=>{if(!e)return;let t=K.get(e);if(!t){let r=`react-aria-description-${$++}`;n(r);let o=document.createElement("div");o.id=r;o.style.display="none";o.textContent=e;document.body.appendChild(o);t={refCount:0,element:o};K.set(e,t)}else n(t.element.id);t.refCount++;return()=>{if(--t.refCount===0){t.element.remove();K.delete(e)}}},[e]);return{"aria-describedby":e?t:undefined}}function Y(e){var t;if(typeof window==="undefined"||window.navigator==null)return false;return((t=window.navigator["userAgentData"])===null||t===void 0?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function G(e){var t;return typeof window!=="undefined"&&window.navigator!=null?e.test(((t=window.navigator["userAgentData"])===null||t===void 0?void 0:t.platform)||window.navigator.platform):false}function X(){return G(/^Mac/i)}function Q(){return G(/^iPhone/i)}function J(){return G(/^iPad/i)||X()&&navigator.maxTouchPoints>1}function ee(){return Q()||J()}function et(){return X()||ee()}function en(){return Y(/AppleWebKit/i)&&!er()}function er(){return Y(/Chrome/i)}function eo(){return Y(/Android/i)}function ei(e){const t=(0,r.useRef)(null);(0,l)(()=>{t.current=e},[e]);return(0,r.useCallback)((...e)=>{const n=t.current;return n(...e)},[])}function ea(e,t,n,o){let i=(0,ei)(n);let a=n==null;(0,r.useEffect)(()=>{if(a)return;let n=e.current;n.addEventListener(t,i,o);return()=>{n.removeEventListener(t,i,o)}},[e,t,o,a,i])}function es(e,t){let n=el(e,t,"left");let r=el(e,t,"top");let o=t.offsetWidth;let i=t.offsetHeight;let a=e.scrollLeft;let s=e.scrollTop;let{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e);let c=e.scrollLeft+parseInt(u,10);let f=e.scrollTop+parseInt(l,10);let h=c+e.clientWidth;let p=f+e.clientHeight;if(n<=a)a=n-parseInt(u,10);else if(n+o>h)a+=n+o-h;if(r<=f)s=r-parseInt(l,10);else if(r+i>p)s+=r+i-p;e.scrollLeft=a;e.scrollTop=s}function el(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;while(t.offsetParent){o+=t[r];if(t.offsetParent===e)break;else if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function eu(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;let s=window.getComputedStyle(a).overflow==="hidden";if(!s){var n;let{left:a,top:s}=e.getBoundingClientRect();e===null||e===void 0?void 0:(n=e.scrollIntoView)===null||n===void 0?void 0:n.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();if(Math.abs(a-l)>1||Math.abs(s-u)>1){var r,o,i;t===null||t===void 0?void 0:(r=t.containingElement)===null||r===void 0?void 0:(o=r.scrollIntoView)===null||o===void 0?void 0:o.call(r,{block:"center",inline:"center"});(i=e.scrollIntoView)===null||i===void 0?void 0:i.call(e,{block:"nearest"})}}else{let t=(0,H)(e);while(e&&t&&e!==a&&t!==a){es(t,e);e=t;t=(0,H)(e)}}}}function ec(e){if(e.mozInputSource===0&&e.isTrusted)return true;if((0,eo)()&&e.pointerType)return e.type==="click"&&e.buttons===1;return e.detail===0&&!e.pointerType}function ed(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ef(e,t){let n=(0,$12uGp$useRef)(null);if(e&&n.current&&t(e,n.current))e=n.current;n.current=e;return e}function eh(e,t,n){let r=(0,$12uGp$useRef)(t);let o=(0,ei)(()=>{if(n)n(r.current)});(0,$12uGp$useEffect)(()=>{var t;let n=e===null||e===void 0?void 0:(t=e.current)===null||t===void 0?void 0:t.form;n===null||n===void 0?void 0:n.addEventListener("reset",o);return()=>{n===null||n===void 0?void 0:n.removeEventListener("reset",o)}},[e,o])}},21251:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});function r(e,t,...n){if(o()){if(t===undefined){throw new Error("invariant requires an error message argument")}}if(!e){let e;if(t===undefined){e=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]}));e.name="Invariant Violation"}e.framesToPop=1;throw e}}function o(){return typeof process!=="undefined"&&"production"==="production"}},13577:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(66204);const o=(0,r.createContext)({dragDropManager:undefined})}};var t={};function n(r){var o=t[r];if(o!==undefined){return o.exports}var i=t[r]={id:r,loaded:false,exports:{}};e[r].call(i.exports,i,i.exports,n);i.loaded=true;return i.exports}n.m=e;!function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};n.d(t,{a:t});return t}}();!function(){var e=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};var t;n.t=function(r,o){if(o&1)r=this(r);if(o&8)return r;if(typeof r==="object"&&r){if(o&4&&r.__esModule)return r;if(o&16&&typeof r.then==="function")return r}var i=Object.create(null);n.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=o&2&&r;typeof s=="object"&&!~t.indexOf(s);s=e(s)){Object.getOwnPropertyNames(s).forEach(function(e){a[e]=function(){return r[e]}})}a["default"]=function(){return r};n.d(i,a);return i}}();!function(){n.d=function(e,t){for(var r in t){if(n.o(t,r)&&!n.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}}();!function(){n.f={};n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){n.f[r](e,t);return t},[]))}}();!function(){n.u=function(e){return"static/js/"+(({"162":"wide-components","447":"narrow-components","737":"resize-observer-polyfill","992":"reports"})[e]||e)+"."+({"162":"8ded5c13","231":"e37c027b","447":"574c7b46","473":"02c273e8","553":"e06509f6","665":"ae7f6f2a","737":"98a18736","992":"892e778c"})[e]+".chunk.js"}}();!function(){n.miniCssF=function(e){return undefined}}();!function(){n.g=function(){if(typeof globalThis==="object")return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window==="object")return window}}()}();!function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();!function(){var e={};var t="@actual-app/web:";n.l=function(r,o,i,a){if(e[r]){e[r].push(o);return}var s,l;if(i!==undefined){var u=document.getElementsByTagName("script");for(var c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+i){s=f;break}}}if(!s){l=true;s=document.createElement("script");s.charset="utf-8";s.timeout=120;if(n.nc){s.setAttribute("nonce",n.nc)}s.setAttribute("data-webpack",t+i);s.src=r}e[r]=[o];var h=function(t,n){s.onerror=s.onload=null;clearTimeout(p);var o=e[r];delete e[r];s.parentNode&&s.parentNode.removeChild(s);o&&o.forEach(function(e){return e(n)});if(t)return t(n)};var p=setTimeout(h.bind(null,undefined,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror);s.onload=h.bind(null,s.onload);l&&document.head.appendChild(s)}}();!function(){n.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}}();!function(){n.nmd=function(e){e.paths=[];if(!e.children)e.children=[];return e}}();!function(){n.p="/"}();!function(){n.b=document.baseURI||self.location.href;var e={179:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:undefined;if(o!==0){if(o){r.push(o[2])}else{if(true){var i=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=i);var a=n.p+n.u(t);var s=new Error;var l=function(r){if(n.o(e,t)){o=e[t];if(o!==0)e[t]=undefined;if(o){var i=r&&(r.type==="load"?"missing":r.type);var a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")";s.name="ChunkLoadError";s.type=i;s.request=a;o[1](s)}}};n.l(a,l,"chunk-"+t,t)}}}};var t=function(t,r){var o=r[0];var i=r[1];var a=r[2];var s,l,u=0;if(o.some(function(t){return e[t]!==0})){for(s in i){if(n.o(i,s)){n.m[s]=i[s]}}if(a)var c=a(n)}if(t)t(r);for(;u<o.length;u++){l=o[u];if(n.o(e,l)&&e[l]){e[l][0]()}e[l]=0}};var r=self["webpackChunk_actual_app_web"]=self["webpackChunk_actual_app_web"]||[];r.forEach(t.bind(null,0));r.push=t.bind(null,r.push.bind(r))}();var r={};!function(){"use strict";var e={};n.r(e);n.d(e,{FILE:function(){return nc},HTML:function(){return nh},TEXT:function(){return nf},URL:function(){return nd}});var t=n(43188);function r(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope}function o(e){return(t,n,o)=>{if(r()){throw new Error("`startWorkerFromMain` should only be called from the main thread")}if(typeof Worker==="undefined"){throw new Error("Web workers not available. sqlite3 requires web workers to work.")}e().then(({default:e})=>{let r=new e;r.postMessage({type:"init",buffers:[t,n]});r.addEventListener("message",e=>{o.postMessage(e.data)})})}}function i(e,t){const n=o(t);return t=>{t.addEventListener("message",r=>{switch(r.data.type){case e:n(r.data.argBuffer,r.data.resultBuffer,t);break}})}}const a=i("__absurd:spawn-idb-worker",()=>n.e(473).then(n.bind(n,83473)));var s=n(67238);var l={"i8":"24.1.0"};const u=new URL(n(1718),n.b);const c="production"==="development";const f=s.$8?"99.9.9":l.i8;let h;function p(){h=new Worker(u);a(h);if(window.SharedArrayBuffer){localStorage.removeItem("SharedArrayBufferOverride")}h.postMessage({type:"init",version:f,isDev:c,publicUrl:"",hash:"26846256cb1531298b26",isSharedArrayBufferOverrideEnabled:localStorage.getItem("SharedArrayBufferOverride")})}p();n.g.Actual={IS_DEV:c,ACTUAL_VERSION:f,logToTerminal:(...e)=>{console.log(...e)},relaunch:()=>{window.location.reload()},openFileDialog:async({filters:e=[],properties:t})=>{return new Promise(t=>{let n=false;let r=document.body.querySelector('input[id="open-file-dialog-input"]');if(!r){n=true;r=document.createElement("input")}r.type="file";r.id="open-file-dialog-input";r.value=null;const o=e.find(e=>e.extensions);if(o){r.accept=o.extensions.map(e=>"."+e).join(",")}r.style.position="absolute";r.style.top="0px";r.style.left="0px";r.style.display="none";r.onchange=e=>{const n=e.target.files[0];const r=n.name.replace(/.*(\.[^.]*)/,"file$1");if(n){const e=new FileReader;e.readAsArrayBuffer(n);e.onload=async function(e){const n=`/uploads/${r}`;window.__actionsForMenu.uploadFile(r,e.target.result).then(()=>t([n]))};e.onerror=function(e){alert("Error reading file")}}};if(n){document.body.appendChild(r)}r.click()})},saveFile:(e,t,n)=>{const r=document.createElement("a");r.style="display: none";r.download=t;r.rel="noopener";const o=new Blob([e]);r.href=URL.createObjectURL(o);r.dispatchEvent(new MouseEvent("click"))},openURLInBrowser:e=>{window.open(e,"_blank")},onEventFromMain:(e,t)=>{},applyAppUpdate:()=>{},updateAppMenu:e=>{},getServerSocket:async()=>{return h},setTheme:e=>{window.__actionsForMenu.saveGlobalPrefs({theme:e})}};document.addEventListener("keydown",e=>{if(e.metaKey||e.ctrlKey){if(e.key==="o"){e.preventDefault();window.__actionsForMenu.closeBudget()}else if(e.key.toLowerCase()==="z"){if(e.target.tagName==="INPUT"||e.target.tagName==="TEXTAREA"||e.target.isContentEditable){return}e.preventDefault();if(e.shiftKey){window.__actionsForMenu.redo()}else{window.__actionsForMenu.undo()}}}});var g={};var v={};var m=n(66204);var y=n(37496);var x=n(6279);var w=n(65485);function b(e){var t=function t(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){if(typeof o==="function"){return o(n,r,e)}return t(o)}}};return t}var S=b();S.withExtraArgument=b;var k=S;var j=n(43044);var C=n(62601);var T=n(10959);const E={failedAccounts:new Map,accountsSyncing:null};function I(e=E,t){switch(t.type){case C._V:return{...e,accountsSyncing:t.name};case C.cV:{const n=new Map(e.failedAccounts);if(t.failed){n.set(t.id,{type:t.errorType,code:t.errorCode})}else{n.delete(t.id)}return{...e,failedAccounts:n}}case C.Co:{const n=new Map;t.syncErrors.forEach(e=>{n.set(e.id,{type:e.type,code:e.code})});return{...e,failedAccounts:n}}default:}return e};const _={loadingText:null,updateInfo:null,showUpdateNotification:true,managerHasInitialized:false,lastUndoState:{current:null},lastSplitState:{current:null}};function M(e=_,t){switch(t.type){case C.wH:return{...e,...t.state};case C.HT:e.lastUndoState.current=t.undoState;return e;case C.VM:e.lastSplitState.current=t.splitState;return e;default:}return e};function D(e){e.sort((e,t)=>{const n=e.name.toLowerCase();const r=t.name.toLowerCase();let o=n<r?-1:n>r?1:0;if(o===0){const t=e.state==="remote"?e.cloudFileId:e.id;const n=e.state==="remote"?e.cloudFileId:e.id;o=t<n?-1:t>n?1:0}return o});return e}function P(e,t){const n=new Set;const r=e.map(e=>{const{cloudFileId:r,groupId:o}=e;if(r&&o){if(t==null){return{...e,cloudFileId:r,groupId:o,deleted:false,state:"unknown"}}const i=t.find(t=>e.cloudFileId===t.fileId);if(i){n.add(i.fileId);if(i.groupId===e.groupId){return{...e,cloudFileId:r,groupId:o,name:i.name,deleted:i.deleted,encryptKeyId:i.encryptKeyId,hasKey:i.hasKey,state:"synced"}}else{return{...e,cloudFileId:r,groupId:o,name:i.name,deleted:i.deleted,encryptKeyId:i.encryptKeyId,hasKey:i.hasKey,state:"detached"}}}else{return{...e,cloudFileId:r,groupId:o,deleted:false,state:"broken"}}}else{return{...e,deleted:false,state:"local"}}});const o=D(r.concat((t||[]).filter(e=>!n.has(e.fileId)).map(e=>{return{cloudFileId:e.fileId,groupId:e.groupId,name:e.name,deleted:e.deleted,encryptKeyId:e.encryptKeyId,hasKey:e.hasKey,state:"remote"}})).filter(e=>!e.deleted));return o.filter(e=>e.state!=="broken").concat(o.filter(e=>e.state==="broken"))}const A={budgets:[],remoteFiles:null,allFiles:null};function O(e=A,t){switch(t.type){case C.Ud:return{...e,budgets:t.budgets,allFiles:P(t.budgets,e.remoteFiles)};case C.Oi:return{...e,remoteFiles:t.files,allFiles:P(e.budgets,t.files)};case C.GY:return{...e,budgets:t.budgets,remoteFiles:t.remoteFiles,allFiles:P(t.budgets,t.remoteFiles)};case C.dp:return{...e,allFiles:null};default:}return e};const R={modalStack:[],isHidden:false};function z(e=R,t){switch(t.type){case C.jw:return{...e,modalStack:[...e.modalStack,t.modal]};case C.JA:return{...e,modalStack:[t.modal]};case C.TZ:return{...e,modalStack:e.modalStack.slice(0,-1)};case C.et:return{...e,modalStack:[]};case C.DG:const n=e.modalStack.findIndex(e=>e.name===t.rootModalName);return{...e,modalStack:n<0?e.modalStack:e.modalStack.slice(0,n)};case C.wH:if("loadingText"in t.state){return{...e,isHidden:t.state.loadingText!=null}}break;case C.dp:return R;default:}return e}var Z=z;const L={notifications:[]};function N(e=L,t){switch(t.type){case C.Dv:if(e.notifications.find(e=>e.id===t.notification.id)){return e}return{...e,notifications:[...e.notifications,t.notification]};case C.Kf:return{...e,notifications:e.notifications.filter(e=>e.id!==t.id)};default:}return e}var B=n(89362);const H={local:null,global:null};function F(e=H,t){switch(t.type){case C.px:if(t.prefs){(0,B.yC)({format:t.prefs.numberFormat||"comma-dot",hideFraction:t.prefs.hideFraction})}return{local:t.prefs,global:t.globalPrefs};case C.uF:if(t.prefs.numberFormat||t.prefs.hideFraction!=null){(0,B.yC)({format:t.prefs.numberFormat||e.local.numberFormat,hideFraction:t.prefs.hideFraction!=null?t.prefs.hideFraction:e.local.hideFraction})}return{...e,local:{...e.local,...t.prefs}};case C.CH:return{...e,global:{...e.global,...t.globalPrefs}};default:}return e}var V=n(18748);const W={data:null};function U(e=W,t){switch(t.type){case C.q1:return{...e,data:t.data};default:}return e};const $={app:M,queries:V.ZP,account:I,prefs:F,modals:Z,notifications:N,budgets:O,user:U};var K=$;var q=n(84094);"use client";const Y=(0,m.createContext)(null);const G={didCatch:false,error:null};class X extends m.Component{constructor(e){super(e);this.resetErrorBoundary=this.resetErrorBoundary.bind(this);this.state=G}static getDerivedStateFromError(e){return{didCatch:true,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){var t,n;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++){o[i]=arguments[i]}(t=(n=this.props).onReset)===null||t===void 0?void 0:t.call(n,{args:o,reason:"imperative-api"});this.setState(G)}}componentDidCatch(e,t){var n,r;(n=(r=this.props).onError)===null||n===void 0?void 0:n.call(r,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state;const{resetKeys:r}=this.props;if(n&&t.error!==null&&Q(e.resetKeys,r)){var o,i;(o=(i=this.props).onReset)===null||o===void 0?void 0:o.call(i,{next:r,prev:e.resetKeys,reason:"keys"});this.setState(G)}}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props;const{didCatch:o,error:i}=this.state;let a=e;if(o){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if((0,m.isValidElement)(r)){a=r}else if(typeof t==="function"){a=t(e)}else if(n){a=(0,m.createElement)(n,e)}else{throw i}}return(0,m.createElement)(Y.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},a)}}function Q(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}function J(e){if(e==null||typeof e.didCatch!=="boolean"||typeof e.resetErrorBoundary!=="function"){throw new Error("ErrorBoundaryContext not found")}return true}function ee(){const e=(0,m.useContext)(Y);J(e);const[t,n]=(0,m.useState)({error:null,hasError:false});const r=(0,m.useMemo)(()=>({resetBoundary:()=>{e===null||e===void 0?void 0:e.resetErrorBoundary();n({error:null,hasError:false})},showBoundary:e=>n({error:e,hasError:true})}),[e===null||e===void 0?void 0:e.resetErrorBoundary]);if(t.hasError){throw t.error}return r}function et(e,t){const n=forwardRef((n,r)=>createElement(X,t,createElement(e,{...n,ref:r})));const r=e.displayName||e.name||"Unknown";n.displayName="withErrorBoundary(".concat(r,")");return n}var en=n(1447);async function er(){if("ResizeObserver"in window===false){const e=await n.e(737).then(n.bind(n,81518));window.ResizeObserver=e.ResizeObserver}}var eo=n(76074);var ei=n(45492);var ea=n(99818);var es=n(99458);var el=n(24924);var eu=n(24307);function ec(e){return(0,t.jsx)(ed,{...e},e.name)}function ed({name:e,message:n,importer:r}){const[o,i]=(0,m.useState)(null);(0,m.useEffect)(()=>{r().then(t=>i(()=>t[e]))},[e,r]);if(!o){return(0,t.jsxs)(eu.Z,{style:{flex:1,gap:20,justifyContent:"center",alignItems:"center",...ei.W2.delayedFadeIn},children:[n&&(0,t.jsx)(el.Z,{style:{marginBottom:20,fontSize:18},children:n}),(0,t.jsx)(es.Z,{width:25,color:ei.rS.pageTextDark})]})}return(0,t.jsx)(o,{})};function ef(){return(0,t.jsx)("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0,backgroundColor:ei.rS.pageBackground},children:(0,t.jsxs)("svg",{viewBox:"0 0 642 535",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",style:{position:"absolute",top:0,left:0,height:"100%",width:"100%"},children:[(0,t.jsx)("path",{fill:"url(#paint0_linear)",d:"M0 0h642v535H0z"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear",x1:"162",y1:"23.261",x2:"468.904",y2:"520.44",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:ei.rS.pageBackgroundTopLeft}),(0,t.jsx)("stop",{offset:"1",stopColor:ei.rS.pageBackgroundBottomRight,stopOpacity:"0.5"})]})}),(0,t.jsx)(ec,{importer:()=>n.e(231).then(n.bind(n,31231)),name:"BackgroundImage"})]})})};function eh({initializing:e,loadingText:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ef,{}),(n!=null||e)&&(0,t.jsxs)(eu.Z,{className:`${(0,ea.iv)({position:"absolute",top:0,left:0,right:0,padding:50,paddingTop:200,color:ei.rS.pageText,alignItems:"center"})}`,children:[(0,t.jsx)(el.Z,{style:{marginBottom:20,fontSize:18},children:n}),(0,t.jsx)(es.Z,{width:25,color:ei.rS.pageText})]})]})}var ep=eh;var eg=n(15633);function ev(){return(0,t.jsxs)(eu.Z,{style:{padding:"6px 20px",display:"flex",flexDirection:"row",justifyContent:"space-between",color:ei.rS.warningText,backgroundColor:ei.rS.warningBackground,borderBottom:`1px solid ${ei.rS.warningBorder}`,zIndex:1,flexShrink:0},children:[(0,t.jsx)(eu.Z,{children:"This is a demo build of Actual."}),(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(eg.Z,{linkColor:"purple",to:`https://github.com/actualbudget/actual/pull/${{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"26846256cb1531298b26"}.REACT_APP_REVIEW_ID}`,children:["Open the PR: #",{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"26846256cb1531298b26"}.REACT_APP_REVIEW_ID]})})]})}var em=n(56816);var ey=n(21920);var ex=n(8987);var ew=n(42994);var eb=n(84196);var eS=n(77644);var ek=n(10730);function ej({error:e}){let n;if("IDBFailure"in e&&e.IDBFailure){n=(0,t.jsx)(eS.Z,{children:"Your browser doesn’t support IndexedDB in this environment, a feature that Actual requires to run. This might happen if you are in private browsing mode. Please try a different browser or turn off private browsing."})}else if("SharedArrayBufferMissing"in e&&e.SharedArrayBufferMissing){n=(0,t.jsxs)(eS.Z,{children:["Actual requires access to ",(0,t.jsx)("code",{children:"SharedArrayBuffer"})," in order to function properly. If you’re seeing this error, either your browser does not support ",(0,t.jsx)("code",{children:"SharedArrayBuffer"}),", or your server is not sending the appropriate headers, or you are not using HTTPS. See"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/docs/troubleshooting/shared-array-buffer",children:"our troubleshooting documentation"})," ","to learn more. ",(0,t.jsx)(eT,{})]})}else{n=(0,t.jsxs)(eS.Z,{children:["There was a problem loading the app in this browser version. If this continues to be a problem, you can"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://github.com/actualbudget/releases",children:"download the desktop app"}),"."]})}return(0,t.jsxs)(eb.Z,{style:{paddingBottom:15,lineHeight:"1.5em",fontSize:15},children:[(0,t.jsx)(eS.Z,{children:n}),(0,t.jsxs)(eS.Z,{children:["Please get"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/contact",children:"in touch"})," ","for support"]})]})}function eC(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ew.Z,{children:"There was an unrecoverable error in the UI. Sorry!"}),(0,t.jsxs)(ew.Z,{children:["If this error persists, please get"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/contact",children:"in touch"})," ","so it can be investigated."]})]})}function eT(){const[e,n]=(0,m.useState)(false);const[r,o]=(0,m.useState)(false);return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ew.Z,{style:{marginTop:10},children:["Actual uses ",(0,t.jsx)("code",{children:"SharedArrayBuffer"})," to allow usage from multiple tabs at once and to ensure correct behavior when switching files. While it can run without access to ",(0,t.jsx)("code",{children:"SharedArrayBuffer"}),", you may encounter data loss or notice multiple budget files being merged with each other."]}),(0,t.jsxs)("label",{style:{display:"flex",alignItems:"center",marginBottom:10},children:[(0,t.jsx)(ek.XZ,{checked:r,onChange:e=>o(!r)})," ","I understand the risks, run Actual in the unsupported fallback mode"]}),(0,t.jsx)(em.Z,{disabled:!r,onClick:()=>{window.localStorage.setItem("SharedArrayBufferOverride","true");window.location.reload()},children:"Open Actual"})]}):(0,t.jsx)(ey.Z,{onClick:()=>n(true),style:{marginLeft:5},children:"Advanced options"})}function eE({buttonText:e,error:n}){const[r,o]=(0,m.useState)(false);const i="type"in n&&n.type==="app-init-failure";return(0,t.jsx)(ex.C,{isCurrent:true,showClose:false,title:"Fatal Error",children:(0,t.jsxs)(eu.Z,{style:{maxWidth:500},children:[i?(0,t.jsx)(ej,{error:n}):(0,t.jsx)(eC,{}),(0,t.jsx)(ew.Z,{children:(0,t.jsx)(em.Z,{onClick:()=>window.Actual.relaunch(),children:e})}),(0,t.jsxs)(ew.Z,{isLast:true,style:{fontSize:11},children:[(0,t.jsx)(ey.Z,{onClick:()=>o(true),children:"Show Error"}),r&&(0,t.jsx)(el.Z,{style:{marginTop:5,height:100,overflow:"auto"},children:n.stack})]})]})})}var eI=eE;var e_=n(21251);function eM(e,t,n){return t.split(".").reduce((e,t)=>e&&e[t]?e[t]:n||null,e)}function eD(e,t){return e.filter(e=>e!==t)}function eP(e){return typeof e==="string"}function eA(e){return typeof e==="object"}function eO(e,t){const n=new Map;const r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r);t.forEach(r);const o=[];n.forEach((e,t)=>{if(e===1){o.push(t)}});return o}function eR(e,t){return e.filter(e=>t.indexOf(e)>-1)};const ez="dnd-core/INIT_COORDS";const eZ="dnd-core/BEGIN_DRAG";const eL="dnd-core/PUBLISH_DRAG_SOURCE";const eN="dnd-core/HOVER";const eB="dnd-core/DROP";const eH="dnd-core/END_DRAG";function eF(e,t){return{type:ez,payload:{sourceClientOffset:t||null,clientOffset:e||null}}};const eV={type:ez,payload:{clientOffset:null,sourceClientOffset:null}};function eW(e){return function t(t=[],n={publishSource:true}){const{publishSource:r=true,clientOffset:o,getSourceClientOffset:i}=n;const a=e.getMonitor();const s=e.getRegistry();e.dispatch(eF(o));eU(t,a,s);const l=eq(t,a);if(l==null){e.dispatch(eV);return}let u=null;if(o){if(!i){throw new Error("getSourceClientOffset must be defined")}e$(i);u=i(l)}e.dispatch(eF(o,u));const c=s.getSource(l);const f=c.beginDrag(a,l);if(f==null){return undefined}eK(f);s.pinSource(l);const h=s.getSourceType(l);return{type:eZ,payload:{itemType:h,item:f,sourceId:l,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function eU(e,t,n){(0,e_.k)(!t.isDragging(),"Cannot call beginDrag while dragging.");e.forEach(function(e){(0,e_.k)(n.getSource(e),"Expected sourceIds to be registered.")})}function e$(e){(0,e_.k)(typeof e==="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function eK(e){(0,e_.k)(eA(e),"Item must be an object.")}function eq(e,t){let n=null;for(let r=e.length-1;r>=0;r--){if(t.canDragSource(e[r])){n=e[r];break}}return n};function eY(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function eG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){eY(e,t,n[t])})}return e}function eX(e){return function t(t={}){const n=e.getMonitor();const r=e.getRegistry();eQ(n);const o=e1(n);o.forEach((o,i)=>{const a=eJ(o,i,r,n);const s={type:eB,payload:{dropResult:eG({},t,a)}};e.dispatch(s)})}}function eQ(e){(0,e_.k)(e.isDragging(),"Cannot call drop while not dragging.");(0,e_.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function eJ(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):undefined;e0(i);if(typeof i==="undefined"){i=t===0?{}:r.getDropResult()}return i}function e0(e){(0,e_.k)(typeof e==="undefined"||eA(e),"Drop result must either be an object or undefined.")}function e1(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);t.reverse();return t};function e2(e){return function t(){const t=e.getMonitor();const n=e.getRegistry();e4(t);const r=t.getSourceId();if(r!=null){const e=n.getSource(r,true);e.endDrag(t,r);n.unpinSource()}return{type:eH}}}function e4(e){(0,e_.k)(e.isDragging(),"Cannot call endDrag while not dragging.")};function e5(e,t){if(t===null){return e===null}return Array.isArray(e)?e.some(e=>e===t):e===t};function e3(e){return function t(t,{clientOffset:n}={}){e6(t);const r=t.slice(0);const o=e.getMonitor();const i=e.getRegistry();const a=o.getItemType();e7(r,i,a);e8(r,o,i);e9(r,o,i);return{type:eN,payload:{targetIds:r,clientOffset:n||null}}}}function e6(e){(0,e_.k)(Array.isArray(e),"Expected targetIds to be an array.")}function e8(e,t,n){(0,e_.k)(t.isDragging(),"Cannot call hover while not dragging.");(0,e_.k)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t<e.length;t++){const r=e[t];(0,e_.k)(e.lastIndexOf(r)===t,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(r);(0,e_.k)(o,"Expected targetIds to be registered.")}}function e7(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];const i=t.getTargetType(o);if(!e5(i,n)){e.splice(r,1)}}}function e9(e,t,n){e.forEach(function(e){const r=n.getTarget(e);r.hover(t,e)})};function te(e){return function t(){const t=e.getMonitor();if(t.isDragging()){return{type:eL}}return}};function tt(e){return{beginDrag:eW(e),publishDragSource:te(e),hover:e3(e),drop:eX(e),endDrag:e2(e)}};class tn{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this;const{dispatch:t}=this.store;function n(n){return(...r)=>{const o=n.apply(e,r);if(typeof o!=="undefined"){t(o)}}}const r=tt(this);return Object.keys(r).reduce((e,t)=>{const o=r[t];e[t]=n(o);return e},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=false;this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;if(this.backend){if(e&&!this.isSetUp){this.backend.setup();this.isSetUp=true}else if(!e&&this.isSetUp){this.backend.teardown();this.isSetUp=false}}};this.store=e;this.monitor=t;e.subscribe(this.handleRefCountChange)}};function tr(e,t){return{x:e.x+t.x,y:e.y+t.y}}function to(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ti(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;if(!t||!n||!r){return null}return to(tr(t,r),n)}function ta(e){const{clientOffset:t,initialClientOffset:n}=e;if(!t||!n){return null}return to(t,n)};const ts=[];const tl=[];ts.__IS_NONE__=true;tl.__IS_ALL__=true;function tu(e,t){if(e===ts){return false}if(e===tl||typeof t==="undefined"){return true}const n=eR(t,e);return n.length>0};class tc{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,e_.k)(typeof e==="function","listener must be a function.");(0,e_.k)(typeof n==="undefined"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;const o=()=>{const t=this.store.getState();const o=t.stateId;try{const i=o===r||o===r+1&&!tu(t.dirtyHandlerIds,n);if(!i){e()}}finally{r=o}};return this.store.subscribe(o)}subscribeToOffsetChange(e){(0,e_.k)(typeof e==="function","listener must be a function.");let t=this.store.getState().dragOffset;const n=()=>{const n=this.store.getState().dragOffset;if(n===t){return}t=n;e()};return this.store.subscribe(n)}canDragSource(e){if(!e){return false}const t=this.registry.getSource(e);(0,e_.k)(t,`Expected to find a valid source. sourceId=${e}`);if(this.isDragging()){return false}return t.canDrag(this,e)}canDropOnTarget(e){if(!e){return false}const t=this.registry.getTarget(e);(0,e_.k)(t,`Expected to find a valid target. targetId=${e}`);if(!this.isDragging()||this.didDrop()){return false}const n=this.registry.getTargetType(e);const r=this.getItemType();return e5(n,r)&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e){return false}const t=this.registry.getSource(e,true);(0,e_.k)(t,`Expected to find a valid source. sourceId=${e}`);if(!this.isDragging()||!this.isSourcePublic()){return false}const n=this.registry.getSourceType(e);const r=this.getItemType();if(n!==r){return false}return t.isDragging(this,e)}isOverTarget(e,t={shallow:false}){if(!e){return false}const{shallow:n}=t;if(!this.isDragging()){return false}const r=this.registry.getTargetType(e);const o=this.getItemType();if(o&&!e5(r,o)){return false}const i=this.getTargetIds();if(!i.length){return false}const a=i.indexOf(e);if(n){return a===i.length-1}else{return a>-1}}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return ti(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ta(this.store.getState().dragOffset)}constructor(e,t){this.store=e;this.registry=t}};const td=typeof global!=="undefined"?global:self;const tf=td.MutationObserver||td.WebKitMutationObserver;function th(e){return function t(){const t=setTimeout(r,0);const n=setInterval(r,50);function r(){clearTimeout(t);clearInterval(n);e()}}}function tp(e){let t=1;const n=new tf(e);const r=document.createTextNode("");n.observe(r,{characterData:true});return function e(){t=-t;r.data=t}}const tg=typeof tf==="function"?tp:th;class tv{enqueueTask(e){const{queue:t,requestFlush:n}=this;if(!t.length){n();this.flushing=true}t[t.length]=e}constructor(){this.queue=[];this.pendingErrors=[];this.flushing=false;this.index=0;this.capacity=1024;this.flush=()=>{const{queue:e}=this;while(this.index<e.length){const t=this.index;this.index++;e[t].call();if(this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++){e[t]=e[t+this.index]}e.length-=this.index;this.index=0}}e.length=0;this.index=0;this.flushing=false};this.registerPendingError=e=>{this.pendingErrors.push(e);this.requestErrorThrow()};this.requestFlush=tg(this.flush);this.requestErrorThrow=th(()=>{if(this.pendingErrors.length){throw this.pendingErrors.shift()}})}};class tm{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null;this.release(this)}}constructor(e,t){this.onError=e;this.release=t;this.task=null}};class ty{create(e){const t=this.freeTasks;const n=t.length?t.pop():new tm(this.onError,e=>t[t.length]=e);n.task=e;return n}constructor(e){this.onError=e;this.freeTasks=[]}};const tx=new tv;const tw=new ty(tx.registerPendingError);function tb(e){tx.enqueueTask(tw.create(e))};;const tS="dnd-core/ADD_SOURCE";const tk="dnd-core/ADD_TARGET";const tj="dnd-core/REMOVE_SOURCE";const tC="dnd-core/REMOVE_TARGET";function tT(e){return{type:tS,payload:{sourceId:e}}}function tE(e){return{type:tk,payload:{targetId:e}}}function tI(e){return{type:tj,payload:{sourceId:e}}}function t_(e){return{type:tC,payload:{targetId:e}}};function tM(e){(0,e_.k)(typeof e.canDrag==="function","Expected canDrag to be a function.");(0,e_.k)(typeof e.beginDrag==="function","Expected beginDrag to be a function.");(0,e_.k)(typeof e.endDrag==="function","Expected endDrag to be a function.")}function tD(e){(0,e_.k)(typeof e.canDrop==="function","Expected canDrop to be a function.");(0,e_.k)(typeof e.hover==="function","Expected hover to be a function.");(0,e_.k)(typeof e.drop==="function","Expected beginDrag to be a function.")}function tP(e,t){if(t&&Array.isArray(e)){e.forEach(e=>tP(e,false));return}(0,e_.k)(typeof e==="string"||typeof e==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")};var tA;(function(e){e["SOURCE"]="SOURCE";e["TARGET"]="TARGET"})(tA||(tA={}));let tO=0;function tR(){return tO++};function tz(e){const t=tR().toString();switch(e){case tA.SOURCE:return`S${t}`;case tA.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function tZ(e){switch(e[0]){case"S":return tA.SOURCE;case"T":return tA.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function tL(e,t){const n=e.entries();let r=false;do{const{done:e,value:[,o]}=n.next();if(o===t){return true}r=!!e}while(!r);return false}class tN{addSource(e,t){tP(e);tM(t);const n=this.addHandler(tA.SOURCE,e,t);this.store.dispatch(tT(n));return n}addTarget(e,t){tP(e,true);tD(t);const n=this.addHandler(tA.TARGET,e,t);this.store.dispatch(tE(n));return n}containsHandler(e){return tL(this.dragSources,e)||tL(this.dropTargets,e)}getSource(e,t=false){(0,e_.k)(this.isSourceId(e),"Expected a valid source ID.");const n=t&&e===this.pinnedSourceId;const r=n?this.pinnedSource:this.dragSources.get(e);return r}getTarget(e){(0,e_.k)(this.isTargetId(e),"Expected a valid target ID.");return this.dropTargets.get(e)}getSourceType(e){(0,e_.k)(this.isSourceId(e),"Expected a valid source ID.");return this.types.get(e)}getTargetType(e){(0,e_.k)(this.isTargetId(e),"Expected a valid target ID.");return this.types.get(e)}isSourceId(e){const t=tZ(e);return t===tA.SOURCE}isTargetId(e){const t=tZ(e);return t===tA.TARGET}removeSource(e){(0,e_.k)(this.getSource(e),"Expected an existing source.");this.store.dispatch(tI(e));tb(()=>{this.dragSources.delete(e);this.types.delete(e)})}removeTarget(e){(0,e_.k)(this.getTarget(e),"Expected an existing target.");this.store.dispatch(t_(e));this.dropTargets.delete(e);this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,e_.k)(t,"Expected an existing source.");this.pinnedSourceId=e;this.pinnedSource=t}unpinSource(){(0,e_.k)(this.pinnedSource,"No source is pinned at the time.");this.pinnedSourceId=null;this.pinnedSource=null}addHandler(e,t,n){const r=tz(e);this.types.set(r,t);if(e===tA.SOURCE){this.dragSources.set(r,n)}else if(e===tA.TARGET){this.dropTargets.set(r,n)}return r}constructor(e){this.types=new Map;this.dragSources=new Map;this.dropTargets=new Map;this.pinnedSourceId=null;this.pinnedSource=null;this.store=e}};const tB=(e,t)=>e===t;function tH(e,t){if(!e&&!t){return true}else if(!e||!t){return false}else{return e.x===t.x&&e.y===t.y}}function tF(e,t,n=tB){if(e.length!==t.length){return false}for(let r=0;r<e.length;++r){if(!n(e[r],t[r])){return false}}return true};function tV(e=ts,t){switch(t.type){case eN:break;case tS:case tk:case tC:case tj:return ts;case eZ:case eL:case eH:case eB:default:return tl}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload;const o=eO(n,r);const i=o.length>0||!tF(n,r);if(!i){return ts}const a=r[r.length-1];const s=n[n.length-1];if(a!==s){if(a){o.push(a)}if(s){o.push(s)}}return o};function tW(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function tU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){tW(e,t,n[t])})}return e}const t$={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function tK(e=t$,t){const{payload:n}=t;switch(t.type){case ez:case eZ:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case eN:if(tH(e.clientOffset,n.clientOffset)){return e}return tU({},e,{clientOffset:n.clientOffset});case eH:case eB:return t$;default:return e}};function tq(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function tY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){tq(e,t,n[t])})}return e}const tG={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:false,isSourcePublic:null};function tX(e=tG,t){const{payload:n}=t;switch(t.type){case eZ:return tY({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:false});case eL:return tY({},e,{isSourcePublic:true});case eN:return tY({},e,{targetIds:n.targetIds});case tC:if(e.targetIds.indexOf(n.targetId)===-1){return e}return tY({},e,{targetIds:eD(e.targetIds,n.targetId)});case eB:return tY({},e,{dropResult:n.dropResult,didDrop:true,targetIds:[]});case eH:return tY({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:false,isSourcePublic:null,targetIds:[]});default:return e}};function tQ(e=0,t){switch(t.type){case tS:case tk:return e+1;case tj:case tC:return e-1;default:return e}};function tJ(e=0){return e+1};function t0(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function t1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){t0(e,t,n[t])})}return e}function t2(e={},t){return{dirtyHandlerIds:tV(e.dirtyHandlerIds,{type:t.type,payload:t1({},t.payload,{prevTargetIds:eM(e,"dragOperation.targetIds",[])})}),dragOffset:tK(e.dragOffset,t),refCount:tQ(e.refCount,t),dragOperation:tX(e.dragOperation,t),stateId:tJ(e.stateId)}};function t4(e,t=undefined,n={},r=false){const o=t5(r);const i=new tc(o,new tN(o));const a=new tn(o,i);const s=e(a,t,n);a.receiveBackend(s);return a}function t5(e){const t=typeof window!=="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,w.MT)(t2,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var t3=n(13577);function t6(e,t){if(e==null)return{};var n=t8(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function t8(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}let t7=0;const t9=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ne=(0,m.memo)(function e(e){var{children:n}=e,r=t6(e,["children"]);const[o,i]=nt(r);(0,m.useEffect)(()=>{if(i){const e=no();++t7;return()=>{if(--t7===0){e[t9]=null}}}return},[]);return(0,t.jsx)(t3.L.Provider,{value:o,children:n})});function nt(e){if("manager"in e){const t={dragDropManager:e.manager};return[t,false]}const t=nn(e.backend,e.context,e.options,e.debugMode);const n=!e.context;return[t,n]}function nn(e,t=no(),n,r){const o=t;if(!o[t9]){o[t9]={dragDropManager:t4(e,t,n,r)}}return o[t9]}function no(){return typeof global!=="undefined"?global:window};function ni(e){let t=null;const n=()=>{if(t==null){t=e()}return t};return n}function na(e,t){return e.filter(e=>e!==t)}function ns(e,t){const n=new Set;const r=e=>n.add(e);e.forEach(r);t.forEach(r);const o=[];n.forEach(e=>o.push(e));return o};class nl{enter(e){const t=this.entered.length;const n=t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e));this.entered=ns(this.entered.filter(n),[e]);return t===0&&this.entered.length>0}leave(e){const t=this.entered.length;this.entered=na(this.entered.filter(this.isNodeInDocument),e);return t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[];this.isNodeInDocument=e}};class nu{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:true,enumerable:true,get(){console.warn(`Browser doesn't allow reading "${e}" until the drop event.`);return null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];if(r!=null){t[n]={value:r(e,this.config.matchesTypes),configurable:true,enumerable:true}}});Object.defineProperties(this.item,t)}}canDrag(){return true}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e;this.item={};this.initializeExposedProperties()}};const nc="__NATIVE_FILE__";const nd="__NATIVE_URL__";const nf="__NATIVE_TEXT__";const nh="__NATIVE_HTML__";function np(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return r!=null?r:n};const ng={[nc]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[nh]:{exposeProperties:{html:(e,t)=>np(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[nd]:{exposeProperties:{urls:(e,t)=>np(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[nf]:{exposeProperties:{text:(e,t)=>np(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function nv(e,t){const n=ng[e];if(!n){throw new Error(`native type ${e} has no configuration`)}const r=new nu(n);r.loadDataTransfer(t);return r}function nm(e){if(!e){return null}const t=Array.prototype.slice.call(e.types||[]);return Object.keys(ng).filter(e=>{const n=ng[e];if(!(n===null||n===void 0?void 0:n.matchesTypes)){return false}return n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null};const ny=ni(()=>/firefox/i.test(navigator.userAgent));const nx=ni(()=>Boolean(window.safari));class nw{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a]){return n[a]}let s=0;let l=i.length-1;let u;while(s<=l){u=Math.floor(.5*(s+l));const r=t[u];if(r<e){s=u+1}else if(r>e){l=u-1}else{return n[u]}}a=Math.max(0,l);const c=e-t[a];const f=c*c;return n[a]+r[a]*c+o[a]*f+i[a]*c*f}constructor(e,t){const{length:n}=e;const r=[];for(let e=0;e<n;e++){r.push(e)}r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[];const i=[];const a=[];let s;let l;for(let r=0;r<n-1;r++){s=e[r+1]-e[r];l=t[r+1]-t[r];i.push(s);o.push(l);a.push(l/s)}const u=[a[0]];for(let e=0;e<i.length-1;e++){const t=a[e];const n=a[e+1];if(t*n<=0){u.push(0)}else{s=i[e];const r=i[e+1];const o=s+r;u.push(3*o/((o+r)/t+(o+s)/n))}}u.push(a[a.length-1]);const c=[];const f=[];let h;for(let e=0;e<u.length-1;e++){h=a[e];const t=u[e];const n=1/i[e];const r=t+u[e+1]-h-h;c.push((h-t-r)*n);f.push(r*n*n)}this.xs=e;this.ys=t;this.c1s=u;this.c2s=c;this.c3s=f}};const nb=1;function nS(e){const t=e.nodeType===nb?e:e.parentElement;if(!t){return null}const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function nk(e){return{x:e.clientX,y:e.clientY}}function nj(e){var t;return e.nodeName==="IMG"&&(ny()||!((t=document.documentElement)===null||t===void 0?void 0:t.contains(e)))}function nC(e,t,n,r){let o=e?t.width:n;let i=e?t.height:r;if(nx()&&e){i/=window.devicePixelRatio;o/=window.devicePixelRatio}return{dragPreviewWidth:o,dragPreviewHeight:i}}function nT(e,t,n,r,o){const i=nj(t);const a=i?e:t;const s=nS(a);const l={x:n.x-s.x,y:n.y-s.y};const{offsetWidth:u,offsetHeight:c}=e;const{anchorX:f,anchorY:h}=r;const{dragPreviewWidth:p,dragPreviewHeight:g}=nC(i,t,u,c);const v=()=>{const e=new nw([0,.5,1],[l.y,l.y/c*g,l.y+g-c]);let t=e.interpolate(h);if(nx()&&i){t+=(window.devicePixelRatio-1)*g}return t};const m=()=>{const e=new nw([0,.5,1],[l.x,l.x/u*p,l.x+p-u]);return e.interpolate(f)};const{offsetX:y,offsetY:x}=o;const w=y===0||y;const b=x===0||x;return{x:w?y:m(),y:b?x:v()}};class nE{get window(){if(this.globalContext){return this.globalContext}else if(typeof window!=="undefined"){return window}return undefined}get document(){var e;if((e=this.globalContext)===null||e===void 0?void 0:e.document){return this.globalContext.document}else if(this.window){return this.window.document}else{return undefined}}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null;this.globalContext=e;this.optionsArgs=t}};function nI(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){nI(e,t,n[t])})}return e}class nM{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e===undefined){return}if(e.__isReactDndBackendSetUp){throw new Error("Cannot have two HTML5 backends at the same time.")}e.__isReactDndBackendSetUp=true;this.addEventListeners(e)}teardown(){const e=this.rootElement;if(e===undefined){return}e.__isReactDndBackendSetUp=false;this.removeEventListeners(this.rootElement);this.clearCurrentDragSourceNode();if(this.asyncEndDragFrameId){var t;(t=this.window)===null||t===void 0?void 0:t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,n){this.sourcePreviewNodeOptions.set(e,n);this.sourcePreviewNodes.set(e,t);return()=>{this.sourcePreviewNodes.delete(e);this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t);this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e);const o=e=>this.handleSelectStart(e);t.setAttribute("draggable","true");t.addEventListener("dragstart",r);t.addEventListener("selectstart",o);return()=>{this.sourceNodes.delete(e);this.sourceNodeOptions.delete(e);t.removeEventListener("dragstart",r);t.removeEventListener("selectstart",o);t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e);const r=t=>this.handleDragOver(t,e);const o=t=>this.handleDrop(t,e);t.addEventListener("dragenter",n);t.addEventListener("dragover",r);t.addEventListener("drop",o);return()=>{t.removeEventListener("dragenter",n);t.removeEventListener("dragover",r);t.removeEventListener("drop",o)}}addEventListeners(e){if(!e.addEventListener){return}e.addEventListener("dragstart",this.handleTopDragStart);e.addEventListener("dragstart",this.handleTopDragStartCapture,true);e.addEventListener("dragend",this.handleTopDragEndCapture,true);e.addEventListener("dragenter",this.handleTopDragEnter);e.addEventListener("dragenter",this.handleTopDragEnterCapture,true);e.addEventListener("dragleave",this.handleTopDragLeaveCapture,true);e.addEventListener("dragover",this.handleTopDragOver);e.addEventListener("dragover",this.handleTopDragOverCapture,true);e.addEventListener("drop",this.handleTopDrop);e.addEventListener("drop",this.handleTopDropCapture,true)}removeEventListeners(e){if(!e.removeEventListener){return}e.removeEventListener("dragstart",this.handleTopDragStart);e.removeEventListener("dragstart",this.handleTopDragStartCapture,true);e.removeEventListener("dragend",this.handleTopDragEndCapture,true);e.removeEventListener("dragenter",this.handleTopDragEnter);e.removeEventListener("dragenter",this.handleTopDragEnterCapture,true);e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,true);e.removeEventListener("dragover",this.handleTopDragOver);e.removeEventListener("dragover",this.handleTopDragOverCapture,true);e.removeEventListener("drop",this.handleTopDrop);e.removeEventListener("drop",this.handleTopDropCapture,true)}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId();const t=this.sourceNodeOptions.get(e);return n_({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){if(this.isDraggingNativeItem()){return"copy"}return this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();const t=this.sourcePreviewNodeOptions.get(e);return n_({anchorX:.5,anchorY:.5,captureDraggingState:false},t||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(e).some(n=>e[n]===t)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode();this.currentNativeSource=nv(e,t);this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource);this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode();this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return(e=this.rootElement)===null||e===void 0?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,true)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){this.currentDragSourceNode=null;if(this.rootElement){var e;(e=this.window)===null||e===void 0?void 0:e.clearTimeout(this.mouseMoveTimeoutTimer||undefined);this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,true)}this.mouseMoveTimeoutTimer=null;return true}return false}handleDragStart(e,t){if(e.defaultPrevented){return}if(!this.dragStartSourceIds){this.dragStartSourceIds=[]}this.dragStartSourceIds.unshift(t)}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){if(this.dragOverTargetIds===null){this.dragOverTargetIds=[]}this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map;this.sourcePreviewNodeOptions=new Map;this.sourceNodes=new Map;this.sourceNodeOptions=new Map;this.dragStartSourceIds=null;this.dropTargetIds=[];this.dragEnterTargetIds=[];this.currentNativeSource=null;this.currentNativeHandle=null;this.currentDragSourceNode=null;this.altKeyPressed=false;this.mouseMoveTimeoutTimer=null;this.asyncEndDragFrameId=null;this.dragOverTargetIds=null;this.lastClientOffset=null;this.hoverRafId=null;this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&nS(t)||null};this.endDragNativeItem=()=>{if(!this.isDraggingNativeItem()){return}this.actions.endDrag();if(this.currentNativeHandle){this.registry.removeSource(this.currentNativeHandle)}this.currentNativeHandle=null;this.currentNativeSource=null};this.isNodeInDocument=e=>{return Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e))};this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;if(e==null||this.isNodeInDocument(e)){return}if(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.scheduleHover=e=>{if(this.hoverRafId===null&&typeof requestAnimationFrame!=="undefined"){this.hoverRafId=requestAnimationFrame(()=>{if(this.monitor.isDragging()){this.actions.hover(e||[],{clientOffset:this.lastClientOffset})}this.hoverRafId=null})}};this.cancelHover=()=>{if(this.hoverRafId!==null&&typeof cancelAnimationFrame!=="undefined"){cancelAnimationFrame(this.hoverRafId);this.hoverRafId=null}};this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode();this.dragStartSourceIds=[]};this.handleTopDragStart=e=>{if(e.defaultPrevented){return}const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=nk(e);if(this.monitor.isDragging()){this.actions.endDrag();this.cancelHover()}this.actions.beginDrag(t||[],{publishSource:false,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e;const o=nm(r);if(this.monitor.isDragging()){if(r&&typeof r.setDragImage==="function"){const e=this.monitor.getSourceId();const t=this.sourceNodes.get(e);const o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions();const l={anchorX:e,anchorY:i};const u={offsetX:a,offsetY:s};const c=nT(t,o,n,l,u);r.setDragImage(o,c.x,c.y)}}try{r===null||r===void 0?void 0:r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();if(!t){setTimeout(()=>this.actions.publishDragSource(),0)}else{this.actions.publishDragSource()}}else if(o){this.beginDragNativeItem(o)}else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable"))){return}else{e.preventDefault()}};this.handleTopDragEndCapture=()=>{if(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.handleTopDragEnterCapture=e=>{this.dragEnterTargetIds=[];if(this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}const n=this.enterLeaveCounter.enter(e.target);if(!n||this.monitor.isDragging()){return}const{dataTransfer:r}=e;const o=nm(r);if(o){this.beginDragNativeItem(o,r)}};this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[];if(!this.monitor.isDragging()){return}this.altKeyPressed=e.altKey;if(t.length>0){this.actions.hover(t,{clientOffset:nk(e)})}const n=t.some(e=>this.monitor.canDropOnTarget(e));if(n){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect=this.getCurrentDropEffect()}}};this.handleTopDragOverCapture=e=>{this.dragOverTargetIds=[];if(this.isDraggingNativeItem()){var t;(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}};this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;this.dragOverTargetIds=[];if(!this.monitor.isDragging()){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect="none"}return}this.altKeyPressed=e.altKey;this.lastClientOffset=nk(e);this.scheduleHover(t);const n=(t||[]).some(e=>this.monitor.canDropOnTarget(e));if(n){e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect=this.getCurrentDropEffect()}}else if(this.isDraggingNativeItem()){e.preventDefault()}else{e.preventDefault();if(e.dataTransfer){e.dataTransfer.dropEffect="none"}}};this.handleTopDragLeaveCapture=e=>{if(this.isDraggingNativeItem()){e.preventDefault()}const t=this.enterLeaveCounter.leave(e.target);if(!t){return}if(this.isDraggingNativeItem()){setTimeout(()=>this.endDragNativeItem(),0)}this.cancelHover()};this.handleTopDropCapture=e=>{this.dropTargetIds=[];if(this.isDraggingNativeItem()){var t;e.preventDefault();(t=this.currentNativeSource)===null||t===void 0?void 0:t.loadDataTransfer(e.dataTransfer)}else if(nm(e.dataTransfer)){e.preventDefault()}this.enterLeaveCounter.reset()};this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[];this.actions.hover(t,{clientOffset:nk(e)});this.actions.drop({dropEffect:this.getCurrentDropEffect()});if(this.isDraggingNativeItem()){this.endDragNativeItem()}else if(this.monitor.isDragging()){this.actions.endDrag()}this.cancelHover()};this.handleSelectStart=e=>{const t=e.target;if(typeof t.dragDrop!=="function"){return}if(t.tagName==="INPUT"||t.tagName==="SELECT"||t.tagName==="TEXTAREA"||t.isContentEditable){return}e.preventDefault();t.dragDrop()};this.options=new nE(t,n);this.actions=e.getActions();this.monitor=e.getMonitor();this.registry=e.getRegistry();this.enterLeaveCounter=new nl(this.isNodeInDocument)}};const nD=function e(e,t,n){return new nM(e,t,n)};var nP=n(59379);var nA=n(45485);var nO=n(81113);var nR=n(99548);var nz=n(68761);var nZ=n(55833);async function nL(e,t,n,r,o){const i=await n();const a=await t(i);if(!a||(await r())["flags.updateNotificationShownForVersion"]===i){return}e({type:"message",title:"A new version of Actual is available!",message:`Version ${i} of Actual was recently released.`,sticky:true,id:"update-notification",button:{title:"Open changelog",action:()=>{window.open("https://actualbudget.org/docs/releases")}},onClose:async()=>{await o({"flags.updateNotificationShownForVersion":i})}})}var nN=n(57555);var nB=n(24868);function nH(){const e=(0,nB.Z)();(0,m.useLayoutEffect)(()=>{window.__navigate=e},[e]);return null};function nF(e){return e.replace("v","").split(".").map(e=>parseInt(e))}function nV(e,t){const n=nF(e);const r=nF(t);return n[0]-r[0]||n[1]-r[1]||n[2]-r[2]}async function nW(){if(s.$8){return Promise.resolve("v99.9.9")}try{const e=await fetch("https://api.github.com/repos/actualbudget/actual/tags");const t=await e.json();const n=t.map(e=>e.name).concat([`v${window.Actual.ACTUAL_VERSION}`]);n.sort(nV);return n[n.length-1]}catch{return"unknown"}}async function nU(e){const t=window.Actual.ACTUAL_VERSION;if(e==="unknown"){return Promise.resolve(false)}return nV(t,e)<0}var n$=n(13015);var nK=n(6083);function nq(){const e=(0,y.v9)(e=>e.account.accountsSyncing);const n=e?e==="__all"?"accounts":e:null;const r=(0,n$.Yz)(n,{from:{opacity:0,transform:"translateY(-100px)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(-100px)"},unique:true});return(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,marginTop:5,alignItems:"center",zIndex:501},children:r((e,n)=>n&&(0,t.jsx)(n$.q.div,{style:e,children:(0,t.jsxs)(eu.Z,{style:{borderRadius:4,backgroundColor:ei.rS.pillBackgroundSelected,color:ei.rS.pillTextSelected,padding:"5px 13px",flexDirection:"row",alignItems:"center",...ei.W2.shadow},children:[(0,t.jsx)(nK.Z,{animating:true,iconStyle:{color:ei.rS.pillTextSelected}}),(0,t.jsxs)(eS.Z,{children:["Syncing ",n]})]})},n))})}var nY=n(75025);function nG(){const e=(0,nB.Z)();(0,m.useEffect)(()=>{const t=t=>{if(s.jU){return}if(t.metaKey){switch(t.key){case"1":e("/budget");break;case"2":e("/reports");break;case"3":e("/accounts");break;case",":if(s.OS==="mac"){e("/settings")}break;default:}}};document.addEventListener("keydown",t);return()=>document.removeEventListener("keydown",t)},[]);return null}var nX=n(24418);var nQ=n(13910);var nJ=n(3189);var n0=n(11504);var n1=n(9579);var n2=n(11892);var n4=n(24198);var n5=n(91882);function n3(){const e=(0,n2.D9)();const n=(0,n2.YP)();return(0,t.jsxs)(n5.xD,{version:"v2",style:{},children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:e.size>0,onSelect:e=>n({type:"select-all",event:e})}),(0,t.jsx)(n5.bL,{value:"Stage",width:50}),(0,t.jsx)(n5.bL,{value:"Rule",width:"flex"})]})}var n6=n(45219);var n8=n(69304);const n7=(0,n8.n)((0,T.ZP)("schedules").select("*"));var n9=n(99012);function re({value:e}){const n=(0,y.v9)(e=>e.queries.payees);const r=(0,V.yG)(n);const{data:o}=n7.useQuery();return(0,t.jsx)(n9.Z,{value:e,field:"rule",data:o,describe:e=>(0,n0.b5)(e,r[e._payee])})};const rt={color:ei.rS.pillTextHighlighted};function rn({style:e,...n}){return(0,t.jsx)(eu.Z,{style:{display:"block",maxWidth:"100%",color:ei.rS.pillText,backgroundColor:ei.rS.pillBackgroundLight,borderRadius:4,padding:"3px 5px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...e},children:n.op==="set"?(0,t.jsx)(ro,{...n}):n.op==="link-schedule"?(0,t.jsx)(ri,{...n}):null})}function ro({op:e,field:n,value:r,options:o}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(e)})," ",(0,t.jsx)(eS.Z,{style:rt,children:(0,nJ.gL)(n,o)})," ",(0,t.jsx)(eS.Z,{children:"to "}),(0,t.jsx)(n9.Z,{style:rt,value:r,field:n})]})}function ri({op:e,value:n}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(e)})," ",(0,t.jsx)(re,{value:n})]})};const ra={color:ei.rS.pillTextHighlighted};function rs({field:e,op:n,value:r,options:o,prefix:i,style:a,inline:s}){return(0,t.jsxs)(eu.Z,{style:{display:"block",maxWidth:"100%",color:ei.rS.pillText,backgroundColor:ei.rS.pillBackgroundLight,borderRadius:4,padding:"3px 5px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",...a},children:[i&&(0,t.jsxs)(eS.Z,{children:[i," "]}),(0,t.jsx)(eS.Z,{style:ra,children:(0,nJ.gL)(e,o)})," ",(0,t.jsx)(eS.Z,{children:(0,nJ.w8)(n)})," ",(0,t.jsx)(n9.Z,{style:ra,value:r,field:e,inline:s})]})};const rl=(0,m.memo)(({rule:e,hovered:n,selected:r,onHover:o,onEditRule:i})=>{const a=(0,n2.YP)();const s=r?ei.rS.tableBorderSelected:"none";const l=n;return(0,t.jsxs)(n5.X2,{height:"auto",style:{fontSize:13,zIndex:r?101:"auto",borderColor:s,backgroundColor:r?ei.rS.tableRowBackgroundHighlight:l?ei.rS.tableRowBackgroundHover:ei.rS.tableBackground},collapsed:true,onMouseEnter:()=>o&&o(e.id),onMouseLeave:()=>o&&o(null),children:[(0,t.jsx)(n5._7,{exposed:n||r,focused:true,onSelect:t=>{a({type:"select",id:e.id,event:t})},selected:r}),(0,t.jsx)(n5.bL,{name:"stage",width:50,plain:true,style:{color:ei.rS.tableText},children:e.stage&&(0,t.jsx)(eu.Z,{style:{alignSelf:"flex-start",margin:5,backgroundColor:ei.rS.pillBackgroundSelected,color:ei.rS.pillTextSelected,borderRadius:4,padding:"3px 5px"},children:e.stage})}),(0,t.jsx)(n5.gN,{width:"flex",style:{padding:"15px 0"},truncate:false,children:(0,t.jsxs)(eb.Z,{direction:"row",align:"center",children:[(0,t.jsx)(eu.Z,{style:{flex:1,alignItems:"flex-start"},"data-testid":"conditions",children:e.conditions.map((n,r)=>(0,t.jsx)(rs,{field:n.field,op:n.op,inline:true,value:n.value,options:n.options,prefix:r>0?(0,nJ.w8)(e.conditionsOp):null,style:r!==0&&{marginTop:3}},r))}),(0,t.jsx)(eS.Z,{children:(0,t.jsx)(n6.Z,{style:{width:12,height:12,color:ei.rS.tableText}})}),(0,t.jsx)(eu.Z,{style:{flex:1,alignItems:"flex-start"},"data-testid":"actions",children:e.actions.map((e,n)=>(0,t.jsx)(rn,{...e,style:n!==0&&{marginTop:3}},n))})]})}),(0,t.jsx)(n5.bL,{name:"edit",plain:true,style:{padding:"0 15px",paddingLeft:5},children:(0,t.jsx)(em.Z,{as:n5.Sx,onSelect:()=>i(e),children:"Edit"})})]})});var ru=rl;function rc({rules:e,selectedItems:n,hoveredRule:r,onHover:o,onEditRule:i}){if(e.length===0){return null}return(0,t.jsx)(eu.Z,{children:e.map(e=>{const a=r===e.id;const s=n.has(e.id);return(0,t.jsx)(ru,{rule:e,hovered:a,selected:s,onHover:o,onEditRule:i},e.id)})})};function rd({loadMore:e,style:n,onHoverLeave:r,children:o}){const i=(0,m.useRef)();const a=(0,m.useRef)();function s(t){if(e&&Math.abs(t.currentTarget.scrollHeight-t.currentTarget.clientHeight-t.currentTarget.scrollTop)<1){e()}}return(0,t.jsx)(eu.Z,{style:{flex:1,outline:"none","& .animated .animated-row":{transition:".25s transform"},...n},tabIndex:1,"data-testid":"table",children:(0,t.jsx)(eu.Z,{innerRef:a,style:{maxWidth:"100%",overflow:"auto"},onScroll:s,children:(0,t.jsx)("div",{ref:i,onMouseLeave:r,children:o})})})};function rf(e,t,{payees:n,categories:r,accounts:o}){if(!t)return"";let i=null;if(e==="payee"){i=n.find(e=>e.id===t)}else if(e==="category"){i=r.find(e=>e.id===t)}else if(e==="account"){i=o.find(e=>e.id===t)}else{return t}if(i){return i.name}return"(deleted)"}function rh(e,t){const n=e.conditions.flatMap(e=>[(0,nJ.gL)(e.field),(0,nJ.w8)(e.op),e.op==="oneOf"||e.op==="notOneOf"?e.value.map(n=>rf(e.field,n,t)).join(", "):rf(e.field,e.value,t)]);const r=e.actions.flatMap(e=>{if(e.op==="set"){return[(0,nJ.w8)(e.op),(0,nJ.gL)(e.field),"to",rf(e.field,e.value,t)]}else if(e.op==="link-schedule"){const n=t.schedules.find(t=>t.id===e.value);return[(0,nJ.w8)(e.op),(0,n0.b5)(n,t.payees.find(e=>e.id===n._payee))]}else{return[]}});return(e.stage||"")+" "+n.join(" ")+" "+r.join(" ")}function rp({isModal:e,payeeId:n,setLoading:r}){const[o,i]=(0,m.useState)([]);const[a,s]=(0,m.useState)(0);const[l,u]=(0,m.useState)("");const c=(0,y.I0)();const{data:f}=n7.useQuery();const{list:h}=(0,n1.Z)();const p=(0,y.v9)(e=>({payees:e.queries.payees,accounts:e.queries.accounts,schedules:f}));const g=(0,m.useMemo)(()=>({...p,categories:h}),[p,h]);const v=(0,m.useMemo)(()=>(l===""?o:o.filter(e=>rh(e,g).toLowerCase().includes(l.toLowerCase()))).slice(0,100+a*50),[o,l,g,a]);const x=(0,n2.ZP)("manage-rules",o,[]);const[w,b]=(0,m.useState)(null);const S=(0,m.useCallback)(e=>{u(e);s(0)},[u]);async function k(){r(true);let e=null;if(n){e=await (0,q.lW)("payees-get-rules",{id:n})}else{e=await (0,q.lW)("rules-get")}i(e);return e}(0,m.useEffect)(()=>{async function e(){await k();r(false);await c((0,nQ.Rr)())}if(n){nN.kp("openModal","manage-rules")}e();return()=>{nN.kp("openModal",null)}},[]);function j(){s(e=>e+1)}async function C(){r(true);const{someDeletionsFailed:e}=await (0,q.lW)("rule-delete-all",[...x.items]);if(e){alert("Some rules were not deleted because they are linked to schedules")}await k();x.dispatch({type:"select-none"});r(false)}const T=(0,m.useCallback)(e=>{c((0,nX.Ll)("edit-rule",{rule:e,onSave:async()=>{await k();r(false)}}))},[]);function E(){const e={stage:null,conditionsOp:"and",conditions:[{field:"payee",op:"is",value:n||null,type:"id"}],actions:[{op:"set",field:"category",value:null,type:"id"}]};c((0,nX.Ll)("edit-rule",{rule:e,onSave:async e=>{await k();r(false)}}))}const I=(0,m.useCallback)(e=>{b(e)},[]);if(o.length===0){return null}return(0,t.jsx)(n2.i5,{instance:x,children:(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",padding:e?"0 13px 15px":"0 0 15px",flexShrink:0},children:[(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight,flexDirection:"row",alignItems:"center",width:"50%"},children:(0,t.jsxs)(eS.Z,{children:["Rules are always run in the order that you see them."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/budgeting/rules/",linkColor:"muted",children:"Learn more"})]})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n4.Z,{placeholder:"Filter rules...",value:l,onChange:S})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(n3,{}),(0,t.jsx)(rd,{loadMore:j,style:{marginBottom:-1},children:(0,t.jsx)(rc,{rules:v,selectedItems:x.items,hoveredRule:w,onHover:I,onEditRule:T})})]}),(0,t.jsx)(eu.Z,{style:{paddingBlock:15,paddingInline:e?13:0,borderTop:e&&"1px solid "+ei.rS.pillBorder,flexShrink:0},children:(0,t.jsxs)(eb.Z,{direction:"row",align:"center",justify:"flex-end",spacing:2,children:[x.items.size>0&&(0,t.jsxs)(em.Z,{onClick:C,children:["Delete ",x.items.size," rules"]}),(0,t.jsx)(em.Z,{type:"primary",onClick:E,children:"Create new rule"})]})})]})})}function rg({isModal:e,payeeId:n,setLoading:r=()=>{}}){return(0,t.jsx)(n7.Provider,{children:(0,t.jsx)(rp,{isModal:e,payeeId:n,setLoading:r})})}var rv=n(13308);function rm(){return(0,t.jsx)(rv.T,{title:"Rules",children:(0,t.jsx)(rg,{isModal:false,payeeId:null})})};function ry(e,t,n){return Math.max(t,Math.min(e,n))}const rx={toVector(e,t){if(e===undefined)e=t;return Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0];e[1]+=t[1]},subTo(e,t){e[0]-=t[0];e[1]-=t[1]}};function rw(e,t,n){if(t===0||Math.abs(t)===Infinity)return Math.pow(e,n*5);return e*t*n/(t+n*e)}function rb(e,t,n,r=.15){if(r===0)return ry(e,t,n);if(e<t)return-rw(t-e,n-t,r)+t;if(e>n)return+rw(e-n,n-t,r)+n;return e}function rS(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[rb(t,i,a,r),rb(n,s,l,o)]};function rk(e,t){if(typeof e!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==undefined){var r=n.call(e,t||"default");if(typeof r!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rj(e){var t=rk(e,"string");return typeof t==="symbol"?t:String(t)}function rC(e,t,n){t=rj(t);if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(t){rC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const rI={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function r_(e){if(!e)return"";return e[0].toUpperCase()+e.slice(1)}const rM=["enter","leave"];function rD(e=false,t){return e&&!rM.includes(t)}function rP(e,t="",n=false){const r=rI[e];const o=r?r[t]||t:t;return"on"+r_(e)+r_(o)+(rD(n,o)?"Capture":"")}const rA=["gotpointercapture","lostpointercapture"];function rO(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");if(n)t=t.replace("passive","");const r=rA.includes(t)?"capturecapture":"capture";const o=!!~t.indexOf(r);if(o)t=t.replace("capture","");return{device:t,capture:o,passive:n}}function rR(e,t=""){const n=rI[e];const r=n?n[t]||t:t;return e+r}function rz(e){return"touches"in e}function rZ(e){if(rz(e))return"touch";if("pointerType"in e)return e.pointerType;return"mouse"}function rL(e){return Array.from(e.touches).filter(t=>{var n,r;return t.target===e.currentTarget||((n=e.currentTarget)===null||n===void 0||(r=n.contains)===null||r===void 0?void 0:r.call(n,t.target))})}function rN(e){return e.type==="touchend"||e.type==="touchcancel"?e.changedTouches:e.targetTouches}function rB(e){return rz(e)?rN(e)[0]:e}function rH(e,t){try{const n=t.clientX-e.clientX;const r=t.clientY-e.clientY;const o=(t.clientX+e.clientX)/2;const i=(t.clientY+e.clientY)/2;const a=Math.hypot(n,r);const s=-(Math.atan2(n,r)*180)/Math.PI;const l=[o,i];return{angle:s,distance:a,origin:l}}catch(e){}return null}function rF(e){return rL(e).map(e=>e.identifier)}function rV(e,t){const[n,r]=Array.from(e.touches).filter(e=>t.includes(e.identifier));return rH(n,r)}function rW(e){const t=rB(e);return rz(e)?t.identifier:t.pointerId}function rU(e){const t=rB(e);return[t.clientX,t.clientY]}const r$=40;const rK=800;function rq(e){let{deltaX:t,deltaY:n,deltaMode:r}=e;if(r===1){t*=r$;n*=r$}else if(r===2){t*=rK;n*=rK}return[t,n]}function rY(e){var t,n;const{scrollX:r,scrollY:o,scrollLeft:i,scrollTop:a}=e.currentTarget;return[(t=r!==null&&r!==void 0?r:i)!==null&&t!==void 0?t:0,(n=o!==null&&o!==void 0?o:a)!==null&&n!==void 0?n:0]}function rG(e){const t={};if("buttons"in e)t.buttons=e.buttons;if("shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}function rX(e,...t){if(typeof e==="function"){return e(...t)}else{return e}}function rQ(){}function rJ(...e){if(e.length===0)return rQ;if(e.length===1)return e[0];return function(){let t;for(const n of e){t=n.apply(this,arguments)||t}return t}}function r0(e,t){return Object.assign({},t,e||{})}const r1=32;class r2{constructor(e,t,n){this.ctrl=e;this.args=t;this.key=n;if(!this.state){this.state={};this.computeValues([0,0]);this.computeInitial();if(this.init)this.init();this.reset()}}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=false;e._step=[false,false];e.intentional=false;e._movement=[0,0];e._distance=[0,0];e._direction=[0,0];e._delta=[0,0];e._bounds=[[-Infinity,Infinity],[-Infinity,Infinity]];e.args=r;e.axis=undefined;e.memo=undefined;e.elapsedTime=e.timeDelta=0;e.direction=[0,0];e.distance=[0,0];e.overflow=[0,0];e._movementBound=[false,false];e.velocity=[0,0];e.movement=[0,0];e.delta=[0,0];e.timeStamp=0}start(e){const t=this.state;const n=this.config;if(!t._active){this.reset();this.computeInitial();t._active=true;t.target=e.target;t.currentTarget=e.currentTarget;t.lastOffset=n.from?rX(n.from,t):t.offset;t.offset=t.lastOffset;t.startTime=t.timeStamp=e.timeStamp}}computeValues(e){const t=this.state;t._values=e;t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values;e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e){t.event=e;if(n.preventDefault&&e.cancelable)t.event.preventDefault();t.type=e.type;r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size;r.locked=!!document.pointerLockElement;Object.assign(r,rG(e));r.down=r.pressed=r.buttons%2===1||r.touches>0;o=e.timeStamp-t.timeStamp;t.timeStamp=e.timeStamp;t.elapsedTime=t.timeStamp-t.startTime}if(t._active){const e=t._delta.map(Math.abs);rx.addTo(t._distance,e)}if(this.axisIntent)this.axisIntent(e);const[i,a]=t._movement;const[s,l]=n.threshold;const{_step:u,values:c}=t;if(n.hasCustomTransform){if(u[0]===false)u[0]=Math.abs(i)>=s&&c[0];if(u[1]===false)u[1]=Math.abs(a)>=l&&c[1]}else{if(u[0]===false)u[0]=Math.abs(i)>=s&&Math.sign(i)*s;if(u[1]===false)u[1]=Math.abs(a)>=l&&Math.sign(a)*l}t.intentional=u[0]!==false||u[1]!==false;if(!t.intentional)return;const f=[0,0];if(n.hasCustomTransform){const[e,t]=c;f[0]=u[0]!==false?e-u[0]:0;f[1]=u[1]!==false?t-u[1]:0}else{f[0]=u[0]!==false?i-u[0]:0;f[1]=u[1]!==false?a-u[1]:0}if(this.restrictToAxis&&!t._blocked)this.restrictToAxis(f);const h=t.offset;const p=t._active&&!t._blocked||t.active;if(p){t.first=t._active&&!t.active;t.last=!t._active&&t.active;t.active=r[this.ingKey]=t._active;if(e){if(t.first){if("bounds"in n)t._bounds=rX(n.bounds,t);if(this.setup)this.setup()}t.movement=f;this.computeOffset()}}const[g,v]=t.offset;const[[m,y],[x,w]]=t._bounds;t.overflow=[g<m?-1:g>y?1:0,v<x?-1:v>w?1:0];t._movementBound[0]=t.overflow[0]?t._movementBound[0]===false?t._movement[0]:t._movementBound[0]:false;t._movementBound[1]=t.overflow[1]?t._movementBound[1]===false?t._movement[1]:t._movementBound[1]:false;const b=t._active?n.rubberband||[0,0]:[0,0];t.offset=rS(t._bounds,t.offset,b);t.delta=rx.sub(t.offset,h);this.computeMovement();if(p&&(!t.last||o>r1)){t.delta=rx.sub(t.offset,h);const e=t.delta.map(Math.abs);rx.addTo(t.distance,e);t.direction=t.delta.map(Math.sign);t._direction=t._delta.map(Math.sign);if(!t.first&&o>0){t.velocity=[e[0]/o,e[1]/o];t.timeDelta=o}}}emit(){const e=this.state;const t=this.shared;const n=this.config;if(!e._active)this.clean();if((e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(rE(rE(rE({},t),e),{},{[this.aliasKey]:e.values}));if(r!==undefined)e.memo=r}clean(){this.eventStore.clean();this.timeoutStore.clean()}}function r4([e,t],n){const r=Math.abs(e);const o=Math.abs(t);if(r>o&&r>n){return"x"}if(o>r&&o>n){return"y"}return undefined}class r5 extends r2{constructor(...e){super(...e);rC(this,"aliasKey","xy")}reset(){super.reset();this.state.axis=undefined}init(){this.state.offset=[0,0];this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=rx.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=rx.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state;const n=this.config;if(!t.axis&&e){const r=typeof n.axisThreshold==="object"?n.axisThreshold[rZ(e)]:n.axisThreshold;t.axis=r4(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection){switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0;break}}}}const r3=e=>e;const r6=.15;const r8={enabled(e=true){return e},eventOptions(e,t,n){return rE(rE({},n.shared.eventOptions),e)},preventDefault(e=false){return e},triggerAllEvents(e=false){return e},rubberband(e=0){switch(e){case true:return[r6,r6];case false:return[0,0];default:return rx.toVector(e)}},from(e){if(typeof e==="function")return e;if(e!=null)return rx.toVector(e)},transform(e,t,n){const r=e||n.shared.transform;this.hasCustomTransform=!!r;if(false){}return r||r3},threshold(e){return rx.toVector(e,0)}};if(false){}const r7=0;const r9=rE(rE({},r8),{},{axis(e,t,{axis:n}){this.lockDirection=n==="lock";if(!this.lockDirection)return n},axisThreshold(e=r7){return e},bounds(e={}){if(typeof e==="function"){return t=>r9.bounds(e(t))}if("current"in e){return()=>e.current}if(typeof HTMLElement==="function"&&e instanceof HTMLElement){return e}const{left:t=-Infinity,right:n=Infinity,top:r=-Infinity,bottom:o=Infinity}=e;return[[t,n],[r,o]]}});const oe={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};class ot extends r5{constructor(...e){super(...e);rC(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=undefined;e._pointerActive=false;e._keyboardActive=false;e._preventScroll=false;e._delayed=false;e.swipe=[0,0];e.tap=false;e.canceled=false;e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect();const n=e.currentTarget.getBoundingClientRect();const r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=r9.bounds(r)}}cancel(){const e=this.state;if(e.canceled)return;e.canceled=true;e._active=false;setTimeout(()=>{this.compute();this.emit()},0)}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean();this.state._pointerActive=false;this.state._keyboardActive=false;super.clean()}pointerDown(e){const t=this.config;const n=this.state;if(e.buttons!=null&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):t.pointerButtons!==-1&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);if(t.pointerCapture){e.target.setPointerCapture(e.pointerId)}if(r&&r.size>1&&n._pointerActive)return;this.start(e);this.setupPointer(e);n._pointerId=rW(e);n._pointerActive=true;this.computeValues(rU(e));this.computeInitial();if(t.preventScrollAxis&&rZ(e)!=="mouse"){n._active=false;this.setupScrollPrevention(e)}else if(t.delay>0){this.setupDelayTrigger(e);if(t.triggerAllEvents){this.compute(e);this.emit()}}else{this.startPointerDrag(e)}}startPointerDrag(e){const t=this.state;t._active=true;t._preventScroll=true;t._delayed=false;this.compute(e);this.emit()}pointerMove(e){const t=this.state;const n=this.config;if(!t._pointerActive)return;const r=rW(e);if(t._pointerId!==undefined&&r!==t._pointerId)return;const o=rU(e);if(document.pointerLockElement===e.target){t._delta=[e.movementX,e.movementY]}else{t._delta=rx.sub(o,t._values);this.computeValues(o)}rx.addTo(t._movement,t._delta);this.compute(e);if(t._delayed&&t.intentional){this.timeoutStore.remove("dragDelay");t.active=false;this.startPointerDrag(e);return}if(n.preventScrollAxis&&!t._preventScroll){if(t.axis){if(t.axis===n.preventScrollAxis||n.preventScrollAxis==="xy"){t._active=false;this.clean();return}else{this.timeoutStore.remove("startPointerDrag");this.startPointerDrag(e);return}}else{return}}this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{if(this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)){;e.target.releasePointerCapture(e.pointerId)}}catch(e){if(false){}}const t=this.state;const n=this.config;if(!t._active||!t._pointerActive)return;const r=rW(e);if(t._pointerId!==undefined&&r!==t._pointerId)return;this.state._pointerActive=false;this.setActive();this.compute(e);const[o,i]=t._distance;t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold;if(t.tap&&n.filterTaps){t._force=true}else{const[e,r]=t._delta;const[o,i]=t._movement;const[a,s]=n.swipe.velocity;const[l,u]=n.swipe.distance;const c=n.swipe.duration;if(t.elapsedTime<c){const n=Math.abs(e/t.timeDelta);const c=Math.abs(r/t.timeDelta);if(n>a&&Math.abs(o)>l)t.swipe[0]=Math.sign(e);if(c>s&&Math.abs(i)>u)t.swipe[1]=Math.sign(r)}}this.emit()}pointerClick(e){if(!this.state.tap&&e.detail>0){e.preventDefault();e.stopPropagation()}}setupPointer(e){const t=this.config;const n=t.device;if(false){}if(t.pointerLock){e.currentTarget.requestPointerLock()}if(!t.pointerCapture){this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this));this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this));this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this))}}pointerClean(){if(this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget){document.exitPointerLock()}}preventScroll(e){if(this.state._preventScroll&&e.cancelable){e.preventDefault()}}setupScrollPrevention(e){this.state._preventScroll=false;on(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:false});this.eventStore.add(this.sharedConfig.window,"touch","end",t);this.eventStore.add(this.sharedConfig.window,"touch","cancel",t);this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=true;this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0];this.startPointerDrag(e)},this.config.delay)}keyDown(e){const t=oe[e.key];if(t){const n=this.state;const r=e.shiftKey?10:e.altKey?.1:1;this.start(e);n._delta=t(this.config.keyboardDisplacement,r);n._keyboardActive=true;rx.addTo(n._movement,n._delta);this.compute(e);this.emit()}}keyUp(e){if(!(e.key in oe))return;this.state._keyboardActive=false;this.setActive();this.compute(e);this.emit()}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this));if(this.config.pointerCapture){e(t,"change",this.pointerMove.bind(this));e(t,"end",this.pointerUp.bind(this));e(t,"cancel",this.pointerUp.bind(this));e("lostPointerCapture","",this.pointerUp.bind(this))}if(this.config.keys){e("key","down",this.keyDown.bind(this));e("key","up",this.keyUp.bind(this))}if(this.config.filterTaps){e("click","",this.pointerClick.bind(this),{capture:true,passive:false})}}}function on(e){"persist"in e&&typeof e.persist==="function"&&e.persist()}const oo=typeof window!=="undefined"&&window.document&&window.document.createElement;function oi(){return oo&&"ontouchstart"in window}function oa(){return oi()||oo&&window.navigator.maxTouchPoints>1}function os(){return oo&&"onpointerdown"in window}function ol(){return oo&&"exitPointerLock"in window.document}function ou(){try{return"constructor"in GestureEvent}catch(e){return false}}const oc={isBrowser:oo,gesture:ou(),touch:oi(),touchscreen:oa(),pointer:os(),pointerLock:ol()};const od=250;const of=180;const oh=.5;const op=50;const og=250;const ov=10;const om={mouse:0,touch:0,pen:8};const oy=rE(rE({},r9),{},{device(e,t,{pointer:{touch:n=false,lock:r=false,mouse:o=false}={}}){this.pointerLock=r&&oc.pointerLock;if(oc.touch&&n)return"touch";if(this.pointerLock)return"mouse";if(oc.pointer&&!o)return"pointer";if(oc.touch)return"touch";return"mouse"},preventScrollAxis(e,t,{preventScroll:n}){this.preventScrollDelay=typeof n==="number"?n:n||n===undefined&&e?od:undefined;if(!oc.touchscreen||n===false)return undefined;return e?e:n!==undefined?"y":undefined},pointerCapture(e,t,{pointer:{capture:n=true,buttons:r=1,keys:o=true}={}}){this.pointerButtons=r;this.keys=o;return!this.pointerLock&&this.device==="pointer"&&n},threshold(e,t,{filterTaps:n=false,tapsThreshold:r=3,axis:o=undefined}){const i=rx.toVector(e,n?r:o?1:0);this.filterTaps=n;this.tapsThreshold=r;return i},swipe({velocity:e=oh,distance:t=op,duration:n=og}={}){return{velocity:this.transform(rx.toVector(e)),distance:this.transform(rx.toVector(t)),duration:n}},delay(e=0){switch(e){case true:return of;case false:return 0;default:return e}},axisThreshold(e){if(!e)return om;return rE(rE({},om),e)},keyboardDisplacement(e=ov){return e}});if(false){}function ox(e){const[t,n]=e.overflow;const[r,o]=e._delta;const[i,a]=e._direction;if(t<0&&r>0&&i<0||t>0&&r<0&&i>0){e._movement[0]=e._movementBound[0]}if(n<0&&o>0&&a<0||n>0&&o<0&&a>0){e._movement[1]=e._movementBound[1]}}const ow=30;const ob=100;class oS extends r2{constructor(...e){super(...e);rC(this,"ingKey","pinching");rC(this,"aliasKey","da")}init(){this.state.offset=[1,0];this.state.lastOffset=[1,0];this.state._pointerEvents=new Map}reset(){super.reset();const e=this.state;e._touchIds=[];e.canceled=false;e.cancel=this.cancel.bind(this);e.turns=0}computeOffset(){const{type:e,movement:t,lastOffset:n}=this.state;if(e==="wheel"){this.state.offset=rx.add(t,n)}else{this.state.offset=[(1+t[0])*n[0],t[1]+n[1]]}}computeMovement(){const{offset:e,lastOffset:t}=this.state;this.state.movement=[e[0]/t[0],e[1]-t[1]]}axisIntent(){const e=this.state;const[t,n]=e._movement;if(!e.axis){const r=Math.abs(t)*ow-Math.abs(n);if(r<0)e.axis="angle";else if(r>0)e.axis="scale"}}restrictToAxis(e){if(this.config.lockDirection){if(this.state.axis==="scale")e[1]=0;else if(this.state.axis==="angle")e[0]=0}}cancel(){const e=this.state;if(e.canceled)return;setTimeout(()=>{e.canceled=true;e._active=false;this.compute();this.emit()},0)}touchStart(e){this.ctrl.setEventIds(e);const t=this.state;const n=this.ctrl.touchIds;if(t._active){if(t._touchIds.every(e=>n.has(e)))return}if(n.size<2)return;this.start(e);t._touchIds=Array.from(n).slice(0,2);const r=rV(e,t._touchIds);if(!r)return;this.pinchStart(e,r)}pointerStart(e){if(e.buttons!=null&&e.buttons%2!==1)return;this.ctrl.setEventIds(e);e.target.setPointerCapture(e.pointerId);const t=this.state;const n=t._pointerEvents;const r=this.ctrl.pointerIds;if(t._active){if(Array.from(n.keys()).every(e=>r.has(e)))return}if(n.size<2){n.set(e.pointerId,e)}if(t._pointerEvents.size<2)return;this.start(e);const o=rH(...Array.from(n.values()));if(!o)return;this.pinchStart(e,o)}pinchStart(e,t){const n=this.state;n.origin=t.origin;this.computeValues([t.distance,t.angle]);this.computeInitial();this.compute(e);this.emit()}touchMove(e){if(!this.state._active)return;const t=rV(e,this.state._touchIds);if(!t)return;this.pinchMove(e,t)}pointerMove(e){const t=this.state._pointerEvents;if(t.has(e.pointerId)){t.set(e.pointerId,e)}if(!this.state._active)return;const n=rH(...Array.from(t.values()));if(!n)return;this.pinchMove(e,n)}pinchMove(e,t){const n=this.state;const r=n._values[1];const o=t.angle-r;let i=0;if(Math.abs(o)>270)i+=Math.sign(o);this.computeValues([t.distance,t.angle-360*i]);n.origin=t.origin;n.turns=i;n._movement=[n._values[0]/n._initial[0]-1,n._values[1]-n._initial[1]];this.compute(e);this.emit()}touchEnd(e){this.ctrl.setEventIds(e);if(!this.state._active)return;if(this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))){this.state._active=false;this.compute(e);this.emit()}}pointerEnd(e){const t=this.state;this.ctrl.setEventIds(e);try{e.target.releasePointerCapture(e.pointerId)}catch(e){}if(t._pointerEvents.has(e.pointerId)){t._pointerEvents.delete(e.pointerId)}if(!t._active)return;if(t._pointerEvents.size<2){t._active=false;this.compute(e);this.emit()}}gestureStart(e){if(e.cancelable)e.preventDefault();const t=this.state;if(t._active)return;this.start(e);this.computeValues([e.scale,e.rotation]);t.origin=[e.clientX,e.clientY];this.compute(e);this.emit()}gestureMove(e){if(e.cancelable)e.preventDefault();if(!this.state._active)return;const t=this.state;this.computeValues([e.scale,e.rotation]);t.origin=[e.clientX,e.clientY];const n=t._movement;t._movement=[e.scale-1,e.rotation];t._delta=rx.sub(t._movement,n);this.compute(e);this.emit()}gestureEnd(e){if(!this.state._active)return;this.state._active=false;this.compute(e);this.emit()}wheel(e){const t=this.config.modifierKey;if(t&&(Array.isArray(t)?!t.find(t=>e[t]):!e[t]))return;if(!this.state._active)this.wheelStart(e);else this.wheelChange(e);this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelStart(e){this.start(e);this.wheelChange(e)}wheelChange(e){const t="uv"in e;if(!t){if(e.cancelable){e.preventDefault()}if(false){}}const n=this.state;n._delta=[-rq(e)[1]/ob*n.offset[0],0];rx.addTo(n._movement,n._delta);ox(n);this.state.origin=[e.clientX,e.clientY];this.compute(e);this.emit()}wheelEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){const t=this.config.device;if(!!t){e(t,"start",this[t+"Start"].bind(this));e(t,"change",this[t+"Move"].bind(this));e(t,"end",this[t+"End"].bind(this));e(t,"cancel",this[t+"End"].bind(this));e("lostPointerCapture","",this[t+"End"].bind(this))}if(this.config.pinchOnWheel){e("wheel","",this.wheel.bind(this),{passive:false})}}}const ok=rE(rE({},r8),{},{device(e,t,{shared:n,pointer:{touch:r=false}={}}){const o=n;if(o.target&&!oc.touch&&oc.gesture)return"gesture";if(oc.touch&&r)return"touch";if(oc.touchscreen){if(oc.pointer)return"pointer";if(oc.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=r0(rX(n,e),{min:-Infinity,max:Infinity});return[t.min,t.max]};const i=e=>{const t=r0(rX(r,e),{min:-Infinity,max:Infinity});return[t.min,t.max]};if(typeof n!=="function"&&typeof r!=="function")return[o(),i()];return e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection=n.axis==="lock";const r=rx.toVector(e,this.lockDirection?[.1,3]:0);return r},modifierKey(e){if(e===undefined)return"ctrlKey";return e},pinchOnWheel(e=true){return e}});class oj extends r5{constructor(...e){super(...e);rC(this,"ingKey","moving")}move(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;if(!this.state._active)this.moveStart(e);else this.moveChange(e);this.timeoutStore.add("moveEnd",this.moveEnd.bind(this))}moveStart(e){this.start(e);this.computeValues(rU(e));this.compute(e);this.computeInitial();this.emit()}moveChange(e){if(!this.state._active)return;const t=rU(e);const n=this.state;n._delta=rx.sub(t,n._values);rx.addTo(n._movement,n._delta);this.computeValues(t);this.compute(e);this.emit()}moveEnd(e){if(!this.state._active)return;this.state._active=false;this.compute(e);this.emit()}bind(e){e("pointer","change",this.move.bind(this));e("pointer","leave",this.moveEnd.bind(this))}}const oC=rE(rE({},r9),{},{mouseOnly:(e=true)=>e});class oT extends r5{constructor(...e){super(...e);rC(this,"ingKey","scrolling")}scroll(e){if(!this.state._active)this.start(e);this.scrollChange(e);this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(e){if(e.cancelable)e.preventDefault();const t=this.state;const n=rY(e);t._delta=rx.sub(n,t._values);rx.addTo(t._movement,t._delta);this.computeValues(n);this.compute(e);this.emit()}scrollEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){e("scroll","",this.scroll.bind(this))}}const oE=r9;class oI extends r5{constructor(...e){super(...e);rC(this,"ingKey","wheeling")}wheel(e){if(!this.state._active)this.start(e);this.wheelChange(e);this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(e){const t=this.state;t._delta=rq(e);rx.addTo(t._movement,t._delta);ox(t);this.compute(e);this.emit()}wheelEnd(){if(!this.state._active)return;this.state._active=false;this.compute();this.emit()}bind(e){e("wheel","",this.wheel.bind(this))}}const o_=r9;class oM extends r5{constructor(...e){super(...e);rC(this,"ingKey","hovering")}enter(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;this.start(e);this.computeValues(rU(e));this.compute(e);this.emit()}leave(e){if(this.config.mouseOnly&&e.pointerType!=="mouse")return;const t=this.state;if(!t._active)return;t._active=false;const n=rU(e);t._movement=t._delta=rx.sub(n,t._values);this.computeValues(n);this.compute(e);t.delta=t.movement;this.emit()}bind(e){e("pointer","enter",this.enter.bind(this));e("pointer","leave",this.leave.bind(this))}}const oD=rE(rE({},r9),{},{mouseOnly:(e=true)=>e});const oP=new Map;const oA=new Map;function oO(e){oP.set(e.key,e.engine);oA.set(e.key,e.resolver)}const oR={key:"drag",engine:ot,resolver:oy};const oz={key:"hover",engine:oM,resolver:oD};const oZ={key:"move",engine:oj,resolver:oC};const oL={key:"pinch",engine:oS,resolver:ok};const oN={key:"scroll",engine:oT,resolver:oE};const oB={key:"wheel",engine:oI,resolver:o_};function oH(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function oF(e,t){if(e==null)return{};var n=oH(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}const oV={target(e){if(e){return()=>"current"in e?e.current:e}return undefined},enabled(e=true){return e},window(e=oc.isBrowser?window:undefined){return e},eventOptions({passive:e=true,capture:t=false}={}){return{passive:e,capture:t}},transform(e){return e}};const oW=["target","eventOptions","window","enabled","transform"];function oU(e={},t){const n={};for(const[r,o]of Object.entries(t)){switch(typeof o){case"function":if(false){}else{n[r]=o.call(n,e[r],r,e)}break;case"object":n[r]=oU(e[r],o);break;case"boolean":if(o)n[r]=e[r];break}}return n}function o$(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,u=oF(r,oW);n.shared=oU({target:o,eventOptions:i,window:a,enabled:s,transform:l},oV);if(t){const e=oA.get(t);n[t]=oU(rE({shared:n.shared},u),e)}else{for(const e in u){const t=oA.get(e);if(t){n[e]=oU(rE({shared:n.shared},u[e]),t)}else if(false){}}}return n}class oK{constructor(e,t){rC(this,"_listeners",new Set);this._ctrl=e;this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners;const a=rR(t,n);const s=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{};const l=rE(rE({},s),o);e.addEventListener(a,r,l);const u=()=>{e.removeEventListener(a,r,l);i.delete(u)};i.add(u);return u}clean(){this._listeners.forEach(e=>e());this._listeners.clear()}}class oq{constructor(){rC(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e);this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);if(t)window.clearTimeout(t)}clean(){this._timeouts.forEach(e=>void window.clearTimeout(e));this._timeouts.clear()}}class oY{constructor(e){rC(this,"gestures",new Set);rC(this,"_targetEventStore",new oK(this));rC(this,"gestureEventStores",{});rC(this,"gestureTimeoutStores",{});rC(this,"handlers",{});rC(this,"config",{});rC(this,"pointerIds",new Set);rC(this,"touchIds",new Set);rC(this,"state",{shared:{shiftKey:false,metaKey:false,ctrlKey:false,altKey:false}});oX(this,e)}setEventIds(e){if(rz(e)){this.touchIds=new Set(rF(e));return this.touchIds}else if("pointerId"in e){if(e.type==="pointerup"||e.type==="pointercancel")this.pointerIds.delete(e.pointerId);else if(e.type==="pointerdown")this.pointerIds.add(e.pointerId);return this.pointerIds}}applyHandlers(e,t){this.handlers=e;this.nativeHandlers=t}applyConfig(e,t){this.config=o$(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures){this.gestureEventStores[e].clean();this.gestureTimeoutStores[e].clean()}}effect(){if(this.config.shared.target)this.bind();return()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared;const n={};let r;if(t.target){r=t.target();if(!r)return}if(t.enabled){for(const t of this.gestures){const o=this.config[t];const i=oQ(n,o.eventOptions,!!r);if(o.enabled){const n=oP.get(t);new n(this,e,t).bind(i)}}const o=oQ(n,t.eventOptions,!!r);for(const t in this.nativeHandlers){o(t,"",n=>this.nativeHandlers[t](rE(rE({},this.state.shared),{},{event:n,args:e})),undefined,true)}}for(const e in n){n[e]=rJ(...n[e])}if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=rO(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}function oG(e,t){e.gestures.add(t);e.gestureEventStores[t]=new oK(e,t);e.gestureTimeoutStores[t]=new oq}function oX(e,t){if(t.drag)oG(e,"drag");if(t.wheel)oG(e,"wheel");if(t.scroll)oG(e,"scroll");if(t.move)oG(e,"move");if(t.pinch)oG(e,"pinch");if(t.hover)oG(e,"hover")}const oQ=(e,t,n)=>(r,o,i,a={},s=false)=>{var l,u;const c=(l=a.capture)!==null&&l!==void 0?l:t.capture;const f=(u=a.passive)!==null&&u!==void 0?u:t.passive;let h=s?r:rP(r,o,c);if(n&&f)h+="Passive";e[h]=e[h]||[];e[h].push(i)};const oJ=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function o0(e){const t={};const n={};const r=new Set;for(let o in e){if(oJ.test(o)){r.add(RegExp.lastMatch);n[o]=e[o]}else{t[o]=e[o]}}return[n,t,r]}function o1(e,t,n,r,o,i){if(!e.has(n))return;if(!EngineMap.has(r)){if(false){}return}const a=n+"Start";const s=n+"End";const l=e=>{let r=undefined;if(e.first&&a in t)t[a](e);if(n in t)r=t[n](e);if(e.last&&s in t)t[s](e);return r};o[r]=l;i[r]=i[r]||{}}function o2(e,t){const[n,r,o]=o0(e);const i={};o1(o,n,"onDrag","drag",i,t);o1(o,n,"onWheel","wheel",i,t);o1(o,n,"onScroll","scroll",i,t);o1(o,n,"onPinch","pinch",i,t);o1(o,n,"onMove","move",i,t);o1(o,n,"onHover","hover",i,t);return{handlers:i,config:t,nativeHandlers:r}};function o4(e,t={},n,r){const o=m.useMemo(()=>new oY(e),[]);o.applyHandlers(e,r);o.applyConfig(t,n);m.useEffect(o.effect.bind(o));m.useEffect(()=>{return o.clean.bind(o)},[]);if(t.target===undefined){return o.bind.bind(o)}return undefined}function o5(e,t){oO(oR);return o4({drag:e},t||{},"drag")}function o3(e,t){registerAction(pinchAction);return o4({pinch:e},t||{},"pinch")}function o6(e,t){registerAction(wheelAction);return o4({wheel:e},t||{},"wheel")}function o8(e,t){registerAction(scrollAction);return o4({scroll:e},t||{},"scroll")}function o7(e,t){registerAction(moveAction);return o4({move:e},t||{},"move")}function o9(e,t){registerAction(hoverAction);return o4({hover:e},t||{},"hover")}function ie(e){e.forEach(registerAction);return function e(e,t){const{handlers:n,nativeHandlers:r,config:o}=parseMergedHandlers(e,t||{});return o4(n,o,undefined,r)}}function it(e,t){const n=ie([dragAction,pinchAction,scrollAction,wheelAction,moveAction,hoverAction]);return n(e,t||{})}var io=n(69289);var ii=n(74684);var ia=n(52506);var is=n(20493);var il=n(7122);var iu=n(7056);var ic=n(78800);var id=n(48880);var ih=n(82478);var ip=n.n(ih);const ig=(0,m.createContext)(undefined);function iv({children:e}){const[n,r]=(0,m.useState)(undefined);const[o,i]=(0,m.useState)(false);(0,m.useEffect)(()=>{const e=ip()(e=>{r(e.target?.scrollTop||0);i(e.target?.scrollHeight-e.target?.scrollTop<=e.target?.clientHeight)},10);window.addEventListener("scroll",e,{capture:true,passive:true});return()=>window.removeEventListener("scroll",e,{capture:true})},[]);return(0,t.jsx)(ig.Provider,{value:{scrollY:n,isBottomReached:o},children:e})}function im(){return(0,m.useContext)(ig)};const iy=70;const ix=3;function iw(){const{isNarrowWidth:e}=(0,eo.F)();const{scrollY:n}=im();const r={flex:`1 1 ${100/ix}%`,height:iy,padding:10};const o=[{name:"Budget",path:"/budget",style:r,Icon:ic.Z},{name:"Transaction",path:"/transactions/new",style:r,Icon:ii.Z},{name:"Accounts",path:"/accounts",style:r,Icon:is.Z},{name:"Schedules (Soon)",path:"/schedules/soon",style:r,Icon:id.Z},{name:"Payees (Soon)",path:"/payees/soon",style:r,Icon:il.Z},{name:"Rules (Soon)",path:"/rules/soon",style:r,Icon:iu.Z},{name:"Settings",path:"/settings",style:r,Icon:ia.Z}].map(e=>(0,t.jsx)(ib,{...e},e.path));const i=ix-o.length%ix;const a=Array.from({length:i}).map((e,n)=>(0,t.jsx)("div",{style:r},n));const s=iy*ix;const l=0;const u=s-iy;const c=s;const[{y:f},h]=(0,n$.q_)(()=>({y:s}));const p=({canceled:e})=>{h.start({y:l,immediate:false,config:e?n$.vc.wobbly:n$.vc.stiff})};const g=(e=0)=>{h.start({y:u,immediate:false,config:{...n$.vc.stiff,velocity:e}})};const v=(e=0)=>{h.start({y:c,immediate:false,config:{...n$.vc.stiff,velocity:e}})};const y=(0,io.Z)(n);(0,m.useEffect)(()=>{if(n&&y&&n>y&&y!==0){v()}else{g()}},[n]);const x=o5(({last:e,velocity:[,t],direction:[,n],offset:[,r],cancel:o,canceled:i})=>{if(r<0){o()}if(e){if(r>iy*.5||t>.5&&n>0){g(t)}else{p({canceled:i})}}else{h.start({y:r,immediate:true})}},{from:()=>[0,f.get()],filterTaps:true,bounds:{top:-s,bottom:s-iy},axis:"y",rubberband:true});return(0,t.jsx)(n$.q.div,{role:"navigation",...x(),style:{y:f,touchAction:"pan-x",backgroundColor:ei.rS.mobileNavBackground,borderTop:`1px solid ${ei.rS.menuBorder}`,...ei.W2.shadow,height:s,width:"100%",position:"fixed",zIndex:100,bottom:0,...!e&&{display:"none"}},children:(0,t.jsx)(eu.Z,{style:{flexDirection:"row",flexWrap:"wrap",height:s,width:"100%"},children:[o,a]})})}function ib({Icon:e,name:n,path:r,style:o}){return(0,t.jsxs)(nA.OL,{to:r,style:({isActive:e})=>({...ei.W2.noTapHighlight,alignItems:"center",color:e?ei.rS.mobileNavItemSelected:ei.rS.mobileNavItem,display:"flex",flexDirection:"column",textDecoration:"none",textAlign:"center",...o}),children:[(0,t.jsx)(e,{width:22,height:22}),n]})}var iS=n(63495);var ik=n(63654);var ij=n(85449);var iC=n(86357);var iT=n(2054);var iE=n(38199);var iI=n(42632);var i_=n(31941);var iM=n(90169);var iD=n(19808);const iP=40;function iA({modalProps:e,groupId:n,onSave:r,onAddCategory:o,onEditNotes:i,onDelete:a,onClose:s}){const{grouped:l}=(0,n1.Z)();const u=l.find(e=>e.id===n);const c=(0,n8.y)(()=>(0,ik.ZP)("notes").filter({id:u.id}).select("*"),[u.id]);const f=c&&c.length>0?c[0].note:null;function h(){e?.onClose();s?.()}function p(e){if(e!==u.name){r?.({...u,name:e})}}function g(){o?.(u.id,u.is_income)}function v(){i?.(u.id)}function m(){r?.({...u,hidden:!!!u.hidden});h()}function y(){a?.(u.id)}function x(e){p(e)}const w={...ei.W2.mediumText,height:iP,color:ei.rS.formLabelText,flexBasis:"48%",marginLeft:"1%",marginRight:"1%"};return(0,t.jsx)(ex.C,{title:u.name,showHeader:true,focusAfterClose:false,...e,onClose:h,padding:0,style:{flex:1,height:"45vh",padding:"0 10px",borderRadius:"6px"},editableTitle:true,titleStyle:ei.W2.underlinedText,onTitleUpdate:x,leftHeaderContent:(0,t.jsx)(iO,{group:u,onDelete:y,onToggleVisibility:m}),children:({isEditingTitle:e})=>(0,t.jsxs)(eu.Z,{style:{flex:1,flexDirection:"column"},children:[(0,t.jsx)(eu.Z,{style:{overflowY:"auto",flex:1},children:(0,t.jsx)(iM.Z,{notes:f?.length>0?f:"No notes",editable:false,focused:false,getStyle:e=>({...ei.W2.mediumText,borderRadius:6,...(!f||f.length===0)&&{justifySelf:"center",alignSelf:"center",color:ei.rS.pageTextSubdued}})})}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignContent:"space-between",paddingTop:10,paddingBottom:10},children:[(0,t.jsxs)(em.Z,{disabled:e,style:{...w,display:e?"none":undefined},onClick:g,children:[(0,t.jsx)(ii.Z,{width:17,height:17,style:{paddingRight:5}}),"Add category"]}),(0,t.jsxs)(em.Z,{style:{...w,display:e?"none":undefined},onClick:v,children:[(0,t.jsx)(iT.Z,{width:20,height:20,style:{paddingRight:5}}),"Edit notes"]})]})]})})}function iO({group:e,onDelete:n,onToggleVisibility:r}){const[o,i]=(0,m.useState)(false);const a={...ei.W2.mediumText,height:iP};return(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(em.Z,{type:"bare","aria-label":"Menu",onClick:()=>{i(true)},children:[(0,t.jsx)(ij.bDn,{width:17,height:17,style:{color:"currentColor"}}),o&&(0,t.jsx)(iD.u,{position:"bottom-left",style:{padding:0},onClose:()=>{i(false)},children:(0,t.jsx)(i_.Z,{style:{...ei.W2.mediumText,color:ei.rS.formLabelText},items:[{name:"toggleVisibility",text:e.hidden?"Show":"Hide",icon:e.hidden?iI.Z:iE.Z,iconSize:16,style:a},...!e.is_income&&[i_.Z.line,{name:"delete",text:"Delete",icon:iC.Z,iconSize:15,style:a}]].filter(e=>e!=null),onMenuSelect:e=>{i(false);if(e==="delete"){n()}else if(e==="toggleVisibility"){r()}}})})]})})};const iR=40;function iz({modalProps:e,categoryId:n,onSave:r,onEditNotes:o,onDelete:i,onClose:a}){const{list:s}=(0,n1.Z)();const l=s.find(e=>e.id===n);const u=(0,n8.y)(()=>(0,ik.ZP)("notes").filter({id:l.id}).select("*"),[l.id]);const c=u&&u.length>0?u[0].note:null;function f(){e?.onClose();a?.()}function h(e){if(e!==l.name){r?.({...l,name:e})}}function p(){r?.({...l,hidden:!l.hidden});f()}function g(){o?.(l.id)}function v(){i?.(l.id)}function m(e){h(e)}const y={...ei.W2.mediumText,height:iR,color:ei.rS.formLabelText,flexBasis:"100%"};return(0,t.jsx)(ex.C,{title:l.name,titleStyle:ei.W2.underlinedText,showHeader:true,focusAfterClose:false,...e,onClose:f,padding:0,style:{flex:1,height:"45vh",padding:"0 10px",borderRadius:"6px"},editableTitle:true,onTitleUpdate:m,leftHeaderContent:(0,t.jsx)(iZ,{category:l,onDelete:v,onToggleVisibility:p}),children:({isEditingTitle:e})=>(0,t.jsxs)(eu.Z,{style:{flex:1,flexDirection:"column"},children:[(0,t.jsx)(eu.Z,{style:{overflowY:"auto",flex:1},children:(0,t.jsx)(iM.Z,{notes:c?.length>0?c:"No notes",editable:false,focused:false,getStyle:e=>({borderRadius:6,...(!c||c.length===0)&&{justifySelf:"center",alignSelf:"center",color:ei.rS.pageTextSubdued}})})}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between",alignContent:"space-between",margin:"10px 0"},children:(0,t.jsxs)(em.Z,{style:{...y,display:e?"none":undefined},onClick:g,children:[(0,t.jsx)(iT.Z,{width:20,height:20,style:{paddingRight:5}}),"Edit notes"]})})]})})}function iZ({category:e,onDelete:n,onToggleVisibility:r}){const[o,i]=(0,m.useState)(false);const a={...ei.W2.mediumText,height:iR};return(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(em.Z,{type:"bare","aria-label":"Menu",onClick:()=>{i(true)},children:[(0,t.jsx)(ij.bDn,{width:17,height:17,style:{color:"currentColor"}}),o&&(0,t.jsx)(iD.u,{position:"bottom-left",style:{padding:0},onClose:()=>{i(false)},children:(0,t.jsx)(i_.Z,{items:[{name:"toggleVisibility",text:e.hidden?"Show":"Hide",icon:e.hidden?iI.Z:iE.Z,iconSize:16,style:a},i_.Z.line,{name:"delete",text:"Delete",icon:iC.Z,iconSize:15,style:a}],onMenuSelect:e=>{i(false);if(e==="delete"){n()}else if(e==="toggleVisibility"){r()}}})})]})})}var iL=n(49374);var iN=n(691);function iB({style:e,children:n}){return(0,t.jsx)(eu.Z,{style:{color:"red",fontSize:13,...e},children:n})};function iH(e,t,n){const r=n.find(e=>e.id===t);const o=r&&r.offbudget===1;return e.offbudget===0&&o}function iF({account:e,accounts:n,categoryGroups:r,balance:o,canDelete:i,actions:a,modalProps:s}){const[l,u]=(0,m.useState)(false);const[c,f]=(0,m.useState)("");const[h,p]=(0,m.useState)("");const[g,v]=(0,m.useState)(false);const[y,x]=(0,m.useState)(false);return(0,t.jsx)(ex.C,{title:"Close Account",...s,style:{flex:0},loading:l,children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(ew.Z,{children:["Are you sure you want to close ",(0,t.jsx)("strong",{children:e.name}),"?"," ",i?(0,t.jsx)("span",{children:"This account has no transactions so it will be permanently deleted."}):(0,t.jsx)("span",{children:"This account has transactions so we can’t permanently delete it."})]}),(0,t.jsxs)("form",{onSubmit:t=>{t.preventDefault();const r=o!==0&&c==="";v(r);const i=iH(e,c,n)&&h==="";x(i);if(!r&&!i){u(true);a.closeAccount(e.id,c||null,h||null).then(()=>{s.onClose()})}},children:[o!==0&&(0,t.jsxs)(eu.Z,{children:[(0,t.jsxs)(ew.Z,{children:["This account has a balance of"," ",(0,t.jsx)("strong",{children:(0,B.zA)(o)}),". To close this account, select a different account to transfer this balance to:"]}),(0,t.jsx)(eu.Z,{style:{marginBottom:15},children:(0,t.jsx)(iL.ZP,{includeClosedAccounts:false,value:c,inputProps:{placeholder:"Select account..."},onSelect:e=>{f(e);if(g&&e){v(false)}}})}),g&&(0,t.jsx)(iB,{style:{marginBottom:15},children:"Transfer is required"}),iH(e,c,n)&&(0,t.jsxs)(eu.Z,{style:{marginBottom:15},children:[(0,t.jsx)(ew.Z,{children:"Since you are transferring the balance from a budgeted account to an off-budget account, this transaction must be categorized. Select a category:"}),(0,t.jsx)(iN.ZP,{categoryGroups:r,value:h,inputProps:{placeholder:"Select category..."},onSelect:e=>{p(e);if(y&&e){x(false)}}}),y&&(0,t.jsx)(iB,{children:"Category is required"})]})]}),!i&&(0,t.jsx)(eu.Z,{style:{marginBottom:15},children:(0,t.jsxs)(eS.Z,{style:{fontSize:12},children:["You can also"," ",(0,t.jsx)(ey.Z,{onClick:()=>{u(true);a.forceCloseAccount(e.id).then(()=>s.onClose())},style:{color:ei.rS.errorText},children:"force close"})," ","the account which will delete it and all its transactions permanently. Doing so may change your budget unexpectedly since money in it may vanish."]})}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:s.onClose,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",children:"Close Account"})]})]})]})})}var iV=iF;function iW({modalProps:e,category:n,group:r,categoryGroups:o,onDelete:i}){const[a,s]=(0,m.useState)(null);const[l,u]=(0,m.useState)(null);const c=e=>{let n;switch(e){case"required-transfer":n="You must select a category";break;default:n="Something bad happened, sorry!"}return(0,t.jsx)(eS.Z,{style:{marginTop:15,color:ei.rS.errorText},children:n})};const f=!!(n||r).is_income;return(0,t.jsx)(ex.C,{title:"Confirm Delete",...e,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{lineHeight:1.5},children:[r?(0,t.jsxs)(el.Z,{children:["Categories in the group ",(0,t.jsx)("strong",{children:r.name})," are used by existing transaction",!f&&" or it has a positive leftover balance currently","."," ",(0,t.jsx)("strong",{children:"Are you sure you want to delete it?"})," If so, you must select another category to transfer existing transactions and balance to."]}):(0,t.jsxs)(el.Z,{children:[(0,t.jsx)("strong",{children:n.name})," is used by existing transactions",!f&&" or it has a positive leftover balance currently","."," ",(0,t.jsx)("strong",{children:"Are you sure you want to delete it?"})," If so, you must select another category to transfer existing transactions and balance to."]}),l&&c(l),(0,t.jsxs)(eu.Z,{style:{marginTop:20,flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[(0,t.jsx)(eS.Z,{children:"Transfer to:"}),(0,t.jsx)(eu.Z,{style:{flex:1,marginLeft:10,marginRight:30},children:(0,t.jsx)(iN.ZP,{categoryGroups:r?o.filter(e=>e.id!==r.id&&!!e.is_income===f):o.filter(e=>!!e.is_income===f).map(e=>({...e,categories:e.categories.filter(e=>e.id!==n.id)})),value:a,inputProps:{placeholder:"Select category..."},onSelect:e=>s(e)})}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{if(!a){u("required-transfer")}else{i(a);e.onClose()}},children:"Delete"})]})]})})};function iU({modalProps:e,onConfirm:n,confirmReason:r}){return(0,t.jsx)(ex.C,{title:"Reconciled Transaction",...e,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{lineHeight:1.5},children:[r==="batchDeleteWithReconciled"?(0,t.jsx)(el.Z,{children:"Deleting reconciled transactions may bring your reconciliation out of balance."}):r==="batchEditWithReconciled"?(0,t.jsx)(el.Z,{children:"Editing reconciled transactions may bring your reconciliation out of balance."}):r==="batchDuplicateWithReconciled"?(0,t.jsx)(el.Z,{children:"Duplicating reconciled transactions may bring your reconciliation out of balance."}):r==="editReconciled"?(0,t.jsx)(el.Z,{children:"Saving your changes to this reconciled transaction may bring your reconciliation out of balance."}):r==="deleteReconciled"?(0,t.jsx)(el.Z,{children:"Deleting this reconciled transaction may bring your reconciliation out of balance."}):(0,t.jsx)(el.Z,{children:"Are you sure you want to edit this transaction?"}),(0,t.jsx)(eu.Z,{style:{marginTop:20,flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:e.onClose,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{e.onClose();n()},children:"Confirm"})]})})]})})}var i$=iU;var iK=n(70425);function iq(){const[e,t]=(0,m.useState)(null);const[n,r]=(0,m.useState)(false);const o=(0,iS.Z)();(0,m.useEffect)(()=>{async function e(){r(true);const e=await (0,q.lW)("gocardless-status");t(e.configured||false);r(false)}if(o==="online"){e()}},[o]);return{configured:e,isLoading:n}};function iY({modalProps:e,syncServerStatus:n}){const r=(0,en.o)();const[o,i]=(0,m.useState)(null);const a=()=>{if(!o){s();return}(0,iK.F)(r.pushModal)};const s=()=>{r.pushModal("gocardless-init",{onSuccess:()=>i(true)})};const l=()=>{r.pushModal("add-local-account")};const{configured:u}=iq();(0,m.useEffect)(()=>{i(u)},[u]);return(0,t.jsx)(ex.C,{title:"Add Account",...e,children:()=>(0,t.jsxs)(eu.Z,{style:{maxWidth:500,gap:30,color:ei.rS.pageText},children:[(0,t.jsxs)(eu.Z,{style:{gap:10},children:[(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600},onClick:l,children:"Create local account"}),(0,t.jsx)(eu.Z,{style:{lineHeight:"1.4em",fontSize:15},children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Create a local account"})," if you want to add transactions manually. You can also"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/transactions/importing",linkColor:"muted",children:"import QIF/OFX/QFX files into a local account"}),"."]})})]}),(0,t.jsx)(eu.Z,{style:{gap:10},children:n==="online"?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.y,{disabled:n!=="online",style:{padding:"10px 0",fontSize:15,fontWeight:600,flex:1},onClick:a,children:o?"Link bank account with GoCardless":"Set up GoCardless for bank sync"}),(0,t.jsxs)(eS.Z,{style:{lineHeight:"1.4em",fontSize:15},children:[(0,t.jsx)("strong",{children:"Link a bank account"})," to automatically download transactions. GoCardless provides reliable, up-to-date information from hundreds of banks."]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.Z,{disabled:true,style:{padding:"10px 0",fontSize:15,fontWeight:600},children:"Set up GoCardless for bank sync"}),(0,t.jsxs)(ew.Z,{style:{fontSize:15},children:["Connect to an Actual server to set up"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/advanced/bank-sync",linkColor:"muted",children:"automatic syncing with GoCardless"}),"."]})]})})]})})}var iG=n(40400);var iX=n(71053);var iQ=n(383);function iJ({modalProps:e,actions:n,options:r={}}){const[o,i]=(0,m.useState)("");const[a,s]=(0,m.useState)(false);const[l,u]=(0,m.useState)("");const[c,f]=(0,m.useState)(false);const h=r.recreate;async function p(){if(o!==""&&!a){s(true);u(null);const e=await (0,q.lW)("key-make",{password:o});if(e.error){s(null);u((0,iG.zJ)(e.error));return}n.loadGlobalPrefs();n.loadAllFiles();n.sync();s(false);n.popModal()}}return(0,t.jsx)(ex.C,{...e,style:{width:600},title:h?"Generate new key":"Enable encryption",onClose:()=>n.popModal(),children:()=>(0,t.jsxs)(t.Fragment,{children:[!h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ew.Z,{style:{marginTop:5},children:["To enable end-to-end encryption, you need to create a key. We will generate a key based on a password and use it to encrypt from now on. ",(0,t.jsx)("strong",{children:"This requires a sync reset"})," and all other devices will have to revert to this version of your data."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more"})]}),(0,t.jsx)(ew.Z,{children:(0,t.jsxs)("ul",{className:`${(0,ea.iv)({marginTop:0,"& li":{marginBottom:8}})}`,children:[(0,t.jsxs)("li",{children:[(0,t.jsx)("strong",{children:"Important:"})," if you forget this password"," ",(0,t.jsx)("em",{children:"and"})," you don’t have any local copies of your data, you will lose access to all your data. The data cannot be decrypted without the password."]}),(0,t.jsx)("li",{children:"This key only applies to this file. You will need to generate a new key for each file you want to encrypt."}),(0,t.jsx)("li",{children:"If you’ve already downloaded your data on other devices, you will need to reset them. Actual will automatically take you through this process."}),(0,t.jsx)("li",{children:"It is recommended for the encryption password to be different than the log-in password in order to better protect your data."})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ew.Z,{style:{marginTop:5},children:["This will generate a new key for encrypting your data."," ",(0,t.jsx)("strong",{children:"This requires a sync reset"})," and all other devices will have to revert to this version of your data. Actual will take you through that process on those devices."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more"})]}),(0,t.jsx)(ew.Z,{children:"Key generation is randomized. The same password will create different keys, so this will change your key regardless of the password being different."})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();p()},children:[(0,t.jsxs)(eu.Z,{style:{alignItems:"center"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600,marginBottom:3},children:"Password"}),l&&(0,t.jsx)(eu.Z,{style:{color:ei.rS.errorText,textAlign:"center",fontSize:13,marginBottom:3},children:l}),(0,t.jsx)(iX.Z,{children:(0,t.jsx)(iQ.ZP,{type:c?"text":"password",style:{width:300},onChange:e=>i(e.target.value)})}),(0,t.jsx)(eS.Z,{style:{marginTop:5},children:(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onClick:()=>f(!c)})," ","Show password"]})})]}),(0,t.jsx)(ex.Z,{style:{marginTop:20},children:(0,t.jsx)(em.y,{loading:a,type:"primary",children:"Enable"})})]})]})})};function i0({label:e,labelWidth:n,children:r,width:o,style:i}){return(0,t.jsxs)("label",{className:`${(0,ea.iv)({display:"flex",flexDirection:"row",alignItems:"center",margin:"7px 0",width:o},i)}`,children:[(0,t.jsxs)("div",{style:{width:n||75,textAlign:"right",paddingRight:10},children:[e,":"]}),r]})};function i1({modalProps:e,actions:n}){const r=(0,nB.Z)();const[o,i]=(0,m.useState)("");const[a,s]=(0,m.useState)(false);const[l,u]=(0,m.useState)("0");const[c,f]=(0,m.useState)(false);const[h,p]=(0,m.useState)(false);const g=e=>!isNaN(parseFloat(e));return(0,t.jsx)(ex.C,{title:"Create Local Account",...e,children:()=>(0,t.jsx)(eu.Z,{children:(0,t.jsxs)("form",{onSubmit:async e=>{e.preventDefault();const t=!o;f(t);const i=!g(l);p(i);if(!t&&!i){n.closeModal();const e=await n.createAccount(o,(0,B.sD)(l),a);r("/accounts/"+e)}},children:[(0,t.jsx)(i0,{label:"Name",width:"75%",children:(0,t.jsx)(iX.Z,{children:(0,t.jsx)(iQ.ZP,{name:"name",value:o,onChange:e=>i(e.target.value),onBlur:e=>{const t=e.target.value.trim();i(t);if(t&&c){f(false)}},style:{flex:1}})})}),c&&(0,t.jsx)(iB,{style:{marginLeft:75},children:"Name is required"}),(0,t.jsx)(eu.Z,{style:{width:"75%",flexDirection:"row",justifyContent:"flex-end"},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column"},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"offbudget",name:"offbudget",checked:a,onChange:()=>s(!a)}),(0,t.jsx)("label",{htmlFor:"offbudget",style:{userSelect:"none",verticalAlign:"center"},children:"Off-budget"})]}),(0,t.jsx)("div",{style:{textAlign:"right",fontSize:"0.7em",color:ei.rS.pageTextLight,marginTop:3},children:(0,t.jsxs)(eS.Z,{children:["This cannot be changed later. ",(0,t.jsx)("br",{})," ","\n","See"," ",(0,t.jsx)(eg.Z,{linkColor:"muted",to:"https://actualbudget.org/docs/accounts/#off-budget-accounts",children:"Accounts Overview"})," ","for more information."]})})]})}),(0,t.jsx)(i0,{label:"Balance",width:"75%",children:(0,t.jsx)(iQ.ZP,{name:"balance",inputMode:"decimal",value:l,onChange:e=>u(e.target.value),onBlur:e=>{const t=e.target.value.trim();u(t);if(g(t)&&h){p(false)}},style:{flex:1}})}),h&&(0,t.jsx)(iB,{style:{marginLeft:75},children:"Balance must be a number"}),(0,t.jsxs)(ex.Z,{children:[(0,t.jsx)(em.Z,{onClick:()=>e.onBack(),children:"Back"}),(0,t.jsx)(em.Z,{type:"primary",style:{marginLeft:10},children:"Create"})]})]})})})}var i2=i1;var i4=n(79982);var i5=n(41071);var i3=n(8780);var i6=n(73416);var i8=n(5710);var i7=n(37998);function i9(e){return(0,t.jsx)(ij.mm_,{...e,width:14,height:14})}function ae({modalProps:e,name:n,onSubmit:r,onClose:o}){const i=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const{grouped:a}=(0,n1.Z)();const s=(0,y.v9)(e=>e.queries.accounts);const l=(0,y.v9)(e=>e.queries.payees);const{createPayee:u}=(0,en.o)();const c=()=>{e.onClose();o?.()};function f(e){if(e!=null){if(n==="amount"){e=(0,B.l9)(e)}r(n,e)}c()}const h={fontSize:17,fontWeight:400,paddingTop:8,paddingBottom:8};const{isNarrowWidth:p}=(0,eo.F)();let g,v,m;const x={":focus":{boxShadow:0},...p&&h};const w={inputProps:{style:x},containerProps:{style:{height:p?"90vh":275}}};switch(n){case"date":{const e=(0,i6.PR)();g="Date";m=350;v=(0,t.jsx)(i7.Z,{value:(0,i4.Z)((0,i5.Z)(e),i),dateFormat:i,focused:true,embedded:true,onUpdate:()=>{},onSelect:e=>{f((0,i6.is)((0,i3.Z)(e,"yyyy-MM-dd",new Date)))}});break}case"account":g="Account";v=(0,t.jsx)(iL.ZP,{value:null,accounts:s,focused:true,embedded:true,closeOnBlur:false,onSelect:e=>{if(e){f(e)}},...p&&{renderAccountItemGroupHeader:e=>(0,t.jsx)(iL.pn,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderAccountItem:e=>(0,t.jsx)(iL.NB,{...e,style:{...h,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}})},...w});break;case"payee":g="Payee";v=(0,t.jsx)(i8.ZP,{payees:l,accounts:s,value:null,focused:true,embedded:true,closeOnBlur:false,showManagePayees:false,showMakeTransfer:!p,onSelect:async e=>{if(e&&e.startsWith("new:")){e=await u(e.slice("new:".length))}f(e)},isCreatable:true,...p&&{renderCreatePayeeButton:e=>(0,t.jsx)(i8.GP,{...e,Icon:i9,style:h}),renderPayeeItemGroupHeader:e=>(0,t.jsx)(i8.nr,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderPayeeItem:e=>(0,t.jsx)(i8.hA,{...e,style:{...h,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}})},...w});break;case"notes":g="Notes";v=(0,t.jsx)(iQ.ZP,{focused:true,onEnter:e=>f(e.target.value),style:x});break;case"category":g="Category";v=(0,t.jsx)(iN.ZP,{categoryGroups:a,value:null,focused:true,embedded:true,closeOnBlur:false,showSplitOption:false,onUpdate:()=>{},onSelect:e=>{f(e)},...p&&{renderCategoryItemGroupHeader:e=>(0,t.jsx)(iN.UH,{...e,style:{...ei.W2.largeText,color:ei.rS.menuItemTextHeader,paddingTop:10,paddingBottom:10}}),renderCategoryItem:e=>(0,t.jsx)(iN.PM,{...e,style:{...h,color:ei.rS.menuItemText,borderRadius:0,borderTop:`1px solid ${ei.rS.pillBorder}`}})},...w});break;case"amount":g="Amount";v=(0,t.jsx)(iQ.ZP,{focused:true,onEnter:e=>f(e.target.value),style:x});break;default:}return(0,t.jsx)(ex.C,{title:g,noAnimation:!p,showHeader:p,focusAfterClose:false,...e,onClose:c,padding:0,style:{flex:0,height:p?"85vh":275,padding:"15px 10px",borderRadius:"6px",...m&&{minWidth:m},...!p&&{backgroundColor:ei.rS.mobileModalBackground,color:ei.rS.mobileModalText}},children:()=>(0,t.jsxs)(eu.Z,{children:[!p&&(0,t.jsx)(ek.eX,{title:g,style:{alignSelf:"center",color:ei.rS.mobileModalText,marginBottom:10}}),(0,t.jsx)(eu.Z,{style:{flex:1},children:v})]})})}var at=n(76529);function ao({modalProps:e,actions:n,options:r={}}){const{hasExistingKey:o,cloudFileId:i,onSuccess:a}=r;const[s,l]=(0,m.useState)("");const[u,c]=(0,m.useState)("");const[f,h]=(0,m.useState)(false);const[p,g]=(0,m.useState)(false);async function v(){if(s!==""&&!f){h(true);c(null);const{error:e}=await (0,q.lW)("key-test",{password:s,fileId:i});if(e){c((0,iG.Ez)(e));h(false);return}n.popModal();a?.()}}return(0,t.jsx)(ex.C,{...e,showHeader:false,style:{width:600},children:()=>(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(eS.Z,{style:{fontSize:25,fontWeight:700,color:ei.rS.pageTextDark,margin:"20px 0"},children:o?"Unable to decrypt file":"This file is encrypted"}),o?(0,t.jsxs)(ew.Z,{children:["This file was encrypted with a different key than you are currently using. This probably means you changed your password. Enter your current password to update your key."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",children:"Learn more"})]}):(0,t.jsxs)(ew.Z,{children:["We don’t have a key that encrypts or decrypts this file. Enter the password for this file to create the key for encryption."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",children:"Learn more"})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();v()},children:[(0,t.jsxs)(eu.Z,{style:{marginTop:15,flexDirection:"column",alignItems:"center"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600,marginBottom:5},children:"Password"})," ",u&&(0,t.jsx)(eu.Z,{style:{color:ei.rS.errorText,textAlign:"center",fontSize:13,marginBottom:3},children:u}),(0,t.jsx)(iX.Z,{children:(0,t.jsx)(iQ.ZP,{type:p?"text":"password",style:{width:"50%"},onChange:e=>l(e.target.value)})}),(0,t.jsx)(eS.Z,{style:{marginTop:5},children:(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onClick:()=>g(!p)})," ","Show password"]})})]}),(0,t.jsxs)(ex.Z,{style:{marginTop:20},children:[(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:()=>e.onBack(),type:"normal",children:"Back"}),(0,t.jsx)(em.y,{type:"primary",loading:f,onClick:v,children:o?"Update key":"Create key"})]})]})]})})}var ai=n(94276);var aa=n(19318);var as=n(28799);const al=({icon:e,color:n,backgroundColor:r,style:o,children:i})=>{return(0,t.jsxs)(eu.Z,{style:{color:n,fontSize:13,...ei.W2.shadow,borderRadius:4,backgroundColor:r,padding:10,flexDirection:"row","& a, & a:active, & a:visited":{color:ei.rS.formLabelText},...o},children:[(0,t.jsx)(eu.Z,{style:{paddingLeft:2,paddingTop:".11em",alignSelf:"stretch",flexShrink:0,marginRight:5},children:(0,t.jsx)(e,{width:13,style:{marginTop:2}})}),(0,t.jsx)(eS.Z,{style:{zIndex:1,lineHeight:1.5},children:i})]})};const au=({style:e,children:n})=>{return(0,t.jsx)(al,{icon:as.Z,color:ei.rS.pageTextLight,backgroundColor:"transparent",style:{...e,boxShadow:"none",padding:5},children:n})};const ac=({style:e,children:n})=>{return(0,t.jsx)(al,{icon:aa.Z,color:ei.rS.warningText,backgroundColor:ei.rS.warningBackground,style:e,children:n})};const ad=({style:e,children:n})=>{return(0,t.jsx)(al,{icon:aa.Z,color:ei.rS.errorTextDarker,backgroundColor:ei.rS.errorBackground,style:e,children:n})};var af=n(25411);const ah=[{id:"AT",name:"Austria"},{id:"BE",name:"Belgium"},{id:"BG",name:"Bulgaria"},{id:"HR",name:"Croatia"},{id:"CY",name:"Cyprus"},{id:"CZ",name:"Czechia"},{id:"DK",name:"Denmark"},{id:"EE",name:"Estonia"},{id:"FI",name:"Finland"},{id:"FR",name:"France"},{id:"DE",name:"Germany"},{id:"GR",name:"Greece"},{id:"HU",name:"Hungary"},{id:"IS",name:"Iceland"},{id:"IE",name:"Ireland"},{id:"IT",name:"Italy"},{id:"LV",name:"Latvia"},{id:"LI",name:"Liechtenstein"},{id:"LT",name:"Lithuania"},{id:"LU",name:"Luxembourg"},{id:"MT",name:"Malta"},{id:"NL",name:"Netherlands"},{id:"NO",name:"Norway"},{id:"PL",name:"Poland"},{id:"PT",name:"Portugal"},{id:"RO",name:"Romania"},{id:"SK",name:"Slovakia"},{id:"SI",name:"Slovenia"},{id:"ES",name:"Spain"},{id:"SE",name:"Sweden"},{id:"GB",name:"United Kingdom"}];function ap(e){const[t,n]=(0,m.useState)([]);const[r,o]=(0,m.useState)(false);const[i,a]=(0,m.useState)(false);(0,m.useEffect)(()=>{async function t(){a(false);if(!e){n([]);o(false);return}o(true);const{data:t,error:r}=await (0,q.OK)("gocardless-get-banks",e);if(r){a(true);n([])}else{n(t)}o(false)}t()},[n,o,e]);return{data:t,isLoading:r,isError:i}}function ag(e){return(0,t.jsx)(ad,{style:{alignSelf:"center"},children:e==="timeout"?"Timed out. Please try again.":"An error occurred while linking your account, sorry!"})}function av({modalProps:e,onMoveExternal:n,onSuccess:r,onClose:o}){const i=(0,y.I0)();const[a,s]=(0,m.useState)(null);const[l,u]=(0,m.useState)(false);const[c,f]=(0,m.useState)();const[h,p]=(0,m.useState)();const[g,v]=(0,m.useState)(null);const[x,w]=(0,m.useState)(null);const[b,S]=(0,m.useState)(false);const k=(0,m.useRef)(null);const{data:j,isLoading:C,isError:T}=ap(h);const{configured:E,isLoading:I}=iq();async function _(){v(null);s("browser");const e=await n({institutionId:c});if(e.error){v(e.error);s(null);return}k.current=e.data;s(null);u(true)}function M(){o?.();e.onClose()}async function D(){s("accounts");await r(k.current);s(null)}const P=()=>{i((0,nX.Ll)("gocardless-init",{onSuccess:()=>w(true)}))};const A=()=>{return(0,t.jsxs)(eu.Z,{style:{gap:10},children:[(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Choose your country:",htmlFor:"country-field"}),(0,t.jsx)(af.ZP,{strict:true,highlightFirst:true,suggestions:ah,onSelect:p,value:h,inputProps:{id:"country-field",placeholder:"(please select)"}})]}),T?(0,t.jsxs)(ad,{children:["Failed loading available banks: GoCardless access credentials might be misconfigured. Please"," ",(0,t.jsx)(ey.Z,{onClick:P,style:{color:ei.rS.formLabelText,display:"inline"},children:"set them up"})," ","again."]}):h&&(C?"Loading banks...":(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Choose your bank:",htmlFor:"bank-field"}),(0,t.jsx)(af.ZP,{focused:true,strict:true,highlightFirst:true,suggestions:j,onSelect:f,value:c,inputProps:{id:"bank-field",placeholder:"(please select)"}})]})),(0,t.jsxs)(ac,{children:["By enabling bank-sync, you will be granting GoCardless (a third party service) read-only access to your entire account’s transaction history. This service is not affiliated with Actual in any way. Make sure you’ve read and understand GoCardless’s"," ",(0,t.jsx)(eg.Z,{to:"https://gocardless.com/privacy/",linkColor:"purple",children:"Privacy Policy"})," ","before proceeding."]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,alignItems:"center"},children:[(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,flexGrow:1},onClick:_,disabled:!c||!h,children:"Link bank in browser →"}),(0,t.jsxs)(em.Z,{type:"bare",onClick:()=>S(true),"aria-label":"Menu",children:[(0,t.jsx)(ai.Z,{width:15,height:15,style:{transform:"rotateZ(90deg)"}}),b&&(0,t.jsx)(iD.u,{position:"bottom-right",width:200,style:{padding:0},onClose:()=>S(false),children:(0,t.jsx)(i_.Z,{onMenuSelect:e=>{if(e==="reconfigure"){P()}},items:[{name:"reconfigure",text:"Set new API secrets"}]})})]})]})]})};return(0,t.jsx)(ex.C,{title:"Link Your Bank",...e,onClose:M,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ew.Z,{style:{fontSize:15},children:"To link your bank account, you will be redirected to a new page where GoCardless will ask to connect to your bank. GoCardless will not be able to withdraw funds from your accounts."}),g&&ag(g),a||I?(0,t.jsxs)(eu.Z,{style:{alignItems:"center",marginTop:15},children:[(0,t.jsx)(es.Z,{color:ei.rS.pageTextDark,style:{width:20,height:20}}),(0,t.jsx)(eu.Z,{style:{marginTop:10,color:ei.rS.pageText},children:I?"Checking GoCardless configuration..":a==="browser"?"Waiting on GoCardless...":a==="accounts"?"Loading accounts...":null}),a==="browser"&&(0,t.jsx)(ey.Z,{onClick:_,style:{marginTop:10},children:"(Account linking not opening in a new tab? Click here)"})]}):l?(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:D,children:"Success! Click to continue →"}):E||x?A():(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ew.Z,{style:{color:ei.rS.errorText},children:"GoCardless integration has not yet been configured."}),(0,t.jsx)(em.Z,{type:"primary",onClick:P,children:"Configure GoCardless integration"})]})]})})};const am=({modalProps:e,onSuccess:n})=>{const[r,o]=(0,m.useState)("");const[i,a]=(0,m.useState)("");const[s,l]=(0,m.useState)(true);const[u,c]=(0,m.useState)(false);const f=async()=>{if(!r||!i){l(false);return}c(true);await Promise.all([(0,q.lW)("secret-set",{name:"nordigen_secretId",value:r}),(0,q.lW)("secret-set",{name:"nordigen_secretKey",value:i})]);n();e.onClose();c(false)};return(0,t.jsxs)(ex.C,{title:"Set-up GoCardless",size:{width:300},...e,children:[(0,t.jsxs)(eu.Z,{style:{display:"flex",gap:10},children:[(0,t.jsxs)(eS.Z,{children:["In order to enable bank-sync via GoCardless (only for EU banks) you will need to create access credentials. This can be done by creating an account with"," ",(0,t.jsx)(eg.Z,{to:"https://gocardless.com/",linkColor:"purple",children:"GoCardless"}),"."]}),(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Secret ID:",htmlFor:"secret-id-field"}),(0,t.jsx)(iQ.ZP,{id:"secret-id-field",type:"password",value:r,onUpdate:o,onChange:()=>l(true)})]}),(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Secret Key:",htmlFor:"secret-key-field"}),(0,t.jsx)(iQ.ZP,{id:"secret-key-field",type:"password",value:i,onUpdate:a,onChange:()=>l(true)})]}),!s&&(0,t.jsx)(ad,{children:"It is required to provide both the secret id and secret key."})]}),(0,t.jsx)(ex.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:u,onClick:f,children:"Save and continue"})})]})};var ay=am;var ax=n(25432);var aw=n(58068);var ab=n(78628);const aS=[{format:"yyyy mm dd",label:"YYYY MM DD"},{format:"yy mm dd",label:"YY MM DD"},{format:"mm dd yyyy",label:"MM DD YYYY"},{format:"mm dd yy",label:"MM DD YY"},{format:"dd mm yyyy",label:"DD MM YYYY"},{format:"dd mm yy",label:"DD MM YY"}];function ak(e,t){if(typeof e!=="string"){return null}function n(e){return e&&e.length===1?"0"+e:e}const r=(e,t)=>n=>{const r=n.replace(/\bjan(\.|uary)?\b/i,"01").replace(/\bfeb(\.|ruary)?\b/i,"02").replace(/\bmar(\.|ch)?\b/i,"03").replace(/\bapr(\.|il)?\b/i,"04").replace(/\bmay\.?\b/i,"05").replace(/\bjun(\.|e)?\b/i,"06").replace(/\bjul(\.|y)?\b/i,"07").replace(/\baug(\.|ust)?\b/i,"08").replace(/\bsep(\.|tember)?\b/i,"09").replace(/\boct(\.|ober)?\b/i,"10").replace(/\bnov(\.|ember)?\b/i,"11").replace(/\bdec(\.|ember)?\b/i,"12").replace(/^[^\d]+/,"").replace(/[^\d]+$/,"").split(/[^\d]+/);if(r.length>=3){return r.slice(0,3)}const o=n.replace(/[^\d]/g,"");return[o.slice(0,e),o.slice(e,e+t),o.slice(e+t)]};const o=r(4,2);const i=r(2,2);let a,s,l,u;switch(t){case"dd mm yyyy":a=i(e);s=a[2];l=a[1];u=a[0];break;case"dd mm yy":a=i(e);s=`20${a[2]}`;l=a[1];u=a[0];break;case"yyyy mm dd":a=o(e);s=a[0];l=a[1];u=a[2];break;case"yy mm dd":a=i(e);s=`20${a[0]}`;l=a[1];u=a[2];break;case"mm dd yy":a=i(e);s=`20${a[2]}`;l=a[0];u=a[1];break;default:case"mm dd yyyy":a=i(e);s=a[2];l=a[0];u=a[1]}const c=`${s}-${n(l)}-${n(u)}`;if(!ax.Z(i5.Z(c))){return null}return c}function aj(e,t){if(!e){return null}try{return(0,i6.WU)(e,t)}catch(e){}return null}function aC(e){const t=e.match(/\.([^.]*)$/);if(!t)return"ofx";const n=t[1].toLowerCase();if(n==="tsv")return"csv";return n}function aT({parseDateFormat:e,showParsed:n,dateFormat:r,date:o}){const i=o&&aj(e?ak(o,e):o,r);return(0,t.jsxs)(eS.Z,{children:[(0,t.jsxs)(eS.Z,{children:[o||(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontStyle:"italic"},children:"Empty"})," ","→"," "]}),(0,t.jsx)(eS.Z,{style:{color:i?ei.rS.noticeTextLight:ei.rS.errorText},children:i||"Invalid"})]})}function aE(e,t){if(e.length===0||t.date==null){return"yyyy mm dd"}const n=e[0];const r=n[t.date];const o=r==null?null:aS.find(e=>ak(r,e.format)!=null);return o?o.format:"mm dd yyyy"}function aI(e){if(e.length===0){return{}}const t=e[0];const n=Object.entries(t);function r(e){return e?e[0]:null}const o=r(n.find(([e,t])=>e.toLowerCase().includes("date"))||n.find(([e,t])=>t.match(/^\d+[-/]\d+[-/]\d+$/)));const i=r(n.find(([e,t])=>e.toLowerCase().includes("amount"))||n.find(([e,t])=>t.match(/^-?[.,\d]+$/)));const a=r(n.find(([e,t])=>e!==o&&e!==i));const s=r(n.find(([e,t])=>e!==o&&e!==i&&e!==a));const l=r(n.find(([e,t])=>e!==o&&e!==i&&e!==a&&e!==s));return{date:o,amount:i,payee:a,notes:s,inOut:l}}function a_(e,t){const n={};for(const[r,o]of Object.entries(t)){let t=r;if(t==="payee"){t="payee_name"}n[t]=e[o||t]}return n}function aM(e,t){if(e==null){return null}const n=typeof e==="string"?(0,B.qP)(e):e;const r=t(n);return r}function aD(e,t,n,r,o,i){const a=parseFloat(i)||1;if(t){const t=aM(e.outflow,e=>-Math.abs(e))*a;const n=t?0:aM(e.inflow,e=>Math.abs(e))*a;return{amount:t||n,outflow:t,inflow:n}}if(n){return{amount:aM(e.amount,t=>e.inOut===r?Math.abs(t)*-1:Math.abs(t))*a,outflow:null,inflow:null}}return{amount:aM(e.amount,e=>o?e*-1:e)*a,outflow:null,inflow:null}}function aP({transaction:e,fieldMappings:n,showParsed:r,parseDateFormat:o,dateFormat:i,splitMode:a,inOutMode:s,outValue:l,flipAmount:u,multiplierAmount:c}){const f=(0,m.useMemo)(()=>n?a_(e,n):e,[e,n]);let{amount:h,outflow:p,inflow:g}=aD(f,a,s,l,u,c);h=(0,B.eY)(h);p=(0,B.eY)(p);g=(0,B.eY)(g);return(0,t.jsxs)(n5.X2,{style:{backgroundColor:ei.rS.tableBackground},children:[(0,t.jsx)(n5.gN,{width:200,children:r?(0,t.jsx)(aT,{parseDateFormat:o,dateFormat:i,date:f.date}):aj(f.date,i)}),(0,t.jsx)(n5.gN,{width:"flex",title:f.imported_payee||f.payee_name,children:f.payee_name}),(0,t.jsx)(n5.gN,{width:"flex",title:f.notes,children:f.notes}),a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:p,children:p}),(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:g,children:g})]}):(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"left",...ei.W2.tnum},title:f.inOut,children:f.inOut}),(0,t.jsx)(n5.gN,{width:90,contentStyle:{textAlign:"right",...ei.W2.tnum},title:h,children:h})]})]})}function aA({title:e}){return(0,t.jsx)(eS.Z,{style:{fontSize:13,marginBottom:3,color:ei.rS.pageText},children:e})}function aO({style:e,options:n,value:r,onChange:o,hasHeaderRow:i,firstTransaction:a}){return(0,t.jsx)(ab.Z,{options:[["choose-field","Choose field..."],...n.map(e=>[e,i?e:`Column ${parseInt(e)+1} (${a[e]})`])],value:r===null?"choose-field":r,style:{width:"100%"},wrapperStyle:e,onChange:e=>o(e)})}function aR({transactions:e,fieldMappings:n,parseDateFormat:r,onChange:o}){let i="-";if(e.length>0&&n&&n.date!=null){const t=e[0][n.date];const r=t&&t.match(/[/.,-/\\]/);i=r?r[0]:" "}return(0,t.jsxs)(eu.Z,{style:{width:120},children:[(0,t.jsx)(ek.eX,{title:"Date format"}),(0,t.jsx)(ab.Z,{options:aS.map(e=>[e.format,e.label.replace(/ /g,i)]),value:r||"",onChange:e=>o(e),style:{width:"100%"}})]})}function az({id:e,checked:n,disabled:r,onChange:o,children:i,style:a}){return(0,t.jsxs)(eu.Z,{style:{flex:1,flexDirection:"row",alignItems:"center",userSelect:"none",minHeight:28,...a},children:[(0,t.jsx)(ek.XZ,{id:e,checked:n,disabled:r,onChange:o}),(0,t.jsx)("label",{htmlFor:e,style:{userSelect:"none",color:r?ei.rS.pageTextSubdued:null},children:i})]})}function aZ({multiplierEnabled:e,multiplierAmount:n,onToggle:r,onChangeAmount:o}){return(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,height:28},children:[(0,t.jsx)(az,{id:"add_multiplier",checked:e,onChange:r,children:"Add multiplier"}),(0,t.jsx)(iQ.ZP,{type:"text",style:{display:e?"inherit":"none"},value:n,placeholder:"Multiplier",onUpdate:o})]})}function aL({inOutMode:e,outValue:n,disabled:r,onToggle:o,onChangeText:i}){return(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:10,height:28},children:[(0,t.jsx)(az,{id:"form_inOut",checked:e,disabled:r,onChange:o,children:e?"in/out identifier":"Select column to specify if amount goes in/out"}),e&&(0,t.jsx)(iQ.ZP,{type:"text",value:n,onUpdate:i,placeholder:"Value for out rows, i.e. Credit"})]})}function aN({transactions:e,mappings:n,onChange:r,splitMode:o,inOutMode:i,hasHeaderRow:a}){if(e.length===0){return null}const s=Object.keys(e[0]);n=n||{};return(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ek.eX,{title:"CSV FIELDS"}),(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",spacing:1,style:{marginTop:5},children:[(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(aA,{title:"Date"}),(0,t.jsx)(aO,{options:s,value:n.date,style:{marginRight:5},onChange:e=>r("date",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(aA,{title:"Payee"}),(0,t.jsx)(aO,{options:s,value:n.payee,style:{marginRight:5},onChange:e=>r("payee",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(aA,{title:"Notes"}),(0,t.jsx)(aO,{options:s,value:n.notes,style:{marginRight:5},onChange:e=>r("notes",e),hasHeaderRow:a,firstTransaction:e[0]})]}),o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eu.Z,{style:{flex:.5},children:[(0,t.jsx)(aA,{title:"Outflow"}),(0,t.jsx)(aO,{options:s,value:n.outflow,onChange:e=>r("outflow",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:.5},children:[(0,t.jsx)(aA,{title:"Inflow"}),(0,t.jsx)(aO,{options:s,value:n.inflow,onChange:e=>r("inflow",e),hasHeaderRow:a,firstTransaction:e[0]})]})]}):(0,t.jsxs)(t.Fragment,{children:[i&&(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(aA,{title:"In/Out"}),(0,t.jsx)(aO,{options:s,value:n.inOut,onChange:e=>r("inOut",e),hasHeaderRow:a,firstTransaction:e[0]})]}),(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsx)(aA,{title:"Amount"}),(0,t.jsx)(aO,{options:s,value:n.amount,onChange:e=>r("amount",e),hasHeaderRow:a,firstTransaction:e[0]})]})]})]})]})}function aB({modalProps:e,options:n}){const r=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const o=(0,y.v9)(e=>e.prefs.local);const{parseTransactions:i,importTransactions:a,getPayees:s,savePrefs:l}=(0,en.o)();const[u,c]=(0,m.useState)("");const[f,h]=(0,m.useState)("parsing");const[p,g]=(0,m.useState)(null);const[v,x]=(0,m.useState)(n.filename);const[w,b]=(0,m.useState)([]);const[S,k]=(0,m.useState)(null);const[j,C]=(0,m.useState)(null);const[T,E]=(0,m.useState)(false);const[I,_]=(0,m.useState)(false);const[M,D]=(0,m.useState)("");const[P,A]=(0,m.useState)(false);const[O,R]=(0,m.useState)(false);const{accountId:z,onImported:Z}=n;const[L,N]=(0,m.useState)(o[`csv-delimiter-${z}`]||(v.endsWith(".tsv")?" ":","));const[H,F]=(0,m.useState)(o[`csv-has-header-${z}`]??true);const[V,W]=(0,m.useState)(o[`ofx-fallback-missing-payee-${z}`]??true);const[U,$]=(0,m.useState)(null);const[K,q]=(0,m.useState)(true);const Y=(0,aw.Z)("experimentalOfxParser");async function G(e,t){h("parsing");const n=aC(e);x(e);k(n);t={...t,enableExperimentalOfxParser:Y};const{errors:r,transactions:a}=await i(e,t);h(null);g(null);if(r.length>0){g({parsed:true,message:r[0].message||"Internal error"})}else{if(n==="csv"||n==="qif"){A(o[`flip-amount-${z}-${n}`]||false)}if(n==="csv"){let e=o[`csv-mappings-${z}`];e=e?JSON.parse(e):aI(a);C(e);const t=!!(e.outflow||e.inflow);E(t);$(o[`parse-date-${z}-${n}`]||aE(a,e))}else if(n==="qif"){$(o[`parse-date-${z}-${n}`]||aE(a,{date:"date"}))}else{C(null);$(null)}b(a.reverse())}}function X(e){const t=e;if(!t||t.match(/^\d{1,}(\.\d{0,4})?$/)){c(t)}}(0,m.useEffect)(()=>{const e=aC(n.filename);const t=aH(e,{delimiter:L,hasHeaderRow:H,fallbackMissingPayeeToMemo:V});G(n.filename,t)},[i,n.filename]);function Q(){if(j==null){return}if(P===true){A(!P)}const e=!T;E(e);_(false);A(false);const t=aI(w);const n=e?{amount:null,outflow:t.amount,inflow:null}:{amount:t.amount,outflow:null,inflow:null};C({...j,...n})}async function J(){const e=await window.Actual.openFileDialog({filters:[{name:"Financial Files",extensions:["qif","ofx","qfx","csv","tsv"]}]});const t=aC(e[0]);const n=aH(t,{delimiter:L,hasHeaderRow:H,fallbackMissingPayeeToMemo:V});G(e[0],n)}function ee(e,t){C({...j,[e]:t===""?null:t})}async function et(){h("importing");const t=[];let n;for(let e of w){e=j?a_(e,j):e;const r=aF(S)?e.date:ak(e.date,U);if(r==null){n=`Unable to parse date ${e.date||"(empty)"} with given date format`;break}const{amount:o}=aD(e,T,I,M,P,u);if(o==null){n=`Transaction on ${e.date} has no amount`;break}const{inflow:i,outflow:a,inOut:s,...l}=e;t.push({...l,date:r,amount:(0,B.l9)(o),cleared:K})}if(n){h(null);g({parsed:false,message:n});return}if(!aF(S)){const e=`parse-date-${z}-${S}`;l({[e]:U})}if(aF(S)){l({[`ofx-fallback-missing-payee-${z}`]:V})}if(S==="csv"){l({[`csv-mappings-${z}`]:JSON.stringify(j)});l({[`csv-delimiter-${z}`]:L})}if(S==="csv"||S==="qif"){l({[`flip-amount-${z}-${S}`]:P})}const r=await a(z,t);if(r){await s()}if(Z){Z(r)}e.onClose()}const er=[{name:"Date",width:200},{name:"Payee",width:"flex"},{name:"Notes",width:"flex"}];if(I){er.push({name:"In/Out",width:90,style:{textAlign:"left"}})}if(T){er.push({name:"Outflow",width:90,style:{textAlign:"right"}});er.push({name:"Inflow",width:90,style:{textAlign:"right"}})}else{er.push({name:"Amount",width:90,style:{textAlign:"right"}})}return(0,t.jsxs)(ex.C,{title:"Import transactions"+(S?` (${S.toUpperCase()})`:""),...e,loading:f==="parsing",style:{width:800},children:[p&&!p.parsed&&(0,t.jsx)(eu.Z,{style:{alignItems:"center",marginBottom:15},children:(0,t.jsxs)(eS.Z,{style:{marginRight:10,color:ei.rS.errorText},children:[(0,t.jsx)("strong",{children:"Error:"})," ",p.message]})}),(!p||!p.parsed)&&(0,t.jsxs)(eu.Z,{style:{flex:"unset",height:300,border:"1px solid "+ei.rS.tableBorder},children:[(0,t.jsx)(n5.xD,{headers:er}),(0,t.jsx)(n5.pX,{items:w,fields:["payee","amount"],style:{backgroundColor:ei.rS.tableHeaderBackground},getItemKey:e=>e,renderEmpty:()=>{return(0,t.jsx)(eu.Z,{style:{textAlign:"center",marginTop:25,color:ei.rS.tableHeaderText,fontStyle:"italic"},children:"No transactions found"})},renderItem:({key:e,style:n,item:o,editing:i,focusedField:a})=>(0,t.jsx)(eu.Z,{style:n,children:(0,t.jsx)(aP,{transaction:o,showParsed:S==="csv"||S==="qif",parseDateFormat:U,dateFormat:r,fieldMappings:j,splitMode:T,inOutMode:I,outValue:M,flipAmount:P,multiplierAmount:u})},e)})]}),p&&p.parsed&&(0,t.jsxs)(eu.Z,{style:{color:ei.rS.errorText,alignItems:"center",marginTop:10},children:[(0,t.jsxs)(eS.Z,{style:{maxWidth:450,marginBottom:15},children:[(0,t.jsx)("strong",{children:"Error:"})," ",p.message]}),p.parsed&&(0,t.jsx)(em.Z,{onClick:()=>J(),children:"Select new file..."})]}),S==="csv"&&(0,t.jsx)(eu.Z,{style:{marginTop:25},children:(0,t.jsx)(aN,{transactions:w,onChange:ee,mappings:j,splitMode:T,inOutMode:I,hasHeaderRow:H})}),aF(S)&&(0,t.jsx)(az,{id:"form_fallback_missing_payee",checked:V,onChange:()=>{W(e=>!e);G(v,aH("ofx",{fallbackMissingPayeeToMemo:!V}))},children:"Use Memo as a fallback for empty Payees"}),(S==="qif"||S==="csv")&&(0,t.jsx)(eu.Z,{style:{marginTop:25},children:(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",spacing:1,style:{marginTop:5},children:[(0,t.jsx)(eu.Z,{children:(S==="qif"||S==="csv")&&(0,t.jsx)(aR,{transactions:w,fieldMappings:j,parseDateFormat:U,onChange:$})}),S==="csv"&&(0,t.jsxs)(eu.Z,{style:{marginLeft:25,gap:5},children:[(0,t.jsx)(ek.eX,{title:"CSV OPTIONS"}),(0,t.jsxs)("label",{style:{display:"flex",flexDirection:"row",gap:5,alignItems:"baseline"},children:["Delimiter:",(0,t.jsx)(ab.Z,{options:[[",",","],[";",";"],["|","|"],[" ","tab"]],value:L,onChange:e=>{N(e);G(v,aH("csv",{delimiter:e,hasHeaderRow:H}))},style:{width:50}})]}),(0,t.jsx)(az,{id:"form_has_header",checked:H,onChange:()=>{F(!H);G(v,aH("csv",{delimiter:L,hasHeaderRow:!H}))},children:"File has header row"}),(0,t.jsx)(az,{id:"clear_on_import",checked:K,onChange:()=>{q(!K)},children:"Clear transactions on import"})]}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsxs)(eu.Z,{style:{marginRight:25,gap:5},children:[(0,t.jsx)(ek.eX,{title:"AMOUNT OPTIONS"}),(0,t.jsx)(az,{id:"form_flip",checked:P,disabled:T||I,onChange:()=>A(!P),children:"Flip amount"}),S==="csv"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(az,{id:"form_split",checked:T,disabled:I||P,onChange:Q,children:"Split amount into separate inflow/outflow columns"}),(0,t.jsx)(aL,{inOutMode:I,outValue:M,disabled:T||P,onToggle:()=>_(!I),onChangeText:D})]}),(0,t.jsx)(aZ,{multiplierEnabled:O,multiplierAmount:u,onToggle:()=>{R(!O);c("")},onChangeAmount:X})]})]})}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",marginTop:5},children:(0,t.jsx)(eu.Z,{style:{alignSelf:"flex-end",flexDirection:"row",alignItems:"center"},children:(0,t.jsxs)(em.y,{type:"primary",disabled:w.length===0,loading:f==="importing",onClick:et,children:["Import ",w.length," transactions"]})})})]})}function aH(e,t={}){if(e==="csv"){const{delimiter:e,hasHeaderRow:n}=t;return{delimiter:e,hasHeaderRow:n}}else if(aF(e)){const{fallbackMissingPayeeToMemo:e}=t;return{fallbackMissingPayeeToMemo:e}}return{}}function aF(e){return e==="ofx"||e==="qfx"};class aV extends m.Component{state={hoveredBackup:null};onHover=e=>{this.setState({hoveredBackup:e})};render(){const{backups:e,onSelect:n}=this.props;const{hoveredBackup:r}=this.state;return(0,t.jsx)(eu.Z,{style:{flex:1,maxHeight:200,overflow:"auto"},onMouseLeave:()=>this.onHover(null),children:e.map((e,o)=>(0,t.jsx)(n5.X2,{collapsed:o!==0,focused:r===e.id,onMouseEnter:()=>this.onHover(e.id),onClick:()=>n(e.id),style:{cursor:"pointer"},children:(0,t.jsx)(n5.bL,{width:"flex",value:e.date?e.date:"Revert to Latest",valueStyle:{paddingLeft:20}})},e.id))})}}function aW({budgetId:e,watchUpdates:n,backupDisabled:r,actions:o,modalProps:i}){const[a,s]=(0,m.useState)([]);(0,m.useEffect)(()=>{(0,q.lW)("backups-get",{id:e}).then(s)},[e]);(0,m.useEffect)(()=>{if(n){(0,q.oL)("backups-updated",s);return()=>(0,q.Ev)("backups-updated",s)}},[n]);const l=a.find(e=>e.isLatest);const u=a.filter(e=>!e.isLatest);return(0,t.jsx)(ex.C,{title:"Load Backup",padding:0,...i,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{style:{marginBottom:30},children:[(0,t.jsx)(eu.Z,{style:{margin:20,marginTop:0,marginBottom:15,lineHeight:1.5},children:l?(0,t.jsxs)(el.Z,{children:[(0,t.jsxs)(el.Z,{style:{marginBottom:10},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:600},children:"You are currently working from a backup."})," ","You can load a different backup or revert to the original version below."]}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>o.loadBackup(e,l.id),children:"Revert to original version"})]}):(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start"},children:[(0,t.jsxs)(el.Z,{style:{marginBottom:10},children:["Select a backup to load. After loading a backup, you will have a chance to revert to the current version in this screen."," ",(0,t.jsx)(eS.Z,{style:{fontWeight:600},children:"If you use a backup, you will have to setup all your devices to sync from the new budget."})]}),(0,t.jsx)(em.Z,{type:"primary",disabled:r,onClick:()=>o.makeBackup(),children:"Backup Now"})]})}),u.length===0?(0,t.jsx)(el.Z,{style:{color:ei.rS.tableTextLight,marginLeft:20},children:"No backups available"}):(0,t.jsx)(aV,{backups:u,onSelect:t=>o.loadBackup(e,t)})]})})}var aU=aW;var a$=n(50102);function aK({modalProps:e,payeeId:n}){const[r,o]=(0,m.useState)(true);const i=(0,nP.TH)();if((0,a$.Ry)()){if(i.pathname!=="/payees"){throw new Error(`Possibly invalid use of ManageRulesModal, add the current url \`${i.pathname}\` to the allowlist if you’re confident the modal can never appear on top of the \`/rules\` page.`)}}return(0,t.jsx)(ex.C,{title:"Rules",padding:0,loading:r,...e,style:{flex:1},children:()=>(0,t.jsx)(rg,{isModal:true,payeeId:n,setLoading:o})})};const aq={color:ei.rS.pageTextPositive};function aY({modalProps:e,payeeIds:n,targetPayeeId:r}){const{payees:o,modalStack:i}=(0,y.v9)(e=>({payees:e.queries.payees,modalStack:e.modals.modalStack}));const a=!!i.find(e=>e.name==="edit-rule");const s=(0,y.I0)();const[l,u]=(0,m.useState)(true);const c=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(c.current){const e=c.current;const t=e.scrollTop;e.scrollTop=t+1;e.scrollTop=t}},[c.current,true]);const[f]=(0,m.useState)(()=>n.map(e=>o.find(t=>t.id===e)));const h=o.find(e=>e.id===r);if(!h){return null}async function p(){await (0,q.lW)("payees-merge",{targetId:h.id,mergeIds:f.map(e=>e.id)});let t;if(l&&!a){const e=await (0,q.lW)("rule-add-payee-rename",{fromNames:f.map(e=>e.name),to:h.id});t=e}e.onClose();return t}async function g(){const e=await p();if(e){const t=await (0,q.lW)("rule-get",{id:e});s((0,nX.OB)("edit-rule",{rule:t}))}}return(0,t.jsx)(ex.C,{title:"Merge payee?",padding:0,showHeader:false,...e,style:e.style,children:()=>(0,t.jsx)(eu.Z,{style:{padding:20,maxWidth:500},children:(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ew.Z,{style:{marginBottom:10,fontWeight:500},children:f.length===1?(0,t.jsxs)(t.Fragment,{children:["The payee ",(0,t.jsx)(eS.Z,{style:aq,children:f[0].name})," ","is not used by transactions any more. Would like to merge it with ",(0,t.jsx)(eS.Z,{style:aq,children:h.name}),"?"]}):(0,t.jsxs)(t.Fragment,{children:["The following payees are not used by transactions any more. Would like to merge them with"," ",(0,t.jsx)(eS.Z,{style:aq,children:h.name}),"?",(0,t.jsx)("ul",{ref:c,style:{margin:0,marginTop:10,maxHeight:140,overflow:"auto"},children:f.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(eS.Z,{style:aq,children:e.name})},e.id))})]})}),(0,t.jsxs)(au,{children:["Merging will remove the payee and transfer any existing rules to the new payee.",!a&&(0,t.jsxs)(t.Fragment,{children:[" ","If checked below, a rule will be created to do this rename while importing transactions."]})]}),!a&&(0,t.jsxs)("label",{style:{fontSize:13,marginTop:10,color:ei.rS.pageTextLight,userSelect:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,t.jsx)("input",{type:"checkbox",checked:l,onChange:e=>u(e.target.checked)}),(0,t.jsxs)(eS.Z,{style:{marginLeft:3},children:["Automatically rename"," ",f.length===1?"this payee":"these payees"," in the future"]})]}),(0,t.jsxs)(ex.Z,{style:{marginTop:20},focusButton:true,children:[(0,t.jsx)(em.Z,{type:"primary",isSubmit:false,style:{marginRight:10},onClick:p,children:"Merge"}),!a&&(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:g,children:"Merge and edit rule"}),(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:()=>e.onBack(),children:"Do nothing"})]})]})})})}var aG=n(25136);function aX({modalProps:e,id:n,name:r,onSave:o}){const i=(0,n8.y)(()=>(0,ik.ZP)("notes").filter({id:n}).select("*"),[n]);const a=i&&i.length>0?i[0].note:null;const[s,l]=(0,m.useState)(a);(0,m.useEffect)(()=>l(a),[a]);function u(){e?.onClose()}function c(){if(s!==a){o?.(n,s)}u()}return(0,t.jsx)(ex.C,{title:`Notes: ${r}`,showHeader:true,focusAfterClose:false,...e,onClose:u,padding:0,style:{flex:1,height:"50vh",padding:"0 10px",borderRadius:"6px"},children:()=>(0,t.jsxs)(eu.Z,{style:{flex:1,flexDirection:"column"},children:[(0,t.jsx)(iM.Z,{notes:s,editable:true,focused:true,getStyle:e=>({borderRadius:6,flex:1,minWidth:0}),onChange:l}),(0,t.jsx)(eu.Z,{style:{flexDirection:"column",alignItems:"center",justifyItems:"center",width:"100%",paddingTop:10,paddingBottom:10},children:(0,t.jsxs)(em.Z,{type:"primary",style:{fontSize:17,fontWeight:400,width:"100%"},onClick:c,children:[(0,t.jsx)(aG.Z,{width:17,height:17,style:{paddingRight:5}}),"Save notes"]})})]})})};function aQ(e){return(0,t.jsx)(ad,{style:{alignSelf:"center"},children:e==="timeout"?"Timed out. Please try again.":"An error occurred while linking your account, sorry!"})}function aJ({modalProps:e,onMoveExternal:n,onSuccess:r,onClose:o}){const[i,a]=(0,m.useState)(null);const[s,l]=(0,m.useState)(false);const[u,c]=(0,m.useState)(null);const f=(0,m.useRef)(null);async function h(){c(null);a("browser");const e=await n();if(e.error){c(e.error);a(null);return}f.current=e.data;a(null);l(true)}function p(){o?.();e.onClose()}async function g(){a("accounts");await r(f.current);a(null)}return(0,t.jsx)(ex.C,{title:"Link Your Bank",...e,onClose:p,style:{flex:0},children:()=>(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(ew.Z,{style:{fontSize:15},children:"To link your bank account, you will be moved to your browser for enhanced security. Click below and Actual will automatically resume when you have given your bank’s credentials."}),u&&aQ(u),i?(0,t.jsxs)(eu.Z,{style:{alignItems:"center",marginTop:15},children:[(0,t.jsx)(es.Z,{color:ei.rS.pageTextDark,style:{width:20,height:20}}),(0,t.jsx)(eu.Z,{style:{marginTop:10,color:ei.rS.pageText},children:i==="browser"?"Waiting on browser...":i==="accounts"?"Loading accounts...":null})]}):s?(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:g,children:"Success! Click to continue →"}):(0,t.jsx)(em.Z,{type:"primary",style:{padding:"10px 0",fontSize:15,fontWeight:600,marginTop:10},onClick:h,children:"Link bank in browser →"}),(0,t.jsx)("div",{style:{marginTop:i?30:35},children:(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageText,fontWeight:600},children:"Why not link it in the app?"})}),(0,t.jsx)(eS.Z,{style:{marginTop:10,color:ei.rS.pageText,fontSize:13,"& a, & a:visited":{color:ei.rS.pageText}},children:"Typing your bank’s username and password is one of the most security-sensitive things you can do, and the browser is the most secure app in the world. Why not use it to make sure your information is safe? [TODO: Link to docs article]"}),(0,t.jsx)(ex.Z,{style:{marginTop:10},children:(0,t.jsx)(em.Z,{onClick:()=>e.onBack(),children:"Back"})})]})})}var a0=n(78125);var a1=n(28376);var a2=n(59343);var a4=n(57201);function a5({month:e,modalProps:n}){const r=i6.dK();return(0,t.jsx)(ex.C,{title:"Budget Summary",...n,children:()=>(0,t.jsxs)(a4.Z.Provider,{value:(0,i6.cv)(e),children:[(0,t.jsxs)(eb.Z,{spacing:2,style:{alignSelf:"center",backgroundColor:"transparent",borderRadius:4},children:[(0,t.jsx)(a1.Z,{style:{...ei.W2.mediumText}}),(0,t.jsx)(a0.Z,{style:{...ei.W2.mediumText}})]}),(0,t.jsx)(a2.Z,{projected:e>=r,style:{...ei.W2.mediumText,marginTop:20}})]})})}var a3=n(36467);var a6=n(28536);function a8({month:e,onBudgetAction:n,modalProps:r}){const o=(0,i6.WU)((0,i6.dy)(e),"MMM");return(0,t.jsx)(ex.C,{title:"Budget Summary",...r,children:()=>(0,t.jsxs)(a4.Z.Provider,{value:(0,i6.cv)(e),children:[(0,t.jsx)(a6.Z,{prevMonthName:o,style:{...ei.W2.mediumText}}),(0,t.jsx)(a3.Z,{month:e,prevMonthName:o,onBudgetAction:n,style:{...ei.W2.mediumText,marginTop:15},amountStyle:{...ei.W2.underlinedText},totalsTooltipProps:{position:"bottom-center"},holdTooltipProps:{position:"bottom-center"},transferTooltipProps:{position:"bottom-center"}})]})})};const a7={id:"new",name:"Create new account"};function a9({modalProps:e,requisitionId:n,externalAccounts:r,localAccounts:o,actions:i}){const[a,s]=(0,m.useState)(()=>{return Object.fromEntries(o.filter(e=>e.account_id).map(e=>[e.account_id,e.id]))});async function l(){const e=Object.values(a);o.filter(e=>e.account_id).filter(t=>!e.includes(t.id)).forEach(e=>i.unlinkAccount(e.id));Object.entries(a).forEach(([e,t])=>{const o=r.find(t=>t.account_id===e);if(!o){return}i.linkAccount(n,o,t!==a7.id?t:undefined)});i.closeModal()}const u=o.filter(e=>!Object.values(a).includes(e.id));function c(e,t){s(n=>{const r={...n};if(t){r[e.account_id]=t}else{delete r[e.account_id]}return r})}return(0,t.jsx)(ex.C,{title:"Link Accounts",...e,style:{width:800},children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eS.Z,{style:{marginBottom:10},children:"We found the following accounts. Select which ones you want to add:"}),(0,t.jsxs)(eu.Z,{style:{flex:"unset",height:300,border:"1px solid "+ei.rS.tableBorder},children:[(0,t.jsx)(n5.xD,{headers:[{name:"Bank Account To Sync",width:200},{name:"Account in Actual",width:"flex"},{name:"Actions",width:"flex"}]}),(0,t.jsx)(n5.iA,{items:r,style:{backgroundColor:ei.rS.tableHeaderBackground},getItemKey:e=>e,renderItem:({key:e,item:n})=>(0,t.jsx)(eu.Z,{children:(0,t.jsx)(se,{externalAccount:n,chosenAccount:a[n.account_id]===a7.id?a7:o.find(e=>a[n.account_id]===e.id),unlinkedAccounts:u,onSetLinkedAccount:c})},e)})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end",marginTop:10},children:(0,t.jsx)(em.Z,{type:"primary",onClick:l,disabled:!Object.keys(a).length,children:"Link accounts"})})]})})}function se({externalAccount:e,chosenAccount:n,unlinkedAccounts:r,onSetLinkedAccount:o}){const[i,a]=(0,m.useState)(null);const s=[...r,n?.id!==a7.id&&n,a7].filter(Boolean);return(0,t.jsxs)(n5.X2,{style:{backgroundColor:ei.rS.tableBackground},children:[(0,t.jsx)(n5.gN,{width:200,children:e.name}),(0,t.jsx)(n5.gN,{width:"flex",truncate:i!=="account",onClick:()=>a("account"),children:i==="account"?(0,t.jsx)(af.ZP,{focused:true,strict:true,highlightFirst:true,suggestions:s,onSelect:t=>{o(e,t)},inputProps:{onBlur:()=>a(null)},value:n?.id}):(n?.name)}),(0,t.jsx)(n5.gN,{width:"flex",children:n?(0,t.jsx)(em.Z,{onClick:()=>{o(e,null)},style:{float:"right"},children:"Remove bank-sync"}):(0,t.jsx)(em.Z,{type:"primary",onClick:()=>{a("account")},style:{float:"right"},children:"Setup bank-sync"})})]})};function st({modalProps:e,title:n,buttonText:r,onSubmit:o,onValidate:i,inputPlaceholder:a}){const[s,l]=(0,m.useState)("");const[u,c]=(0,m.useState)(null);const f=t=>{const n=i?.(t);if(n){c(n);return}o?.(t);e.onClose()};return(0,t.jsx)(ex.C,{title:n,...e,children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"center",paddingBottom:15},children:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",flex:1},children:[(0,t.jsx)(iX.Z,{children:(0,t.jsx)(iQ.ZP,{placeholder:a,style:{...ei.W2.mediumText},onUpdate:l,onEnter:e=>f(e.currentTarget.value)})}),u&&(0,t.jsxs)(iB,{style:{paddingTop:5},children:["* ",u]})]})}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",alignContent:"center",justifyContent:"center"},children:(0,t.jsx)(em.Z,{type:"primary",style:{...ei.W2.mediumText,flexBasis:"50%"},onPointerUp:e=>f(s),children:r})})]})})}var sn=st;function so({modalProps:e,onSwitch:n}){const r=(0,y.v9)(e=>e.prefs.local.budgetType);return(0,t.jsx)(ex.C,{title:"Switch budget type?",...e,children:()=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(ew.Z,{children:["You are currently using a"," ",(0,t.jsxs)(eS.Z,{style:{fontWeight:600},children:[r==="report"?"Report budget":"Rollover budget","."]})," ","Switching will not lose any data and you can always switch back."]}),(0,t.jsxs)(em.Z,{type:"primary",onClick:()=>{n();e.onClose?.()},children:["Switch to a"," ",r==="report"?"Rollover budget":"Report budget"]}),(0,t.jsx)(ew.Z,{isLast:true,style:{marginTop:10},children:(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/experimental/report-budget",linkColor:"muted",children:"How do these types of budgeting work?"})})]})})};function si(e,t,n){const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(null);(0,m.useEffect)(()=>{async function r(){a(true);o(await (0,q.lW)(e,t,n));a(false)}r()},[e,t,n]);return{data:r,isLoading:i}}var sa=n(10464);var ss=n(75497);const sl=43;function su({schedules:e,loading:n}){const r=(0,n2.D9)();const o=(0,n2.YP)();const i=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");function a({item:e}){const n=r.has(e.id);const a=e._conditions.find(e=>e.field==="amount").op;const s=(0,n0.o7)(e.date,i);return(0,t.jsxs)(n5.X2,{height:sl,inset:15,onClick:t=>{o({type:"select",id:e.id,event:t})},style:{borderColor:n?ei.rS.tableBorderSelected:ei.rS.tableBorder,cursor:"pointer",color:n?ei.rS.tableRowBackgroundHighlightText:ei.rS.tableText,backgroundColor:n?ei.rS.tableRowBackgroundHighlight:ei.rS.tableBackground,":hover":{backgroundColor:ei.rS.tableRowBackgroundHover,color:ei.rS.tableText}},children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:n,onSelect:t=>{o({type:"select",id:e.id,event:t})}}),(0,t.jsx)(n5.gN,{width:"flex",children:(0,t.jsx)(sa.Z,{type:"payees",id:e.payee})}),(0,t.jsx)(n5.gN,{width:"flex",children:(0,t.jsx)(sa.Z,{type:"accounts",id:e.account})}),(0,t.jsx)(n5.gN,{width:"auto",title:s,style:{flex:1.5},children:s}),(0,t.jsx)(ss.zB,{amount:e.amount,op:a})]})}return(0,t.jsxs)(eu.Z,{style:{flex:1},children:[(0,t.jsxs)(n5.xD,{height:sl,inset:15,children:[(0,t.jsx)(n5._7,{exposed:!n,focused:false,selected:r.size>0,onSelect:e=>o({type:"select-all",event:e})}),(0,t.jsx)(n5.gN,{width:"flex",children:"Payee"}),(0,t.jsx)(n5.gN,{width:"flex",children:"Account"}),(0,t.jsx)(n5.gN,{width:"auto",style:{flex:1.5},children:"When"}),(0,t.jsx)(n5.gN,{width:100,style:{textAlign:"right"},children:"Amount"})]}),(0,t.jsx)(n5.iA,{rowHeight:sl,style:{flex:1,backgroundColor:"transparent"},items:e,loading:n,isSelected:e=>r.has(e),renderItem:a,renderEmpty:"No schedules found"})]})}function sc({modalProps:e,actions:n}){const{data:r,isLoading:o}=si("schedule/discover");const i=r||[];const[a,s]=(0,m.useState)(false);const l=(0,n2.ZP)("discover-schedules",i,[]);async function u(){const e=i.filter(e=>l.items.has(e.id));s(true);for(const t of e){const e=await (0,q.lW)("schedule/create",{conditions:t._conditions,schedule:{}});const{filters:n}=await (0,q.lW)("make-filters-from-conditions",{conditions:t._conditions});if(n.length>0){const{data:t}=await (0,T.Vn)((0,T.ZP)("transactions").filter({$and:n}).select("id"));await (0,q.lW)("transactions-batch-update",{updated:t.map(t=>({id:t.id,schedule:e}))})}}s(false);n.popModal()}return(0,t.jsxs)(ex.C,{title:"Found schedules",size:{width:850,height:650},...e,children:[(0,t.jsx)(ew.Z,{children:"We found some possible schedules in your current transactions. Select the ones you want to create."}),(0,t.jsx)(ew.Z,{children:"If you expected a schedule here and don’t see it, it might be because the payees of the transactions don’t match. Make sure you rename payees on all transactions for a schedule to be the same payee."}),(0,t.jsx)(n2.i5,{instance:l,children:(0,t.jsx)(su,{loading:o,schedules:i})}),(0,t.jsx)(eb.Z,{direction:"row",align:"center",justify:"flex-end",style:{paddingTop:20,paddingBottom:0},children:(0,t.jsx)(em.y,{type:"primary",loading:a,disabled:l.items.size===0,onClick:u,children:"Create schedules"})})]})}var sd=n(66353);var sf=n(58214);var sh=n(82345);var sp=n(77119);function sg(e,t){const n=(0,n0.lq)(e._conditions);const r=(e,t,n,r)=>{if(e){return{...e,value:r}}if(r!=null){return{op:t,field:n,value:r}}return null};if(t.date==null){return{error:"Date is required"}}if(t.amount==null){return{error:"A valid amount is required"}}return{conditions:[r(n.payee,"is","payee",t.payee),r(n.account,"is","account",t.account),r(n.date,"isapprox","date",t.date),{op:t.amountOp,field:"amount",value:t.amount}].filter(Boolean)}}function sv({modalProps:e,actions:n,id:r}){const o=r==null;const i=(0,nz.n4)({idKey:true});const a=(0,y.I0)();const s=(0,y.v9)(e=>{return e.prefs.local.dateFormat||"MM/dd/yyyy"});const[l,u]=(0,m.useReducer)((e,t)=>{switch(t.type){case"set-schedule":{const n=t.schedule;const r=(0,n0.lq)(n._conditions);const o=new Set(Object.values(r));const i=n._conditions.find(e=>!o.has(e))||n._actions.find(e=>e.op!=="link-schedule");return{...e,schedule:t.schedule,isCustom:i,fields:{payee:n._payee,account:n._account,amount:n._amount||0,amountOp:n._amountOp||"isapprox",date:n._date,posts_transaction:t.schedule.posts_transaction,name:n.name}}}case"set-field":if(!(t.field in e.fields)){throw new Error("Unknown field: "+t.field)}const n={[t.field]:t.value};if(t.field==="amountOp"&&t.value!==e.fields.amountOp){if(t.value==="isbetween"){n.amount=typeof e.fields.amount==="number"?{num1:e.fields.amount,num2:e.fields.amount}:{num1:0,num2:0}}else if(e.fields.amountOp==="isbetween"){n.amount=typeof e.fields.amount==="number"?e.fields.amount:e.fields.amount.num1}}return{...e,fields:{...e.fields,...n}};case"set-transactions":return{...e,transactions:t.transactions};case"set-repeats":return{...e,fields:{...e.fields,date:t.repeats?{frequency:"monthly",start:i6.PR(),patterns:[]}:i6.PR()}};case"set-upcoming-dates":return{...e,upcomingDates:t.dates};case"form-error":return{...e,error:t.error};case"switch-transactions":return{...e,transactionsMode:t.mode};default:throw new Error("Unknown action: "+t.type)}},{schedule:null,upcomingDates:null,error:null,fields:{payee:null,account:null,amount:null,amountOp:null,date:null,posts_transaction:false,name:null},transactions:[],transactionsMode:o?"matched":"linked"});async function c(){const{data:e}=await (0,T.Vn)((0,T.ZP)("schedules").filter({id:r}).select("*"));return e[0]}(0,m.useEffect)(()=>{async function e(){if(o){const e={start:i6.PR(),frequency:"monthly",patterns:[],skipWeekend:false,weekendSolveMode:"after",endMode:"never",endOccurrences:"1",endDate:i6.PR()};const t={posts_transaction:false,_date:e,_conditions:[{op:"isapprox",field:"date",value:e}],_actions:[]};u({type:"set-schedule",schedule:t})}else{const e=await c();if(e&&l.schedule==null){u({type:"set-schedule",schedule:e})}}}e()},[]);(0,m.useEffect)(()=>{async function e(){const e=l.fields.date;if(e==null){u({type:"set-upcoming-dates",dates:null})}else{if(e.frequency){const{data:t}=await (0,q.OK)("schedule/get-upcoming-dates",{config:e,count:3});u({type:"set-upcoming-dates",dates:t})}else{const t=i6.PR();if(e===t||i6.Ax(e,t)){u({type:"set-upcoming-dates",dates:[e]})}else{u({type:"set-upcoming-dates",dates:null})}}}}e()},[l.fields.date]);(0,m.useEffect)(()=>{if(l.schedule&&l.schedule.id&&l.transactionsMode==="linked"){const e=(0,T.Y1)((0,T.ZP)("transactions").filter({schedule:l.schedule.id}).select("*").options({splits:"all"}),e=>u({type:"set-transactions",transactions:e}));return e.unsubscribe}},[l.schedule,l.transactionsMode]);(0,m.useEffect)(()=>{let e=true;let t;if(l.schedule&&l.transactionsMode==="matched"){const{error:n,conditions:r}=sg(l.schedule,l.fields);if(n){u({type:"form-error",error:n});return}const o=r.map(e=>{if(e.field==="description"){return{...e,field:"payee"}}else if(e.field==="acct"){return{...e,field:"account"}}return e});(0,q.lW)("make-filters-from-conditions",{conditions:o}).then(({filters:n})=>{if(e){const e=(0,T.Y1)((0,T.ZP)("transactions").filter({$and:n}).select("*").options({splits:"all"}),e=>u({type:"set-transactions",transactions:e}));t=e.unsubscribe}})}return()=>{e=false;if(t){t()}}},[l.schedule,l.transactionsMode,l.fields]);const f=(0,n2.ZP)("transactions",l.transactions,[]);async function h(){u({type:"form-error",error:null});if(l.fields.name){const{data:e}=await (0,T.Vn)((0,T.ZP)("schedules").filter({name:l.fields.name}).select("id"));if(e.length>0&&e[0].id!==l.schedule.id){u({type:"form-error",error:"There is already a schedule with this name"});return}}const{error:e,conditions:t}=sg(l.schedule,l.fields);if(e){u({type:"form-error",error:e});return}const r=await (0,q.OK)(o?"schedule/create":"schedule/update",{schedule:{id:l.schedule.id,posts_transaction:l.fields.posts_transaction,name:l.fields.name},conditions:t});if(r.error){u({type:"form-error",error:"An error occurred while saving. Please visit https://actualbudget.org/contact/ for support."})}else{if(o){await g([...f.items],r.data)}n.popModal()}}async function p(e){const t=await (0,q.lW)("rule-get",{id:e||l.schedule.rule});a((0,nX.Ll)("edit-rule",{rule:t,onSave:async()=>{const e=await c();u({type:"set-schedule",schedule:e})}}))}async function g(e,t){await (0,q.lW)("transactions-batch-update",{updated:e.map(e=>({id:e,schedule:t||l.schedule.id}))});f.dispatch({type:"select-none"})}async function v(e){await (0,q.lW)("transactions-batch-update",{updated:e.map(e=>({id:e,schedule:null}))});f.dispatch({type:"select-none"})}if(l.schedule==null){return null}function x(e){u({type:"switch-transactions",mode:e});f.dispatch({type:"select-none"})}const w=i?i[l.fields.payee]:null;const b=l.fields.date?!!l.fields.date.frequency:false;return(0,t.jsxs)(ex.C,{title:w?`Schedule: ${w.name}`:"Schedule",size:"medium",...e,children:[(0,t.jsx)(eb.Z,{direction:"row",style:{marginTop:10},children:(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Schedule Name",htmlFor:"name-field"}),(0,t.jsx)(sp.Z,{field:"string",type:"string",value:l.fields.name,multi:false,onChange:e=>{u({type:"set-field",field:"name",value:e})}})]})}),(0,t.jsxs)(eb.Z,{direction:"row",style:{marginTop:20},children:[(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Payee",id:"payee-label",htmlFor:"payee-field"}),(0,t.jsx)(i8.ZP,{value:l.fields.payee,labelProps:{id:"payee-label"},inputProps:{id:"payee-field",placeholder:"(none)"},onSelect:e=>u({type:"set-field",field:"payee",value:e}),isCreatable:true})]}),(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsx)(ek.lX,{title:"Account",id:"account-label",htmlFor:"account-field"}),(0,t.jsx)(iL.ZP,{includeClosedAccounts:false,value:l.fields.account,labelProps:{id:"account-label"},inputProps:{id:"account-field",placeholder:"(none)"},onSelect:e=>u({type:"set-field",field:"account",value:e})})]}),(0,t.jsxs)(ek.Wi,{style:{flex:1},children:[(0,t.jsxs)(eb.Z,{direction:"row",align:"center",style:{marginBottom:3},children:[(0,t.jsx)(ek.lX,{title:"Amount",htmlFor:"amount-field",style:{margin:0,flex:1}}),(0,t.jsx)(at.Jz,{ops:["isapprox","is","isbetween"],value:l.fields.amountOp,formatOp:e=>{switch(e){case"is":return"is exactly";case"isapprox":return"is approximately";case"isbetween":return"is between";default:throw new Error("Invalid op for select: "+e)}},style:{padding:"0 10px",color:ei.rS.pageTextLight,fontSize:12},onChange:(e,t)=>u({type:"set-field",field:"amountOp",value:t})})]}),l.fields.amountOp==="isbetween"?(0,t.jsx)(sh.I,{defaultValue:l.fields.amount,onChange:e=>u({type:"set-field",field:"amount",value:e})}):(0,t.jsx)(sh._,{id:"amount-field",value:l.fields.amount,onUpdate:e=>u({type:"set-field",field:"amount",value:e})})]})]}),(0,t.jsx)(eu.Z,{style:{marginTop:20},children:(0,t.jsx)(ek.lX,{title:"Date"})}),(0,t.jsxs)(eb.Z,{direction:"row",align:"flex-start",justify:"space-between",children:[(0,t.jsxs)(eu.Z,{style:{width:"13.44rem"},children:[b?(0,t.jsx)(sd.Z,{value:l.fields.date,onChange:e=>u({type:"set-field",field:"date",value:e})}):(0,t.jsx)(i7.Z,{value:l.fields.date,onSelect:e=>u({type:"set-field",field:"date",value:e}),dateFormat:s}),l.upcomingDates&&(0,t.jsxs)(eu.Z,{style:{fontSize:13,marginTop:20},children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontWeight:600},children:"Upcoming dates"}),(0,t.jsx)(eb.Z,{direction:"column",spacing:1,style:{marginTop:10,color:ei.rS.pageTextLight},children:l.upcomingDates.map(e=>(0,t.jsx)(eu.Z,{children:i6.WU(e,`${s} EEEE`)},e))})]})]}),(0,t.jsxs)(eu.Z,{style:{marginTop:5,flexDirection:"row",alignItems:"center",userSelect:"none"},children:[(0,t.jsx)(ek.XZ,{id:"form_repeats",checked:b,onChange:e=>{u({type:"set-repeats",repeats:e.target.checked})}}),(0,t.jsx)("label",{htmlFor:"form_repeats",style:{userSelect:"none"},children:"Repeats"})]}),(0,t.jsxs)(eb.Z,{align:"flex-end",children:[(0,t.jsxs)(eu.Z,{style:{marginTop:5,flexDirection:"row",alignItems:"center",userSelect:"none",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"form_posts_transaction",checked:l.fields.posts_transaction,onChange:e=>{u({type:"set-field",field:"posts_transaction",value:e.target.checked})}}),(0,t.jsx)("label",{htmlFor:"form_posts_transaction",style:{userSelect:"none"},children:"Automatically add transaction"})]}),(0,t.jsx)(eS.Z,{style:{width:350,textAlign:"right",color:ei.rS.pageTextLight,marginTop:10,fontSize:13,lineHeight:"1.4em"},children:"If checked, the schedule will automatically create transactions for you in the specified account"}),!o&&l.schedule.rule&&(0,t.jsxs)(eb.Z,{direction:"row",align:"center",style:{marginTop:20},children:[l.isCustom&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight,fontSize:13,textAlign:"right",width:350},children:"This schedule has custom conditions and actions"}),(0,t.jsx)(em.Z,{onClick:()=>p(),disabled:o,children:"Edit as rule"})]})]})]}),(0,t.jsx)(eu.Z,{style:{marginTop:30,flex:1},children:(0,t.jsxs)(n2.i5,{instance:f,children:[o?(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",padding:"5px 0"},children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight},children:"These transactions match this schedule:"}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextLight},children:"Select transactions to link on save"})]}):(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,t.jsx)(em.Z,{type:"bare",style:{color:l.transactionsMode==="linked"?ei.rS.pageTextLink:ei.rS.pageTextSubdued,marginRight:10,fontSize:14},onClick:()=>x("linked"),children:"Linked transactions"})," ",(0,t.jsx)(em.Z,{type:"bare",style:{color:l.transactionsMode==="matched"?ei.rS.pageTextLink:ei.rS.pageTextSubdued,fontSize:14},onClick:()=>x("matched"),children:"Find matching transactions"}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n5.Vg,{name:"transactions",items:l.transactionsMode==="linked"?[{name:"unlink",text:"Unlink from schedule"}]:[{name:"link",text:"Link to schedule"}],onSelect:(e,t)=>{switch(e){case"link":g(t);break;case"unlink":v(t);break;default:}}})]}),(0,t.jsx)(sf.Z,{renderEmpty:(0,t.jsx)(sm,{error:l.error,transactionsMode:l.transactionsMode}),transactions:l.transactions,fields:["date","payee","amount"],style:{border:"1px solid "+ei.rS.tableBorder,borderRadius:4,overflow:"hidden",marginTop:5,maxHeight:200}})]})}),(0,t.jsxs)(eb.Z,{direction:"row",justify:"flex-end",align:"center",style:{marginTop:20},children:[l.error&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.errorText},children:l.error}),(0,t.jsx)(em.Z,{style:{marginRight:10},onClick:n.popModal,children:"Cancel"}),(0,t.jsx)(em.Z,{type:"primary",onClick:h,children:o?"Add":"Save"})]})]})}function sm(e){return(0,t.jsx)(eu.Z,{style:{padding:20,color:ei.rS.pageTextLight,textAlign:"center"},children:e.error?(0,t.jsxs)(eS.Z,{style:{color:ei.rS.errorText},children:["Could not search: ",e.error]}):e.transactionsMode==="matched"?"No matching transactions":"No linked transactions"})}var sy=n(62829);function sx({modalProps:e,actions:n,transactionIds:r}){const[o,i]=(0,m.useState)("");const a=(0,sy.gZ)({transform:(0,m.useCallback)(e=>e.filter({completed:false}),[])});const s=(0,m.useRef)(null);if(a==null){return null}const{schedules:l,statuses:u}=a;async function c(e){if(r?.length>0){await (0,q.lW)("transactions-batch-update",{updated:r.map(t=>({id:t,schedule:e}))})}n.popModal()}return(0,t.jsxs)(ex.C,{title:"Link Schedule",size:{width:600},...e,children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",gap:4,marginBottom:20,alignItems:"center"},children:[(0,t.jsxs)(eS.Z,{children:["Choose the schedule"," ",r?.length>1?`these ${r.length} transactions belong`:`this transaction belongs`," ","to:"]}),(0,t.jsx)(n4.Z,{inputRef:s,isInModal:true,width:300,placeholder:"Filter schedules…",value:o,onChange:i})]}),(0,t.jsx)(eu.Z,{style:{flex:`1 1 ${(ss.dN-1)*(Math.max(l.length,1)+1)}px`,marginTop:15,maxHeight:"50vh"},children:(0,t.jsx)(ss.Pz,{allowCompleted:false,filter:o,minimal:true,onAction:()=>{},onSelect:c,schedules:l,statuses:u,style:null,tableStyle:{marginInline:-20}})})]})};function sw({modalProps:e,actions:n}){const r=(0,nP.TH)();const o=r.state&&r.state.payees||[];const i=o.length>1;async function a(){await (0,q.lW)("schedule/force-run-service");n.popModal()}return(0,t.jsxs)(ex.C,{title:"Post transactions?",size:"small",...e,children:[(0,t.jsxs)(ew.Z,{children:[o.length>0?(0,t.jsxs)(eS.Z,{children:["The ",i?"payees ":"payee ",o.map((e,n)=>(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextPositive},children:(0,t.jsx)(sa.Z,{id:e,type:"payees"})}),n===o.length-1?" ":n===o.length-2?", and ":", "]},e))]}):(0,t.jsxs)(eS.Z,{children:["There ",i?"are payees ":"is a payee "," that "]}),(0,t.jsxs)(eS.Z,{children:[i?"have ":"has "," schedules that are due today. Usually we automatically post transactions for these, but you are offline or syncing failed. In order to avoid duplicate transactions, we let you choose whether or not to create transactions for these schedules."]})]}),(0,t.jsx)(ew.Z,{children:"Be aware that other devices may have already created these transactions. If you have multiple devices, make sure you only do this on one device or you will have duplicate transactions."}),(0,t.jsx)(ew.Z,{children:"You can always manually post a transaction later for a due schedule by selecting the schedule and clicking “Post transaction” in the action menu."}),(0,t.jsxs)(eb.Z,{direction:"row",justify:"flex-end",style:{marginTop:20},spacing:2,children:[(0,t.jsx)(em.Z,{onClick:n.popModal,children:"Decide later"}),(0,t.jsx)(em.Z,{type:"primary",onClick:a,children:"Post transactions"})]})]})};function sb(){const e=(0,y.v9)(e=>e.modals.modalStack);const n=(0,y.v9)(e=>e.modals.isHidden);const r=(0,y.v9)(e=>e.queries.accounts);const{grouped:o,list:i}=(0,n1.Z)();const a=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.id);const s=(0,en.o)();const l=(0,nP.TH)();(0,m.useEffect)(()=>{if(e.length>0){s.closeModal()}},[l]);const u=(0,iS.Z)();const c=e.map(({name:l,options:c},f)=>{const h={onClose:s.popModal,onBack:s.popModal,showBack:f>0,isCurrent:f===e.length-1,isHidden:n,stackIndex:f};switch(l){case"import-transactions":return(0,t.jsx)(aB,{modalProps:h,options:c});case"add-account":return(0,t.jsx)(iY,{modalProps:h,syncServerStatus:u});case"add-local-account":return(0,t.jsx)(i2,{modalProps:h,actions:s});case"close-account":return(0,t.jsx)(iV,{modalProps:h,account:c.account,balance:c.balance,canDelete:c.canDelete,accounts:r.filter(e=>e.closed===0),categoryGroups:o,actions:s});case"select-linked-accounts":return(0,t.jsx)(a9,{modalProps:h,externalAccounts:c.accounts,requisitionId:c.requisitionId,localAccounts:r.filter(e=>e.closed===0),actions:s});case"confirm-category-delete":return(0,t.jsx)(iW,{modalProps:h,category:"category"in c&&i.find(e=>e.id===c.category),group:"group"in c&&o.find(e=>e.id===c.group),categoryGroups:o,onDelete:c.onDelete});case"confirm-transaction-edit":return(0,t.jsx)(i$,{modalProps:h,onConfirm:c.onConfirm,confirmReason:c.confirmReason});case"load-backup":return(0,t.jsx)(aU,{watchUpdates:true,budgetId:a,modalProps:h,actions:s,backupDisabled:false});case"manage-rules":return(0,t.jsx)(aK,{modalProps:h,payeeId:c?.payeeId});case"edit-rule":return(0,t.jsx)(at.ZP,{modalProps:h,defaultRule:c.rule,onSave:c.onSave});case"merge-unused-payees":return(0,t.jsx)(aY,{modalProps:h,payeeIds:c.payeeIds,targetPayeeId:c.targetPayeeId});case"plaid-external-msg":return(0,t.jsx)(aJ,{modalProps:h,onMoveExternal:c.onMoveExternal,onClose:()=>{c.onClose?.();(0,q.lW)("poll-web-token-stop")},onSuccess:c.onSuccess});case"gocardless-init":return(0,t.jsx)(ay,{modalProps:h,onSuccess:c.onSuccess});case"gocardless-external-msg":return(0,t.jsx)(av,{modalProps:h,onMoveExternal:c.onMoveExternal,onClose:()=>{c.onClose?.();(0,q.lW)("gocardless-poll-web-token-stop")},onSuccess:c.onSuccess});case"create-encryption-key":return(0,t.jsx)(iJ,{modalProps:h,actions:s,options:c},l);case"fix-encryption-key":return(0,t.jsx)(ao,{modalProps:h,actions:s,options:c},l);case"edit-field":return(0,t.jsx)(ae,{modalProps:h,name:c.name,onSubmit:c.onSubmit,onClose:c.onClose},l);case"new-category":return(0,t.jsx)(sn,{modalProps:h,title:"New Category",inputPlaceholder:"Category name",buttonText:"Add",onValidate:c.onValidate,onSubmit:c.onSubmit});case"new-category-group":return(0,t.jsx)(sn,{modalProps:h,title:"New Category Group",inputPlaceholder:"Category group name",buttonText:"Add",onValidate:c.onValidate,onSubmit:c.onSubmit});case"rollover-budget-summary":return(0,t.jsx)(a8,{modalProps:h,month:c.month,onBudgetAction:c.onBudgetAction},l);case"report-budget-summary":return(0,t.jsx)(a5,{modalProps:h,month:c.month},l);case"schedule-edit":return(0,t.jsx)(sv,{modalProps:h,id:c?.id||null,actions:s},l);case"schedule-link":return(0,t.jsx)(sx,{modalProps:h,actions:s,transactionIds:c?.transactionIds},l);case"schedules-discover":return(0,t.jsx)(sc,{modalProps:h,actions:s},l);case"schedule-posts-offline-notification":return(0,t.jsx)(sw,{modalProps:h,actions:s},l);case"switch-budget-type":return(0,t.jsx)(so,{modalProps:h,onSwitch:c?.onSwitch},l);case"category-menu":return(0,t.jsx)(iz,{modalProps:h,categoryId:c.categoryId,onSave:c.onSave,onEditNotes:c.onEditNotes,onDelete:c.onDelete,onClose:c.onClose},l);case"category-group-menu":return(0,t.jsx)(iA,{modalProps:h,groupId:c.groupId,onSave:c.onSave,onAddCategory:c.onAddCategory,onEditNotes:c.onEditNotes,onSaveNotes:c.onSaveNotes,onDelete:c.onDelete,onClose:c.onClose},l);case"notes":return(0,t.jsx)(aX,{modalProps:h,id:c.id,name:c.name,onSave:c.onSave},l);default:console.error("Unknown modal:",l);return null}}).map((n,r)=>(0,t.jsx)(m.Fragment,{children:n},e[r].name));return(0,t.jsx)(t.Fragment,{children:c})}var sS=n(72285);function sk(e,n,r,o){return(0,t.jsx)(eb.Z,{spacing:2,children:e.split(/\n\n/).map((e,i)=>{const a=e.split(/(\[[^\]]*\]\([^)]*\))/g);return(0,t.jsx)(eS.Z,{style:{lineHeight:"1.4em"},children:a.map((e,i)=>{const a=e.match(/\[([^\]]*)\]\(([^)]*)\)/);if(a){const[e,s,l]=a;if(l[0]==="#"){const e=l.slice(1);return(0,t.jsx)(ey.Z,{onClick:async t=>{t.preventDefault();if(n[e]){r(true);await n[e]();o()}},children:s},i)}return(0,t.jsx)(eg.Z,{linkColor:"purple",to:a[2],children:a[1]},i)}return(0,t.jsx)(eS.Z,{children:e},i)})},i)})})}function sj({notification:e,onRemove:n}){const{type:r,title:o,message:i,pre:a,messageActions:s,sticky:l,internal:u,button:c}=e;const[f,h]=(0,m.useState)(false);const[p,g]=(0,m.useState)(false);(0,m.useEffect)(()=>{if(r==="error"&&u){console.error("Internal error:",u)}if(!l){setTimeout(n,6500)}},[]);const v=r==="message";const y=r==="error";const x=(0,m.useMemo)(()=>sk(i,s,g,n),[i,s]);return(0,t.jsxs)(eu.Z,{style:{marginTop:10,color:v?ei.rS.noticeText:y?ei.rS.errorTextDark:ei.rS.warningTextDark},children:[(0,t.jsxs)(eb.Z,{align:"center",direction:"row",style:{padding:"14px 14px",fontSize:14,backgroundColor:v?ei.rS.noticeBackgroundLight:y?ei.rS.errorBackground:ei.rS.warningBackground,borderTop:`3px solid ${v?ei.rS.noticeBorder:y?ei.rS.errorBorder:ei.rS.warningBorder}`,...ei.W2.shadowLarge,maxWidth:550,"& a":{color:"currentColor"}},children:[(0,t.jsxs)(eb.Z,{align:"flex-start",children:[o&&(0,t.jsx)(eu.Z,{style:{fontWeight:700,marginBottom:10},children:o}),(0,t.jsx)(eu.Z,{children:x}),a?a.split("\n\n").map((e,n)=>(0,t.jsx)(eu.Z,{style:{whiteSpace:"pre-wrap",fontFamily:"monospace",fontSize:12,backgroundColor:"rgba(0, 0, 0, .05)",padding:10,borderRadius:4},children:e},n)):null,c&&(0,t.jsx)(em.y,{type:"bare",loading:f,onClick:async()=>{h(true);await c.action();n();h(false)},style:{backgroundColor:"transparent",border:`1px solid ${v?ei.rS.noticeBorder:y?ei.rS.errorBorder:ei.rS.warningBorder}`,color:"currentColor",fontSize:14,flexShrink:0,"&:hover, &:active":{backgroundColor:v?ei.rS.noticeBackground:y?ei.rS.errorBackground:ei.rS.warningBackground}},children:c.title})]}),l&&(0,t.jsx)(em.Z,{type:"bare","aria-label":"Close",style:{flexShrink:0,color:"currentColor"},onClick:n,children:(0,t.jsx)(sS.Z,{style:{width:9,height:9,color:"currentColor"}})})]}),p&&(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:ei.rS.tableBackground,alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(es.Z,{style:{width:20,height:20,color:"currentColor"}})})]})}function sC({style:e}){const{removeNotification:n}=(0,en.o)();const r=(0,y.v9)(e=>e.notifications.notifications);return(0,t.jsx)(eu.Z,{style:{position:"fixed",bottom:20,right:13,zIndex:1e4,...e},children:r.map(e=>(0,t.jsx)(sj,{notification:e,onRemove:()=>{if(e.onClose){e.onClose()}n(e.id)}},e.id))})}var sT=n(99024);function sE(e){const t=(0,m.useRef)();const n=(0,m.useCallback)((...e)=>t.current&&t.current(...e),[]);(0,m.useLayoutEffect)(()=>{t.current=e});return n}var sI=n(67459);const s_=e=>(0,t.jsx)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32",style:{color:"inherit",...e.style},children:(0,t.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3.5,d:"M24 29h5.333M8 29H2.667M16 21l-8 8M16 21l8 8M16 2.667v18.666M16 2.667 8 9.333M16 2.667l8 6.666"})});var sM=s_;function sD({payeesById:e,selectedPayees:n,onDelete:r,onMerge:o,onClose:i}){const a=[...n].some(t=>e[t]==null||e[t].transfer_acct);return(0,t.jsx)(iD.u,{position:"bottom",width:250,style:{padding:0},onClose:i,children:(0,t.jsx)(i_.Z,{onMenuSelect:e=>{i();switch(e){case"delete":r();break;case"merge":o();break;default:}},footer:(0,t.jsx)(eu.Z,{style:{padding:3,fontSize:11,fontStyle:"italic",color:ei.rS.pageTextSubdued},children:[...n].slice(0,4).map(t=>e[t].name).join(", ")+(n.size>4?", and more":"")}),items:[{icon:sS.Z,name:"delete",text:"Delete",disabled:a},{icon:sM,iconSize:9,name:"merge",text:"Merge",disabled:a||n.size<2},i_.Z.line]})})}var sP=n(75433);function sA({ruleCount:e,focused:n,onEdit:r,onClick:o}){return(0,t.jsx)(n5.bL,{name:"rule-count",width:"auto",focused:n,style:{padding:"0 10px"},plain:true,children:(0,t.jsxs)(n5.Sx,{style:{borderRadius:4,padding:"3px 6px",backgroundColor:ei.rS.noticeBackground,border:"1px solid "+ei.rS.noticeBackground,color:ei.rS.noticeTextDark,fontSize:12},onEdit:r,onSelect:o,children:[(0,t.jsx)(eS.Z,{style:{paddingRight:5},children:e>0?(0,t.jsxs)(t.Fragment,{children:[e," associated ",e===1?"rule":"rules"]}):(0,t.jsx)(t.Fragment,{children:"Create rule"})}),(0,t.jsx)(sP.Z,{style:{width:8,height:8}})]})})}const sO=(0,m.memo)(({payee:e,ruleCount:n,selected:r,hovered:o,editing:i,focusedField:a,onViewRules:s,onCreateRule:l,onHover:u,onEdit:c,onUpdate:f,style:h})=>{const{id:p}=e;const g=(0,n2.YP)();const v=r?ei.rS.tableBorderSelected:ei.rS.tableBorder;const m=o||a==="select";return(0,t.jsxs)(n5.X2,{style:{alignItems:"stretch",...h,borderColor:v,backgroundColor:o?ei.rS.tableRowBackgroundHover:r?ei.rS.tableRowBackgroundHighlight:m?ei.rS.tableRowBackgroundHover:ei.rS.tableBackground,...r&&{backgroundColor:ei.rS.tableRowBackgroundHighlight,zIndex:100}},"data-focus-key":e.id,onMouseEnter:()=>u&&u(e.id),children:[(0,t.jsx)(n5._7,{exposed:e.transfer_acct==null&&(o||r||i),focused:a==="select",selected:r,onSelect:t=>{g({type:"select",id:e.id,event:t})}}),(0,t.jsx)(n5.F3,{value:(e.transfer_acct?"Transfer: ":"")+e.name,valueStyle:!r&&e.transfer_acct&&{color:ei.rS.pageTextSubdued},exposed:a==="name",width:"flex",onUpdate:t=>!e.transfer_acct&&f(p,"name",t),onExpose:()=>c(p,"name"),inputProps:{readOnly:!!e.transfer_acct}}),(0,t.jsx)(sA,{ruleCount:n,focused:a==="rule-count",onEdit:()=>c(p,"rule-count"),onClick:()=>n>0?s(e.id):l(e.id)})]})});var sR=sO;const sz=(0,m.forwardRef)(({payees:e,ruleCounts:n,navigator:r,onUpdate:o,onViewRules:i,onCreateRule:a},s)=>{const[l,u]=(0,m.useState)(null);const c=(0,n2.D9)();(0,m.useLayoutEffect)(()=>{const e=[...c][0];if(typeof s!=="function"){s.current.scrollTo(e,"center")}r.onEdit(e,"select")},[]);const f=(0,m.useCallback)(e=>{u(e)},[]);return(0,t.jsx)(eu.Z,{style:{flex:1},onMouseLeave:()=>u(null),children:(0,t.jsx)(n5.iA,{ref:s,items:e,navigator:r,renderItem:({item:e,editing:r,focusedField:s,onEdit:u})=>{return(0,t.jsx)(sR,{payee:e,ruleCount:n.get(e.id)||0,selected:c.has(e.id),editing:r,focusedField:s,hovered:l===e.id,onHover:f,onEdit:u,onUpdate:o,onViewRules:i,onCreateRule:a})}})})});var sZ=sz;const sL=(0,sT.Z)(e=>(0,B.ZZ)(e));function sN(e,t,n){return e===1?t:n}function sB(){const e=ei.rS.tableborder;const n=(0,n2.YP)();const r=(0,n2.D9)();return(0,t.jsx)(eu.Z,{children:(0,t.jsxs)(n5.xD,{style:{borderColor:e,backgroundColor:ei.rS.tableBackground,color:ei.rS.pageTextLight,zIndex:200,userSelect:"none"},collapsed:true,children:[(0,t.jsx)(n5._7,{exposed:true,focused:false,selected:r.size>0,onSelect:e=>n({type:"select-all",event:e})}),(0,t.jsx)(n5.bL,{value:"Name",width:"flex"})]})})}function sH({text:e,style:n}){return(0,t.jsx)(eu.Z,{style:{textAlign:"center",color:ei.rS.pageTextSubdued,fontStyle:"italic",fontSize:13,marginTop:5,style:n},children:e})}const sF=(0,m.forwardRef)(({payees:e,ruleCounts:n,orphanedPayees:r,categoryGroups:o,initialSelectedIds:i,ruleActions:a,onBatchChange:s,onViewRules:l,onCreateRule:u,...c},f)=>{const[h,p]=(0,m.useState)(null);const[g,v]=(0,m.useState)("");const y=(0,m.useRef)(null);const x=(0,m.useRef)(null);const w=(0,m.useRef)(false);const[b,S]=(0,m.useState)(false);const k=(0,m.useMemo)(()=>{let t=e;if(g){t=t.filter(e=>e.name.toLowerCase().includes(g.toLowerCase()))}if(b){t=t.filter(e=>r.map(e=>e.id).includes(e.id))}return t},[e,g,b]);const j=(0,n2.ZP)("payees",k,i);function C(e){if(g!==e){y.current?.setRowAnimation(false);v(e);w.current=true}}function T(e){C("");x.current=e}(0,m.useEffect)(()=>{if(w.current){setTimeout(()=>{y.current?.setRowAnimation(true)},0);w.current=false}});(0,m.useImperativeHandle)(f,()=>({selectRows:(e,t)=>{P.onEdit(null);j.dispatch({type:"select-all",ids:e});p(null);if(t&&e.length>0){T(e[0])}},highlightRow:e=>{P.onEdit(null);p(new Set([e]));T(e)}}));(0,m.useEffect)(()=>{if(h){p(null)}},[h]);(0,m.useLayoutEffect)(()=>{if(x.current){y.current.scrollTo(x.current);x.current=null}});const E=sE((t,n,r)=>{const o=e.find(e=>e.id===t);if(o[n]!==r){s({updated:[{id:t,[n]:r}]})}});const I=(0,m.useCallback)(()=>{return k.filter(e=>e.transfer_acct==null).map(e=>e.id)},[k]);function _(){s({deleted:[...j.items].map(e=>({id:e}))});j.dispatch({type:"select-none"})}async function M(){const e=[...j.items];await c.onMerge(e);P.onEdit(e[0],"name");j.dispatch({type:"select-none"});T(e[0])}const D=j.items.size===0;const P=(0,n5.wz)(k,e=>["select","name","rule-count"].filter(t=>{switch(t){case"select":return e.transfer_acct==null;default:return true}}));const A=sL(e);const[O,R]=(0,m.useState)(false);return(0,t.jsxs)(eu.Z,{style:{height:"100%"},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",padding:"0 0 15px"},children:[(0,t.jsxs)(eu.Z,{style:{flexShrink:0},children:[(0,t.jsxs)(em.Z,{type:"bare",style:{marginRight:10},disabled:D,onClick:()=>R(true),children:[D?"No payees selected":j.items.size+" "+sN(j.items.size,"payee","payees"),(0,t.jsx)(sI.Z,{width:8,height:8,style:{marginLeft:5}})]}),O&&(0,t.jsx)(sD,{payeesById:A,selectedPayees:j.items,onClose:()=>R(false),onDelete:_,onMerge:M})]}),(0,t.jsx)(eu.Z,{style:{flexShrink:0},children:(b||r&&r.length>0)&&(0,t.jsx)(em.Z,{type:"bare",style:{marginRight:10},onClick:()=>{S(!b);C(g);P.onEdit(null)},children:b?"Show all payees":`Show ${r.length===1?"1 unused payee":`${r.length} unused payees`}`})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(n4.Z,{id:"filter-input",placeholder:"Filter payees...",value:g,onChange:C})]}),(0,t.jsx)(n2.i5,{instance:j,fetchAllIds:I,children:(0,t.jsxs)(eu.Z,{style:{flex:1,border:"1px solid "+ei.rS.tableBorder,borderTopLeftRadius:4,borderTopRightRadius:4,overflow:"hidden"},children:[(0,t.jsx)(sB,{}),k.length===0?(0,t.jsx)(sH,{text:"No payees",style:{marginTop:15}}):(0,t.jsx)(sZ,{ref:y,payees:k,ruleCounts:n,categoryGroups:o,navigator:P,onUpdate:E,onViewRules:l,onCreateRule:u})]})})]})});function sV({initialSelectedIds:e}){const n=(0,y.v9)(e=>e.queries.payees);const r=(0,y.v9)(e=>e.app.lastUndoState);const{grouped:o}=(0,n1.Z)();const{initiallyLoadPayees:i,getPayees:a,setLastUndoState:s,pushModal:l}=(0,en.o)();const[u,c]=(0,m.useState)(n);const[f,h]=(0,m.useState)({value:new Map});const[p,g]=(0,m.useState)({value:new Map});const v=(0,m.useRef)();async function x(){const e=await (0,q.lW)("payees-get-orphaned");g(e)}async function w(){let e=await (0,q.lW)("payees-get-rule-counts");e=new Map(Object.entries(e));h({value:e})}(0,m.useEffect)(()=>{async function e(){const e=await i();await new Promise(e=>setTimeout(e,100));if(e){c(e)}w();x()}e();const t=(0,q.oL)("sync-event",async({type:e,tables:t})=>{if(e==="applied"){if(t.includes("rules")){w()}}});return()=>{t()}},[]);async function b({tables:e,messages:t,meta:n,url:r},o=false){if(!e.includes("payees")&&!e.includes("payee_mapping")){return}c(await a());x();if(n&&n.targetId||t.find(e=>e.dataset==="rules")){w()}s(null)}(0,m.useEffect)(()=>{if(r.current){b(r.current,true)}return(0,q.oL)("undo-event",b)},[]);function S(e){l("manage-rules",{payeeId:e})}function k(e){const t={stage:null,conditionsOp:"and",conditions:[{field:"payee",op:"is",value:e,type:"id"}],actions:[{op:"set",field:"category",value:null,type:"id"}]};l("edit-rule",{rule:t})}return(0,t.jsx)(sF,{ref:v,payees:u,ruleCounts:f.value,orphanedPayees:p,categoryGroups:o,initialSelectedIds:e,lastUndoState:r,onBatchChange:e=>{(0,q.lW)("payees-batch-change",e);c((0,B.zb)(e,u));g((0,B.zb)(e,p))},onMerge:async([e,...t])=>{await (0,q.lW)("payees-merge",{targetId:e,mergeIds:t});const n=p.map(e=>e.id).includes(e);const r=t.filter(e=>p.map(e=>e.id).includes(e));let o=p;if(n&&r.length!==t.length){o=o.filter(t=>t.id!==e)}o=o.filter(e=>!t.includes(e.id));const i=u.filter(e=>!t.includes(e.id));t.forEach(t=>{const n=f.value.get(t)||0;f.value.set(e,(f.value.get(e)||0)+n)});c(i);g(o);h({value:f.value})},onViewRules:S,onCreateRule:k})};function sW(){const e=(0,nP.TH)();return(0,t.jsx)(rv.T,{title:"Payees",children:(0,t.jsx)(sV,{initialSelectedIds:e.state&&e.state.selectedPayee?[e.state.selectedPayee]:null})})};function sU(){return(0,t.jsx)(eu.Z,{style:{flex:1},"data-testid":"reports-page",children:(0,t.jsx)(ec,{name:"ReportRouter",message:"Loading reports...",importer:()=>Promise.all([n.e(665),n.e(553),n.e(992)]).then(n.bind(n,32282))})})};const s$=()=>n.e(447).then(n.bind(n,45237));const sK=()=>Promise.all([n.e(553),n.e(162)]).then(n.bind(n,98385));function sq({name:e}){return(0,t.jsx)(ec,{name:e,importer:sK})}function sY({name:e}){const{isNarrowWidth:n}=(0,eo.F)();return(0,t.jsx)(ec,{name:e,importer:n?s$:sK})};function sG(){const[e,t]=(0,m.useState)(false);const n=sX();(0,m.useEffect)(()=>{(async()=>{t(await nU(n))})()},[n]);return e}function sX(){const[e,t]=(0,m.useState)("");(0,m.useEffect)(()=>{(async()=>{t(await nW())})()},[]);return e}var sQ=sX;var sJ=n(76926);var s0=n(90122);var s1=n(11800);const s2=({primaryAction:e,style:n,children:r})=>{return(0,t.jsxs)(eu.Z,{className:`${(0,ea.iv)([{backgroundColor:ei.rS.pillBackground,alignSelf:"flex-start",alignItems:"flex-start",padding:15,borderRadius:4,border:"1px solid "+ei.rS.pillBorderDark,width:"100%"},n])}`,children:[(0,t.jsx)(eu.Z,{style:{marginBottom:e?10:0,lineHeight:1.5,gap:10},children:r}),e||null]})};const s4=({children:e})=>{const n=(0,nP.TH)();const[r,o]=(0,m.useState)(n.hash==="#advanced");return r?(0,t.jsxs)(eu.Z,{id:"advanced",style:{gap:20,alignItems:"flex-start",marginBottom:25,width:"100%"},className:`${(0,ea.BC)(`(min-width: ${s0.Z.breakpoint_small})`,{width:"auto"})}`,innerRef:e=>{if(e&&n.hash==="#advanced"){e.scrollIntoView(true)}},children:[(0,t.jsx)(eu.Z,{style:{fontSize:20,fontWeight:500,flexShrink:0},children:"Advanced Settings"}),e]}):(0,t.jsx)(em.Z,{id:"advanced",type:"link",onClick:()=>o(true),style:{flexShrink:0,alignSelf:"flex-start",color:ei.rS.pageTextPositive,marginBottom:25},children:"Show advanced settings"})};function s5(){const{pushModal:e}=(0,en.o)();const n=(0,s1.o1)();const r=(0,y.v9)(e=>e.prefs.local.encryptKeyId);const o=!(window.crypto&&crypto.subtle);function i(){e("create-encryption-key",{recreate:true})}return r?(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.Z,{onClick:i,children:"Generate new key"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(eS.Z,{style:{color:ei.rS.noticeTextLight,fontWeight:600},children:"End-to-end Encryption is turned on."})," ","Your data is encrypted with a key that only you have before sending it it out to the cloud. Local data remains unencrypted so if you forget your password you can re-encrypt it."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})}):o?(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.Z,{disabled:true,children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not available when making an unencrypted connection to a remote server. You’ll need to enable HTTPS on your server to use end-to-end encryption. This problem may also occur if your browser is too old to work with Actual."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/config/https",linkColor:"purple",children:"Learn more…"})]})}):n?(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.Z,{onClick:()=>e("create-encryption-key"),children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not enabled. Any data on the server is still protected by the server password, but it’s not end-to-end encrypted which means the server owners have the ability to read it. If you want, you can use an additional password to encrypt your data on the server."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})}):(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.Z,{disabled:true,children:"Enable encryption…"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"End-to-end encryption"})," is not available when running without a server. Budget files are always kept unencrypted locally, and encryption is only applied when sending data to a server."," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/getting-started/sync/#end-to-end-encryption",linkColor:"purple",children:"Learn more…"})]})})};function s3({flag:e,disableToggle:n=false,error:r,children:o}){const{savePrefs:i}=(0,en.o)();const a=(0,aw.Z)(e);return(0,t.jsxs)("label",{style:{display:"flex"},children:[(0,t.jsx)(ek.XZ,{checked:a,onChange:()=>{i({[`flags.${e}`]:!a})},disabled:n}),(0,t.jsxs)(eu.Z,{style:{color:n?ei.rS.pageTextSubdued:"inherit"},children:[o,n&&(0,t.jsx)(eS.Z,{style:{color:ei.rS.errorText,fontWeight:500},children:r})]})]})}function s6(){const e=(0,y.v9)(e=>e.prefs.local?.budgetType);const n=(0,aw.Z)("reportBudget");const r=e==="report"&&n;return(0,t.jsx)(s3,{flag:"reportBudget",disableToggle:r,error:"Switch to a rollover budget before turning off this feature",children:"Budget mode toggle"})}function s8(){const[e,n]=(0,m.useState)(false);return(0,t.jsx)(s2,{primaryAction:e?(0,t.jsxs)(eu.Z,{style:{gap:"1em"},children:[(0,t.jsx)(s3,{flag:"categorySpendingReport",children:"Category spending report"}),(0,t.jsx)(s3,{flag:"customReports",children:"Custom reports"}),(0,t.jsx)(s3,{flag:"sankeyReport",children:"Sankey report"}),(0,t.jsx)(s6,{}),(0,t.jsx)(s3,{flag:"goalTemplatesEnabled",children:"Goal templates"}),(0,t.jsx)(s3,{flag:"experimentalOfxParser",children:"Experimental OFX parser"})]}):(0,t.jsx)(ey.Z,{onClick:()=>n(true),style:{flexShrink:0,alignSelf:"flex-start",color:ei.rS.pageTextPositive},children:"I understand the risks, show experimental features"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Experimental features."})," These features are not fully tested and may not work as expected. THEY MAY CAUSE IRRECOVERABLE DATA LOSS. They may do nothing at all. Only enable them if you know what you are doing."]})})};function s7(){const[e,n]=(0,m.useState)(false);const[r,o]=(0,m.useState)(null);const i=(0,y.v9)(e=>e.prefs.local.id);const a=(0,y.v9)(e=>e.prefs.local.encryptKeyId);async function s(){n(true);o(null);const e=await (0,q.lW)("export-budget");if("error"in e){o(e.error);n(false);console.log("Export error code:",e.error);return}window.Actual.saveFile(e.data,`${(0,i4.Z)(new Date,"yyyy-MM-dd")}-${i}.zip`,"Export budget");n(false)}return(0,t.jsxs)(s2,{primaryAction:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(em.y,{onClick:s,loading:e,children:"Export data"}),r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginTop:15},children:"An unknown error occurred while exporting. Please report this as a new issue on Github."})]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Export"})," your data as a zip file containing"," ",(0,t.jsx)("code",{children:"db.sqlite"})," and ",(0,t.jsx)("code",{children:"metadata.json"})," files. It can be imported into another Actual instance by closing an open file (if any), then clicking the “Import file” button, then choosing “Actual.”"]}),a?(0,t.jsx)(eS.Z,{children:"Even though encryption is enabled, the exported zip file will not have any encryption."}):null]})};function s9(e){const{numBlankPayees:n,numCleared:r,numDeleted:o}=e;let i="";if(n===0&&r===0&&o===0){i="No split transactions found needing repair."}else{if(n>0){i+=`Fixed ${n} splits with a blank payee.`}if(r>0){if(i!==""){i+="\n"}i+=`Fixed ${r} splits with the wrong cleared flag.`}if(o>0){if(i!==""){i+="\n"}i+=`Fixed ${o} splits that weren’t properly deleted.`}}return(0,t.jsx)(ew.Z,{style:{color:ei.rS.noticeTextLight,marginBottom:0,marginLeft:"1em",textAlign:"right",whiteSpace:"pre-wrap"},children:i})}function le(){const[e,n]=(0,m.useState)(false);const[r,o]=(0,m.useState)(null);async function i(){n(true);const e=await (0,q.lW)("tools/fix-split-transactions");o(e);n(false)}return(0,t.jsxs)(s2,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"space-between",maxWidth:500,width:"100%",alignItems:"center"},children:[(0,t.jsx)(em.y,{loading:e,onClick:i,children:"Repair split transactions"}),r&&s9(r)]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Repair split transactions"})," if you are experiencing bugs relating to split transactions and the “Reset budget cache” button above does not help, this tool may fix them. Some examples of bugs include seeing blank payees on splits or incorrect account balances. This tool does two things:"]}),(0,t.jsxs)("ul",{style:{margin:0,paddingLeft:"1.5em"},children:[(0,t.jsx)("li",{style:{marginBottom:"0.5em"},children:"Ensures that deleted split transactions are fully deleted. In previous versions of the app, certain split transactions may appear deleted but not all of them are actually deleted. This causes the transactions list to look correct, but certain balances may be incorrect when filtering."}),(0,t.jsx)("li",{children:"Sync the payee and cleared flag of a split transaction to the main or “parent” transaction, if appropriate. The payee will only be set if it currently doesn’t have one."})]})]})}var lt=n(84367);const ln=[{value:"0",label:"Sunday"},{value:"1",label:"Monday"},{value:"2",label:"Tuesday"},{value:"3",label:"Wednesday"},{value:"4",label:"Thursday"},{value:"5",label:"Friday"},{value:"6",label:"Saturday"}];const lo=[{value:"MM/dd/yyyy",label:"MM/DD/YYYY"},{value:"dd/MM/yyyy",label:"DD/MM/YYYY"},{value:"yyyy-MM-dd",label:"YYYY-MM-DD"},{value:"MM.dd.yyyy",label:"MM.DD.YYYY"},{value:"dd.MM.yyyy",label:"DD.MM.YYYY"}];function li({title:e,children:n}){return(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start",flexGrow:1,gap:"0.5em",width:"100%"},children:[(0,t.jsx)(eS.Z,{style:{fontWeight:500},children:e}),(0,t.jsx)(eu.Z,{style:{alignItems:"flex-start",gap:"1em"},children:n})]})}function la(){const{savePrefs:e}=(0,en.o)();const n=(0,lt.Ap)();const r=(0,y.v9)(e=>e.prefs.local.firstDayOfWeekIdx||"0");const o=(0,y.v9)(e=>e.prefs.local.dateFormat||"MM/dd/yyyy");const i=(0,y.v9)(e=>e.prefs.local.numberFormat||"comma-dot");const a=(0,y.v9)(e=>e.prefs.local.hideFraction);return(0,t.jsx)(s2,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",gap:"1em",width:"100%",[`@media (min-width: ${n.floating?s0.Z.breakpoint_small:s0.Z.breakpoint_medium})`]:{flexDirection:"row"}},children:[(0,t.jsxs)(li,{title:"Numbers",children:[(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(ab.Z,{bare:true,value:i,onChange:t=>e({numberFormat:t}),options:B.id.map(e=>[e.value,a?e.labelNoFraction:e.label]),style:{padding:"2px 10px",fontSize:15}},String(a))}),(0,t.jsxs)(eS.Z,{style:{display:"flex"},children:[(0,t.jsx)(ek.XZ,{id:"settings-textDecimal",checked:!!a,onChange:t=>e({hideFraction:t.currentTarget.checked})}),(0,t.jsx)("label",{htmlFor:"settings-textDecimal",children:"Hide decimal places"})]})]}),(0,t.jsx)(li,{title:"Dates",children:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(ab.Z,{bare:true,value:o,onChange:t=>e({dateFormat:t}),options:lo.map(e=>[e.value,e.label]),style:{padding:"2px 10px",fontSize:15}})})}),(0,t.jsx)(li,{title:"First day of the week",children:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(ab.Z,{bare:true,value:r,onChange:t=>e({firstDayOfWeekIdx:t}),options:ln.map(e=>[e.value,e.label]),style:{padding:"2px 10px",fontSize:15}})})})]}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Formatting"})," does not affect how budget data is stored, and can be changed at any time."]})})};function ls(){const e=(0,y.v9)(e=>e.prefs.global.documentDir);const{saveGlobalPrefs:n}=(0,en.o)();const[r,o]=(0,m.useState)(false);const i=(0,m.useRef)(null);(0,m.useEffect)(()=>{if(i.current){i.current.scrollTo(1e4,0)}},[]);async function a(){const e=await window.Actual.openFileDialog({properties:["openDirectory"]});if(e){n({documentDir:e[0]});o(true)}}return(0,t.jsxs)(s2,{primaryAction:(0,t.jsxs)(eu.Z,{style:{flexDirection:"row"},children:[(0,t.jsx)(em.Z,{onClick:a,children:"Change location"}),r&&(0,t.jsx)(au,{children:"A restart is required for this change to take effect"})]}),children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Actual’s files"})," are stored in a folder on your computer. Currently, that’s:"]}),(0,t.jsx)(eS.Z,{innerRef:i,style:{backgroundColor:ei.rS.pageBackground,padding:"7px 10px",borderRadius:4,overflow:"auto",whiteSpace:"nowrap","::-webkit-scrollbar":{display:"none"}},children:e})]})};function ll(){const[e,n]=(0,m.useState)(false);async function r(){n(true);await (0,q.lW)("reset-budget-cache");n(false)}return(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.y,{loading:e,onClick:r,children:"Reset budget cache"}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset budget cache"})," will clear all cached values for the budget and recalculate the entire budget. All values in the budget are cached for performance reasons, and if there is a bug in the cache you won’t see correct values. There is no danger in resetting the cache. Hopefully you never have to do this."]})})}function lu(){const e=(0,y.v9)(e=>!!e.prefs.local.groupId);const{resetSync:n}=(0,en.o)();const[r,o]=(0,m.useState)(false);async function i(){o(true);await n();o(false)}return(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.y,{loading:r,disabled:!e,onClick:i,children:"Reset sync"}),children:e?(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset sync"})," will remove all local data used to track changes for syncing, and create a fresh sync ID on the server. This file on other devices will have to be re-downloaded to use the new sync ID. Use this if there is a problem with syncing and you want to start fresh."]}):(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Reset sync"})," is only available when syncing is enabled."]})})};function lc(){const e=(0,ei.Fg)();const{saveGlobalPrefs:n}=(0,en.o)();return(0,t.jsx)(s2,{primaryAction:(0,t.jsx)(em.Z,{bounce:false,style:{padding:0},children:(0,t.jsx)(ab.Z,{bare:true,onChange:e=>{n({theme:e})},value:e,options:ei.Jp,style:{padding:"2px 10px",fontSize:15}})}),children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Themes"})," change the user interface colors."]})})};function ld(){const e=(0,s1.Mx)();const n=sQ();const r=sG();return(0,t.jsxs)(s2,{children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"Actual"})," is a super fast privacy-focused app for managing your finances."]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"column",gap:10},className:`${(0,ea.BC)(`(min-width: ${s0.Z.breakpoint_small})`,{display:"grid",gridTemplateRows:"1fr 1fr",gridTemplateColumns:"50% 50%",columnGap:"2em",gridAutoFlow:"column"})}`,"data-vrt-mask":true,children:[(0,t.jsxs)(eS.Z,{children:["Client version: v",window.Actual.ACTUAL_VERSION]}),(0,t.jsxs)(eS.Z,{children:["Server version: ",e]}),r?(0,t.jsxs)(eg.Z,{to:"https://actualbudget.org/docs/releases",linkColor:"purple",children:["New version available: ",n]}):(0,t.jsx)(eS.Z,{style:{color:ei.rS.noticeText,fontWeight:600},children:"You’re up to date!"}),(0,t.jsx)(eS.Z,{children:(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/releases",linkColor:"purple",children:"Release Notes"})})]})]})}function lf({children:e}){return(0,t.jsx)(eS.Z,{style:{fontWeight:500},children:e})}function lh(){const e=(0,y.v9)(e=>e.prefs.local.id);const n=(0,y.v9)(e=>e.prefs.local.groupId);return(0,t.jsxs)(s2,{children:[(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)("strong",{children:"IDs"})," are the names Actual uses to identify your budget internally. There are several different IDs associated with your budget. The Budget ID is used to identify your budget file. The Sync ID is used to access the budget on the server."]}),(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(lf,{children:"Budget ID:"})," ",e]}),(0,t.jsxs)(eS.Z,{style:{color:ei.rS.pageText},children:[(0,t.jsx)(lf,{children:"Sync ID:"})," ",n||"(none)"]})]})}function lp(){const e=(0,y.v9)(e=>e.prefs.global.floatingSidebar);const n=(0,y.v9)(e=>e.prefs.local.budgetName);const{loadPrefs:r,closeBudget:o}=(0,en.o)();(0,m.useEffect)(()=>{const e=(0,q.oL)("prefs-updated",()=>{r()});r();return()=>e()},[r]);const{isNarrowWidth:i}=(0,eo.F)();(0,sJ.j)(ei.rS.mobileViewTheme);return(0,t.jsx)(rv.T,{title:"Settings",style:{backgroundColor:i&&ei.rS.mobilePageBackground,marginInline:e&&!i?"auto":0},children:(0,t.jsxs)(eu.Z,{style:{flexShrink:0,maxWidth:530,gap:30},children:[i&&(0,t.jsxs)(eu.Z,{style:{gap:10,flexDirection:"row",alignItems:"flex-end"},children:[(0,t.jsxs)(ek.Wi,{children:[(0,t.jsx)(ek.lX,{title:"Budget Name"}),(0,t.jsx)(iQ.ZP,{value:n,disabled:true,style:{color:ei.rS.buttonNormalDisabledText}})]}),(0,t.jsx)(em.Z,{onClick:o,children:"Close Budget"})]}),(0,t.jsx)(ld,{}),!s.jU&&(0,t.jsx)(ls,{}),(0,t.jsx)(lc,{}),(0,t.jsx)(la,{}),(0,t.jsx)(s5,{}),(0,t.jsx)(s7,{}),(0,t.jsxs)(s4,{children:[(0,t.jsx)(lh,{}),(0,t.jsx)(ll,{}),(0,t.jsx)(lu,{}),(0,t.jsx)(le,{}),(0,t.jsx)(s8,{})]})]})})}var lg=n(64266);var lv=n(88681);function lm({redirectTo:e="/budget",children:t}){const{isNarrowWidth:n}=(0,eo.F)();const r=(0,nP.s0)();(0,m.useEffect)(()=>{if(n){r(e)}},[n,r,e]);return n?null:t}function ly({children:e,redirectTo:t="/budget"}){const{isNarrowWidth:n}=(0,eo.F)();const r=(0,nP.s0)();(0,m.useEffect)(()=>{if(!n){r(t)}},[n,r,t]);return n?e:null}function lx({getAccounts:e}){const t=(0,nP.s0)();(0,m.useEffect)(()=>{e().then(e=>{if(e.length===0){t("/accounts")}})},[]);const n=(0,nP.TH)();const r=(0,nP.oQ)(n);(0,m.useEffect)(()=>{nN.kp("url",r)},[r]);return null}function lw(){const e=(0,en.o)();(0,m.useEffect)(()=>{nO.Z.setScope("app");setTimeout(async()=>{await e.sync();await nL(e.addNotification,nU,nW,e.loadPrefs,e.savePrefs)},100)},[]);return(0,t.jsxs)(nA.VK,{children:[(0,t.jsx)(lx,{getAccounts:e.getAccounts}),(0,t.jsx)(nH,{}),(0,t.jsxs)(eu.Z,{style:{height:"100%"},children:[(0,t.jsx)(nG,{}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",backgroundColor:ei.rS.pageBackground,flex:1},children:[(0,t.jsx)(lt.ZP,{}),(0,t.jsxs)(eu.Z,{style:{color:ei.rS.pageText,backgroundColor:ei.rS.pageBackground,flex:1,overflow:"hidden",width:"100%"},children:[(0,t.jsxs)("div",{style:{flex:1,display:"flex",overflow:"auto",position:"relative"},children:[(0,t.jsx)(lg.ZP,{style:{WebkitAppRegion:"drag",position:"absolute",top:0,left:0,right:0,zIndex:1e3}}),(0,t.jsx)(sC,{}),(0,t.jsx)(nq,{}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(nP.Fg,{to:"/budget",replace:true})}),(0,t.jsx)(nP.AW,{path:"/reports/*",element:(0,t.jsx)(lm,{children:(0,t.jsx)(sU,{})})}),(0,t.jsx)(nP.AW,{path:"/budget",element:(0,t.jsx)(sY,{name:"Budget"})}),(0,t.jsx)(nP.AW,{path:"/schedules",element:(0,t.jsx)(lm,{children:(0,t.jsx)(sq,{name:"Schedules"})})}),(0,t.jsx)(nP.AW,{path:"/payees",element:(0,t.jsx)(sW,{})}),(0,t.jsx)(nP.AW,{path:"/rules",element:(0,t.jsx)(rm,{})}),(0,t.jsx)(nP.AW,{path:"/settings",element:(0,t.jsx)(lp,{})}),(0,t.jsx)(nP.AW,{path:"/gocardless/link",element:(0,t.jsx)(lm,{children:(0,t.jsx)(sq,{name:"GoCardlessLink"})})}),(0,t.jsx)(nP.AW,{path:"/accounts",element:(0,t.jsx)(sY,{name:"Accounts"})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id",element:(0,t.jsx)(sY,{name:"Account"})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id/transactions/:transactionId",element:(0,t.jsx)(ly,{children:(0,t.jsx)(lv.$,{})})}),(0,t.jsx)(nP.AW,{path:"/accounts/:id/transactions/new",element:(0,t.jsx)(ly,{children:(0,t.jsx)(lv.$,{})})}),(0,t.jsx)(nP.AW,{path:"/transactions/new",element:(0,t.jsx)(ly,{children:(0,t.jsx)(lv.$,{})})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/budget",replace:true})})]}),(0,t.jsx)(sb,{})]}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/budget",element:(0,t.jsx)(iw,{})}),(0,t.jsx)(nP.AW,{path:"/accounts",element:(0,t.jsx)(iw,{})}),(0,t.jsx)(nP.AW,{path:"/settings",element:(0,t.jsx)(iw,{})}),(0,t.jsx)(nP.AW,{path:"*",element:null})]})]})]})]})]})}function lb(){const e=(0,m.useMemo)(()=>(0,t.jsx)(lw,{}),[]);return(0,t.jsx)(nZ.Y,{children:(0,t.jsx)(lg.TE,{children:(0,t.jsx)(lt.Hn,{children:(0,t.jsx)(nY.j,{children:(0,t.jsx)(nz.Zr,{children:(0,t.jsx)(nR.BB,{children:(0,t.jsx)(ne,{backend:nD,children:(0,t.jsx)(iv,{children:e})})})})})})})})}var lS=n(49886);var lk=n(28127);var lj=n(85554);var lC=n(52715);var lT=n(27275);var lE=n(54402);var lI=n(15988);function l_(e){if(e.state==="unknown"){return"This is a cloud-based file but its state is unknown because you "+"are offline."}if(e.encryptKeyId){if(e.hasKey){return"This file is encrypted and you have key to access it."}return"This file is encrypted and you do not have the key for it."}return null}function lM({onDelete:e,onClose:n}){function r(t){n();switch(t){case"delete":e();break;default:}}const o=[{name:"delete",text:"Delete"}];return(0,t.jsx)(i_.Z,{onMenuSelect:r,items:o})}function lD({state:e,onDelete:n}){const[r,o]=(0,m.useState)(false);return(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(em.Z,{type:"bare","aria-label":"Menu",onClick:e=>{e.stopPropagation();o(true)},children:(0,t.jsx)(ai.Z,{style:{width:16,height:16}})}),r&&(0,t.jsx)(iD.u,{position:"bottom-right",style:{padding:0},onClose:()=>o(false),children:(0,t.jsx)(lM,{state:e,onDelete:n,onClose:()=>o(false)})})]})}function lP({file:e}){let n;let r;let o;switch(e.state){case"unknown":n=lT.Z;r="Network unavailable";o=ei.rS.buttonNormalDisabledText;break;case"remote":n=lj.Z;r="Available for download";break;case"local":case"broken":n=lC.Z;r="Local";break;default:n=lk.Z;r="Syncing";break}return(0,t.jsxs)(eu.Z,{style:{color:o,alignItems:"center",flexDirection:"row",marginTop:8},children:[(0,t.jsx)(n,{style:{width:18,height:18,color:"currentColor"}}),(0,t.jsx)(eS.Z,{style:{marginLeft:5},children:r})]})}function lA({file:e,onSelect:n,onDelete:r}){const o=(0,m.useRef)(false);async function i(e){if(!o.current){o.current=true;await n(e);o.current=false}}return(0,t.jsxs)(eu.Z,{onClick:()=>i(e),title:l_(e),style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",...ei.W2.shadow,margin:10,padding:"12px 15px",backgroundColor:ei.rS.buttonNormalBackground,borderRadius:6,flexShrink:0,cursor:"pointer",":hover":{backgroundColor:ei.rS.hover}},children:[(0,t.jsxs)(eu.Z,{style:{alignItems:"flex-start"},children:[(0,t.jsx)(eS.Z,{style:{fontSize:16,fontWeight:700},children:e.name}),(0,t.jsx)(lP,{file:e})]}),(0,t.jsxs)(eu.Z,{style:{flex:"0 0 auto",flexDirection:"row",alignItems:"center"},children:[e.encryptKeyId&&(0,t.jsx)(lE.Z,{style:{width:13,height:13,marginRight:8,color:e.hasKey?ei.rS.formLabelText:ei.rS.buttonNormalDisabledText}}),(0,t.jsx)(lD,{state:e.state,onDelete:()=>r(e)})]})]})}function lO({files:e,onSelect:n,onDelete:r}){return(0,t.jsx)(eu.Z,{style:{flexGrow:1,[`@media (min-width: ${s0.Z.breakpoint_small})`]:{flexGrow:0,maxHeight:310},overflow:"auto","& *":{userSelect:"none"}},children:e.map(e=>(0,t.jsx)(lA,{file:e,onSelect:n,onDelete:r},e.id||e.cloudFileId))})}function lR({onRefresh:e}){const[n,r]=(0,m.useState)(false);async function o(){r(true);await e();r(false)}const i=n?es.Z:lI.Z;return(0,t.jsx)(em.Z,{type:"bare","aria-label":"Refresh",style:{padding:10,marginRight:5},onClick:o,children:(0,t.jsx)(i,{style:{width:18,height:18}})})}function lz(){const e=(0,y.v9)(e=>e.budgets.allFiles||[]);const{getUserData:n,loadAllFiles:r,pushModal:o,loadBudget:i,createBudget:a,downloadBudget:s}=(0,en.o)();const[l,u]=(0,m.useState)(false);const c=({testMode:e}={})=>{if(!l){u(true);a({testMode:e})}};return(0,t.jsxs)(eu.Z,{style:{flex:1,justifyContent:"center",marginInline:-20,marginTop:20,width:"100vw",[`@media (min-width: ${s0.Z.breakpoint_small})`]:{maxWidth:s0.Z.breakpoint_small,width:"100%"}},children:[(0,t.jsxs)(eu.Z,{children:[(0,t.jsx)(eS.Z,{style:{...ei.W2.veryLargeText,margin:20},children:"Files"}),(0,t.jsx)(eu.Z,{style:{position:"absolute",right:0,top:0,bottom:0,justifyContent:"center",marginRight:5},children:(0,t.jsx)(lR,{onRefresh:()=>{n();r()}})})]}),(0,t.jsx)(lO,{files:e,actions:j,onSelect:e=>{if(e.state==="remote"){s(e.cloudFileId)}else{i(e.id)}},onDelete:e=>o("delete-budget",{file:e})}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"flex-end",padding:25,paddingLeft:5},children:[(0,t.jsx)(em.Z,{type:"bare",style:{marginLeft:10,color:ei.rS.pageTextLight},onClick:e=>{e.preventDefault();o("import")},children:"Import file"}),(0,t.jsx)(em.Z,{type:"primary",onClick:c,style:{marginLeft:15},children:"Create new file"}),(0,a$.Ry)()&&(0,t.jsx)(em.Z,{type:"primary",isSubmit:false,onClick:()=>c({testMode:true}),style:{marginLeft:15},children:"Create test file"})]})]})};function lZ(){const[e,t]=(0,m.useState)(false);const n=(0,nB.Z)();const r=(0,nP.TH)();const o=(0,s1.q3)();(0,m.useEffect)(()=>{async function e(){const e=e=>{if(r.pathname!==e){n(e)}else{t(true)}};const i=await (0,q.lW)("get-server-url");const a=await (0,q.lW)("get-did-bootstrap");if(i==null&&!a){const t=window.location.origin;const r=await (0,q.lW)("subscribe-needs-bootstrap",{url:t});if("error"in r||!r.hasServer){console.log("error"in r&&r.error);n("/config-server");return}await o(t,{validate:false});if(r.bootstrapped){e("/login")}else{e("/bootstrap")}}else{const t=await (0,q.lW)("subscribe-needs-bootstrap");if("error"in t){n("/error",{state:{error:t.error}})}else if(t.bootstrapped){e("/login")}else{e("/bootstrap")}}}e()},[r]);return{checked:e}}function lL({text:e}){return(0,t.jsx)("h1",{style:{fontSize:40,fontWeight:700,color:ei.rS.pageTextPositive,marginBottom:20},children:e})};function lN(){(0,sJ.j)(ei.rS.mobileConfigServerViewTheme);const{createBudget:e,signOut:n,loggedIn:r}=(0,en.o)();const o=(0,nB.Z)();const[i,a]=(0,m.useState)("");const s=(0,s1.o1)();const l=(0,s1.q3)();(0,m.useEffect)(()=>{a(s)},[s]);const[u,c]=(0,m.useState)(false);const[f,h]=(0,m.useState)(null);function p(e){switch(e){case"network-failure":return"Server is not running at this URL. Make sure you have HTTPS set up properly.";default:return"Server does not look like an Actual server. Is it set up correctly?"}}async function g(){if(i===""||u){return}h(null);c(true);const{error:e}=await l(i);if(["network-failure","get-server-failure"].includes(e)&&!i.startsWith("http://")&&!i.startsWith("https://")){const{error:e}=await l("https://"+i);if(e){a("https://"+i);h(e)}else{await n();o("/")}c(false)}else if(e){c(false);h(e)}else{c(false);await n();o("/")}}function v(){a(window.location.origin)}async function y(){await l(null);await r();o("/")}async function x(){await l(null);await e({testMode:true});window.__navigate("/")}return(0,t.jsxs)(eu.Z,{style:{maxWidth:500,marginTop:-30},children:[(0,t.jsx)(lL,{text:"Where’s the server?"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.tableRowHeaderText,lineHeight:1.5},children:s?(0,t.jsx)(t.Fragment,{children:"Existing sessions will be logged out and you will log in to this server. We will validate that Actual is running at this URL."}):(0,t.jsx)(t.Fragment,{children:"There is no server configured. After running the server, specify the URL here to use the app. You can always change this later. We will validate that Actual is running at this URL."})}),f&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:p(f)}),(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"row",marginTop:30},onSubmit:e=>{e.preventDefault();g()},children:[(0,t.jsx)(iQ.Tn,{autoFocus:true,placeholder:"https://example.com",value:i||"",onUpdate:a,style:{flex:1,marginRight:10}}),(0,t.jsx)(em.y,{type:"primary",loading:u,style:{fontSize:15},children:"OK"}),s&&(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,marginLeft:10},onClick:()=>o(-1),children:"Cancel"})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",flexFlow:"row wrap",justifyContent:"center",marginTop:15},children:s?(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight},onClick:y,children:"Stop using a server"}):(0,t.jsxs)(t.Fragment,{children:[!(0,a$.d)()&&(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight,margin:5,marginRight:15},onClick:v,children:"Use current domain"}),(0,t.jsx)(em.Z,{type:"bare",style:{color:ei.rS.pageTextLight,margin:5},onClick:y,children:"Don’t use a server"}),(0,a$.Ry)()&&(0,t.jsx)(em.Z,{type:"primary",style:{marginLeft:15},onClick:x,children:"Create test file"})]})})]})};function lB({modalProps:e,actions:n,file:r}){const o="cloudFileId"in r&&r.state!=="broken";const[i,a]=(0,m.useState)(null);async function s(){a(o?"cloud":"local");await n.deleteBudget("id"in r?r.id:undefined,o?r.cloudFileId:undefined);a(null);e.onBack()}return(0,t.jsx)(ex.C,{...e,title:"Delete "+r.name,padding:0,showOverlay:false,onClose:e.onBack,children:()=>(0,t.jsxs)(eu.Z,{style:{padding:15,gap:15,paddingTop:0,paddingBottom:25,maxWidth:512,lineHeight:"1.5em"},children:[o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(eS.Z,{children:["This is a ",(0,t.jsx)("strong",{children:"hosted file"})," which means it is stored on your server to make it available for download on any device. You can delete it from the server, which will also remove it from all of your devices."]}),(0,t.jsx)(em.y,{type:"primary",loading:i==="cloud",style:{backgroundColor:ei.rS.errorText,alignSelf:"center",border:0,padding:"10px 30px",fontSize:14},onClick:s,children:"Delete file from all devices"})]}),"id"in r&&(0,t.jsxs)(t.Fragment,{children:[o?(0,t.jsx)(eS.Z,{children:"You can also delete just the local copy. This will remove all local data and the file will be listed as available for download."}):(0,t.jsxs)(eS.Z,{children:[r.state==="broken"?(0,t.jsxs)(t.Fragment,{children:["This is a ",(0,t.jsx)("strong",{children:"hosted file"})," but it was created by another user. You can only delete the local copy."]}):(0,t.jsxs)(t.Fragment,{children:["This a ",(0,t.jsx)("strong",{children:"local file"})," which is not stored on a server."]})," ","Deleting it will remove it and all of its backups permanently."]}),(0,t.jsx)(em.y,{type:o?"normal":"primary",loading:i==="local",style:{alignSelf:"center",marginTop:10,padding:"10px 30px",fontSize:14,...o?{color:ei.rS.errorText,borderColor:ei.rS.errorText}:{border:0,backgroundColor:ei.rS.errorText}},onClick:s,children:"Delete file locally"})]})]})})};function lH(e){switch(e){case"not-ynab4":return"This file is not valid. Please select a .ynab4 file";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lF({modalProps:e,actions:n}){const[r]=(0,m.useState)(false);function o(e){switch(e){case"ynab4":n.pushModal("import-ynab4");break;case"ynab5":n.pushModal("import-ynab5");break;case"actual":n.pushModal("import-actual");break;default:}}const i={padding:10,border:"1px solid "+ei.rS.tableBorder,borderRadius:6,marginBottom:10,display:"block"};return(0,t.jsx)(ex.C,{...e,title:"Import From",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lH(r)}),(0,t.jsx)(eS.Z,{style:{marginBottom:15},children:"Select an app to import from, and we’ll guide you through the process."}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("ynab4"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"YNAB4"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:"The old unsupported desktop app"})]}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("ynab5"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"nYNAB"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:(0,t.jsx)("div",{children:"The newer web app"})})]}),(0,t.jsxs)(em.Z,{style:i,onClick:()=>o("actual"),children:[(0,t.jsx)("span",{style:{fontWeight:700},children:"Actual"}),(0,t.jsx)(eu.Z,{style:{color:ei.rS.pageTextLight},children:(0,t.jsx)("div",{children:"Import a file exported from Actual"})})]})]})})}var lV=lF;var lW=n(99103);function lU(e){switch(e){case"parse-error":return"Unable to parse file. Please select a JSON file exported from nYNAB.";case"not-ynab5":return"This file is not valid. Please select a JSON file exported from nYNAB.";case"not-zip-file":return"This file is not valid. Please select an unencrypted archive of Actual data.";case"invalid-zip-file":return"This archive is not a valid Actual export file.";case"invalid-metadata-file":return"The metadata file in the given archive is corrupted.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function l$({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"actual",extensions:["zip","blob"]}]});if(e){a(true);o(null);try{await n((0,lW.ef)(e[0],"actual"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ex.C,{...e,title:"Import from Actual export",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lU(r)}),(0,t.jsxs)(eu.Z,{style:{"& > div":{lineHeight:"1.7em"}},children:[(0,t.jsxs)(ew.Z,{children:["You can import data from another Actual account or instance. First export your data from a different account, and it will give you a compressed file. This file is a simple zip file that contains the"," ",(0,t.jsx)("code",{children:"db.sqlite"})," and ",(0,t.jsx)("code",{children:"metadata.json"})," files."]}),(0,t.jsx)(ew.Z,{children:"Select one of these compressed files and import it here."}),(0,t.jsx)(eu.Z,{style:{alignSelf:"center"},children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select file..."})})]})]})})}var lK=l$;function lq(e){switch(e){case"not-ynab4":return"This file is not valid. Please select a compressed ynab4 zip file.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lY({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"ynab",extensions:["zip"]}]});if(e){a(true);o(null);try{await n((0,lW.ef)(e[0],"ynab4"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ex.C,{...e,title:"Import from YNAB4",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lq(r)}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center"},children:[(0,t.jsxs)(ew.Z,{children:["To import data from YNAB4, locate where your YNAB4 data is stored. It is usually in your Documents folder under YNAB. Your data is a directory inside that with the ",(0,t.jsx)("code",{children:".ynab4"})," suffix."]}),(0,t.jsxs)(ew.Z,{children:["When you’ve located your data,"," ",(0,t.jsx)("strong",{children:"compress it into a zip file"}),". On macOS, right-click the folder and select “Compress”. On Windows, right-click and select “Send to → Compressed (zipped) folder”. Upload the zipped folder for importing."]}),(0,t.jsx)(eu.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select zip file..."})})]})]})})}var lG=lY;function lX(e){switch(e){case"parse-error":return"Unable to parse file. Please select a JSON file exported from nYNAB.";case"not-ynab5":return"This file is not valid. Please select a JSON file exported from nYNAB.";default:return"An unknown error occurred while importing. Please report this as a new issue on Github."}}function lQ({modalProps:e}){const n=(0,y.I0)();const[r,o]=(0,m.useState)(null);const[i,a]=(0,m.useState)(false);async function s(){const e=await window.Actual.openFileDialog({properties:["openFile"],filters:[{name:"ynab",extensions:["json"]}]});if(e){a(true);o(null);try{await n((0,lW.ef)(e[0],"ynab5"))}catch(e){o(e.message)}finally{a(false)}}}return(0,t.jsx)(ex.C,{...e,title:"Import from nYNAB",style:{width:400},children:()=>(0,t.jsxs)(eu.Z,{style:{...ei.W2.smallText,lineHeight:1.5,marginTop:20},children:[r&&(0,t.jsx)(el.Z,{style:{color:ei.rS.errorText,marginBottom:15},children:lX(r)}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center","& > div":{lineHeight:"1.7em"}},children:[(0,t.jsxs)(ew.Z,{children:[(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/migration/nynab",children:"Read here"})," ","for instructions on how to migrate your data from YNAB. You need to export your data as JSON, and that page explains how to do that."]}),(0,t.jsx)(ew.Z,{children:"Once you have exported your data, select the file and Actual will import it. Budgets may not match up exactly because things work slightly differently, but you should be able to fix up any problems."}),(0,t.jsx)(eu.Z,{children:(0,t.jsx)(em.y,{type:"primary",loading:i,onClick:s,children:"Select file..."})})]})]})})}var lJ=lQ;function l0(){const e=(0,y.v9)(e=>e.modals.modalStack);const n=(0,y.v9)(e=>e.modals.isHidden);const r=(0,en.o)();const o=e.map(({name:o,options:i={}},a)=>{const s={onClose:r.popModal,onPush:r.pushModal,onBack:r.popModal,isCurrent:a===e.length-1,isHidden:n,stackIndex:a};switch(o){case"delete-budget":return(0,t.jsx)(lB,{modalProps:s,actions:r,file:i.file},o);case"import":return(0,t.jsx)(lV,{modalProps:s,actions:r},o);case"import-ynab4":return(0,t.jsx)(lG,{modalProps:s,actions:r},o);case"import-ynab5":return(0,t.jsx)(lJ,{modalProps:s,actions:r},o);case"import-actual":return(0,t.jsx)(lK,{modalProps:s,actions:r},o);case"load-backup":{return(0,t.jsx)(aU,{budgetId:i.budgetId,modalProps:{...s,onClose:r.popModal},backupDisabled:true,actions:r})}case"create-encryption-key":return(0,t.jsx)(iJ,{modalProps:s,actions:r,options:i},o);case"fix-encryption-key":return(0,t.jsx)(ao,{modalProps:s,actions:r,options:i},o);default:throw new Error("Unknown modal: "+o)}});return(0,t.jsx)(eu.Z,{style:{flex:1,padding:50},children:o})}var l1=n(6755);function l2(){const e=(0,s1.o1)();return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",flexDirection:"row",marginBottom:15,zIndex:5e3},children:[(0,t.jsx)(eS.Z,{children:e?(0,t.jsxs)(t.Fragment,{children:["Using server: ",(0,t.jsx)("strong",{children:e})]}):(0,t.jsx)("strong",{children:"No server configured"})}),(0,t.jsx)(l1.Z,{to:"/config-server",style:{marginLeft:15},children:"Change"})]})}var l4=n(92178);function l5({buttons:e,onSetPassword:n,onError:r}){const[o,i]=(0,m.useState)("");const[a,s]=(0,m.useState)("");const[l,u]=(0,m.useState)(false);const[c,f]=(0,m.useState)(false);async function h(e){e.preventDefault();if(c){return}if(o===a){f(true);await n(o);f(false)}else{r("password-match")}}function p(e){u(e.target.checked)}return(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"column",alignItems:"stretch",marginTop:30},onSubmit:h,children:[(0,t.jsx)(iQ.Tn,{autoFocus:true,placeholder:"Password",type:l?"text":"password",value:o,onChange:e=>i(e.target.value),onEnter:h}),(0,t.jsx)(iQ.Tn,{placeholder:"Confirm password",type:l?"text":"password",value:a,onChange:e=>s(e.target.value),style:{marginTop:10},onEnter:h}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center",fontSize:15,marginTop:20},children:[(0,t.jsxs)("label",{style:{userSelect:"none"},children:[(0,t.jsx)("input",{type:"checkbox",onChange:p})," Show password"]}),(0,t.jsx)(eu.Z,{style:{flex:1}}),e,(0,t.jsx)(em.y,{type:"primary",loading:c,children:"OK"})]})]})};function l3(){const e=(0,y.I0)();const[n,r]=(0,m.useState)(null);const{checked:o}=lZ();function i(e){switch(e){case"invalid-password":return"Password cannot be empty";case"password-match":return"Passwords do not match";case"network-failure":return"Unable to contact the server";default:return`An unknown error occurred: ${e}`}}async function a(t){r(null);const{error:n}=await (0,q.lW)("subscribe-bootstrap",{password:t});if(n){r(n)}else{e((0,l4.Pl)())}}async function s(){await e((0,lW.xp)({demoMode:true}))}if(!o){return null}return(0,t.jsxs)(eu.Z,{style:{maxWidth:450,marginTop:-30},children:[(0,t.jsx)(lL,{text:"Welcome to Actual!"}),(0,t.jsx)(ew.Z,{style:{fontSize:16,color:ei.rS.pageTextDark},children:"Actual is a super fast privacy-focused app for managing your finances. To secure your data, you’ll need to set a password for your server."}),(0,t.jsxs)(ew.Z,{isLast:true,style:{fontSize:16,color:ei.rS.pageTextDark},children:["Consider opening"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/tour/",children:"our tour"})," ","in a new tab for some guidance on what to do when you’ve set your password."]}),n&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:i(n)}),(0,t.jsx)(l5,{buttons:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,color:ei.rS.pageTextLink,marginRight:15},onClick:s,children:"Try Demo"}),onSetPassword:a,onError:r})]})};function l6(){const e=(0,nB.Z)();const[n,r]=(0,m.useState)(null);const[o,i]=(0,m.useState)(null);function a(e){switch(e){case"invalid-password":return"Password cannot be empty";case"password-match":return"Passwords do not match";case"network-failure":return"Unable to contact the server";default:return"Internal server error"}}async function s(t){r(null);const{error:n}=await (0,q.lW)("subscribe-change-password",{password:t});if(n){r(n)}else{i("Password successfully changed");await (0,q.lW)("subscribe-sign-in",{password:t});e("/")}}return(0,t.jsxs)(eu.Z,{style:{maxWidth:500,marginTop:-30},children:[(0,t.jsx)(lL,{text:"Change server password"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:"This will change the password for this server instance. All existing sessions will stay logged in."}),n&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:a(n)}),o&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.noticeTextLight,borderRadius:4,fontSize:15},children:o}),(0,t.jsx)(l5,{buttons:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,marginRight:10},onClick:()=>e("/"),children:"Cancel"}),onSetPassword:s,onError:r})]})};function l8(e){switch(e){case"network-failure":return"Unable to access server. Make sure the configured URL for the server is accessible.";default:return"Server returned an error while checking its status."}}function l7(){const e=(0,nB.Z)();const n=(0,nP.TH)();const{error:r}=n.state||{};function o(){e("/")}return(0,t.jsxs)(eu.Z,{style:{alignItems:"center",color:ei.rS.pageText},children:[(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:l8(r)}),(0,t.jsx)(em.Z,{onClick:o,style:{marginTop:20},children:"Try again"})]})};function l9(){const e=(0,y.I0)();const[n,r]=(0,m.useState)("");const[o,i]=(0,m.useState)(false);const[a,s]=(0,m.useState)(null);const{checked:l}=lZ();function u(e){switch(e){case"invalid-password":return"Invalid password";case"network-failure":return"Unable to contact the server";default:return`An unknown error occurred: ${e}`}}async function c(t){t.preventDefault();if(n===""||o){return}s(null);i(true);const{error:r}=await (0,q.lW)("subscribe-sign-in",{password:n});i(false);if(r){s(r)}else{e((0,l4.Pl)())}}async function f(){await e((0,lW.xp)({demoMode:true}))}if(!l){return null}return(0,t.jsxs)(eu.Z,{style:{maxWidth:450,marginTop:-30,color:ei.rS.pageText},children:[(0,t.jsx)(lL,{text:"Sign in to this Actual instance"}),(0,t.jsx)(eS.Z,{style:{fontSize:16,color:ei.rS.pageTextDark,lineHeight:1.4},children:"If you lost your password, you likely still have access to your server to manually reset it."}),a&&(0,t.jsx)(eS.Z,{style:{marginTop:20,color:ei.rS.errorText,borderRadius:4,fontSize:15},children:u(a)}),(0,t.jsxs)("form",{style:{display:"flex",flexDirection:"row",marginTop:30},onSubmit:c,children:[(0,t.jsx)(iQ.Tn,{autoFocus:true,placeholder:"Password",type:"password",onChange:e=>r(e.target.value),style:{flex:1,marginRight:10}}),(0,t.jsx)(em.y,{type:"primary",loading:o,style:{fontSize:15},children:"Sign in"})]}),(0,t.jsx)(eu.Z,{style:{flexDirection:"row",justifyContent:"center",marginTop:15},children:(0,t.jsx)(em.Z,{type:"bare",style:{fontSize:15,color:ei.rS.pageTextLink,marginLeft:10},onClick:f,children:"Try Demo →"})})]})};function ue(){const{createBudget:e,pushModal:n}=(0,en.o)();return(0,t.jsxs)(eu.Z,{style:{gap:10,maxWidth:500,fontSize:15,maxHeight:"100vh",marginBlock:20},children:[(0,t.jsx)(eS.Z,{style:ei.W2.veryLargeText,children:"Let’s get started!"}),(0,t.jsxs)(eu.Z,{style:{overflowY:"auto"},children:[(0,t.jsxs)(ew.Z,{children:["Actual is a personal finance tool that focuses on beautiful design and a slick user experience."," ",(0,t.jsx)("strong",{children:"Editing your data should be as fast as possible."})," On top of that, we want to provide powerful tools to allow you to do whatever you want with your data."]}),(0,t.jsxs)(ew.Z,{children:["Currently, Actual implements budgeting based on a"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/budgeting/",linkColor:"purple",children:"monthly envelope system"}),". Consider taking our"," ",(0,t.jsx)(eg.Z,{to:"https://actualbudget.org/docs/tour/",linkColor:"purple",children:"guided tour"})," ","to help you get your bearings, and check out the rest of the documentation while you’re there to learn more about advanced topics."]}),(0,t.jsx)(ew.Z,{style:{color:ei.rS.pageTextLight},children:"Get started by importing an existing budget file from Actual or another budgeting app, or start fresh with an empty budget. You can always create or import another budget later."})]}),(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",flexShrink:0},children:[(0,t.jsx)(em.Z,{onClick:()=>n("import"),children:"Import my budget"}),(0,t.jsx)(em.Z,{type:"primary",onClick:()=>e(),children:"Start fresh"})]})]})};function ut(){const e=(0,s1.Mx)();return(0,t.jsx)(eS.Z,{style:{color:ei.rS.pageTextSubdued,":hover":{color:ei.rS.pageText},margin:15,marginLeft:17,[`@media (min-width: ${s0.Z.breakpoint_small})`]:{position:"absolute",bottom:0,right:0,marginLeft:15,marginRight:17,zIndex:5001}},children:`App: v${window.Actual.ACTUAL_VERSION} | Server: ${e}`})}function un({isLoading:e}){const n=(0,y.v9)(e=>e.budgets.allFiles);const r=(0,y.v9)(e=>e.user.data);const o=(0,y.v9)(e=>e.app.managerHasInitialized);const{setAppState:i,getUserData:a,loadAllFiles:s}=(0,en.o)();(0,m.useEffect)(()=>{if(!o){if(!e){i({loadingText:""})}}async function t(){const t=await a();if(t){await s()}i({managerHasInitialized:true,...!e?{loadingText:null}:null})}t()},[]);if(!o){return null}if(e){return null}return(0,t.jsxs)(nA.VK,{children:[(0,t.jsx)(nH,{}),(0,t.jsxs)(eu.Z,{style:{height:"100%",color:ei.rS.pageText},children:[(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,left:0,right:0,height:40,WebkitAppRegion:"drag"}}),(0,t.jsx)(eu.Z,{style:{position:"absolute",bottom:40,right:15},children:(0,t.jsx)(sC,{style:{position:"relative",left:"initial",right:"initial"}})}),o&&(0,t.jsx)(eu.Z,{style:{alignItems:"center",bottom:0,justifyContent:"center",left:0,padding:20,position:"absolute",right:0,top:0},children:r&&n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:(0,t.jsx)(lN,{})}),(0,t.jsx)(nP.AW,{path:"/change-password",element:(0,t.jsx)(l6,{})}),n&&n.length>0?(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(lz,{})}):(0,t.jsx)(nP.AW,{path:"/",element:(0,t.jsx)(ue,{})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/"})})]}),(0,t.jsx)(eu.Z,{style:{position:"absolute",top:0,right:0,padding:"6px 10px",zIndex:4e3},children:(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:null}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(lS.Z,{hideIfNoServer:true,style:{padding:"4px 7px"}})})]})})]}):(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/login",element:(0,t.jsx)(l9,{})}),(0,t.jsx)(nP.AW,{path:"/error",element:(0,t.jsx)(l7,{})}),(0,t.jsx)(nP.AW,{path:"/config-server",element:(0,t.jsx)(lN,{})}),(0,t.jsx)(nP.AW,{path:"/bootstrap",element:(0,t.jsx)(l3,{})}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(nP.Fg,{to:"/bootstrap",replace:true})})]})}),(0,t.jsxs)(nP.Z5,{children:[(0,t.jsx)(nP.AW,{path:"/config-server",element:null}),(0,t.jsx)(nP.AW,{path:"/*",element:(0,t.jsx)(l2,{})})]}),(0,t.jsx)(ut,{})]}),(0,t.jsx)(l0,{})]})};const uo={border:0,fontSize:15,padding:"10px 13px"};function ui(){const e=(0,y.v9)(e=>{return e.prefs.local&&e.prefs.local.hideMobileMessage||true});const{isNarrowWidth:n}=(0,eo.F)();const[r,o]=(0,m.useState)(n&&!e&&!document.cookie.match(/hideMobileMessage=true/));const[i,a]=(0,m.useState)(false);const s=(0,y.I0)();function l(){o(false);if(i){s((0,j.savePrefs)({hideMobileMessage:true}))}else{const e=new Date;e.setTime(e.getTime()+1e3*60*5);document.cookie="hideMobileMessage=true;path=/;expires="+e.toUTCString()}}if(!r){return null}return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,left:0,right:0,backgroundColor:ei.rS.mobileModalBackground,color:ei.rS.mobileModalText,padding:10,margin:10,borderRadius:6,zIndex:1e4,fontSize:15,...ei.W2.shadowLarge},children:[(0,t.jsxs)(eS.Z,{style:{lineHeight:"1.5em"},children:[(0,t.jsx)("strong",{children:"Actual features are limited on small screens."}),(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:"While we work to improve this experience, you may find the full Actual feature set on devices with larger screens."})]}),(0,t.jsxs)(eu.Z,{style:{gap:16,marginTop:20,justifyContent:"center"},children:[(0,t.jsx)(em.Z,{style:uo,onClick:l,children:"Try it anyway"}),(0,t.jsxs)(eu.Z,{style:{alignItems:"center",flexDirection:"row",justifyContent:"flex-end"},children:[(0,t.jsx)(ek.XZ,{id:"dont_remind_me",checked:i,onChange:()=>{a(!i)}}),(0,t.jsx)("label",{htmlFor:"dont_remind_me",style:{userSelect:"none"},children:"Don’t remind me again"})]})]})]})}var ua=n(52267);function us(e){e({updateInfo:null,showUpdateNotification:false})}function ul(){const e=(0,y.v9)(e=>e.app.updateInfo);const n=(0,y.v9)(e=>e.app.showUpdateNotification);const{updateApp:r,setAppState:o}=(0,en.o)();if(e&&n){const n=e.releaseNotes;return(0,t.jsxs)(eu.Z,{style:{position:"absolute",bottom:0,right:0,margin:"15px 17px",backgroundColor:ei.rS.pageTextPositive,color:ei.rS.tableBackground,padding:"7px 10px",borderRadius:4,zIndex:1e4,maxWidth:450},children:[(0,t.jsxs)(eu.Z,{style:{flexDirection:"row",alignItems:"center"},children:[(0,t.jsx)(eu.Z,{style:{marginRight:10,fontWeight:700},children:(0,t.jsxs)(eS.Z,{children:["App updated to ",e.version]})}),(0,t.jsx)(eu.Z,{style:{flex:1}}),(0,t.jsx)(eu.Z,{style:{marginTop:-1},children:(0,t.jsxs)(eS.Z,{children:[(0,t.jsx)(ey.Z,{onClick:r,style:{color:ei.rS.buttonPrimaryText,textDecoration:"underline"},children:"Restart"})," ","(",(0,t.jsx)(ey.Z,{style:{color:ei.rS.buttonPrimaryText,textDecoration:"underline"},onClick:()=>window.Actual.openURLInBrowser("https://actualbudget.org/docs/releases"),children:"notes"}),")",(0,t.jsx)(em.Z,{type:"bare","aria-label":"Close",style:{display:"inline",padding:"1px 7px 2px 7px"},onClick:()=>us(o),children:(0,t.jsx)(ua.Z,{width:9,style:{color:ei.rS.buttonPrimaryText}})})]})})]}),n&&(0,t.jsx)(eu.Z,{style:{marginTop:10,fontWeight:500},children:n})]})}return null};function uu({budgetId:e,cloudFileId:r,loadingText:o,loadBudget:i,closeBudget:a,loadGlobalPrefs:s}){const[l,u]=(0,m.useState)(true);const{showBoundary:c}=ee();async function f(){const e=await n.g.Actual.getServerSocket();await (0,q.S1)(e);await s();const t=await (0,q.lW)("get-last-opened-backup");if(t){await i(t);(0,q.lW)("get-remote-files").then(e=>{if(e){const t=e.find(e=>e.fileId===r);if(t&&t.deleted){a()}}})}}(0,m.useEffect)(()=>{async function e(){await Promise.all([er(),f()]);u(false)}e().catch(c)},[]);(0,m.useEffect)(()=>{n.g.Actual.updateAppMenu(!!e)},[e]);return(0,t.jsxs)(t.Fragment,{children:[l?(0,t.jsx)(ep,{initializing:l,loadingText:o}):e?(0,t.jsx)(lb,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ep,{initializing:l,loadingText:o}),(0,t.jsx)(un,{isLoading:o!=null})]}),(0,t.jsx)(ul,{}),(0,t.jsx)(ui,{})]})}function uc({error:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ep,{}),(0,t.jsx)(eI,{error:e,buttonText:"Restart app"})]})}function ud(){const e=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.id);const n=(0,y.v9)(e=>e.prefs.local&&e.prefs.local.cloudFileId);const r=(0,y.v9)(e=>e.app.loadingText);const{loadBudget:o,closeBudget:i,loadGlobalPrefs:a,sync:l}=(0,en.o)();const[u,c]=(0,m.useState)((0,ei.bA)());(0,m.useEffect)(()=>{function e(){if(u!==(0,ei.bA)()){c((0,ei.bA)())}}let t=false;async function n(){if(!t){console.debug("triggering sync because of visibility change");t=true;await l();t=false}}window.addEventListener("focus",e);window.addEventListener("visibilitychange",n);return()=>{window.removeEventListener("focus",e);window.removeEventListener("visibilitychange",n)}},[l]);return(0,t.jsx)(eo.$,{children:(0,t.jsx)(eu.Z,{style:{height:"100%",display:"flex",flexDirection:"column"},children:(0,t.jsxs)(eu.Z,{style:{flexGrow:1,overflow:"hidden",...ei.W2.lightScrollbar},children:[(0,t.jsxs)(X,{FallbackComponent:uc,children:[{"NODE_ENV":"production","PUBLIC_URL":"","WDS_SOCKET_HOST":undefined,"WDS_SOCKET_PATH":undefined,"WDS_SOCKET_PORT":undefined,"FAST_REFRESH":true,"REACT_APP_BACKEND_WORKER_HASH":"26846256cb1531298b26"}.REACT_APP_REVIEW_ID&&!s.$8&&(0,t.jsx)(ev,{}),(0,t.jsx)(uu,{budgetId:e,cloudFileId:n,loadingText:r,loadBudget:o,closeBudget:i,loadGlobalPrefs:a})]}),(0,t.jsx)(ei.jy,{})]},u?"hidden-scrollbars":"scrollbars")})})}var uf=ud;function uh(e,t){let n=false;(0,q.oL)("sync-event",r=>{const{type:o,subtype:i,meta:a,tables:s}=r;const l=t.getState().prefs.local;if(!l||!l.id){return}if(o==="success"){if(n){n=false;e.addNotification({title:"Syncing has been fixed!",message:"Happy budgeting!",type:"message"})}if(s.includes("prefs")){e.loadPrefs()}if(s.includes("categories")||s.includes("category_groups")||s.includes("category_mapping")){e.getCategories()}if(s.includes("payees")||s.includes("payee_mapping")){e.getPayees()}if(s.includes("accounts")){e.getAccounts()}}else if(o==="error"){let o=null;const s="[Learn more](https://actualbudget.org/docs/getting-started/sync/#debugging-sync-issues)";const l="https://github.com/actualbudget/actual/issues/new?assignees=&labels=bug&template=bug-report.yml&title=%5BBug%5D%3A+";switch(i){case"out-of-sync":if(n){o={title:"Your data is still out of sync",message:"We were unable to repair your sync state, sorry! You need to reset your sync state. "+s,sticky:true,id:"reset-sync",button:{title:"Reset sync",action:e.resetSync}}}else{o={title:"Your data is out of sync",message:"There was a problem syncing your data. We can try to repair your sync state "+"to fix it. "+s,type:"warning",sticky:true,id:"repair-sync",button:{title:"Repair",action:async()=>{n=true;await (0,q.lW)("sync-repair");e.sync()}}}}break;case"file-old-version":o={title:"Actual has updated the syncing format",message:"This happens rarely (if ever again). The internal syncing format "+"has changed and you need to reset sync. This will upload data from "+"this device and revert all other devices. "+"[Learn more about what this means](https://actualbudget.org/docs/getting-started/sync/#what-does-resetting-sync-mean)."+"\n\nOld encryption keys are not migrated. If using "+"encryption, [reset encryption here](#makeKey).",messageActions:{makeKey:()=>e.pushModal("create-encryption-key")},sticky:true,id:"old-file",button:{title:"Reset sync",action:e.resetSync}};break;case"file-key-mismatch":o={title:"Your encryption key need to be reset",message:"Something went wrong when registering your encryption key id. "+"You need to recreate your key. "+s,sticky:true,id:"invalid-key-state",button:{title:"Reset key",action:()=>e.pushModal("create-encryption-key")}};break;case"file-not-found":o={title:"This file is not a cloud file",message:"You need to register it to take advantage "+"of syncing which allows you to use it across devices and never worry "+"about losing your data. "+s,type:"warning",sticky:true,id:"register-file",button:{title:"Register",action:async()=>{await e.uploadBudget();e.sync();e.loadPrefs()}}};break;case"file-needs-upload":o={title:"File needs upload",message:"Something went wrong when creating this cloud file. You need "+"to upload this file to fix it. "+s,sticky:true,id:"upload-file",button:{title:"Upload",action:e.resetSync}};break;case"file-has-reset":case"file-has-new-key":const{cloudFileId:u}=t.getState().prefs.local;o={title:"Syncing has been reset on this cloud file",message:"You need to revert it to continue syncing. Any unsynced "+"data will be lost. If you like, you can instead "+"[upload this file](#upload) to be the latest version. "+s,messageActions:{upload:e.resetSync},sticky:true,id:"needs-revert",button:{title:"Revert",action:()=>e.closeAndDownloadBudget(u)}};break;case"encrypt-failure":case"decrypt-failure":if(a.isMissingKey){o={title:"Missing encryption key",message:"Unable to encrypt your data because you are missing the key. "+"Create your key to sync your data.",sticky:true,id:"encrypt-failure-missing",button:{title:"Create key",action:()=>e.pushModal("fix-encryption-key",{onSuccess:()=>e.sync()})}}}else{o={message:"Unable to encrypt your data. You have the correct "+"key so this is likely an internal failure. To fix this, "+"reset your sync data with a new key.",sticky:true,id:"encrypt-failure",button:{title:"Reset key",action:()=>e.pushModal("create-encryption-key",{onSuccess:()=>e.sync()})}}}break;case"invalid-schema":console.trace("invalid-schema",a);o={title:"Update required",message:"We couldn’t apply changes from the server. This probably means you "+"need to update the app to support the latest database.",type:"warning"};break;case"apply-failure":console.trace("apply-failure",a);o={message:`We couldn’t apply that change to the database. Please report this as a bug by [opening a Github issue](${l}).`};break;case"network":break;default:console.trace("unkown error",r);o={message:`We had problems syncing your changes. Please report this as a bug by [opening a Github issue](${l}).`}}if(o){e.addNotification({type:"error",...o})}}})};function up(e,t){n.g.Actual.onEventFromMain("update-downloaded",(t,n)=>{e.setAppState({updateInfo:n})});n.g.Actual.onEventFromMain("update-error",()=>{});(0,q.oL)("server-error",()=>{e.addGenericErrorNotification()});(0,q.oL)("orphaned-payees",({orphanedIds:t,updatedPayeeIds:n})=>{e.pushModal("merge-unused-payees",{payeeIds:t,targetPayeeId:n[0]})});(0,q.oL)("schedules-offline",({payees:t})=>{e.pushModal("schedule-posts-offline-notification",{payees:t})});(0,q.oL)("sync-event",async({type:n,tables:r})=>{const o=t.getState().prefs.local;if(o&&o.id){if(n==="applied"){if(r.includes("payees")||r.includes("payee_mapping")){e.getPayees()}}}});(0,q.oL)("sync-event",async({type:t})=>{if(t==="unauthorized"){e.addNotification({type:"warning",message:"Unable to authenticate with server",sticky:true,id:"auth-issue"})}});uh(e,t);(0,q.oL)("undo-event",n=>{const{tables:r,undoTag:o}=n;const i=[];if(r.includes("categories")||r.includes("category_groups")||r.includes("category_mapping")){i.push(e.getCategories())}if(r.includes("accounts")){i.push(e.getAccounts())}const a=nN.r8(o);if(a){Promise.all(i).then(()=>{e.setLastUndoState(n);if(a.openModal){const{modalStack:n}=t.getState().modals;if(n.length===0||n[n.length-1].name!==a.openModal){e.replaceModal(a.openModal)}}else{e.closeModal();if(window.location.href.replace(window.location.origin,"")!==a.url){window.__navigate(a.url);return true}}})}});(0,q.oL)("fallback-write-error",()=>{e.addNotification({type:"error",title:"Unable to save changes",sticky:true,message:"This browser only supports using the app in one tab at a time, "+"and another tab has opened the app. No changes will be saved "+"from this tab; please close it and continue working in the other one."})});(0,q.oL)("start-load",()=>{e.closeBudgetUI();e.setAppState({loadingText:""})});(0,q.oL)("finish-load",()=>{e.closeModal();e.setAppState({loadingText:null});e.loadPrefs()});(0,q.oL)("start-import",()=>{e.closeBudgetUI()});(0,q.oL)("finish-import",()=>{e.closeModal();e.setAppState({loadingText:null});e.loadPrefs()});(0,q.oL)("show-budgets",()=>{e.closeBudgetUI();e.setAppState({loadingText:null})})}var ug=n(17401);const uv=(0,w.UY)(K);function um(e,t){if(t.type===C.DC){e={budgets:e.budgets,user:e.user,prefs:{local:null,global:e.prefs.global},app:{..._,updateInfo:e.updateInfo,showUpdateNotification:e.showUpdateNotification,managerHasInitialized:e.app.managerHasInitialized,loadingText:e.app.loadingText}}}return uv(e,t)}const uy=(0,w.MT)(um,undefined,(0,w.md)(k));const ux=(0,w.DE)(j,uy.dispatch);up(ux,uy);window.__actionsForMenu=ux;window.$send=q.lW;window.$query=T.Vn;window.$q=T.ZP;const uw=document.getElementById("root");const ub=(0,x.s)(uw);ub.render((0,t.jsx)(y.zt,{store:uy,children:(0,t.jsx)(s1.qc,{children:(0,t.jsx)(uf,{})})}))}()})();
|
|
201
|
+
//# sourceMappingURL=main.eea3298c.js.map
|