You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

487 lines
213 KiB

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
If you want to view the source, visit the plugins github repository
https://github.com/ozntel/file-tree-alternative
*/
var Bf=Object.create;var _n=Object.defineProperty,Wf=Object.defineProperties,Hf=Object.getOwnPropertyDescriptor,qf=Object.getOwnPropertyDescriptors,Gf=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,Kf=Object.getPrototypeOf,_o=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable;var fa=(e,t,n)=>t in e?_n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ue=(e,t)=>{for(var n in t||(t={}))_o.call(t,n)&&fa(e,n,t[n]);if(Jn)for(var n of Jn(t))ua.call(t,n)&&fa(e,n,t[n]);return e},_t=(e,t)=>Wf(e,qf(t)),da=e=>_n(e,"__esModule",{value:!0});var pa=(e,t)=>{var n={};for(var r in e)_o.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jn)for(var r of Jn(e))t.indexOf(r)<0&&ua.call(e,r)&&(n[r]=e[r]);return n};var qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yf=(e,t)=>{da(e);for(var n in t)_n(e,n,{get:t[n],enumerable:!0})},Zf=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gf(t))!_o.call(e,r)&&r!=="default"&&_n(e,r,{get:()=>t[r],enumerable:!(n=Hf(t,r))||n.enumerable});return e},Ae=e=>Zf(da(_n(e!=null?Bf(Kf(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Fe=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(c){o(c)}},a=l=>{try{s(n.throw(l))}catch(c){o(c)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});var ts=qe((U0,es)=>{"use strict";var xd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";es.exports=xd});var is=qe((z0,os)=>{"use strict";var Rd=ts();function ns(){}function rs(){}rs.resetWarningCache=ns;os.exports=function(){function e(r,o,i,a,s,l){if(l!==Rd){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array: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:rs,resetWarningCache:ns};return n.PropTypes=n,n}});var No=qe((W0,as)=>{as.exports=is()();var j0,B0});var As=qe((H0,sr)=>{var ss,ls,cs,us,fs,ds,ps,hs,vs,ir,ko,ms,_s,gs,Ht,ys,bs,ws,Ss,Ts,Es,xs,Rs,ar;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof sr=="object"&&typeof sr.exports=="object"?e(n(t,n(sr.exports))):e(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])};ss=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function i(){this.constructor=r}r.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)},ls=Object.assign||function(r){for(var o,i=1,a=arguments.length;i<a;i++){o=arguments[i];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])}return r},cs=function(r,o){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&o.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)o.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(i[a[s]]=r[a[s]]);return i},us=function(r,o,i,a){var s=arguments.length,l=s<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,i):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,o,i,a);else for(var u=r.length-1;u>=0;u--)(c=r[u])&&(l=(s<3?c(l):s>3?c(o,i,l):c(o,i))||l);return s>3&&l&&Object.defineProperty(o,i,l),l},fs=function(r,o){return function(i,a){o(i,a,r)}},ds=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},ps=function(r,o,i,a){function s(l){return l instanceof i?l:new i(function(c){c(l)})}return new(i||(i=Promise))(function(l,c){function u(h){try{f(a.next(h))}catch(p){c(p)}}function d(h){try{f(a.throw(h))}catch(p){c(p)}}function f(h){h.done?l(h.value):s(h.value).then(u,d)}f((a=a.apply(r,o||[])).next())})},hs=function(r,o){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(f){return function(h){return d([f,h])}}function d(f){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,s&&(l=f[0]&2?s.return:f[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,f[1])).done)return l;switch(s=0,l&&(f=[f[0]&2,l.value]),f[0]){case 0:case 1:l=f;break;case 4:return i.label++,{value:f[1],done:!1};case 5:i.label++,s=f[1],f=[0];continue;case 7:f=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!l||f[1]>l[0]&&f[1]<l[3])){i.label=f[1];break}if(f[0]===6&&i.label<l[1]){i.label=l[1],l=f;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(f);break}l[2]&&i.ops.pop(),i.trys.pop();continue}f=o.call(r,i)}catch(h){f=[6,h],s=0}finally{a=l=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},vs=function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&ar(o,r,i)},ar=Object.create?function(r,o,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return o[i]}})}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]},ir=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,i=o&&r[o],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},ko=function(r,o){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),s,l=[],c;try{for(;(o===void 0||o-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(c)throw c.error}}return l},ms=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(ko(arguments[o]));return r},_s=function(){for(var r=0,o=0,i=arguments.length;o<i;o++)r+=arguments[o].length;for(var a=Array(r),s=0,o=0;o<i;o++)for(var l=arguments[o],c=0,u=l.length;c<u;c++,s++)a[s]=l[c];return a},gs=function(r,o,i){if(i||arguments.length===2)for(var a=0,s=o.length,l;a<s;a++)(l||!(a in o))&&(l||(l=Array.prototype.slice.call(o,0,a)),l[a]=o[a]);return r.concat(l||Array.prototype.slice.call(o))},Ht=function(r){return this instanceof Ht?(this.v=r,this):new Ht(r)},ys=function(r,o,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,o||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(y){a[y]&&(s[y]=function(m){return new Promise(function(w,S){l.push([y,m,w,S])>1||u(y,m)})})}function u(y,m){try{d(a[y](m))}catch(w){p(l[0][3],w)}}function d(y){y.value instanceof Ht?Promise.resolve(y.value.v).then(f,h):p(l[0][2],y)}function f(y){u("next",y)}function h(y){u("throw",y)}function p(y,m){y(m),l.shift(),l.length&&u(l[0][0],l[0][1])}},bs=function(r){var o,i;return o={},a("next"),a("throw",function(s){throw s}),a("return"),o[Symbol.iterator]=function(){return this},o;function a(s,l){o[s]=r[s]?function(c){return(i=!i)?{value:Ht(r[s](c)),done:s==="return"}:l?l(c):c}:l}},ws=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],i;return o?o.call(r):(r=typeof ir=="function"?ir(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=r[l]&&function(c){return new Promise(function(u,d){c=r[l](c),s(u,d,c.done,c.value)})}}function s(l,c,u,d){Promise.resolve(d).then(function(f){l({value:f,done:u})},c)}},Ss=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};Ts=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&ar(o,r,i);return n(o,r),o},Es=function(r){return r&&r.__esModule?r:{default:r}},xs=function(r,o,i,a){if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!a:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(r):a?a.value:o.get(r)},Rs=function(r,o,i,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!s:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(r,i):s?s.value=i:o.set(r,i),i},e("__extends",ss),e("__assign",ls),e("__rest",cs),e("__decorate",us),e("__param",fs),e("__metadata",ds),e("__awaiter",ps),e("__generator",hs),e("__exportStar",vs),e("__createBinding",ar),e("__values",ir),e("__read",ko),e("__spread",ms),e("__spreadArrays",_s),e("__spreadArray",gs),e("__await",Ht),e("__asyncGenerator",ys),e("__asyncDelegator",bs),e("__asyncValues",ws),e("__makeTemplateObject",Ss),e("__importStar",Ts),e("__importDefault",Es),e("__classPrivateFieldGet",xs),e("__classPrivateFieldSet",Rs)})});var Os=qe(Oo=>{"use strict";Oo.__esModule=!0;Oo.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?i===s.replace(/\/.*$/,""):o===s})}return!0}});var Ul=qe(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var Pl="fas",Ol="plus-circle",Vl=512,Dl=512,Ml=[],Il="f055",$l="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z";Ze.definition={prefix:Pl,iconName:Ol,icon:[Vl,Dl,Ml,Il,$l]};Ze.faPlusCircle=Ze.definition;Ze.prefix=Pl;Ze.iconName=Ol;Ze.width=Vl;Ze.height=Dl;Ze.ligatures=Ml;Ze.unicode=Il;Ze.svgPathData=$l});var Kl=qe(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});var zl="fas",jl="arrow-circle-left",Bl=512,Wl=512,Hl=[],ql="f0a8",Gl="M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z";Xe.definition={prefix:zl,iconName:jl,icon:[Bl,Wl,Hl,ql,Gl]};Xe.faArrowCircleLeft=Xe.definition;Xe.prefix=zl;Xe.iconName=jl;Xe.width=Bl;Xe.height=Wl;Xe.ligatures=Hl;Xe.unicode=ql;Xe.svgPathData=Gl});var nc=qe(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});var Yl="fas",Zl="thumbtack",Xl=384,Jl=512,Ql=[],ec="f08d",tc="M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z";Je.definition={prefix:Yl,iconName:Zl,icon:[Xl,Jl,Ql,ec,tc]};Je.faThumbtack=Je.definition;Je.prefix=Yl;Je.iconName=Zl;Je.width=Xl;Je.height=Jl;Je.ligatures=Ql;Je.unicode=ec;Je.svgPathData=tc});var uc=qe(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});var rc="fas",oc="search",ic=512,ac=512,sc=[],lc="f002",cc="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z";Qe.definition={prefix:rc,iconName:oc,icon:[ic,ac,sc,lc,cc]};Qe.faSearch=Qe.definition;Qe.prefix=rc;Qe.iconName=oc;Qe.width=ic;Qe.height=ac;Qe.ligatures=sc;Qe.unicode=lc;Qe.svgPathData=cc});var gc=qe(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});var fc="fas",dc="times-circle",pc=512,hc=512,vc=[],mc="f057",_c="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z";et.definition={prefix:fc,iconName:dc,icon:[pc,hc,vc,mc,_c]};et.faTimesCircle=et.definition;et.prefix=fc;et.iconName=dc;et.width=pc;et.height=hc;et.ligatures=vc;et.unicode=mc;et.svgPathData=_c});var Rc=qe(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});var yc="fas",bc="eye",wc=576,Sc=512,Tc=[],Ec="f06e",xc="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z";tt.definition={prefix:yc,iconName:bc,icon:[wc,Sc,Tc,Ec,xc]};tt.faEye=tt.definition;tt.prefix=yc;tt.iconName=bc;tt.width=wc;tt.height=Sc;tt.ligatures=Tc;tt.unicode=Ec;tt.svgPathData=xc});var Oc=qe(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});var Ac="fas",Fc="eye-slash",Cc=640,Nc=512,kc=[],Lc="f070",Pc="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z";nt.definition={prefix:Ac,iconName:Fc,icon:[Cc,Nc,kc,Lc,Pc]};nt.faEyeSlash=nt.definition;nt.prefix=Ac;nt.iconName=Fc;nt.width=Cc;nt.height=Nc;nt.ligatures=kc;nt.unicode=Lc;nt.svgPathData=Pc});Yf(exports,{default:()=>la});var un=Ae(require("obsidian"));var $f=Ae(require("obsidian"));var gn,z,ha,Xf,yn,va,ma,_a,Qn={},ga=[],Jf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function gt(e,t){for(var n in t)e[n]=t[n];return e}function ya(e){var t=e.parentNode;t&&t.removeChild(e)}function at(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?gn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return bn(e,a,r,o,null)}function bn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++ha};return z.vnode!=null&&z.vnode(i),i}function go(){return{current:null}}function Ge(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function zt(e,t){if(t==null)return e.__?zt(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?zt(e):null}function ba(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ba(e)}}function yo(e){(!e.__d&&(e.__d=!0)&&yn.push(e)&&!er.__r++||ma!==z.debounceRendering)&&((ma=z.debounceRendering)||va)(er)}function er(){for(var e;er.__r=yn.length;)e=yn.sort(function(t,n){return t.__v.__b-n.__v.__b}),yn=[],e.some(function(t){var n,r,o,i,a,s;t.__d&&(a=(i=(n=t).__v).__e,(s=n.__P)&&(r=[],(o=gt({},i)).__v=i.__v+1,bo(s,i,o,n.__n,s.ownerSVGElement!==void 0,i.__h!=null?[a]:null,r,a??zt(i),i.__h),Aa(r,i),i.__e!=a&&ba(i)))})}function wa(e,t,n,r,o,i,a,s,l,c){var u,d,f,h,p,y,m,w=r&&r.__k||ga,S=w.length;for(n.__k=[],u=0;u<t.length;u++)if((h=n.__k[u]=(h=t[u])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?bn(null,h,null,null,h):Array.isArray(h)?bn(Ge,{children:h},null,null,null):h.__b>0?bn(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(f=w[u])===null||f&&h.key==f.key&&h.type===f.type)w[u]=void 0;else for(d=0;d<S;d++){if((f=w[d])&&h.key==f.key&&h.type===f.type){w[d]=void 0;break}f=null}bo(e,h,f=f||Qn,o,i,a,s,l,c),p=h.__e,(d=h.ref)&&f.ref!=d&&(m||(m=[]),f.ref&&m.push(f.ref,null,h),m.push(d,h.__c||p,h)),p!=null?(y==null&&(y=p),typeof h.type=="function"&&h.__k!=null&&h.__k===f.__k?h.__d=l=Sa(h,l,e):l=Ta(e,h,f,w,p,l),c||n.type!=="option"?typeof n.type=="function"&&(n.__d=l):e.value=""):l&&f.__e==l&&l.parentNode!=e&&(l=zt(f))}for(n.__e=y,u=S;u--;)w[u]!=null&&(typeof n.type=="function"&&w[u].__e!=null&&w[u].__e==n.__d&&(n.__d=zt(r,u+1)),Ca(w[u],w[u]));if(m)for(u=0;u<m.length;u++)Fa(m[u],m[++u],m[++u])}function Sa(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t=typeof o.type=="function"?Sa(o,t,n):Ta(n,o,o,e.__k,o.__e,t));return t}function dt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){dt(n,t)}):t.push(e)),t}function Ta(e,t,n,r,o,i){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return a!==void 0?a:o.nextSibling}function Qf(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||tr(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||tr(e,i,t[i],n[i],r)}function Ea(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||Jf.test(t)?n:n+"px"}function tr(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Ea(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ea(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Ra:xa,i):e.removeEventListener(t,i?Ra:xa,i);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch(a){}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function xa(e){this.l[e.type+!1](z.event?z.event(e):e)}function Ra(e){this.l[e.type+!0](z.event?z.event(e):e)}function bo(e,t,n,r,o,i,a,s,l){var c,u,d,f,h,p,y,m,w,S,T,A=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(c=z.__b)&&c(t);try{e:if(typeof A=="function"){if(m=t.props,w=(c=A.contextType)&&r[c.__c],S=c?w?w.props.value:c.__:r,n.__c?y=(u=t.__c=n.__c).__=u.__E:("prototype"in A&&A.prototype.render?t.__c=u=new A(m,S):(t.__c=u=new Ke(m,S),u.constructor=A,u.render=td),w&&w.sub(u),u.props=m,u.state||(u.state={}),u.context=S,u.__n=r,d=u.__d=!0,u.__h=[]),u.__s==null&&(u.__s=u.state),A.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=gt({},u.__s)),gt(u.__s,A.getDerivedStateFromProps(m,u.__s))),f=u.props,h=u.state,d)A.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(A.getDerivedStateFromProps==null&&m!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(m,S),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(m,u.__s,S)===!1||t.__v===n.__v){u.props=m,u.state=u.__s,t.__v!==n.__v&&(u.__d=!1),u.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(U){U&&(U.__=t)}),u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(m,u.__s,S),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,p)})}u.context=S,u.props=m,u.state=u.__s,(c=z.__r)&&c(t),u.__d=!1,u.__v=t,u.__P=e,c=u.render(u.props,u.state,u.context),u.state=u.__s,u.getChildContext!=null&&(r=gt(gt({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(p=u.getSnapshotBeforeUpdate(f,h)),T=c!=null&&c.type===Ge&&c.key==null?c.props.children:c,wa(e,Array.isArray(T)?T:[T],t,n,r,o,i,a,s,l),u.base=t.__e,t.__h=null,u.__h.length&&a.push(u),y&&(u.__E=u.__=null),u.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ed(n.__e,t,n,r,o,i,a,l);(c=z.diffed)&&c(t)}catch(U){t.__v=null,(l||i!=null)&&(t.__e=s,t.__h=!!l,i[i.indexOf(s)]=null),z.__e(U,t,n)}}function Aa(e,t){z.__c&&z.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){z.__e(r,n.__v)}})}function ed(e,t,n,r,o,i,a,s){var l,c,u,d=n.props,f=t.props,h=t.type,p=0;if(h==="svg"&&(o=!0),i!=null){for(;p<i.length;p++)if((l=i[p])&&(l===e||(h?l.localName==h:l.nodeType==3))){e=l,i[p]=null;break}}if(e==null){if(h===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,f.is&&f),i=null,s=!1}if(h===null)d===f||s&&e.data===f||(e.data=f);else{if(i=i&&gn.call(e.childNodes),c=(d=n.props||Qn).dangerouslySetInnerHTML,u=f.dangerouslySetInnerHTML,!s){if(i!=null)for(d={},p=0;p<e.attributes.length;p++)d[e.attributes[p].name]=e.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Qf(e,f,d,o,s),u)t.__k=[];else if(p=t.props.children,wa(e,Array.isArray(p)?p:[p],t,n,r,o&&h!=="foreignObject",i,a,i?i[0]:n.__k&&zt(n,0),s),i!=null)for(p=i.length;p--;)i[p]!=null&&ya(i[p]);s||("value"in f&&(p=f.value)!==void 0&&(p!==e.value||h==="progress"&&!p)&&tr(e,"value",p,d.value,!1),"checked"in f&&(p=f.checked)!==void 0&&p!==e.checked&&tr(e,"checked",p,d.checked,!1))}return e}function Fa(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){z.__e(r,n)}}function Ca(e,t,n){var r,o;if(z.unmount&&z.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Fa(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){z.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ca(r[o],t,typeof e.type!="function");n||e.__e==null||ya(e.__e),e.__e=e.__d=void 0}function td(e,t,n){return this.constructor(e,n)}function jt(e,t,n){var r,o,i;z.__&&z.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],bo(t,e=(!r&&n||t).__k=at(Ge,null,[e]),o||Qn,Qn,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?gn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Aa(i,e)}function wo(e,t){jt(e,t,wo)}function Na(e,t,n){var r,o,i,a=gt({},e.props);for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];return arguments.length>2&&(a.children=arguments.length>3?gn.call(arguments,2):n),bn(e.type,a,r||e.key,o||e.ref,null)}function So(e,t){var n={__c:t="__cC"+_a++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(yo)},this.sub=function(a){o.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}gn=ga.slice,z={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},ha=0,Xf=function(e){return e!=null&&e.constructor===void 0},Ke.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=gt({},this.state),typeof e=="function"&&(e=e(gt({},n),this.props)),e&&gt(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),yo(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),yo(this))},Ke.prototype.render=Ge,yn=[],va=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,er.__r=0,_a=0;var Bt,Ve,ka,Wt=0,To=[],La=z.__b,Pa=z.__r,Oa=z.diffed,Va=z.__c,Da=z.unmount;function wn(e,t){z.__h&&z.__h(Ve,e,Wt||t),Wt=0;var n=Ve.__H||(Ve.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function De(e){return Wt=1,Sn(Ua,e)}function Sn(e,t,n){var r=wn(Bt++,2);return r.t=e,r.__c||(r.__=[n?n(t):Ua(void 0,t),function(o){var i=r.t(r.__[0],o);r.__[0]!==i&&(r.__=[i,r.__[1]],r.__c.setState({}))}],r.__c=Ve),r.__}function ke(e,t){var n=wn(Bt++,3);!z.__s&&Ro(n.__H,t)&&(n.__=e,n.__H=t,Ve.__H.__h.push(n))}function Eo(e,t){var n=wn(Bt++,4);!z.__s&&Ro(n.__H,t)&&(n.__=e,n.__H=t,Ve.__h.push(n))}function yt(e){return Wt=5,Lt(function(){return{current:e}},[])}function nr(e,t,n){Wt=6,Eo(function(){typeof e=="function"?e(t()):e&&(e.current=t())},n==null?n:n.concat(e))}function Lt(e,t){var n=wn(Bt++,7);return Ro(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ze(e,t){return Wt=8,Lt(function(){return e},t)}function Ma(e){var t=Ve.context[e.__c],n=wn(Bt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ve)),t.props.value):e.__}function Ia(e,t){z.useDebugValue&&z.useDebugValue(t?t(e):e)}function nd(){To.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(rr),e.__H.__h.forEach(xo),e.__H.__h=[]}catch(t){e.__H.__h=[],z.__e(t,e.__v)}}),To=[]}z.__b=function(e){Ve=null,La&&La(e)},z.__r=function(e){Pa&&Pa(e),Bt=0;var t=(Ve=e.__c).__H;t&&(t.__h.forEach(rr),t.__h.forEach(xo),t.__h=[])},z.diffed=function(e){Oa&&Oa(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(To.push(t)!==1&&ka===z.requestAnimationFrame||((ka=z.requestAnimationFrame)||function(n){var r,o=function(){clearTimeout(i),$a&&cancelAnimationFrame(r),setTimeout(n)},i=setTimeout(o,100);$a&&(r=requestAnimationFrame(o))})(nd)),Ve=void 0},z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(rr),n.__h=n.__h.filter(function(r){return!r.__||xo(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],z.__e(r,n.__v)}}),Va&&Va(e,t)},z.unmount=function(e){Da&&Da(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(rr)}catch(n){z.__e(n,t.__v)}};var $a=typeof requestAnimationFrame=="function";function rr(e){var t=Ve;typeof e.__c=="function"&&e.__c(),Ve=t}function xo(e){var t=Ve;e.__c=e.__(),Ve=t}function Ro(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ua(e,t){return typeof t=="function"?t(e):t}function za(e,t){for(var n in t)e[n]=t[n];return e}function Ao(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Fo(e){this.props=e}function rd(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ao(this.props,o)}function r(o){return this.shouldComponentUpdate=n,at(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Fo.prototype=new Ke).isPureReactComponent=!0,Fo.prototype.shouldComponentUpdate=function(e,t){return Ao(this.props,e)||Ao(this.state,t)};var ja=z.__b;z.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ja&&ja(e)};var od=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Co(e){function t(n,r){var o=za({},n);return delete o.ref,e(o,(r=n.ref||r)&&(typeof r!="object"||"current"in r)?r:null)}return t.$$typeof=od,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ba=function(e,t){return e==null?null:dt(dt(e).map(t))},id={map:Ba,forEach:Ba,count:function(e){return e?dt(e).length:0},only:function(e){var t=dt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:dt},ad=z.__e;z.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}ad(e,t,n)};var Wa=z.unmount;function or(){this.__u=0,this.t=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function sd(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return at(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Tn(){this.u=null,this.o=null}z.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Wa&&Wa(e)},(or.prototype=new Ke).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ha(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var c=r.state.__e;r.__v.__k[0]=function d(f,h,p){return f&&(f.__v=null,f.__k=f.__k&&f.__k.map(function(y){return d(y,h,p)}),f.__c&&f.__c.__P===h&&(f.__e&&p.insertBefore(f.__e,f.__d),f.__c.__e=!0,f.__c.__P=p)),f}(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__e:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},or.prototype.componentWillUnmount=function(){this.t=[]},or.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function i(a,s,l){return a&&(a.__c&&a.__c.__H&&(a.__c.__H.__.forEach(function(c){typeof c.__c=="function"&&c.__c()}),a.__c.__H=null),(a=za({},a)).__c!=null&&(a.__c.__P===l&&(a.__c.__P=s),a.__c=null),a.__k=a.__k&&a.__k.map(function(c){return i(c,s,l)})),a}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&at(Ge,null,e.fallback);return o&&(o.__h=null),[at(Ge,null,t.__e?null:e.children),o]};var qa=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function ld(e){return this.getChildContext=function(){return e.context},e.children}function cd(e){var t=this,n=e.i;t.componentWillUnmount=function(){jt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),jt(at(ld,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ud(e,t){return at(cd,{__v:e,i:t})}(Tn.prototype=new Ke).__e=function(e){var t=this,n=Ha(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),qa(t,e,r)):o()};n?n(i):i()}},Tn.prototype.render=function(e){this.u=null,this.o=new Map;var t=dt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Tn.prototype.componentDidUpdate=Tn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){qa(e,n,t)})};var Ga=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,fd=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dd=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};function pd(e,t,n){return t.__k==null&&(t.textContent=""),jt(e,t),typeof n=="function"&&n(),e?e.__c:null}function hd(e,t,n){return wo(e,t),typeof n=="function"&&n(),e?e.__c:null}Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ka=z.event;function vd(){}function md(){return this.cancelBubble}function _d(){return this.defaultPrevented}z.event=function(e){return Ka&&(e=Ka(e)),e.persist=vd,e.isPropagationStopped=md,e.isDefaultPrevented=_d,e.nativeEvent=e};var Ya,Za={configurable:!0,get:function(){return this.class}},Xa=z.vnode;z.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){for(var o in r={},n){var i=n[o];o==="value"&&"defaultValue"in n&&i==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&i===!0?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!dd(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():fd.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),r[o]=i)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=dt(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=dt(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),e.props=r}t&&n.class!=n.className&&(Za.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Za)),e.$$typeof=Ga,Xa&&Xa(e)};var Ja=z.__r;z.__r=function(e){Ja&&Ja(e),Ya=e.__c};var gd={ReactCurrentDispatcher:{current:{readContext:function(e){return Ya.__n[e.__c].props.value}}}};function yd(e){return at.bind(null,e)}function Qa(e){return!!e&&e.$$typeof===Ga}function bd(e){return Qa(e)?Na.apply(null,arguments):e}function wd(e){return!!e.__k&&(jt(null,e),!0)}function Sd(e){return e&&(e.base||e.nodeType===1&&e)||null}var Td=function(e,t){return e(t)},Ed=function(e,t){return e(t)};var b={useState:De,useReducer:Sn,useEffect:ke,useLayoutEffect:Eo,useRef:yt,useImperativeHandle:nr,useMemo:Lt,useCallback:ze,useContext:Ma,useDebugValue:Ia,version:"17.0.2",Children:id,render:pd,hydrate:hd,unmountComponentAtNode:wd,createPortal:ud,createElement:at,createContext:So,createFactory:yd,cloneElement:bd,createRef:go,Fragment:Ge,isValidElement:Qa,findDOMNode:Sd,Component:Ke,PureComponent:Fo,memo:rd,forwardRef:Co,flushSync:Ed,unstable_batchedUpdates:Td,StrictMode:Ge,Suspense:or,SuspenseList:Tn,lazy:sd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gd};var Zn=Ae(require("obsidian"));var me=Ae(No());var Fs=Ae(As()),{__extends:q0,__assign:G0,__rest:K0,__decorate:Y0,__param:Z0,__metadata:X0,__awaiter:qt,__generator:Gt,__exportStar:J0,__createBinding:Q0,__values:eb,__read:tb,__spread:Cs,__spreadArrays:nb,__spreadArray:rb,__await:ob,__asyncGenerator:ib,__asyncDelegator:ab,__asyncValues:sb,__makeTemplateObject:lb,__importStar:cb,__importDefault:ub,__classPrivateFieldGet:fb,__classPrivateFieldSet:db}=Fs.default;var Ad=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function En(e,t){var n=Fd(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Fd(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Ad.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Cd=[".DS_Store","Thumbs.db"];function Lo(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){return[2,Nd(e)&&e.dataTransfer?Pd(e.dataTransfer,e.type):kd(e)]})})}function Nd(e){return!!e.dataTransfer}function kd(e){var t=Ld(e.target)?e.target.files?Po(e.target.files):[]:[];return t.map(function(n){return En(n)})}function Ld(e){return e!==null}function Pd(e,t){return qt(this,void 0,void 0,function(){var n,r;return Gt(this,function(o){switch(o.label){case 0:return e.items?(n=Po(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Od))]):[3,2];case 1:return r=o.sent(),[2,Ns(ks(r))];case 2:return[2,Ns(Po(e.files).map(function(i){return En(i)}))]}})})}function Ns(e){return e.filter(function(t){return Cd.indexOf(t.name)===-1})}function Po(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Od(e){if(typeof e.webkitGetAsEntry!="function")return Ls(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Ps(t):Ls(e)}function ks(e){return e.reduce(function(t,n){return Cs(t,Array.isArray(n)?ks(n):[n])},[])}function Ls(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=En(t);return Promise.resolve(n)}function Vd(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){return[2,e.isDirectory?Ps(e):Dd(e)]})})}function Ps(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var a=this;t.readEntries(function(s){return qt(a,void 0,void 0,function(){var l,c,u;return Gt(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=d.sent(),n(l),[3,4];case 3:return c=d.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(s.map(Vd)),o.push(u),i(),d.label=6;case 6:return[2]}})})},function(s){r(s)})}i()})}function Dd(e){return qt(this,void 0,void 0,function(){return Gt(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=En(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var Ms=Ae(Os());function Vs(e,t){return Ud(e)||$d(e,t)||Id(e,t)||Md()}function Md(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Id(e,t){if(!!e){if(typeof e=="string")return Ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ds(e,t)}}function Ds(e,t){(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 $d(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function Ud(e){if(Array.isArray(e))return e}var zd="file-invalid-type",jd="file-too-large",Bd="file-too-small",Wd="too-many-files";var Hd=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:zd,message:"File type must be ".concat(n)}},Is=function(t){return{code:jd,message:"File is larger than ".concat(t," bytes")}},$s=function(t){return{code:Bd,message:"File is smaller than ".concat(t," bytes")}},Us={code:Wd,message:"Too many files"};function Vo(e,t){var n=e.type==="application/x-moz-file"||(0,Ms.default)(e,t);return[n,n?null:Hd(t)]}function Do(e,t,n){if(xn(e.size))if(xn(t)&&xn(n)){if(e.size>n)return[!1,Is(n)];if(e.size<t)return[!1,$s(t)]}else{if(xn(t)&&e.size<t)return[!1,$s(t)];if(xn(n)&&e.size>n)return[!1,Is(n)]}return[!0,null]}function xn(e){return e!=null}function zs(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(s){var l=Vo(s,n),c=Vs(l,1),u=c[0],d=Do(s,r,o),f=Vs(d,1),h=f[0];return u&&h})}function Rn(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble!="undefined"?e.cancelBubble:!1}function An(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Mo(e){e.preventDefault()}function qd(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Gd(e){return e.indexOf("Edge/")!==-1}function js(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return qd(e)||Gd(e)}function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(s){return!Rn(r)&&s&&s.apply(void 0,[r].concat(i)),Rn(r)})}}var Kd=["children"],Yd=["open"],Zd=["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Xd=["refKey","onChange","onClick"];function Jd(e){return tp(e)||ep(e)||Bs(e)||Qd()}function Qd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ep(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tp(e){if(Array.isArray(e))return $o(e)}function Io(e,t){return op(e)||rp(e,t)||Bs(e,t)||np()}function np(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bs(e,t){if(!!e){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),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 $o(e,t){(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 rp(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function op(e){if(Array.isArray(e))return e}function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ws(Object(n),!0).forEach(function(r){Uo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e,t){if(e==null)return{};var n=ip(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function ip(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var cr=Co(function(e,t){var n=e.children,r=lr(e,Kd),o=ap(r),i=o.open,a=lr(o,Yd);return nr(t,function(){return{open:i}},[i]),b.createElement(Ge,null,n(Se(Se({},a),{},{open:i})))});cr.displayName="Dropzone";var Hs={disabled:!1,getFilesFromEvent:Lo,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};cr.defaultProps=Hs;cr.propTypes={children:me.default.func,accept:me.default.oneOfType([me.default.string,me.default.arrayOf(me.default.string)]),multiple:me.default.bool,preventDropOnDocument:me.default.bool,noClick:me.default.bool,noKeyboard:me.default.bool,noDrag:me.default.bool,noDragEventsBubbling:me.default.bool,minSize:me.default.number,maxSize:me.default.number,maxFiles:me.default.number,disabled:me.default.bool,getFilesFromEvent:me.default.func,onFileDialogCancel:me.default.func,onDragEnter:me.default.func,onDragLeave:me.default.func,onDragOver:me.default.func,onDrop:me.default.func,onDropAccepted:me.default.func,onDropRejected:me.default.func,validator:me.default.func};var ur=cr,qs={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function ap(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Se(Se({},Hs),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,y=t.onFileDialogCancel,m=t.preventDropOnDocument,w=t.noClick,S=t.noKeyboard,T=t.noDrag,A=t.noDragEventsBubbling,U=t.validator,V=yt(null),I=yt(null),B=Sn(sp,qs),Z=Io(B,2),W=Z[0],ee=Z[1],Te=W.isFocused,Q=W.isFileDialogActive,ne=W.draggedFiles,_e=ze(function(){I.current&&(ee({type:"openDialog"}),I.current.value=null,I.current.click())},[ee]),oe=function(){Q&&setTimeout(function(){if(I.current){var J=I.current.files;J.length||(ee({type:"closeDialog"}),typeof y=="function"&&y())}},300)};ke(function(){return window.addEventListener("focus",oe,!1),function(){window.removeEventListener("focus",oe,!1)}},[I,Q,y]);var ie=ze(function(P){!V.current||!V.current.isEqualNode(P.target)||(P.keyCode===32||P.keyCode===13)&&(P.preventDefault(),_e())},[V,I]),F=ze(function(){ee({type:"focus"})},[]),D=ze(function(){ee({type:"blur"})},[]),H=ze(function(){w||(js()?setTimeout(_e,0):_e())},[I,w]),ve=yt([]),C=function(J){V.current&&V.current.contains(J.target)||(J.preventDefault(),ve.current=[])};ke(function(){return m&&(document.addEventListener("dragover",Mo,!1),document.addEventListener("drop",C,!1)),function(){m&&(document.removeEventListener("dragover",Mo),document.removeEventListener("drop",C))}},[V,m]);var G=ze(function(P){P.preventDefault(),P.persist(),N(P),ve.current=[].concat(Jd(ve.current),[P.target]),An(P)&&Promise.resolve(o(P)).then(function(J){Rn(P)&&!A||(ee({draggedFiles:J,isDragActive:!0,type:"setDraggedFiles"}),c&&c(P))})},[o,c,A]),j=ze(function(P){P.preventDefault(),P.persist(),N(P);var J=An(P);if(J&&P.dataTransfer)try{P.dataTransfer.dropEffect="copy"}catch(fe){}return J&&d&&d(P),!1},[d,A]),_=ze(function(P){P.preventDefault(),P.persist(),N(P);var J=ve.current.filter(function(ye){return V.current&&V.current.contains(ye)}),fe=J.indexOf(P.target);fe!==-1&&J.splice(fe,1),ve.current=J,!(J.length>0)&&(ee({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),An(P)&&u&&u(P))},[V,u,A]),E=ze(function(P){P.preventDefault(),P.persist(),N(P),ve.current=[],An(P)&&Promise.resolve(o(P)).then(function(J){if(!(Rn(P)&&!A)){var fe=[],ye=[];J.forEach(function(Ce){var Rt=Vo(Ce,n),mt=Io(Rt,2),fn=mt[0],Nt=mt[1],kt=Do(Ce,a,i),$t=Io(kt,2),dn=$t[0],vo=$t[1],pn=U?U(Ce):null;if(fn&&dn&&!pn)fe.push(Ce);else{var hn=[Nt,vo];pn&&(hn=hn.concat(pn)),ye.push({file:Ce,errors:hn.filter(function(mo){return mo})})}}),(!s&&fe.length>1||s&&l>=1&&fe.length>l)&&(fe.forEach(function(Ce){ye.push({file:Ce,errors:[Us]})}),fe.splice(0)),ee({acceptedFiles:fe,fileRejections:ye,type:"setFiles"}),f&&f(fe,ye,P),ye.length>0&&p&&p(ye,P),fe.length>0&&h&&h(fe,P)}}),ee({type:"reset"})},[s,n,a,i,l,o,f,h,p,A,U]),R=function(J){return r?null:J},$=function(J){return S?null:R(J)},O=function(J){return T?null:R(J)},N=function(J){A&&J.stopPropagation()},le=Lt(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},J=P.refKey,fe=J===void 0?"ref":J,ye=P.onKeyDown,Ce=P.onFocus,Rt=P.onBlur,mt=P.onClick,fn=P.onDragEnter,Nt=P.onDragOver,kt=P.onDragLeave,$t=P.onDrop,dn=lr(P,Zd);return Se(Se(Uo({onKeyDown:$(st(ye,ie)),onFocus:$(st(Ce,F)),onBlur:$(st(Rt,D)),onClick:R(st(mt,H)),onDragEnter:O(st(fn,G)),onDragOver:O(st(Nt,j)),onDragLeave:O(st(kt,_)),onDrop:O(st($t,E))},fe,V),!r&&!S?{tabIndex:0}:{}),dn)}},[V,ie,F,D,H,G,j,_,E,S,T,r]),Re=ze(function(P){P.stopPropagation()},[]),Ee=Lt(function(){return function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},J=P.refKey,fe=J===void 0?"ref":J,ye=P.onChange,Ce=P.onClick,Rt=lr(P,Xd),mt=Uo({accept:n,multiple:s,type:"file",style:{display:"none"},onChange:R(st(ye,E)),onClick:R(st(Ce,Re)),autoComplete:"off",tabIndex:-1},fe,I);return Se(Se({},mt),Rt)}},[I,n,s,E,r]),we=ne.length,ge=we>0&&zs({files:ne,accept:n,minSize:a,maxSize:i,multiple:s,maxFiles:l}),he=we>0&&!ge;return Se(Se({},W),{},{isDragAccept:ge,isDragReject:he,isFocused:Te&&!r,getRootProps:le,getInputProps:Ee,rootRef:V,inputRef:I,open:R(_e)})}function sp(e,t){switch(t.type){case"focus":return Se(Se({},e),{},{isFocused:!0});case"blur":return Se(Se({},e),{},{isFocused:!1});case"openDialog":return Se(Se({},e),{},{isFileDialogActive:!0});case"closeDialog":return Se(Se({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return Se(Se({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return Se(Se({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Se({},qs);default:return e}}var pf=Ae(require("obsidian"));function Fn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fn=function(t){return typeof t}:Fn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function lp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cp(e,t,n){return t&&Gs(e.prototype,t),n&&Gs(e,n),e}function up(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){up(e,o,n[o])})}return e}function Ks(e,t){return fp(e)||dp(e,t)||pp()}function fp(e){if(Array.isArray(e))return e}function dp(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(l){o=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}function pp(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var Ys=function(){},zo={},Zs={},hp=null,Xs={mark:Ys,measure:Ys};try{typeof window!="undefined"&&(zo=window),typeof document!="undefined"&&(Zs=document),typeof MutationObserver!="undefined"&&(hp=MutationObserver),typeof performance!="undefined"&&(Xs=performance)}catch(e){}var vp=zo.navigator||{},Js=vp.userAgent,Qs=Js===void 0?"":Js,fr=zo,Me=Zs;var dr=Xs,Cb=!!fr.document,jo=!!Me.documentElement&&!!Me.head&&typeof Me.addEventListener=="function"&&typeof Me.createElement=="function",Nb=~Qs.indexOf("MSIE")||~Qs.indexOf("Trident/"),bt="___FONT_AWESOME___";var el="fa",tl="svg-inline--fa",mp="data-fa-i2svg";var kb=function(){try{return!0}catch(e){return!1}}();var nl=[1,2,3,4,5,6,7,8,9,10],_p=nl.concat([11,12,13,14,15,16,17,18,19,20]);var Pt={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Lb=["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",Pt.GROUP,Pt.SWAP_OPACITY,Pt.PRIMARY,Pt.SECONDARY].concat(nl.map(function(e){return"".concat(e,"x")})).concat(_p.map(function(e){return"w-".concat(e)})),rl=fr.FontAwesomeConfig||{};function gp(e){var t=Me.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function yp(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Me&&typeof Me.querySelector=="function"&&(ol=[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]],ol.forEach(function(e){var t=Ks(e,2),n=t[0],r=t[1],o=yp(gp(n));o!=null&&(rl[r]=o)}));var ol,bp={familyPrefix:el,replacementClass:tl,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},Bo=ce({},bp,rl);Bo.autoReplaceSvg||(Bo.observeMutations=!1);var je=ce({},Bo);fr.FontAwesomeConfig=je;var wt=fr||{};wt[bt]||(wt[bt]={});wt[bt].styles||(wt[bt].styles={});wt[bt].hooks||(wt[bt].hooks={});wt[bt].shims||(wt[bt].shims=[]);var pt=wt[bt],wp=[],Sp=function e(){Me.removeEventListener("DOMContentLoaded",e),Wo=1,wp.map(function(t){return t()})},Wo=!1;jo&&(Wo=(Me.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Me.readyState),Wo||Me.addEventListener("DOMContentLoaded",Sp));var Ho="pending",il="settled",pr="fulfilled",hr="rejected",Tp=function(){},al=typeof global!="undefined"&&typeof global.process!="undefined"&&typeof global.process.emit=="function",Ep=typeof setImmediate=="undefined"?setTimeout:setImmediate,Cn=[],qo;function xp(){for(var e=0;e<Cn.length;e++)Cn[e][0](Cn[e][1]);Cn=[],qo=!1}function vr(e,t){Cn.push([e,t]),qo||(qo=!0,Ep(xp,0))}function Rp(e,t){function n(o){Go(t,o)}function r(o){Nn(t,o)}try{e(n,r)}catch(o){r(o)}}function sl(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if(typeof o=="function"){n=pr;try{r=o(r)}catch(a){Nn(i,a)}}ll(i,r)||(n===pr&&Go(i,r),n===hr&&Nn(i,r))}function ll(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||Fn(t)==="object")){var r=t.then;if(typeof r=="function")return r.call(t,function(o){n||(n=!0,t===o?cl(e,o):Go(e,o))},function(o){n||(n=!0,Nn(e,o))}),!0}}catch(o){return n||Nn(e,o),!0}return!1}function Go(e,t){(e===t||!ll(e,t))&&cl(e,t)}function cl(e,t){e._state===Ho&&(e._state=il,e._data=t,vr(Ap,e))}function Nn(e,t){e._state===Ho&&(e._state=il,e._data=t,vr(Fp,e))}function ul(e){e._then=e._then.forEach(sl)}function Ap(e){e._state=pr,ul(e)}function Fp(e){e._state=hr,ul(e),!e._handled&&al&&global.process.emit("unhandledRejection",e._data,e)}function Cp(e){global.process.emit("rejectionHandled",e)}function Ye(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof Ye))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],Rp(e,this)}Ye.prototype={constructor:Ye,_state:Ho,_then:null,_data:void 0,_handled:!1,then:function(t,n){var r={owner:this,then:new this.constructor(Tp),fulfilled:t,rejected:n};return(n||t)&&!this._handled&&(this._handled=!0,this._state===hr&&al&&vr(Cp,this)),this._state===pr||this._state===hr?vr(sl,r):this._then.push(r),r.then},catch:function(t){return this.then(null,t)}};Ye.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new Ye(function(t,n){var r=[],o=0;function i(l){return o++,function(c){r[l]=c,--o||t(r)}}for(var a=0,s;a<e.length;a++)s=e[a],s&&typeof s.then=="function"?s.then(i(a),n):r[a]=s;o||t(r)})};Ye.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new Ye(function(t,n){for(var r=0,o;r<e.length;r++)o=e[r],o&&typeof o.then=="function"?o.then(t,n):t(o)})};Ye.resolve=function(e){return e&&Fn(e)==="object"&&e.constructor===Ye?e:new Ye(function(t){t(e)})};Ye.reject=function(e){return new Ye(function(t,n){n(e)})};var Kt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Np(e){if(!(!e||!jo)){var t=Me.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Me.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return Me.head.insertBefore(t,r),e}}var kp="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function mr(){for(var e=12,t="";e-- >0;)t+=kp[Math.random()*62|0];return t}function fl(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Lp(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(fl(e[n]),'" ')},"").trim()}function dl(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function pl(e){return e.size!==Kt.size||e.x!==Kt.x||e.y!==Kt.y||e.rotate!==Kt.rotate||e.flipX||e.flipY}function hl(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(a," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}var Ko={x:0,y:0,width:"100%",height:"100%"};function vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Pp(e){return e.tag==="g"?e.children:[e]}function Op(e){var t=e.children,n=e.attributes,r=e.main,o=e.mask,i=e.maskId,a=e.transform,s=r.width,l=r.icon,c=o.width,u=o.icon,d=hl({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:ce({},Ko,{fill:"white"})},h=l.children?{children:l.children.map(vl)}:{},p={tag:"g",attributes:ce({},d.inner),children:[vl(ce({tag:l.tag,attributes:ce({},l.attributes,d.path)},h))]},y={tag:"g",attributes:ce({},d.outer),children:[p]},m="mask-".concat(i||mr()),w="clip-".concat(i||mr()),S={tag:"mask",attributes:ce({},Ko,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,y]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:Pp(u)},S]};return t.push(T,{tag:"rect",attributes:ce({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(m,")")},Ko)}),{children:t,attributes:n}}function Vp(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=e.styles,a=dl(i);if(a.length>0&&(n.style=a),pl(o)){var s=hl({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:ce({},s.outer),children:[{tag:"g",attributes:ce({},s.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ce({},r.icon.attributes,s.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}function Dp(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(pl(a)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};o.style=dl(ce({},i,{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function Mp(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol,a=i===!0?"".concat(t,"-").concat(je.familyPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ce({},o,{id:a}),children:r}]}]}function Ip(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,f=e.watchable,h=f===void 0?!1:f,p=r.found?r:n,y=p.width,m=p.height,w=o==="fak",S=w?"":"fa-w-".concat(Math.ceil(y/m*16)),T=[je.replacementClass,i?"".concat(je.familyPrefix,"-").concat(i):"",S].filter(function(W){return d.classes.indexOf(W)===-1}).filter(function(W){return W!==""||!!W}).concat(d.classes).join(" "),A={children:[],attributes:ce({},d.attributes,{"data-prefix":o,"data-icon":i,class:T,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(m)})},U=w&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/m*16*.0625,"em")}:{};h&&(A.attributes[mp]=""),l&&A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(u||mr())},children:[l]});var V=ce({},A,{prefix:o,iconName:i,main:n,mask:r,maskId:c,transform:a,symbol:s,styles:ce({},U,d.styles)}),I=r.found&&n.found?Op(V):Vp(V),B=I.children,Z=I.attributes;return V.children=B,V.attributes=Z,s?Mp(V):Dp(V)}var ml=function(){},Pb=je.measurePerformance&&dr&&dr.mark&&dr.measure?dr:{mark:ml,measure:ml};var $p=function(t,n){return function(r,o,i,a){return t.call(n,r,o,i,a)}},Yo=function(t,n,r,o){var i=Object.keys(t),a=i.length,s=o!==void 0?$p(n,o):n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<a;l++)c=i[l],u=s(u,t[c],c,t);return u};function _l(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,o=r===void 0?!1:r,i=Object.keys(t).reduce(function(a,s){var l=t[s],c=!!l.icon;return c?a[l.iconName]=l.icon:a[s]=l,a},{});typeof pt.hooks.addPack=="function"&&!o?pt.hooks.addPack(e,i):pt.styles[e]=ce({},pt.styles[e]||{},i),e==="fas"&&_l("fa",t)}var gl=pt.styles,Up=pt.shims,zp={},jp={},Bp={},yl=function(){var t=function(o){return Yo(gl,function(i,a,s){return i[s]=Yo(a,o,{}),i},{})};zp=t(function(r,o,i){return o[3]&&(r[o[3]]=i),r}),jp=t(function(r,o,i){var a=o[2];return r[i]=i,a.forEach(function(s){r[s]=i}),r});var n="far"in gl;Bp=Yo(Up,function(r,o){var i=o[0],a=o[1],s=o[2];return a==="far"&&!n&&(a="fas"),r[i]={prefix:a,iconName:s},r},{})};yl();var Ob=pt.styles;function bl(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function wl(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?fl(e):"<".concat(t," ").concat(Lp(r),">").concat(i.map(wl).join(""),"</").concat(t,">")}var Wp=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(r,o){var i=o.toLowerCase().split("-"),a=i[0],s=i.slice(1).join("-");if(a&&s==="h")return r.flipX=!0,r;if(a&&s==="v")return r.flipY=!0,r;if(s=parseFloat(s),isNaN(s))return r;switch(a){case"grow":r.size=r.size+s;break;case"shrink":r.size=r.size-s;break;case"left":r.x=r.x-s;break;case"right":r.x=r.x+s;break;case"up":r.y=r.y-s;break;case"down":r.y=r.y+s;break;case"rotate":r.rotate=r.rotate+s;break}return r},n):n};function Zo(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=new Error().stack}Zo.prototype=Object.create(Error.prototype);Zo.prototype.constructor=Zo;var _r={fill:"currentColor"},Sl={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},Vb={tag:"path",attributes:ce({},_r,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},Xo=ce({},Sl,{attributeName:"opacity"}),Db={tag:"circle",attributes:ce({},_r,{cx:"256",cy:"364",r:"28"}),children:[{tag:"animate",attributes:ce({},Sl,{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ce({},Xo,{values:"1;0;1;1;0;1;"})}]},Mb={tag:"path",attributes:ce({},_r,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:[{tag:"animate",attributes:ce({},Xo,{values:"1;0;0;0;0;1;"})}]},Ib={tag:"path",attributes:ce({},_r,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ce({},Xo,{values:"0;0;1;1;0;0;"})}]};var $b=pt.styles;function Tl(e){var t=e[0],n=e[1],r=e.slice(4),o=Ks(r,1),i=o[0],a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(je.familyPrefix,"-").concat(Pt.GROUP)},children:[{tag:"path",attributes:{class:"".concat(je.familyPrefix,"-").concat(Pt.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(je.familyPrefix,"-").concat(Pt.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:a}}var Ub=pt.styles;var Hp=`svg:not(:root).svg-inline--fa {
overflow: visible;
}
.svg-inline--fa {
display: inline-block;
font-size: inherit;
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.225em;
}
.svg-inline--fa.fa-w-1 {
width: 0.0625em;
}
.svg-inline--fa.fa-w-2 {
width: 0.125em;
}
.svg-inline--fa.fa-w-3 {
width: 0.1875em;
}
.svg-inline--fa.fa-w-4 {
width: 0.25em;
}
.svg-inline--fa.fa-w-5 {
width: 0.3125em;
}
.svg-inline--fa.fa-w-6 {
width: 0.375em;
}
.svg-inline--fa.fa-w-7 {
width: 0.4375em;
}
.svg-inline--fa.fa-w-8 {
width: 0.5em;
}
.svg-inline--fa.fa-w-9 {
width: 0.5625em;
}
.svg-inline--fa.fa-w-10 {
width: 0.625em;
}
.svg-inline--fa.fa-w-11 {
width: 0.6875em;
}
.svg-inline--fa.fa-w-12 {
width: 0.75em;
}
.svg-inline--fa.fa-w-13 {
width: 0.8125em;
}
.svg-inline--fa.fa-w-14 {
width: 0.875em;
}
.svg-inline--fa.fa-w-15 {
width: 0.9375em;
}
.svg-inline--fa.fa-w-16 {
width: 1em;
}
.svg-inline--fa.fa-w-17 {
width: 1.0625em;
}
.svg-inline--fa.fa-w-18 {
width: 1.125em;
}
.svg-inline--fa.fa-w-19 {
width: 1.1875em;
}
.svg-inline--fa.fa-w-20 {
width: 1.25em;
}
.svg-inline--fa.fa-pull-left {
margin-right: 0.3em;
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: 0.3em;
width: auto;
}
.svg-inline--fa.fa-border {
height: 1.5em;
}
.svg-inline--fa.fa-li {
width: 2em;
}
.svg-inline--fa.fa-fw {
width: 1.25em;
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers-text {
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-transform-origin: center center;
transform-origin: center center;
}
.fa-layers-counter {
background-color: #ff253a;
border-radius: 1em;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: #fff;
height: 1.5em;
line-height: 1;
max-width: 5em;
min-width: 1.5em;
overflow: hidden;
padding: 0.25em;
right: 0;
text-overflow: ellipsis;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: 0;
right: 0;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom right;
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: 0;
left: 0;
right: auto;
top: auto;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: bottom left;
transform-origin: bottom left;
}
.fa-layers-top-right {
right: 0;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top right;
transform-origin: top right;
}
.fa-layers-top-left {
left: 0;
right: auto;
top: 0;
-webkit-transform: scale(0.25);
transform: scale(0.25);
-webkit-transform-origin: top left;
transform-origin: top left;
}
.fa-lg {
font-size: 1.3333333333em;
line-height: 0.75em;
vertical-align: -0.0667em;
}
.fa-xs {
font-size: 0.75em;
}
.fa-sm {
font-size: 0.875em;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: 2.5em;
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: -2em;
position: absolute;
text-align: center;
width: 2em;
line-height: inherit;
}
.fa-border {
border: solid 0.08em #eee;
border-radius: 0.1em;
padding: 0.2em 0.25em 0.15em;
}
.fa-pull-left {
float: left;
}
.fa-pull-right {
float: right;
}
.fa.fa-pull-left,
.fas.fa-pull-left,
.far.fa-pull-left,
.fal.fa-pull-left,
.fab.fa-pull-left {
margin-right: 0.3em;
}
.fa.fa-pull-right,
.fas.fa-pull-right,
.far.fa-pull-right,
.fal.fa-pull-right,
.fab.fa-pull-right {
margin-left: 0.3em;
}
.fa-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
.fa-pulse {
-webkit-animation: fa-spin 1s infinite steps(8);
animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.fa-rotate-90 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.fa-rotate-180 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}
.fa-rotate-270 {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
-webkit-transform: rotate(270deg);
transform: rotate(270deg);
}
.fa-flip-horizontal {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
}
.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(1, -1);
transform: scale(1, -1);
}
.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
-webkit-transform: scale(-1, -1);
transform: scale(-1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical,
:root .fa-flip-both {
-webkit-filter: none;
filter: none;
}
.fa-stack {
display: inline-block;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: #fff;
}
.sr-only {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: 0.4;
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: 1;
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.fad.fa-inverse {
color: #fff;
}`;function qp(){var e=el,t=tl,n=je.familyPrefix,r=je.replacementClass,o=Hp;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}var Gp=function(){function e(){lp(this,e),this.definitions={}}return cp(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(s){n.definitions[s]=ce({},n.definitions[s]||{},a[s]),_l(s,a[s]),yl()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var o=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(o).map(function(i){var a=o[i],s=a.prefix,l=a.iconName,c=a.icon;n[s]||(n[s]={}),n[s][l]=c}),n}}]),e}();function Kp(){je.autoAddCss&&!xl&&(Np(qp()),xl=!0)}function Yp(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return wl(r)})}}),Object.defineProperty(e,"node",{get:function(){if(!!jo){var r=Me.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function El(e){var t=e.prefix,n=t===void 0?"fa":t,r=e.iconName;if(!!r)return bl(Xp.definitions,n,r)||bl(pt.styles,n,r)}function Zp(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:El(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:El(o||{})),e(r,ce({},n,{mask:o}))}}var Xp=new Gp;var xl=!1;var gr={transform:function(t){return Wp(t)}},Rl=Zp(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Kt:n,o=t.symbol,i=o===void 0?!1:o,a=t.mask,s=a===void 0?null:a,l=t.maskId,c=l===void 0?null:l,u=t.title,d=u===void 0?null:u,f=t.titleId,h=f===void 0?null:f,p=t.classes,y=p===void 0?[]:p,m=t.attributes,w=m===void 0?{}:m,S=t.styles,T=S===void 0?{}:S;if(!!e){var A=e.prefix,U=e.iconName,V=e.icon;return Yp(ce({type:"icon"},e),function(){return Kp(),je.autoA11y&&(d?w["aria-labelledby"]="".concat(je.replacementClass,"-title-").concat(h||mr()):(w["aria-hidden"]="true",w.focusable="false")),Ip({icons:{main:Tl(V),mask:s?Tl(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:A,iconName:U,transform:ce({},Kt,r),symbol:i,title:d,maskId:c,titleId:h,extra:{attributes:w,styles:T,classes:y}})})}});var de=Ae(No());function kn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?kn=function(t){return typeof t}:kn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Al(Object(n),!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jp(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Fl(e,t){if(e==null)return{};var n=Jp(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function Qo(e){return Qp(e)||eh(e)||th()}function Qp(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function eh(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function th(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function nh(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,s=e.listItem,l=e.flip,c=e.size,u=e.rotation,d=e.pull,f=(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":s,"fa-flip-horizontal":l==="horizontal"||l==="both","fa-flip-vertical":l==="vertical"||l==="both"},Yt(t,"fa-".concat(c),typeof c!="undefined"&&c!==null),Yt(t,"fa-rotate-".concat(u),typeof u!="undefined"&&u!==null&&u!==0),Yt(t,"fa-pull-".concat(d),typeof d!="undefined"&&d!==null),Yt(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(f).map(function(h){return f[h]?h:null}).filter(function(h){return h})}function rh(e){return e=e-0,e===e}function Cl(e){return rh(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}function oh(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ih(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=Cl(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[oh(o)]=i:t[o]=i,t},{})}function Nl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Nl(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=ih(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[Cl(c)]=u}return l},{attrs:{}}),i=n.style,a=i===void 0?{}:i,s=Fl(n,["style"]);return o.attrs.style=Jo({},o.attrs.style,{},a),e.apply(void 0,[t.tag,Jo({},o.attrs,{},s)].concat(Qo(r)))}var kl=!1;try{kl=!0}catch(e){}function ah(){if(!kl&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ll(e){if(e&&kn(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(gr.icon)return gr.icon(e);if(e===null)return null;if(e&&kn(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function ei(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Yt({},e,t):{}}function lt(e){var t=e.forwardedRef,n=Fl(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=Ll(r),u=ei("classes",[].concat(Qo(nh(n)),Qo(a.split(" ")))),d=ei("transform",typeof n.transform=="string"?gr.transform(n.transform):n.transform),f=ei("mask",Ll(o)),h=Rl(c,Jo({},u,{},d,{},f,{symbol:i,title:s,titleId:l}));if(!h)return ah("Could not find icon",c),null;var p=h.abstract,y={ref:t};return Object.keys(n).forEach(function(m){lt.defaultProps.hasOwnProperty(m)||(y[m]=n[m])}),sh(p[0],y)}lt.displayName="FontAwesomeIcon";lt.propTypes={border:de.default.bool,className:de.default.string,mask:de.default.oneOfType([de.default.object,de.default.array,de.default.string]),fixedWidth:de.default.bool,inverse:de.default.bool,flip:de.default.oneOf(["horizontal","vertical","both"]),icon:de.default.oneOfType([de.default.object,de.default.array,de.default.string]),listItem:de.default.bool,pull:de.default.oneOf(["right","left"]),pulse:de.default.bool,rotation:de.default.oneOf([0,90,180,270]),size:de.default.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:de.default.bool,symbol:de.default.oneOfType([de.default.bool,de.default.string]),title:de.default.string,transform:de.default.oneOfType([de.default.string,de.default.object]),swapOpacity:de.default.bool};lt.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var sh=Nl.bind(null,b.createElement);var ti=Ae(Ul()),ni=Ae(Kl()),ri=Ae(nc()),oi=Ae(uc()),ii=Ae(gc()),ai=Ae(Rc()),si=Ae(Oc()),Vc=e=>b.createElement("svg",_t(Ue({},e),{viewBox:"64 -65 897 897"}),b.createElement("g",null,b.createElement("path",{d:`M888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0zM732 347h-442q-14 0 -25 10.5t-11 25.5v0q0 15 11 25.5t25 10.5h442q14 0 25 -10.5t11 -25.5v0
q0 -15 -11 -25.5t-25 -10.5z`,fill:"var(--interactive-accent)"}))),Dc=e=>b.createElement("svg",_t(Ue({},e),{viewBox:"64 -65 897 897"}),b.createElement("g",null,b.createElement("path",{d:`M888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0zM732 420h-184v183q0 15 -10.5 25.5t-25.5 10.5v0q-14 0 -25 -10.5t-11 -25.5v-183h-184
q-15 0 -25.5 -11t-10.5 -25v0q0 -15 10.5 -25.5t25.5 -10.5h184v-183q0 -15 11 -25.5t25 -10.5v0q15 0 25.5 10.5t10.5 25.5v183h184q15 0 25.5 10.5t10.5 25.5v0q0 14 -10.5 25t-25.5 11z`,fill:"var(--interactive-accent)"})));var Mc=e=>b.createElement("svg",_t(Ue({},e),{viewBox:"64 -65 897 897"}),b.createElement("g",null,b.createElement("path",{d:`M717.5 589.5q-10.5 10.5 -25.5 10.5t-26 -10l-154 -155l-154 155q-11 10 -26 10t-25.5 -10.5t-10.5 -25.5t11 -25l154 -155l-154 -155q-11 -10 -11 -25t10.5 -25.5t25.5 -10.5t26 10l154 155l154 -155q11 -10 26 -10t25.5 10.5t10.5 25t-11 25.5l-154 155l154 155
q11 10 11 25t-10.5 25.5zM888 760v0v0v-753v0h-752v0v753v0h752zM888 832h-752q-30 0 -51 -21t-21 -51v-753q0 -29 21 -50.5t51 -21.5h753q29 0 50.5 21.5t21.5 50.5v753q0 30 -21.5 51t-51.5 21v0z`,fill:"var(--interactive-accent)"}))),Ic='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',$c='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 50 50" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M 21 3 C 11.621094 3 4 10.621094 4 20 C 4 29.378906 11.621094 37 21 37 C 24.710938 37 28.140625 35.804688 30.9375 33.78125 L 44.09375 46.90625 L 46.90625 44.09375 L 33.90625 31.0625 C 36.460938 28.085938 38 24.222656 38 20 C 38 10.621094 30.378906 3 21 3 Z M 21 5 C 29.296875 5 36 11.703125 36 20 C 36 28.296875 29.296875 35 21 35 C 12.703125 35 6 28.296875 6 20 C 6 11.703125 12.703125 5 21 5 Z M 13 12 L 13 18 L 15.28125 15.71875 L 19.5625 20 L 15.28125 24.28125 L 13 22 L 13 28 L 19 28 L 16.71875 25.71875 L 21 21.4375 L 25.28125 25.71875 L 23 28 L 29 28 L 29 22 L 26.71875 24.28125 L 22.4375 20 L 26.71875 15.71875 L 29 18 L 29 12 L 23 12 L 25.28125 14.28125 L 21 18.5625 L 16.71875 14.28125 L 19 12 Z"/></svg>',Uc='<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>';var Zt=Ae(require("obsidian")),St=class extends Zt.Modal{constructor(t,n,r){super(t);this.file=n,this.action=r}onOpen(){let{contentEl:t}=this,n=this,r;this.action==="rename"?r="Rename: Provide a New Name":this.action==="create folder"?r="Create Folder: Provide Name":this.action==="create note"&&(r="Create Note: Provide Name"),t.createEl("div",{text:r}).addClass("modal-title");let i=t.createEl("input");i.style.cssText="width: 100%; height: 2.5em; margin-bottom: 15px;",this.action==="rename"&&(this.file.name.endsWith(".md")?i.value=this.file.name.substring(0,this.file.name.lastIndexOf(".")):i.value=this.file.name),i.focus();let a;this.action==="rename"?a="Change Name":this.action==="create folder"?a="Create Folder":this.action==="create note"&&(a="Create Note");let s=t.createEl("button",{text:a}),l=t.createEl("button",{text:"Cancel"});l.style.cssText="float: right;",l.addEventListener("click",()=>{n.close()});let c=()=>Fe(this,null,function*(){let u=i.value;if(this.action==="rename")this.file.name.endsWith(".md")&&(u=u+".md"),this.app.fileManager.renameFile(this.file,this.file.parent.path+"/"+u);else if(this.action==="create folder")this.app.vault.createFolder(this.file.path+"/"+u);else if(this.action==="create note"){let d=yield this.app.fileManager.createNewMarkdownFile(this.file,u);this.app.workspace.activeLeaf.setViewState({type:"markdown",state:{file:d.path}})}n.close()});s.addEventListener("click",c),i.addEventListener("keydown",u=>{u.key==="Enter"&&c()})}onClose(){let{contentEl:t}=this;t.empty()}},Ln=class extends Zt.FuzzySuggestModal{constructor(t,n){super(t);this.fileOrFolderToMove=n}getItemText(t){return t.path}getItems(){return lh(this.app)}onChooseItem(t,n){this.app.vault.rename(this.fileOrFolderToMove,t.path+"/"+this.fileOrFolderToMove.name)}};function lh(e){let t=[],n=e.vault.getRoot();t.push(n);function r(o){for(let i of o.children)if(i instanceof Zt.TFolder){let a=i;t.push(a),a.children&&r(a)}}return r(n),t}var Tt=Ae(require("obsidian")),Xt=(e,t,n)=>{var r=[],o=n?!0:t.settings.showFilesFromSubFolders;i(e,t.app);function i(a,s){var l=s.vault.getAbstractFileByPath(a);if(l instanceof Tt.TFolder&&l.children)for(let c of l.children)c instanceof Tt.TFile&&r.push(c),c instanceof Tt.TFolder&&o&&i(c.path,s)}return r},li=e=>{let t={folder:e,children:[]};function n(r,o){if(!!(r&&r.children)){for(let i of r.children)if(i instanceof Tt.TFolder){let a=i,s={folder:a,children:[]};o.children.push(s),a.children&&n(a,s)}}}return n(e,t),t},ci=e=>{let t={},n;return e.settings.folderCountOption==="notes"?n=e.app.vault.getMarkdownFiles():n=e.app.vault.getFiles(),n.forEach(r=>{for(let o=r.parent;o!=null;o=o.parent)t[o.path]=1+(t[o.path]||0)}),t},zc=e=>{let t=e.children;for(let n of t)if(n instanceof Tt.TFolder)return!0;return!1},yr=e=>{var t=e.lastIndexOf(".");return{fileName:e.substring(0,t),extension:e.substring(t+1)}},br=(e,t)=>{if(e==="/")return t.vault.getName();let n=e.lastIndexOf("/");return n!==-1?e.substring(n+1):e},wr=(e,t)=>{var n;return(n=t.internalPlugins.plugins[e])==null?void 0:n._loaded},jc=(e,t,n)=>{n.workspace.openLinkText(t,"/",Tt.Keymap.isModifier(e,"Mod")||e.button===1)};function ch(e){return!!e&&typeof e.then=="function"}var xe=ch;function uh(e,t){if(e!=null)return e;throw new Error(t??"Got unexpected null or undefined")}var ue=uh,ui=class{},fh=new ui,fi={valueMaybe(){},valueOrThrow(){throw new Error(`Loadable expected value, but in "${this.state}" state`)},errorMaybe(){},errorOrThrow(){throw new Error(`Loadable expected error, but in "${this.state}" state`)},promiseMaybe(){},promiseOrThrow(){throw new Error(`Loadable expected promise, but in "${this.state}" state`)},is(e){return e.state===this.state&&e.contents===this.contents},map(e){if(this.state==="hasError")return this;if(this.state==="hasValue")try{let n=e(this.contents);return xe(n)?Jt(n.then(r=>({__value:r}))):di(n)}catch(n){return xe(n)?Jt(n.next(()=>e(this.contents))):pi(n)}if(this.state==="loading")return Jt(this.contents.then(n=>({__value:e(n.__value)})).catch(n=>{if(xe(n))return n.then(()=>e(this.contents));throw n}));throw new Error("Invalid Loadable state")}};function di(e){return Object.freeze({state:"hasValue",contents:e,...fi,getValue(){return this.contents},toPromise(){return Promise.resolve(this.contents)},valueMaybe(){return this.contents},valueOrThrow(){return this.contents}})}function pi(e){return Object.freeze({state:"hasError",contents:e,...fi,getValue(){throw this.contents},toPromise(){return Promise.reject(this.contents)},errorMaybe(){return this.contents},errorOrThrow(){return this.contents}})}function Jt(e){return Object.freeze({state:"loading",contents:e,...fi,getValue(){throw this.contents.then(({__value:t})=>t)},toPromise(){return this.contents.then(({__value:t})=>t)},promiseMaybe(){return this.contents.then(({__value:t})=>t)},promiseOrThrow(){return this.contents.then(({__value:t})=>t)}})}function dh(){return Jt(new Promise(()=>{}))}function ph(e){return e.every(t=>t.state==="hasValue")?di(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?pi(ue(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Jt(Promise.all(e.map(t=>t.contents)).then(t=>({__value:t})))}var Pn={loadableWithValue:di,loadableWithError:pi,loadableWithPromise:Jt,loadableLoading:dh,loadableAll:ph,Canceled:ui,CANCELED:fh},hi,Bc=(hi=b.useMutableSource)!==null&&hi!==void 0?hi:b.unstable_useMutableSource;function hh(){return Bc&&!(typeof window!="undefined"&&window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE)}var Wc={mutableSourceExists:hh,useMutableSource:Bc},{mutableSourceExists:vh}=Wc,vi=new Map().set("recoil_hamt_2020",!0).set("recoil_memory_managament_2020",!0).set("recoil_suppress_rerender_in_callback",!0);function mi(e){var t;return e==="recoil_early_rendering_2021"&&!vh()?!1:(t=vi.get(e))!==null&&t!==void 0?t:!1}mi.setPass=e=>{vi.set(e,!0)};mi.setFail=e=>{vi.set(e,!1)};var pe=mi;function mh(e,t,{error:n}={}){return null}var _h=mh,ht=_h;function gh(e,t){let n=new Set(e);return n.add(t),n}function yh(e,t){let n=new Set(e);return n.delete(t),n}function bh(e,t,n){let r=new Map(e);return r.set(t,n),r}function wh(e,t,n){let r=new Map(e);return r.set(t,n(r.get(t))),r}function Sh(e,t){let n=new Map(e);return n.delete(t),n}function Th(e,t){let n=new Map(e);return t.forEach(r=>n.delete(r)),n}var Hc={setByAddingToSet:gh,setByDeletingFromSet:yh,mapBySettingInMap:bh,mapByUpdatingInMap:wh,mapByDeletingFromMap:Sh,mapByDeletingMultipleFromMap:Th};function*Eh(e,t){let n=0;for(let r of e)t(r,n++)&&(yield r)}var qc=Eh;function xh(e,t){return function*(){let n=0;for(let r of e)yield t(r,n++)}()}var Gc=xh;function Rh(e,...t){}var Ah=Rh,_i=Ah;function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sr=class{constructor(t){ae(this,"key",void 0),this.key=t}},gi=class extends Sr{},yi=class extends Sr{};function Fh(e){return e instanceof gi||e instanceof yi}var Tr={AbstractRecoilValue:Sr,RecoilState:gi,RecoilValueReadOnly:yi,isRecoilValue:Fh},Ch=Tr.AbstractRecoilValue,Nh=Tr.RecoilState,kh=Tr.RecoilValueReadOnly,Lh=Tr.isRecoilValue,Ot=Object.freeze({__proto__:null,AbstractRecoilValue:Ch,RecoilState:Nh,RecoilValueReadOnly:kh,isRecoilValue:Lh}),bi=class{},Ph=new bi,Kc=class extends Error{constructor(t){super(`Tried to set the value of Recoil selector ${t} using an updater function, but it is an async selector in a pending or error state; this is not supported.`)}},Vt=new Map,wi=new Map;function Oh(e){return Gc(e,t=>ue(wi.get(t)))}function Vh(e){if(Vt.has(e.key)){let n=`Duplicate atom key "${e.key}". This is a FATAL ERROR in
production. But it is safe to ignore this warning if it occurred because of
hot module replacement.`;console.warn(n)}Vt.set(e.key,e);let t=e.set==null?new Ot.RecoilValueReadOnly(e.key):new Ot.RecoilState(e.key);return wi.set(e.key,t),t}var Si=class extends Error{};function Dh(e){let t=Vt.get(e);if(t==null)throw new Si(`Missing definition for RecoilValue: "${e}""`);return t}function Mh(e){return Vt.get(e)}var Er=new Map;function Ih(e){var t;if(!pe("recoil_memory_managament_2020"))return;let n=Vt.get(e);if(n==null||(t=n.shouldDeleteConfigOnRelease)===null||t===void 0?void 0:t.call(n)){var r;Vt.delete(e),(r=Yc(e))===null||r===void 0||r(),Er.delete(e)}}function $h(e,t){!pe("recoil_memory_managament_2020")||(t===void 0?Er.delete(e):Er.set(e,t))}function Yc(e){return Er.get(e)}var rt={nodes:Vt,recoilValues:wi,registerNode:Vh,getNode:Dh,getNodeMaybe:Mh,deleteNodeConfigIfPossible:Ih,setConfigDeletionHandler:$h,getConfigDeletionHandler:Yc,recoilValuesForKeys:Oh,NodeMissingError:Si,DefaultValue:bi,DEFAULT_VALUE:Ph,RecoilValueNotReady:Kc},Ti=class{};function Uh(){return new Ti}var xr={RetentionZone:Ti,retentionZone:Uh},{setByAddingToSet:zh}=Hc,{getNode:Rr,getNodeMaybe:jh,recoilValuesForKeys:Zc}=rt,{RetentionZone:Xc}=xr,Bh=Object.freeze(new Set),Jc=class extends Error{};function Wh(e,t,n){if(!pe("recoil_memory_managament_2020"))return()=>{};let{nodesRetainedByZone:r}=e.getState().retention;function o(i){let a=r.get(i);a||r.set(i,a=new Set),a.add(t)}if(n instanceof Xc)o(n);else if(Array.isArray(n))for(let i of n)o(i);return()=>{if(!pe("recoil_memory_managament_2020"))return;let i=e.getState().retention.nodesRetainedByZone;function a(s){let l=i.get(s);l&&l.delete(t),l&&l.size===0&&i.delete(s)}if(n instanceof Xc)a(n);else if(Array.isArray(n))for(let s of n)a(s)}}function Ei(e,t,n,r){let o=e.getState();if(o.nodeCleanupFunctions.has(n))return;let i=Rr(n),a=Wh(e,n,i.retainedBy),s=i.init(e,t,r);o.nodeCleanupFunctions.set(n,()=>{s(),a()})}function Hh(e,t){var n;let r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function qh(e,t,n){return Ei(e,t,n,"get"),Rr(n).get(e,t)}function Qc(e,t,n){return Rr(n).peek(e,t)}function Gh(e,t,n){var r;let o=jh(t);return o==null||(r=o.invalidate)===null||r===void 0||r.call(o,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:zh(e.dirtyAtoms,t)}}function Kh(e,t,n,r){let o=Rr(n);if(o.set==null)throw new Jc(`Attempt to set read-only RecoilValue: ${n}`);let i=o.set;return Ei(e,t,n,"set"),i(e,t,r)}function Yh(e,t,n){var r,o,i;let a=e.getState(),s=e.getGraph(t.version),l=a.knownAtoms.has(n)?"atom":a.knownSelectors.has(n)?"selector":void 0,c=qc(eu(e,t,new Set([n])),u=>u!==n);return{loadable:Qc(e,t,n),isActive:a.knownAtoms.has(n)||a.knownSelectors.has(n),isSet:l==="selector"?!1:t.atomValues.has(n),isModified:t.dirtyAtoms.has(n),type:l,deps:Zc((r=s.nodeDeps.get(n))!==null&&r!==void 0?r:[]),subscribers:{nodes:Zc(c),components:Gc((o=(i=a.nodeToComponentSubscriptions.get(n))===null||i===void 0?void 0:i.values())!==null&&o!==void 0?o:[],([u])=>({name:u}))}}}function eu(e,t,n){let r=new Set,o=Array.from(n),i=e.getGraph(t.version);for(let s=o.pop();s;s=o.pop()){var a;r.add(s);let l=(a=i.nodeToNodeSubscriptions.get(s))!==null&&a!==void 0?a:Bh;for(let c of l)r.has(c)||o.push(c)}return r}var Qt={getNodeLoadable:qh,peekNodeLoadable:Qc,setNodeValue:Kh,cleanUpNode:Hh,setUnvalidatedAtomValue_DEPRECATED:Gh,peekNodeInfo:Yh,getDownstreamNodes:eu,initializeNodeIfNewToStore:Ei},{CANCELED:Zh}=Pn,{getDownstreamNodes:Xh,getNodeLoadable:tu,setNodeValue:Jh}=Qt,{getNodeMaybe:nu}=rt,{DefaultValue:xi,RecoilValueNotReady:Qh}=rt,{AbstractRecoilValue:ev,RecoilState:tv,RecoilValueReadOnly:nv,isRecoilValue:rv}=Ot;function ov(e,{key:t},n=e.getState().currentTree){var r,o;let i=e.getState();n.version===i.currentTree.version||n.version===((r=i.nextTree)===null||r===void 0?void 0:r.version)||n.version===((o=i.previousTree)===null||o===void 0?void 0:o.version)||ht("Tried to read from a discarded tree");let a=tu(e,n,t);return a.state==="loading"&&a.contents.catch(()=>Zh),a}function iv(e,t){let n=e.clone();return t.forEach((r,o)=>{r.state==="hasValue"&&r.contents instanceof xi?n.delete(o):n.set(o,r)}),n}function av(e,t,{key:n},r){if(typeof r=="function"){let o=tu(e,t,n);if(o.state==="loading")throw new Qh(n);if(o.state==="hasError")throw o.contents;return r(o.contents)}else return r}function sv(e,t,n){if(n.type==="set"){let{recoilValue:o,valueOrUpdater:i}=n,a=av(e,t,o,i),s=Jh(e,t,o.key,a);for(let[l,c]of s.entries())Ri(t,l,c)}else if(n.type==="setLoadable"){let{recoilValue:{key:o},loadable:i}=n;Ri(t,o,i)}else if(n.type==="markModified"){let{recoilValue:{key:o}}=n;t.dirtyAtoms.add(o)}else if(n.type==="setUnvalidated"){var r;let{recoilValue:{key:o},unvalidatedValue:i}=n,a=nu(o);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(o),t.nonvalidatedAtoms.set(o,i),t.dirtyAtoms.add(o)}else ht(`Unknown action ${n.type}`)}function Ri(e,t,n){n.state==="hasValue"&&n.contents instanceof xi?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function ru(e,t){e.replaceState(n=>{let r=ou(n);for(let o of t)sv(e,r,o);return Ai(e,r),r})}function Ar(e,t){if(On.length){let n=On[On.length-1],r=n.get(e);r||n.set(e,r=[]),r.push(t)}else ru(e,[t])}var On=[];function lv(){let e=new Map;return On.push(e),()=>{for(let[n,r]of e)ru(n,r);On.pop()!==e&&ht("Incorrect order of batch popping")}}function ou(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Ai(e,t){let n=Xh(e,t,t.dirtyAtoms);for(let i of n){var r,o;(r=nu(i))===null||r===void 0||(o=r.invalidate)===null||o===void 0||o.call(r,t)}}function iu(e,t,n){Ar(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function cv(e,t,n){if(n instanceof xi)return iu(e,t,n);Ar(e,{type:"setLoadable",recoilValue:t,loadable:n})}function uv(e,t){Ar(e,{type:"markModified",recoilValue:t})}function fv(e,t,n){Ar(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}var dv=0;function pv(e,{key:t},n,r=null){let o=dv++,i=e.getState();if(i.nodeToComponentSubscriptions.has(t)||i.nodeToComponentSubscriptions.set(t,new Map),ue(i.nodeToComponentSubscriptions.get(t)).set(o,[r??"<not captured>",n]),pe("recoil_early_rendering_2021")){let a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&n(a)}return{release:()=>{let a=e.getState(),s=a.nodeToComponentSubscriptions.get(t);if(s===void 0||!s.has(o)){ht(`Subscription missing at release time for atom ${t}. This is a bug in Recoil.`);return}s.delete(o),s.size===0&&a.nodeToComponentSubscriptions.delete(t)}}}var Dt={RecoilValueReadOnly:nv,AbstractRecoilValue:ev,RecoilState:tv,getRecoilValueAsLoadable:ov,setRecoilValue:iu,setRecoilValueLoadable:cv,markRecoilValueModified:uv,setUnvalidatedRecoilValue:fv,subscribeToRecoilValue:pv,isRecoilValue:rv,applyAtomValueWrites:iv,batchStart:lv,writeLoadableToTreeState:Ri,invalidateDownstreams:Ai,copyTreeState:ou,invalidateDownstreams_FOR_TESTING:Ai},{unstable_batchedUpdates:hv}=b,vv={unstable_batchedUpdates:hv},{unstable_batchedUpdates:mv}=vv,_v={unstable_batchedUpdates:mv},{batchStart:gv}=Dt,{unstable_batchedUpdates:yv}=_v,Fi=yv,bv=e=>{Fi=e},wv=()=>Fi,Sv=e=>{Fi(()=>{let t=()=>{};try{t=gv(),e()}finally{t()}})},Ci={getBatcher:wv,setBatcher:bv,batchUpdates:Sv};function Tv(e,t){t()}var Ev={enqueueExecution:Tv};function xv(e,...t){let n=new Set;e:for(let r of e){for(let o of t)if(o.has(r))continue e;n.add(r)}return n}var Fr=xv;function Rv(e,t){let n=new Map;return e.forEach((r,o)=>{n.set(o,t(r,o))}),n}var Cr=Rv;function Av(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function Fv(e){return{nodeDeps:Cr(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Cr(e.nodeToNodeSubscriptions,t=>new Set(t))}}function Ni(e,t,n){let{nodeDeps:r,nodeToNodeSubscriptions:o}=t;e.forEach((i,a)=>{let s=r.get(a);if(s&&n&&s!==n.nodeDeps.get(a))return;r.set(a,new Set(i)),(s==null?i:Fr(i,s)).forEach(c=>{o.has(c)||o.set(c,new Set),ue(o.get(c)).add(a)}),s&&Fr(s,i).forEach(u=>{if(!o.has(u))return;let d=ue(o.get(u));d.delete(a),d.size===0&&o.delete(u)})})}function Cv(e,t,n){var r,o,i,a;let s=t.getState();n===s.currentTree.version||n===((r=s.nextTree)===null||r===void 0?void 0:r.version)||n===((o=s.previousTree)===null||o===void 0?void 0:o.version)||ht("Tried to save dependencies to a discarded tree");let l=t.getGraph(n);if(Ni(e,l),n===((i=s.previousTree)===null||i===void 0?void 0:i.version)){let u=t.getGraph(s.currentTree.version);Ni(e,u,l)}if(n===((a=s.previousTree)===null||a===void 0?void 0:a.version)||n===s.currentTree.version){var c;let u=(c=s.nextTree)===null||c===void 0?void 0:c.version;if(u!==void 0){let d=t.getGraph(u);Ni(e,d,l)}}}function Nv(e,t){e.forEach((n,r)=>{t.has(r)||t.set(r,new Set);let o=ue(t.get(r));n.forEach(i=>o.add(i))})}function kv(e,t,n){n.has(e)||n.set(e,new Set),ue(n.get(e)).add(t)}var Vn={addToDependencyMap:kv,cloneGraph:Fv,graph:Av,mergeDepsIntoDependencyMap:Nv,saveDependencyMapToStore:Cv};function Lv(e,t){return t={exports:{}},e(t,t.exports),t.exports}var Pv=Lv(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n={},r=5,o=Math.pow(2,r),i=o-1,a=o/2,s=o/4,l={},c=function(v){return function(){return v}},u=n.hash=function(g){var v=typeof g=="undefined"?"undefined":t(g);if(v==="number")return g;v!=="string"&&(g+="");for(var x=0,k=0,L=g.length;k<L;++k){var M=g.charCodeAt(k);x=(x<<5)-x+M|0}return x},d=function(v){return v-=v>>1&1431655765,v=(v&858993459)+(v>>2&858993459),v=v+(v>>4)&252645135,v+=v>>8,v+=v>>16,v&127},f=function(v,x){return x>>>v&i},h=function(v){return 1<<v},p=function(v,x){return d(v&x-1)},y=function(v,x,k,L){var M=L;if(!v){var X=L.length;M=new Array(X);for(var K=0;K<X;++K)M[K]=L[K]}return M[x]=k,M},m=function(v,x,k){var L=k.length-1,M=0,X=0,K=k;if(v)M=X=x;else for(K=new Array(L);M<x;)K[X++]=k[M++];for(++M;M<=L;)K[X++]=k[M++];return v&&(K.length=L),K},w=function(v,x,k,L){var M=L.length;if(v){for(var X=M;X>=x;)L[X--]=L[X];return L[x]=k,L}for(var K=0,Y=0,te=new Array(M+1);K<x;)te[Y++]=L[K++];for(te[x]=k;K<M;)te[++Y]=L[K++];return te},S=1,T=2,A=3,U=4,V={__hamt_isEmpty:!0},I=function(v){return v===V||v&&v.__hamt_isEmpty},B=function(v,x,k,L){return{type:S,edit:v,hash:x,key:k,value:L,_modify:F}},Z=function(v,x,k){return{type:T,edit:v,hash:x,children:k,_modify:D}},W=function(v,x,k){return{type:A,edit:v,mask:x,children:k,_modify:H}},ee=function(v,x,k){return{type:U,edit:v,size:x,children:k,_modify:ve}},Te=function(v){return v===V||v.type===S||v.type===T},Q=function(v,x,k,L,M){for(var X=[],K=L,Y=0,te=0;K;++te)K&1&&(X[te]=M[Y++]),K>>>=1;return X[x]=k,ee(v,Y+1,X)},ne=function(v,x,k,L){for(var M=new Array(x-1),X=0,K=0,Y=0,te=L.length;Y<te;++Y)if(Y!==k){var be=L[Y];be&&!I(be)&&(M[X++]=be,K|=1<<Y)}return W(v,K,M)},_e=function g(v,x,k,L,M,X){if(k===M)return Z(v,k,[X,L]);var K=f(x,k),Y=f(x,M);return W(v,h(K)|h(Y),K===Y?[g(v,x+r,k,L,M,X)]:K<Y?[L,X]:[X,L])},oe=function(v,x,k,L,M,X,K,Y){for(var te=M.length,be=0;be<te;++be){var Ie=M[be];if(k(K,Ie.key)){var Ne=Ie.value,He=X(Ne);return He===Ne?M:He===l?(--Y.value,m(v,be,M)):y(v,be,B(x,L,K,He),M)}}var it=X();return it===l?M:(++Y.value,y(v,te,B(x,L,K,it),M))},ie=function(v,x){return v===x.edit},F=function(v,x,k,L,M,X,K){if(x(X,this.key)){var Y=L(this.value);return Y===this.value?this:Y===l?(--K.value,V):ie(v,this)?(this.value=Y,this):B(v,M,X,Y)}var te=L();return te===l?this:(++K.value,_e(v,k,this.hash,this,M,B(v,M,X,te)))},D=function(v,x,k,L,M,X,K){if(M===this.hash){var Y=ie(v,this),te=oe(Y,v,x,this.hash,this.children,L,X,K);return te===this.children?this:te.length>1?Z(v,this.hash,te):te[0]}var be=L();return be===l?this:(++K.value,_e(v,k,this.hash,this,M,B(v,M,X,be)))},H=function(v,x,k,L,M,X,K){var Y=this.mask,te=this.children,be=f(k,M),Ie=h(be),Ne=p(Y,Ie),He=Y&Ie,it=He?te[Ne]:V,Ut=it._modify(v,x,k+r,L,M,X,K);if(it===Ut)return this;var Xn=ie(v,this),vn=Y,mn=void 0;if(He&&I(Ut)){if(vn&=~Ie,!vn)return V;if(te.length<=2&&Te(te[Ne^1]))return te[Ne^1];mn=m(Xn,Ne,te)}else if(!He&&!I(Ut)){if(te.length>=a)return Q(v,be,Ut,Y,te);vn|=Ie,mn=w(Xn,Ne,Ut,te)}else mn=y(Xn,Ne,Ut,te);return Xn?(this.mask=vn,this.children=mn,this):W(v,vn,mn)},ve=function(v,x,k,L,M,X,K){var Y=this.size,te=this.children,be=f(k,M),Ie=te[be],Ne=(Ie||V)._modify(v,x,k+r,L,M,X,K);if(Ie===Ne)return this;var He=ie(v,this),it=void 0;if(I(Ie)&&!I(Ne))++Y,it=y(He,be,Ne,te);else if(!I(Ie)&&I(Ne)){if(--Y,Y<=s)return ne(v,Y,be,te);it=y(He,be,V,te)}else it=y(He,be,Ne,te);return He?(this.size=Y,this.children=it,this):ee(v,Y,it)};V._modify=function(g,v,x,k,L,M,X){var K=k();return K===l?V:(++X.value,B(g,L,M,K))};function C(g,v,x,k,L){this._editable=g,this._edit=v,this._config=x,this._root=k,this._size=L}C.prototype.setTree=function(g,v){return this._editable?(this._root=g,this._size=v,this):g===this._root?this:new C(this._editable,this._edit,this._config,g,v)};var G=n.tryGetHash=function(g,v,x,k){for(var L=k._root,M=0,X=k._config.keyEq;;)switch(L.type){case S:return X(x,L.key)?L.value:g;case T:{if(v===L.hash)for(var K=L.children,Y=0,te=K.length;Y<te;++Y){var be=K[Y];if(X(x,be.key))return be.value}return g}case A:{var Ie=f(M,v),Ne=h(Ie);if(L.mask&Ne){L=L.children[p(L.mask,Ne)],M+=r;break}return g}case U:{if(L=L.children[f(M,v)],L){M+=r;break}return g}default:return g}};C.prototype.tryGetHash=function(g,v,x){return G(g,v,x,this)};var j=n.tryGet=function(g,v,x){return G(g,x._config.hash(v),v,x)};C.prototype.tryGet=function(g,v){return j(g,v,this)};var _=n.getHash=function(g,v,x){return G(void 0,g,v,x)};C.prototype.getHash=function(g,v){return _(g,v,this)};var E=n.get=function(g,v){return G(void 0,v._config.hash(g),g,v)};C.prototype.get=function(g,v){return j(v,g,this)};var R=n.has=function(g,v,x){return G(l,g,v,x)!==l};C.prototype.hasHash=function(g,v){return R(g,v,this)};var $=n.has=function(g,v){return R(v._config.hash(g),g,v)};C.prototype.has=function(g){return $(g,this)};var O=function(v,x){return v===x};n.make=function(g){return new C(0,0,{keyEq:g&&g.keyEq||O,hash:g&&g.hash||u},V,0)},n.empty=n.make();var N=n.isEmpty=function(g){return g&&!!I(g._root)};C.prototype.isEmpty=function(){return N(this)};var le=n.modifyHash=function(g,v,x,k){var L={value:k._size},M=k._root._modify(k._editable?k._edit:NaN,k._config.keyEq,0,g,v,x,L);return k.setTree(M,L.value)};C.prototype.modifyHash=function(g,v,x){return le(x,g,v,this)};var Re=n.modify=function(g,v,x){return le(g,x._config.hash(v),v,x)};C.prototype.modify=function(g,v){return Re(v,g,this)};var Ee=n.setHash=function(g,v,x,k){return le(c(x),g,v,k)};C.prototype.setHash=function(g,v,x){return Ee(g,v,x,this)};var we=n.set=function(g,v,x){return Ee(x._config.hash(g),g,v,x)};C.prototype.set=function(g,v){return we(g,v,this)};var ge=c(l),he=n.removeHash=function(g,v,x){return le(ge,g,v,x)};C.prototype.removeHash=C.prototype.deleteHash=function(g,v){return he(g,v,this)};var P=n.remove=function(g,v){return he(v._config.hash(g),g,v)};C.prototype.remove=C.prototype.delete=function(g){return P(g,this)};var J=n.beginMutation=function(g){return new C(g._editable+1,g._edit+1,g._config,g._root,g._size)};C.prototype.beginMutation=function(){return J(this)};var fe=n.endMutation=function(g){return g._editable=g._editable&&g._editable-1,g};C.prototype.endMutation=function(){return fe(this)};var ye=n.mutate=function(g,v){var x=J(v);return g(x),fe(x)};C.prototype.mutate=function(g){return ye(g,this)};var Ce=function(v){return v&&Rt(v[0],v[1],v[2],v[3],v[4])},Rt=function(v,x,k,L,M){for(;k<v;){var X=x[k++];if(X&&!I(X))return mt(X,L,[v,x,k,L,M])}return Ce(M)},mt=function(v,x,k){switch(v.type){case S:return{value:x(v),rest:k};case T:case U:case A:var L=v.children;return Rt(L.length,L,0,x,k);default:return Ce(k)}},fn={done:!0};function Nt(g){this.v=g}Nt.prototype.next=function(){if(!this.v)return fn;var g=this.v;return this.v=Ce(g.rest),g},Nt.prototype[Symbol.iterator]=function(){return this};var kt=function(v,x){return new Nt(mt(v._root,x))},$t=function(v){return[v.key,v.value]},dn=n.entries=function(g){return kt(g,$t)};C.prototype.entries=C.prototype[Symbol.iterator]=function(){return dn(this)};var vo=function(v){return v.key},pn=n.keys=function(g){return kt(g,vo)};C.prototype.keys=function(){return pn(this)};var hn=function(v){return v.value},mo=n.values=C.prototype.values=function(g){return kt(g,hn)};C.prototype.values=function(){return mo(this)};var ca=n.fold=function(g,v,x){var k=x._root;if(k.type===S)return g(v,k.value,k.key);for(var L=[k.children],M=void 0;M=L.pop();)for(var X=0,K=M.length;X<K;){var Y=M[X++];Y&&Y.type&&(Y.type===S?v=g(v,Y.value,Y.key):L.push(Y.children))}return v};C.prototype.fold=function(g,v){return ca(g,v,this)};var zf=n.forEach=function(g,v){return ca(function(x,k,L){return g(k,L,v)},null,v)};C.prototype.forEach=function(g){return zf(g,this)};var jf=n.count=function(g){return g._size};C.prototype.count=function(){return jf(this)},Object.defineProperty(C.prototype,"size",{get:C.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n}),au=class{constructor(t){ae(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return ki(this)}toMap(){return new Map(this._map)}},Nr=class{constructor(t){if(ae(this,"_hamt",Pv.empty.beginMutation()),t instanceof Nr){let n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(let[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return ki(this)}toMap(){return new Map(this._hamt)}};function ki(e){return pe("recoil_hamt_2020")?new Nr(e):new au(e)}var Ov={persistentMap:ki},Vv=Ov.persistentMap,Dv=Object.freeze({__proto__:null,persistentMap:Vv}),{graph:Mv}=Vn,{persistentMap:su}=Dv,Iv=0,lu=()=>Iv++;function cu(){let e=lu();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:su(),nonvalidatedAtoms:su()}}function $v(){let e=cu();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,Mv()),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var uu={makeEmptyTreeState:cu,makeEmptyStoreState:$v,getNextTreeStateVersion:lu};function Uv(...e){let t=new Set;for(let n of e)for(let r of n)t.add(r);return t}var zv=Uv;function jv(e,t,n){let r=e.entries(),o=r.next();for(;!o.done;){let i=o.value;if(t.call(n,i[1],i[0],e))return!0;o=r.next()}return!1}var Bv=jv,{cleanUpNode:Wv}=Qt,{deleteNodeConfigIfPossible:Hv,getNode:fu}=rt,{RetentionZone:du}=xr,pu=new Set;function hu(e,t){let n=e.getState(),r=n.currentTree;if(n.nextTree){ht("releaseNodesNowOnCurrentTree should only be called at the end of a batch");return}let o=new Set;for(let a of t)if(a instanceof du)for(let s of Yv(n,a))o.add(s);else o.add(a);let i=qv(e,o);for(let a of i)Kv(e,r,a)}function qv(e,t){let n=e.getState(),r=n.currentTree,o=e.getGraph(r.version),i=new Set,a=new Set;return s(t),i;function s(l){let c=new Set,u=Gv(e,r,l,i,a);for(let p of u){var d;if(fu(p).retainedBy==="recoilRoot"){a.add(p);continue}if(((d=n.retention.referenceCounts.get(p))!==null&&d!==void 0?d:0)>0){a.add(p);continue}if(vu(p).some(m=>n.retention.referenceCounts.get(m))){a.add(p);continue}let y=o.nodeToNodeSubscriptions.get(p);if(y&&Bv(y,m=>a.has(m))){a.add(p);continue}i.add(p),c.add(p)}let f=new Set;for(let p of c)for(let y of(h=o.nodeDeps.get(p))!==null&&h!==void 0?h:pu){var h;i.has(y)||f.add(y)}f.size&&s(f)}}function Gv(e,t,n,r,o){let i=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(ue(n.values().next().value));return a;function l(c){if(r.has(c)||o.has(c)){n.delete(c);return}if(s.has(c))return;let u=i.nodeToNodeSubscriptions.get(c);if(u)for(let d of u)l(d);s.add(c),n.delete(c),a.push(c)}}function Kv(e,t,n){if(!pe("recoil_memory_managament_2020"))return;Wv(e,n);let r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);let o=vu(n);for(let l of o){var i;(i=r.retention.nodesRetainedByZone.get(l))===null||i===void 0||i.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);let a=r.graphsByVersion.get(t.version);if(a){let l=a.nodeDeps.get(n);if(l!==void 0){a.nodeDeps.delete(n);for(let c of l){var s;(s=a.nodeToNodeSubscriptions.get(c))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}Hv(n)}function Yv(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:pu}function vu(e){let t=fu(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof du?[t]:t}function Zv(e,t){let n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):hu(e,new Set([t]))}function Xv(e,t,n){var r;if(!pe("recoil_memory_managament_2020"))return;let o=e.getState().retention.referenceCounts,i=((r=o.get(t))!==null&&r!==void 0?r:0)+n;i===0?mu(e,t):o.set(t,i)}function mu(e,t){if(!pe("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Zv(e,t)}function Jv(e){if(!pe("recoil_memory_managament_2020"))return;let t=e.getState();hu(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function Qv(e){return e===void 0?"recoilRoot":e}var Dn={updateRetainCount:Xv,updateRetainCountToZero:mu,releaseScheduledRetainablesNow:Jv,retainedByOptionWithDefault:Qv};function*em(e){for(let t of e)for(let n of t)yield n}var tm=em,nm=typeof window=="undefined",rm=typeof navigator!="undefined"&&navigator.product==="ReactNative",_u={isSSR:nm,isReactNative:rm},{isSSR:om}=_u,{batchUpdates:Li}=Ci,{initializeNodeIfNewToStore:im,peekNodeInfo:am}=Qt,{graph:sm}=Vn,{DEFAULT_VALUE:lm,recoilValues:gu,recoilValuesForKeys:yu}=rt,{AbstractRecoilValue:cm,getRecoilValueAsLoadable:um,setRecoilValue:bu,setUnvalidatedRecoilValue:fm}=Dt,{updateRetainCount:kr}=Dn,{getNextTreeStateVersion:dm,makeEmptyStoreState:pm}=uu;var Mn=class{constructor(t){ae(this,"_store",void 0),ae(this,"_refCount",0),ae(this,"getLoadable",n=>(this.checkRefCount_INTERNAL(),um(this._store,n))),ae(this,"getPromise",n=>(this.checkRefCount_INTERNAL(),this.getLoadable(n).toPromise())),ae(this,"getNodes_UNSTABLE",n=>{if(this.checkRefCount_INTERNAL(),(n==null?void 0:n.isModified)===!0){if((n==null?void 0:n.isInitialized)===!1)return[];let i=this._store.getState().currentTree;return yu(i.dirtyAtoms)}let r=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(n==null?void 0:n.isInitialized)==null?gu.values():n.isInitialized===!0?yu(tm([this._store.getState().knownAtoms,this._store.getState().knownSelectors])):qc(gu.values(),({key:i})=>!r.has(i)&&!o.has(i))}),ae(this,"getInfo_UNSTABLE",({key:n})=>(this.checkRefCount_INTERNAL(),am(this._store,this._store.getState().currentTree,n))),ae(this,"map",n=>{this.checkRefCount_INTERNAL();let r=new Lr(this,Li);return n(r),Pi(r.getStore_INTERNAL())}),ae(this,"asyncMap",async n=>{this.checkRefCount_INTERNAL();let r=new Lr(this,Li);return await n(r),Pi(r.getStore_INTERNAL())}),this._store={getState:()=>t,replaceState:n=>{t.currentTree=n(t.currentTree)},getGraph:n=>{let r=t.graphsByVersion;if(r.has(n))return ue(r.get(n));let o=sm();return r.set(n,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw new Error("Cannot subscribe to Snapshots")}};for(let n of this._store.getState().nodeCleanupFunctions.keys())im(this._store,t.currentTree,n,"get"),kr(this._store,n,1);this.retain(),this.autorelease_INTERNAL()}retain(){if(!pe("recoil_memory_managament_2020"))return()=>{};this._refCount++;let t=!1;return()=>{t||(t=!0,this.release_INTERNAL())}}autorelease_INTERNAL(){!pe("recoil_memory_managament_2020")||om||window.setTimeout(()=>this.release_INTERNAL(),0)}release_INTERNAL(){!pe("recoil_memory_managament_2020")||(this._refCount--,this._refCount===0)}checkRefCount_INTERNAL(){pe("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this.getID_INTERNAL()}getID_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}};function wu(e,t,n=!1){let r=e.getState(),o=n?dm():t.version;return{currentTree:n?{version:o,stateID:o,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()}:t,commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(o,e.getGraph(t.version)),versionsUsedByComponent:new Map,retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}function hm(e){let t=new Mn(pm());return e!=null?t.map(e):t}function Pi(e,t="current"){let n=e.getState(),r=t==="current"?n.currentTree:ue(n.previousTree);return new Mn(wu(e,r))}var Lr=class extends Mn{constructor(t,n){super(wu(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0));ae(this,"_batch",void 0),ae(this,"set",(r,o)=>{this.checkRefCount_INTERNAL();let i=this.getStore_INTERNAL();this._batch(()=>{kr(i,r.key,1),bu(this.getStore_INTERNAL(),r,o)})}),ae(this,"reset",r=>{this.checkRefCount_INTERNAL();let o=this.getStore_INTERNAL();this._batch(()=>{kr(o,r.key,1),bu(this.getStore_INTERNAL(),r,lm)})}),ae(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();let o=this.getStore_INTERNAL();Li(()=>{for(let[i,a]of r.entries())kr(o,i,1),fm(o,new cm(i),a)})}),this._batch=n}},Pr={Snapshot:Mn,MutableSnapshot:Lr,freshSnapshot:hm,cloneSnapshot:Pi},vm=Pr.Snapshot,mm=Pr.MutableSnapshot,_m=Pr.freshSnapshot,gm=Pr.cloneSnapshot,Or=Object.freeze({__proto__:null,Snapshot:vm,MutableSnapshot:mm,freshSnapshot:_m,cloneSnapshot:gm}),{getNextTreeStateVersion:ym,makeEmptyStoreState:Su}=uu,{cleanUpNode:bm,getDownstreamNodes:wm,setNodeValue:Sm,setUnvalidatedAtomValue_DEPRECATED:Tm}=Qt,{graph:Em}=Vn,{cloneGraph:xm}=Vn,{applyAtomValueWrites:Rm}=Dt,{releaseScheduledRetainablesNow:Tu}=Dn,{freshSnapshot:Am}=Or,{useCallback:Fm,useContext:Eu,useEffect:Oi,useMemo:Cm,useRef:Vi,useState:Nm}=b;function In(){throw new Error("This component must be used inside a <RecoilRoot> component.")}var xu=Object.freeze({getState:In,replaceState:In,getGraph:In,subscribeToTransactions:In,addTransactionMetadata:In}),Di=!1;function Ru(e){if(Di)throw new Error("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");let t=e.getState();if(t.nextTree===null){pe("recoil_memory_managament_2020")&&pe("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Tu(e);let n=t.currentTree.version,r=ym();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,xm(ue(t.graphsByVersion.get(n))))}}var Au=b.createContext({current:xu}),Mi=()=>Eu(Au),Fu=b.createContext(null);function km(){let e=Eu(Fu);return e==null&&_i("Attempted to use a Recoil hook outside of a <RecoilRoot>. <RecoilRoot> must be an ancestor of any component that uses Recoil hooks."),e}function Ii(e,t,n){let r=wm(e,n,n.dirtyAtoms);for(let o of r){let i=t.nodeToComponentSubscriptions.get(o);if(i)for(let[a,[s,l]]of i)l(n)}}function Cu(e){let t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(let[o,i]of t.nodeTransactionSubscriptions)if(r.has(o))for(let[a,s]of i)s(e);for(let[o,i]of t.transactionSubscriptions)i(e);(!pe("recoil_early_rendering_2021")||t.suspendedComponentResolvers.size)&&(Ii(e,t,n),t.suspendedComponentResolvers.forEach(o=>o()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(o=>o(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Lm(e){let t=e.current.getState();t.commitDepth++;try{let{nextTree:n}=t;if(n===null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,Cu(e.current),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):ht("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,pe("recoil_memory_managament_2020")&&Tu(e.current)}finally{t.commitDepth--}}function Pm({setNotifyBatcherOfChange:e}){let t=Mi(),[n,r]=Nm([]);return e(()=>r({})),Oi(()=>{Ev.enqueueExecution("Batcher",()=>{Lm(t)})}),Oi(()=>()=>{e(()=>{})},[e]),null}function Om(e,t){let n=Su();return t({set:(r,o)=>{let i=n.currentTree,a=Sm(e,i,r.key,o),s=new Set(a.keys()),l=i.nonvalidatedAtoms.clone();for(let c of s)l.delete(c);n.currentTree={...i,dirtyAtoms:zv(i.dirtyAtoms,s),atomValues:Rm(i.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((o,i)=>{n.currentTree=Tm(n.currentTree,i,o)})}}),n}function Vm(e){return Am().map(e).getStore_INTERNAL().getState()}var Nu=0;function Dm({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){var o;let i,a=m=>{let w=i.current.graphsByVersion;if(w.has(m))return ue(w.get(m));let S=Em();return w.set(m,S),S},s=(m,w)=>{if(w==null){let{transactionSubscriptions:S}=p.current.getState(),T=Nu++;return S.set(T,m),{release:()=>{S.delete(T)}}}else{let{nodeTransactionSubscriptions:S}=p.current.getState();S.has(w)||S.set(w,new Map);let T=Nu++;return ue(S.get(w)).set(T,m),{release:()=>{let A=S.get(w);A&&(A.delete(T),A.size===0&&S.delete(w))}}}},l=m=>{Ru(p.current);for(let w of Object.keys(m))ue(p.current.getState().nextTree).transactionMetadata[w]=m[w]},c=m=>{let w=p.current.getState();Ru(p.current);let S=ue(w.nextTree),T;try{Di=!0,T=m(S)}finally{Di=!1}T!==S&&(w.nextTree=T,pe("recoil_early_rendering_2021")&&Ii(h,w,T),ue(u.current)())},u=Vi(null),d=Fm(m=>{u.current=m},[u]),f=(o=b.createMutableSource)!==null&&o!==void 0?o:b.unstable_createMutableSource,h=n??{getState:()=>i.current,replaceState:c,getGraph:a,subscribeToTransactions:s,addTransactionMetadata:l},p=Vi(h);i=Vi(e!=null?Om(h,e):t!=null?Vm(t):Su());let y=Cm(()=>f?f(i,()=>i.current.currentTree.version):null,[f,i]);return Oi(()=>()=>{for(let m of p.current.getState().knownAtoms)bm(p.current,m)},[]),b.createElement(Au.Provider,{value:p},b.createElement(Fu.Provider,{value:y},b.createElement(Pm,{setNotifyBatcherOfChange:d}),r))}function Mm(e){let{override:t,...n}=e,r=Mi();return t===!1&&r.current!==xu?e.children:b.createElement(Dm,n)}var Vr={useStoreRef:Mi,useRecoilMutableSource:km,RecoilRoot:Mm,notifyComponents_FOR_TESTING:Ii,sendEndOfBatchNotifications_FOR_TESTING:Cu},{loadableWithValue:Im}=Pn,{DEFAULT_VALUE:$m,getNode:Um}=rt,{copyTreeState:zm,getRecoilValueAsLoadable:jm,invalidateDownstreams:Bm,writeLoadableToTreeState:Wm}=Dt;function ku(e){return Um(e.key).nodeType==="atom"}var Lu=class{constructor(t,n){ae(this,"_store",void 0),ae(this,"_treeState",void 0),ae(this,"_changes",void 0),ae(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!ku(r))throw new Error("Reading selectors within atomicUpdate is not supported");let o=jm(this._store,r,this._treeState);if(o.state==="hasValue")return o.contents;throw o.state==="hasError"?o.contents:new Error(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),ae(this,"set",(r,o)=>{if(!ku(r))throw new Error("Setting selectors within atomicUpdate is not supported");if(typeof o=="function"){let i=this.get(r);this._changes.set(r.key,o(i))}else this._changes.set(r.key,o)}),ae(this,"reset",r=>{this.set(r,$m)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;let t=zm(this._treeState);for(let[n,r]of this._changes)Wm(t,n,Im(r));return Bm(this._store,t),t}};function Hm(e){return t=>{e.replaceState(n=>{let r=new Lu(e,n);return t(r),r.newTreeState_INTERNAL()})}}var qm={atomicUpdater:Hm},Gm=qm.atomicUpdater,Km=Object.freeze({__proto__:null,atomicUpdater:Gm});function Ym(e,t){let n=new Map;for(let[r,o]of e)t(o,r)&&n.set(r,o);return n}var Zm=Ym;function Xm(e,t){let n=new Set;for(let r of e)t(r)&&n.add(r);return n}var Jm=Xm;function Qm(e,t){if(!e)throw new Error(t)}var e_=Qm,Dr=e_;function t_(...e){let t=new Map;for(let n=0;n<e.length;n++){let r=e[n].keys(),o;for(;!(o=r.next()).done;)t.set(o.value,e[n].get(o.value))}return t}var n_=t_;function r_(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var o_=r_;var{useRef:i_}=b;function a_(){let e=i_();if(!1&&pe("recoil_infer_component_names"))var t;return"<component name not available>"}var $i=a_,{atomicUpdater:Pu}=Km,{batchUpdates:Ui}=Ci,{DEFAULT_VALUE:Mr,getNode:Ou,nodes:s_}=rt,{useRecoilMutableSource:l_,useStoreRef:Be}=Vr;var{AbstractRecoilValue:zi,getRecoilValueAsLoadable:$n,setRecoilValue:en,setRecoilValueLoadable:c_,setUnvalidatedRecoilValue:u_,subscribeToRecoilValue:ji}=Dt,{updateRetainCount:Un}=Dn,{RetentionZone:f_}=xr,{Snapshot:l1,cloneSnapshot:zn}=Or,{setByAddingToSet:d_}=Hc,{isSSR:Ir}=_u,{mutableSourceExists:p_,useMutableSource:h_}=Wc,{useCallback:ct,useEffect:Et,useMemo:Vu,useRef:At,useState:Bi}=b,Du=12e4;function Mu(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(o=>{n.current.getState().suspendedComponentResolvers.add(o)}):e.state==="hasError"?e.contents:new Error(`Invalid value of loadable atom "${t.key}"`)}function v_(){let e=Be(),[t,n]=Bi([]),r=At(new Set);r.current=new Set;let o=At(new Set),i=At(new Map),a=ct(l=>{let c=i.current.get(l);c&&(c.release(),i.current.delete(l))},[i]),s=$i();return Et(()=>{let l=e.current;function c(u,d){!i.current.has(d)||n([])}Fr(r.current,o.current).forEach(u=>{if(i.current.has(u)){_i(`Double subscription to RecoilValue "${u}"`);return}let d=ji(l,new zi(u),h=>{c(h,u)},s);i.current.set(u,d),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{c(l.getState(),u)}):c(l.getState(),u)}),Fr(o.current,r.current).forEach(u=>{a(u)}),o.current=r.current}),Et(()=>{let l=i.current;return()=>l.forEach((c,u)=>a(u))},[a]),Vu(()=>{function l(p){return y=>{en(e.current,p,y)}}function c(p){return()=>en(e.current,p,Mr)}function u(p){var y;r.current.has(p.key)||(r.current=d_(r.current,p.key));let m=e.current.getState();return $n(e.current,p,pe("recoil_early_rendering_2021")&&(y=m.nextTree)!==null&&y!==void 0?y:m.currentTree)}function d(p){let y=u(p);return Mu(y,p,e)}function f(p){return[d(p),l(p)]}function h(p){return[u(p),l(p)]}return{getRecoilValue:d,getRecoilValueLoadable:u,getRecoilState:f,getRecoilStateLoadable:h,getSetRecoilState:l,getResetRecoilState:c}},[r,e])}var m_={current:0};function __(e){let t=Be(),n=ct(()=>{var c;let u=t.current,d=u.getState(),f=pe("recoil_early_rendering_2021")&&(c=d.nextTree)!==null&&c!==void 0?c:d.currentTree;return $n(u,e,f)},[t,e]),r=ct(()=>n(),[n]),o=$i(),i=ct((c,u)=>{let d=t.current;return ji(d,e,()=>{if(!pe("recoil_suppress_rerender_in_callback"))return u();let h=n();l.current.is(h)||u(),l.current=h},o).release},[t,e,o,n]),a=l_(),s=h_(a,r,i),l=At(s);return Et(()=>{l.current=s}),s}function g_(e){let t=Be(),[n,r]=Bi([]),o=$i();Et(()=>{let s=t.current,l=s.getState(),c=ji(s,e,d=>{var f;if(!pe("recoil_suppress_rerender_in_callback"))return r([]);let h=$n(s,e,s.getState().currentTree);((f=a.current)===null||f===void 0?void 0:f.is(h))||r(h),a.current=h},o);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,r([])});else{var u;if(!pe("recoil_suppress_rerender_in_callback"))return r([]);let d=$n(s,e,s.getState().currentTree);((u=a.current)===null||u===void 0?void 0:u.is(d))||r(d),a.current=d}return c.release},[o,e,t]);let i=$n(t.current,e),a=At(i);return Et(()=>{a.current=i}),i}function Wi(e){return pe("recoil_memory_managament_2020")&&ju(e),p_()?__(e):g_(e)}function Iu(e){let t=Be(),n=Wi(e);return Mu(n,e,t)}function Hi(e){let t=Be();return ct(n=>{en(t.current,e,n)},[t,e])}function y_(e){let t=Be();return ct(()=>{en(t.current,e,Mr)},[t,e])}function b_(e){return[Iu(e),Hi(e)]}function w_(e){return[Wi(e),Hi(e)]}function $r(e){let t=Be();Et(()=>t.current.subscribeToTransactions(e).release,[e,t])}function $u(e){let t=e.atomValues.toMap(),n=Cr(Zm(t,(r,o)=>{let a=Ou(o).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return n_(e.nonvalidatedAtoms.toMap(),n)}function S_(e){$r(ct(t=>{let n=t.getState().previousTree,r=t.getState().currentTree;n||(ht("Transaction subscribers notified without a previous tree being present -- this is a bug in Recoil"),n=t.getState().currentTree);let o=$u(r),i=$u(n),a=Cr(s_,l=>{var c,u,d,f;return{persistence_UNSTABLE:{type:(c=(u=l.persistence_UNSTABLE)===null||u===void 0?void 0:u.type)!==null&&c!==void 0?c:"none",backButton:(d=(f=l.persistence_UNSTABLE)===null||f===void 0?void 0:f.backButton)!==null&&d!==void 0?d:!1}}}),s=Jm(r.dirtyAtoms,l=>o.has(l)||i.has(l));e({atomValues:o,previousAtomValues:i,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function T_(e){$r(ct(t=>{let n=zn(t,"current"),r=zn(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Uu(e){let t=At();return Et(()=>{t.current=e}),t.current}function E_(){let e=Be(),[t,n]=Bi(()=>zn(e.current)),r=Uu(t),o=At();return Et(()=>(o.current&&!Ir&&window.clearTimeout(o.current),t.retain()),[t]),$r(ct(i=>n(zn(i)),[])),r!==t&&!Ir&&(o.current&&(r==null||r.release_INTERNAL(),window.clearTimeout(o.current)),t.retain(),o.current=window.setTimeout(()=>{t.release_INTERNAL(),o.current=null},Du)),t}function zu(){let e=Be();return ct(t=>{var n;let r=e.current.getState(),o=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,i=t.getStore_INTERNAL().getState().currentTree;Ui(()=>{let a=new Set;for(let c of[o.atomValues.keys(),i.atomValues.keys()])for(let u of c){var s,l;((s=o.atomValues.get(u))===null||s===void 0?void 0:s.contents)!==((l=i.atomValues.get(u))===null||l===void 0?void 0:l.contents)&&Ou(u).shouldRestoreFromSnapshots&&a.add(u)}a.forEach(c=>{c_(e.current,new zi(c),i.atomValues.has(c)?ue(i.atomValues.get(c)):Mr)}),e.current.replaceState(c=>({...c,stateID:t.getID_INTERNAL()}))})},[e])}function x_(){let e=Be();return(t,n={})=>{Ui(()=>{e.current.addTransactionMetadata(n),t.forEach((r,o)=>u_(e.current,new zi(o),r))})}}var qi=class{},R_=new qi;function A_(e,t){let n=Be(),r=zu();return ct((...o)=>{function i(u,d){en(n.current,u,d)}function a(u){en(n.current,u,Mr)}let s=zn(n.current),l=Pu(n.current),c=R_;return Ui(()=>{let u="useRecoilCallback expects a function that returns a function: it accepts a function of the type (RecoilInterface) => T = R and returns a callback function T => R, where RecoilInterface is an object {snapshot, set, ...} and T and R are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof e!="function")throw new Error(u);let d=e({set:i,reset:a,snapshot:s,gotoSnapshot:r,transact_UNSTABLE:l});if(typeof d!="function")throw new Error(u);c=d(...o)}),c instanceof qi&&Dr(!1),c},t!=null?[...t,n]:void 0)}function ju(e){if(!!pe("recoil_memory_managament_2020"))return F_(e)}function F_(e){let n=(Array.isArray(e)?e:[e]).map(a=>a instanceof f_?a:a.key),r=Be();Et(()=>{if(!pe("recoil_memory_managament_2020"))return;let a=r.current;if(o.current&&!Ir)window.clearTimeout(o.current),o.current=null;else for(let s of n)Un(a,s,1);return()=>{for(let s of n)Un(a,s,-1)}},[r,...n]);let o=At(),i=Uu(n);if(!Ir&&(i===void 0||!o_(i,n))){let a=r.current;for(let s of n)Un(a,s,1);if(i)for(let s of i)Un(a,s,-1);o.current&&window.clearTimeout(o.current),o.current=window.setTimeout(()=>{o.current=null;for(let s of n)Un(a,s,-1)},Du)}}function C_(e,t){let n=Be();return Vu(()=>(...r)=>{Pu(n.current)(i=>{e(i)(...r)})},t!=null?[...t,n]:void 0)}var N_={recoilComponentGetRecoilValueCount_FOR_TESTING:m_,useGotoRecoilSnapshot:zu,useRecoilCallback:A_,useRecoilInterface:v_,useRecoilSnapshot:E_,useRecoilState:b_,useRecoilStateLoadable:w_,useRecoilTransaction:C_,useRecoilTransactionObserver:T_,useRecoilValue:Iu,useRecoilValueLoadable:Wi,useRetain:ju,useResetRecoilState:y_,useSetRecoilState:Hi,useSetUnvalidatedAtomValues:x_,useTransactionObservation_DEPRECATED:S_,useTransactionSubscription_DEPRECATED:$r},{peekNodeInfo:k_}=Qt,{useStoreRef:L_}=Vr;function P_(){let e=L_();return({key:t})=>k_(e.current,e.current.getState().currentTree,t)}var O_=P_,{RecoilRoot:V_,useStoreRef:D_}=Vr,{useMemo:M_}=b;function I_(){let e=D_().current;return M_(()=>{function t({children:n}){return b.createElement(V_,{store_INTERNAL:e},n)}return t},[e])}var $_=I_;function ut(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw new Error("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(xe(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((o,i)=>ut(o,t,i.toString()))}]`;if(typeof e.toJSON=="function")return ut(e.toJSON(n),t,n);if(e instanceof Map){let o={};for(let[i,a]of e)o[typeof i=="string"?i:ut(i,t)]=a;return ut(o,t,n)}return e instanceof Set?ut(Array.from(e).sort((o,i)=>ut(o,t).localeCompare(ut(i,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?ut(Array.from(e),t,n):`{${Object.keys(e).filter(o=>e[o]!==void 0).sort().map(o=>`${ut(o,t)}:${ut(e[o],t,o)}`).join(",")}}`}function U_(e,t={allowFunctions:!1}){return ut(e,t)}var Ur=U_,Bu=class{constructor(t){var n,r,o;ae(this,"_numLeafs",void 0),ae(this,"_root",void 0),ae(this,"_onHit",void 0),ae(this,"_onSet",void 0),ae(this,"_mapNodeValue",void 0),this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(o=t==null?void 0:t.mapNodeValue)!==null&&o!==void 0?o:i=>i}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){return Wu(this.root(),r=>this._mapNodeValue(t(r)),{onNodeVisit:r=>{n==null||n.onNodeVisit(r),r.type==="leaf"&&this._onHit(r)}})}set(t,n,r){let o,i=Gi(this.root(),t.map(([a,s])=>[a,this._mapNodeValue(s)]),null,n,null,{onNodeVisit:a=>{r==null||r.onNodeVisit(a),a.type==="leaf"&&(o=a)}});this.root()||(this._root=i),this._numLeafs++,this._onSet(ue(o))}delete(t){if(!this.root())return!1;let n=ue(this.root());return z_(n,t,t.parent)?t===n||n.type==="branch"&&!n.branches.size?(this._root=null,this._numLeafs=0,!0):(this._numLeafs-=qu(t),!0):!1}clear(){this._numLeafs=0,this._root=null}},Wu=(e,t,n)=>{var r;if(e==null)return;if(n==null||(r=n.onNodeVisit)===null||r===void 0||r.call(n,e),e.type==="leaf")return e;let o=t(e.nodeKey);return Wu(e.branches.get(o),t,n)},Gi=(e,t,n,r,o,i)=>{var a;let s;if(e==null)if(t.length===0)s={type:"leaf",value:r,parent:n,branchKey:o};else{let[l,...c]=t,[u,d]=l;s={type:"branch",nodeKey:u,parent:n,branches:new Map,branchKey:o},s.branches.set(d,Gi(null,c,s,r,d,i))}else if(s=e,t.length){let[l,...c]=t,[u,d]=l;e.type==="branch"&&e.nodeKey===u||Dr(!1),e.branches.set(d,Gi(e.branches.get(d),c,e,r,d,i))}return i==null||(a=i.onNodeVisit)===null||a===void 0||a.call(i,s),s},z_=(e,t,n)=>n?(n.branches.delete(t.branchKey),Hu(e,n,n.parent)):e===t,Hu=(e,t,n)=>n?(t.branches.size===0&&n.branches.delete(t.branchKey),Hu(e,n,n.parent)):e===t,qu=e=>e.type==="leaf"?1:Array.from(e.branches.values()).reduce((t,n)=>t+qu(n),0),j_={TreeCache:Bu},B_=j_.TreeCache,Gu=Object.freeze({__proto__:null,TreeCache:B_}),Ku=class{constructor(t){var n;ae(this,"_maxSize",void 0),ae(this,"_size",void 0),ae(this,"_head",void 0),ae(this,"_tail",void 0),ae(this,"_map",void 0),ae(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){let n=this._keyMapper(t),r=this._map.get(n);if(!!r)return this.set(t,r.value),r.value}set(t,n){let r=this._keyMapper(t);this._map.get(r)&&this.delete(t);let i=this.head(),a={key:t,right:i,left:null,value:n};i?i.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){let t=this.tail();t&&this.delete(t.key)}delete(t){let n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;let r=ue(this._map.get(n)),o=r.right,i=r.left;o&&(o.left=r.left),i&&(i.right=r.right),r===this.head()&&(this._head=o),r===this.tail()&&(this._tail=i),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}},W_={LRUCache:Ku},H_=W_.LRUCache,Yu=Object.freeze({__proto__:null,LRUCache:H_}),{LRUCache:q_}=Yu,{TreeCache:G_}=Gu;function K_(e,t=n=>n){let n=new q_({maxSize:e}),r=new G_({mapNodeValue:t,onHit:o=>{n.set(o,!0)},onSet:o=>{let i=n.tail();n.set(o,!0),i&&r.size()>e&&r.delete(i.key)}});return r}var Zu=K_,{TreeCache:Y_}=Gu,zr={equality:"reference",eviction:"keep-all",maxSize:1/0};function Z_({equality:e=zr.equality,eviction:t=zr.eviction,maxSize:n=zr.maxSize}=zr){let r=X_(e);return J_(t,n,r)}function X_(e){switch(e){case"reference":return t=>t;case"value":return t=>Ur(t)}throw new Error(`Unrecognized equality policy ${e}`)}function J_(e,t,n){switch(e){case"keep-all":return new Y_({mapNodeValue:n});case"lru":return Zu(ue(t),n);case"most-recent":return Zu(1,n)}throw new Error(`Unrecognized eviction policy ${e}`)}var Q_=Z_;function eg(e){return()=>null}var tg={startPerfBlock:eg},{CANCELED:jn,Canceled:ng,loadableWithError:Bn,loadableWithPromise:rg,loadableWithValue:Ki}=Pn,{getNodeLoadable:Xu,peekNodeLoadable:og,setNodeValue:ig}=Qt,{saveDependencyMapToStore:ag}=Vn,{DEFAULT_VALUE:sg,RecoilValueNotReady:lg,getConfigDeletionHandler:cg,registerNode:Ju}=rt,{isRecoilValue:ug}=Ot,{AbstractRecoilValue:fg}=Ot,{setRecoilValueLoadable:dg}=Dt,{retainedByOptionWithDefault:pg}=Dn,{cloneSnapshot:hg}=Or,{startPerfBlock:vg}=tg,Wn=[],jr=new Map,mg=(()=>{let e=0;return()=>e++})();function _g(){return{depValuesDiscoveredSoFarDuringAsyncWork:null,latestLoadable:null,latestExecutionId:null,stateVersion:null}}function gg(e){let{key:t,get:n,cachePolicy_UNSTABLE:r}=e,o=e.set!=null?e.set:void 0,i=Q_(r??{equality:"reference",eviction:"keep-all"}),a=pg(e.retainedBy_UNSTABLE),s=new Map,l=0;function c(){return!pe("recoil_memory_managament_2020")||l>0}function u(_){return s.has(_)||s.set(_,_g()),ue(s.get(_))}function d(_){return l++,_.getState().knownSelectors.add(t),()=>{l--,_.getState().knownSelectors.delete(t),s.delete(_)}}function f(){return cg(t)!==void 0&&!c()}function h(_,E,R){if(E.state==="loading"){let $=jr.get(R);$==null&&jr.set(R,$=new Set),$.add(_)}}function p(_,E){let R=jr.get(E);if(R!==void 0){for(let $ of R)dg($,new fg(t),_);jr.delete(E)}}function y(_,E,R){let $=_.getState().knownSelectors.has(R);if($&&E.atomValues.has(R))return ue(E.atomValues.get(R));let O=Xu(_,E,R);return O.state!=="loading"&&$&&E.atomValues.set(R,O),O}function m(_,E,R,$,O){return E.then(N=>{if(!c())return oe(_,O),jn;let le=Ki(N);return D(N),H(R,I($),le),T(_,R,new Set($.keys()),O),S(_,le,O),{__value:N,__key:t}}).catch(N=>{if(!c())return oe(_,O),jn;if(ie(_,O)&&_e($,_,O),xe(N))return w(_,N,R,$,O);let le=Bn(N);throw D(N),H(R,I($),le),T(_,R,new Set($.keys()),O),S(_,le,O),N})}function w(_,E,R,$,O){return E.then(N=>{if(!c())return oe(_,O),jn;if(N instanceof ng)return ht("Selector was released while it had dependencies"),jn;let{__key:le,__value:Re}=N??{},Ee=!0;le!=null&&(R.atomValues.set(le,Ki(Re)),Ee=!1);let we=V(_,R);if(we&&we.state==="hasValue")return Q(we,_),{__value:we.contents,__key:t};if(!ie(_,O)){var ge;let J=W(R);if((J==null||(ge=J.latestLoadable)===null||ge===void 0?void 0:ge.state)==="loading")return J.latestLoadable.contents}let[he,P]=U(_,R,O,Ee);if(ie(_,O)&&_e(P,_,O),F(he),he.state!=="loading"&&(H(R,I(P),he),T(_,R,new Set(P.keys()),O),S(_,he,O)),he.state==="hasError")throw he.contents;return he.state==="hasValue"?{__value:he.contents,__key:t}:he.contents}).catch(N=>{if(!c())return oe(_,O),jn;let le=Bn(N);throw D(N),H(R,I($),Bn(N)),T(_,R,new Set($.keys()),O),S(_,le,O),N})}function S(_,E,R){ie(_,R)&&(Q(E,_),p(E,R))}function T(_,E,R,$){var O,N,le,Re;if(ie(_,$)||E.version===((O=_.getState())===null||O===void 0||(N=O.currentTree)===null||N===void 0?void 0:N.version)||E.version===((le=_.getState())===null||le===void 0||(Re=le.nextTree)===null||Re===void 0?void 0:Re.version)){var Ee,we,ge;ag(new Map([[t,R]]),_,(Ee=(we=_.getState())===null||we===void 0||(ge=we.nextTree)===null||ge===void 0?void 0:ge.version)!==null&&Ee!==void 0?Ee:_.getState().currentTree.version)}}function A(_,E,R,$,O){R.add($),T(_,E,R,O)}function U(_,E,R,$=!1){let O=vg(t),N,le=!1,Re,Ee=new Map,we=new Set;T(_,E,we,R);function ge(J){let{key:fe}=J;A(_,E,we,fe,R);let ye=$?Xu(_,E,fe):y(_,E,fe);if(F(ye),Ee.set(fe,ye),ye.state==="hasValue")return ye.contents;throw ye.contents}let he=!1,P=J=>(...fe)=>{if(!he)throw new Error("getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can obtain the current Recoil state without a subscription.");let ye=hg(_),Ce=J({snapshot:ye});if(typeof Ce!="function")throw new Error("getCallback() expects a function that returns a function.");return Ce(...fe)};try{N=n({get:ge,getCallback:P}),N=ug(N)?ge(N):N,he=!0,xe(N)?N=m(_,N,E,Ee,R).finally(O):O()}catch(J){N=J,xe(N)?N=w(_,N,E,Ee,R).finally(O):(le=!0,O())}return le?Re=Bn(N):xe(N)?Re=rg(N):Re=Ki(N),F(Re),[Re,Ee]}function V(_,E){let R=new Set,$=u(_),O=i.get(N=>(typeof N!="string"&&Dr(!1),y(_,E,N).contents),{onNodeVisit:N=>{N.type==="branch"&&N.nodeKey!==t&&typeof N.nodeKey=="string"&&R.add(N.nodeKey)}});return O&&T(_,E,R,$.latestExecutionId),O}function I(_){return Array.from(_.entries()).map(([E,R])=>[E,R.contents])}function B(_,E){let R=mg(),[$,O]=U(_,E,R);return Q($,_,O,R,E),ne(E,I(O),$),h(_,$,R),$}function Z(_,E){let R=V(_,E);if(R!=null)return Q(R,_),R;let $=W(E);if($){let O=$;return h(_,ue(O.latestLoadable),ue(O.latestExecutionId)),ue(O.latestLoadable)}return B(_,E)}function W(_){var E;let[,R]=(E=Array.from(s.entries()).find(([$,O])=>O.latestLoadable!=null&&O.latestExecutionId!=null&&!Te($,_)))!==null&&E!==void 0?E:[];return R}let ee=new Map;function Te(_,E){var R,$;let O=u(_),N=(R=O.depValuesDiscoveredSoFarDuringAsyncWork)!==null&&R!==void 0?R:new Map,le=Array((($=ee.get(E.version))!==null&&$!==void 0?$:new Map).entries()),Re=ee.has(E.version)&&le.length===N.size&&le.every(([Ee,we])=>N.get(Ee)===we);return N==null||E.version===O.stateVersion||Re?!1:(ee.set(E.version,new Map(N)),Array.from(N).some(([Ee,we])=>y(_,E,Ee).contents!==we.contents))}function Q(_,E,R,$,O){let N=u(E);_.state==="loading"?(N.depValuesDiscoveredSoFarDuringAsyncWork=R,N.latestExecutionId=$,N.latestLoadable=_,N.stateVersion=O==null?void 0:O.version):(N.depValuesDiscoveredSoFarDuringAsyncWork=null,N.latestExecutionId=null,N.latestLoadable=null,N.stateVersion=null)}function ne(_,E,R){R.state!=="loading"&&H(_,E,R)}function _e(_,E,R){let $=u(E);ie(E,R)&&($.depValuesDiscoveredSoFarDuringAsyncWork=_)}function oe(_,E){ie(_,E)&&s.delete(_)}function ie(_,E){let R=u(_);return E===R.latestExecutionId}function F(_){_.state!=="loading"&&D(_.contents)}function D(_){}function H(_,E,R){_.atomValues.set(t,R),i.set(E,R)}function ve(_){if(Wn.includes(t)){let E=`Recoil selector has circular dependencies: ${Wn.slice(Wn.indexOf(t)).join(" \u2192 ")}`;return Bn(new Error(E))}Wn.push(t);try{return _()}finally{Wn.pop()}}function C(_,E){return i.get($=>{typeof $!="string"&&Dr(!1);let O=og(_,E,$);return O==null?void 0:O.contents})}function G(_,E){return ve(()=>Z(_,E))}function j(_){_.atomValues.delete(t)}return o!=null?Ju({key:t,nodeType:"selector",peek:C,get:G,set:(E,R,$)=>{let O=!1,N=new Map;function le({key:ge}){if(O)throw new Error("Recoil: Async selector sets are not currently supported.");let he=y(E,R,ge);if(F(he),he.state==="hasValue")return he.contents;throw he.state==="loading"?new lg(ge):he.contents}function Re(ge,he){if(O)throw new Error("Recoil: Async selector sets are not currently supported.");let P=typeof he=="function"?he(le(ge)):he;ig(E,R,ge.key,P).forEach((fe,ye)=>N.set(ye,fe))}function Ee(ge){Re(ge,sg)}let we=o({set:Re,get:le,reset:Ee},$);if(we!==void 0)throw xe(we)?new Error("Recoil: Async selector sets are not currently supported."):new Error("Recoil: selector set should be a void function.");return O=!0,N},init:d,invalidate:j,shouldDeleteConfigOnRelease:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:a}):Ju({key:t,nodeType:"selector",peek:C,get:G,init:d,invalidate:j,shouldDeleteConfigOnRelease:f,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:a})}var Br=gg,{loadableWithError:Qu,loadableWithPromise:ef,loadableWithValue:Hn}=Pn,{DEFAULT_VALUE:Mt,DefaultValue:tn,getConfigDeletionHandler:tf,registerNode:yg,setConfigDeletionHandler:bg}=rt,{isRecoilValue:wg}=Ot,{markRecoilValueModified:Sg,setRecoilValue:nf,setRecoilValueLoadable:Tg}=Dt,{retainedByOptionWithDefault:Eg}=Dn;function xg(e){let{key:t,persistence_UNSTABLE:n}=e,r=Eg(e.retainedBy_UNSTABLE),o=0,i=xe(e.default)?ef(e.default.then(m=>(i=Hn(m),{__key:t,__value:m})).catch(m=>{throw i=Qu(m),m})):Hn(e.default),a,s=new Map;function l(m,w){let S=w.then(T=>{var A,U;return((U=((A=m.getState().nextTree)!==null&&A!==void 0?A:m.getState().currentTree).atomValues.get(t))===null||U===void 0?void 0:U.contents)===S&&nf(m,y,T),{__key:t,__value:T}}).catch(T=>{var A,U;throw((U=((A=m.getState().nextTree)!==null&&A!==void 0?A:m.getState().currentTree).atomValues.get(t))===null||U===void 0?void 0:U.contents)===S&&Tg(m,y,Qu(T)),T});return S}function c(m,w,S){o++;let T=m.getState().knownAtoms.has(t);if(m.getState().knownAtoms.add(t),i.state==="loading"){let Z=()=>{var W;((W=m.getState().nextTree)!==null&&W!==void 0?W:m.getState().currentTree).atomValues.has(t)||Sg(m,y)};i.contents.then(Z).catch(Z)}let A=Mt,U=null;if(e.effects_UNSTABLE!=null&&!T){let Z=!0,W=Q=>ne=>{if(Z){let _e=A instanceof tn||xe(A)?i.state==="hasValue"?i.contents:Mt:A;A=typeof ne=="function"?ne(_e):ne,xe(A)&&(A=A.then(oe=>(U={effect:Q,value:oe},oe)))}else{if(xe(ne))throw new Error("Setting atoms to async values is not implemented.");typeof ne!="function"&&(U={effect:Q,value:ne}),nf(m,y,typeof ne=="function"?_e=>{let oe=ne(_e);return U={effect:Q,value:oe},oe}:ne)}},ee=Q=>()=>W(Q)(Mt),Te=Q=>ne=>{m.subscribeToTransactions(_e=>{var oe;let{currentTree:ie,previousTree:F}=_e.getState();F||(ht("Transaction subscribers notified without a next tree being present -- this is a bug in Recoil"),F=ie);let D=(oe=ie.atomValues.get(t))!==null&&oe!==void 0?oe:i;if(D.state==="hasValue"){var H,ve,C,G;let j=D.contents,_=(H=F.atomValues.get(t))!==null&&H!==void 0?H:i,E=_.state==="hasValue"?_.contents:Mt;((ve=U)===null||ve===void 0?void 0:ve.effect)!==Q||((C=U)===null||C===void 0?void 0:C.value)!==j?ne(j,E):((G=U)===null||G===void 0?void 0:G.effect)===Q&&(U=null)}},t)};for(let Q of(V=e.effects_UNSTABLE)!==null&&V!==void 0?V:[]){var V;let ne=Q({node:y,trigger:S,setSelf:W(Q),resetSelf:ee(Q),onSet:Te(Q)});if(ne!=null){var I;s.set(m,[...(I=s.get(m))!==null&&I!==void 0?I:[],ne])}}Z=!1}if(!(A instanceof tn)){var B;let Z=xe(A)?ef(l(m,A)):Hn(A);w.atomValues.set(t,Z),(B=m.getState().nextTree)===null||B===void 0||B.atomValues.set(t,Z)}return()=>{var Z;o--,(Z=s.get(m))===null||Z===void 0||Z.forEach(W=>W()),s.delete(m),m.getState().knownAtoms.delete(t)}}function u(m,w){var S,T,A;return(S=(T=w.atomValues.get(t))!==null&&T!==void 0?T:(A=a)===null||A===void 0?void 0:A[1])!==null&&S!==void 0?S:i}function d(m,w){if(w.atomValues.has(t))return ue(w.atomValues.get(t));if(w.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(n==null)return _i(`Tried to restore a persisted value for atom ${t} but it has no persistence settings.`),i;let S=w.nonvalidatedAtoms.get(t),T=n.validator(S,Mt);return a=T instanceof tn?i:Hn(T),a}else return i}function f(){a=void 0}function h(m,w,S){if(w.atomValues.has(t)){let T=ue(w.atomValues.get(t));if(T.state==="hasValue"&&S===T.contents)return new Map}else if(!w.nonvalidatedAtoms.has(t)&&S instanceof tn)return new Map;return a=void 0,new Map().set(t,Hn(S))}function p(){return tf(t)!==void 0&&o<=0}let y=yg({key:t,nodeType:"atom",peek:u,get:d,set:h,init:c,invalidate:f,shouldDeleteConfigOnRelease:p,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return y}function rf(e){let{default:t,...n}=e;return wg(t)?Rg({...n,default:t}):xg({...n,default:t})}function Rg(e){let t=rf({...e,default:Mt,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof tn?r:ue(e.persistence_UNSTABLE).validator(r,Mt)},effects_UNSTABLE:e.effects_UNSTABLE}),n=Br({key:`${e.key}__withFallback`,get:({get:r})=>{let o=r(t);return o instanceof tn?e.default:o},set:({set:r},o)=>r(t,o),dangerouslyAllowMutability:e.dangerouslyAllowMutability});return bg(n.key,tf(e.key)),n}var of=rf,af=class{constructor(t){var n;ae(this,"_map",void 0),ae(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}},Ag={MapCache:af},Fg=Ag.MapCache,Cg=Object.freeze({__proto__:null,MapCache:Fg}),{LRUCache:sf}=Yu,{MapCache:Ng}=Cg,Wr={equality:"reference",eviction:"none",maxSize:1/0};function kg({equality:e=Wr.equality,eviction:t=Wr.eviction,maxSize:n=Wr.maxSize}=Wr){let r=Lg(e);return Pg(t,n,r)}function Lg(e){switch(e){case"reference":return t=>t;case"value":return t=>Ur(t)}throw new Error(`Unrecognized equality policy ${e}`)}function Pg(e,t,n){switch(e){case"keep-all":return new Ng({mapKey:n});case"lru":return new sf({mapKey:n,maxSize:ue(t)});case"most-recent":return new sf({mapKey:n,maxSize:1})}throw new Error(`Unrecognized eviction policy ${e}`)}var lf=kg,{setConfigDeletionHandler:Og}=rt;function Vg(e){var t,n;let r=lf({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a=r.get(o);if(a!=null)return a;let{cachePolicyForParams_UNSTABLE:s,...l}=e,c=of({...l,key:`${e.key}__${(i=Ur(o))!==null&&i!==void 0?i:"void"}`,default:typeof e.default=="function"?e.default(o):e.default,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,effects_UNSTABLE:typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(o):e.effects_UNSTABLE});return r.set(o,c),Og(c.key,()=>{r.delete(o)}),c}}var Dg=Vg,{setConfigDeletionHandler:Mg}=rt,Ig=0;function $g(e){var t,n;let r=lf({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return o=>{var i;let a=r.get(o);if(a!=null)return a;let s=`${e.key}__selectorFamily/${(i=Ur(o,{allowFunctions:!0}))!==null&&i!==void 0?i:"void"}/${Ig++}`,l=f=>e.get(o)(f),c=e.cachePolicy_UNSTABLE,u=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(o):e.retainedBy_UNSTABLE,d;if(e.set!=null){let f=e.set;d=Br({key:s,get:l,set:(p,y)=>f(o)(p,y),cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u})}else d=Br({key:s,get:l,cachePolicy_UNSTABLE:c,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:u});return r.set(o,d),Mg(d.key,()=>{r.delete(o)}),d}}var Ft=$g,Ug=Ft({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function zg(e){return Ug(e)}var jg=zg,Bg=Ft({key:"__error",get:e=>()=>{throw new Error(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Wg(e){return Bg(e)}var Hg=Wg;function qg(e){return e}var Gg=qg,{loadableWithError:cf,loadableWithPromise:uf,loadableWithValue:ff}=Pn;function Hr(e,t){let n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(let[o,i]of t.entries())try{n[o]=e(i)}catch(a){r[o]=a}return[n,r]}function Kg(e){return e!=null&&!xe(e)}function qr(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function Yi(e){return e!=null&&typeof e=="object"&&e.hasOwnProperty("__value")?e.__value:e}function Zi(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,o)=>({...n,[r]:t[o]}),{})}function nn(e,t,n){let r=n.map((o,i)=>o==null?ff(t[i]):xe(o)?uf(o):cf(o));return Zi(e,r)}function Yg(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}var Zg=Ft({key:"__waitForNone",get:e=>({get:t})=>{let n=qr(e),[r,o]=Hr(t,n);return nn(e,r,o)},dangerouslyAllowMutability:!0}),Xg=Ft({key:"__waitForAny",get:e=>({get:t})=>{let n=qr(e),[r,o]=Hr(t,n);return o.some(i=>!xe(i))?nn(e,r,o):new Promise(i=>{for(let[a,s]of o.entries())xe(s)&&s.then(l=>{r[a]=Yi(l),o[a]=void 0,i(nn(e,r,o))}).catch(l=>{o[a]=l,i(nn(e,r,o))})})},dangerouslyAllowMutability:!0}),Jg=Ft({key:"__waitForAll",get:e=>({get:t})=>{let n=qr(e),[r,o]=Hr(t,n);if(o.every(a=>a==null))return Zi(e,r);let i=o.find(Kg);if(i!=null)throw i;return Promise.all(o).then(a=>Zi(e,Yg(r,a).map(Yi)))},dangerouslyAllowMutability:!0}),Qg=Ft({key:"__waitForAllSettled",get:e=>({get:t})=>{let n=qr(e),[r,o]=Hr(t,n);return o.every(i=>!xe(i))?nn(e,r,o):Promise.all(o.map((i,a)=>xe(i)?i.then(s=>{r[a]=Yi(s),o[a]=void 0}).catch(s=>{r[a]=void 0,o[a]=s}):null)).then(()=>nn(e,r,o))},dangerouslyAllowMutability:!0}),ey=Ft({key:"__noWait",get:e=>({get:t})=>{try{return ff(t(e))}catch(n){return xe(n)?uf(n):cf(n)}},dangerouslyAllowMutability:!0}),ty={waitForNone:Zg,waitForAny:Xg,waitForAll:Jg,waitForAllSettled:Qg,noWait:ey},{batchUpdates:ny,setBatcher:ry}=Ci,{DefaultValue:oy}=rt,{RecoilRoot:iy}=Vr,{isRecoilValue:ay}=Ot,{retentionZone:sy}=xr,{freshSnapshot:ly}=Or,{useGotoRecoilSnapshot:cy,useRecoilCallback:uy,useRecoilSnapshot:fy,useRecoilState:dy,useRecoilStateLoadable:py,useRecoilTransaction:hy,useRecoilTransactionObserver:vy,useRecoilValue:my,useRecoilValueLoadable:_y,useResetRecoilState:gy,useRetain:yy,useSetRecoilState:by,useSetUnvalidatedAtomValues:wy,useTransactionObservation_DEPRECATED:Sy}=N_,{noWait:Ty,waitForAll:Ey,waitForAllSettled:xy,waitForAny:Ry,waitForNone:Ay}=ty,re={DefaultValue:oy,RecoilRoot:iy,useRecoilBridgeAcrossReactRoots_UNSTABLE:$_,atom:of,selector:Br,retentionZone:sy,atomFamily:Dg,selectorFamily:Ft,constSelector:jg,errorSelector:Hg,readOnlySelector:Gg,useRecoilValue:my,useRecoilValueLoadable:_y,useRecoilState:dy,useRecoilStateLoadable:py,useSetRecoilState:by,useResetRecoilState:gy,useGetRecoilValueInfo_UNSTABLE:O_,useRetain:yy,useRecoilCallback:uy,useRecoilTransaction_UNSTABLE:hy,useGotoRecoilSnapshot:cy,useRecoilSnapshot:fy,useRecoilTransactionObserver_UNSTABLE:vy,useTransactionObservation_UNSTABLE:Sy,useSetUnvalidatedAtomValues_UNSTABLE:wy,noWait:Ty,waitForNone:Ay,waitForAny:Ry,waitForAll:Ey,waitForAllSettled:xy,isRecoilValue:ay,batchUpdates:ny,setBatcher:ry,snapshot_UNSTABLE:ly},c1=re.DefaultValue,df=re.RecoilRoot,u1=re.useRecoilBridgeAcrossReactRoots_UNSTABLE,ot=re.atom,f1=re.selector,d1=re.retentionZone,p1=re.atomFamily,h1=re.selectorFamily,v1=re.constSelector,m1=re.errorSelector,_1=re.readOnlySelector,g1=re.useRecoilValue,y1=re.useRecoilValueLoadable,se=re.useRecoilState,b1=re.useRecoilStateLoadable,w1=re.useSetRecoilState,S1=re.useResetRecoilState,T1=re.useGetRecoilValueInfo_UNSTABLE,E1=re.useRetain,x1=re.useRecoilCallback,R1=re.useRecoilTransaction_UNSTABLE,A1=re.useGotoRecoilSnapshot,F1=re.useRecoilSnapshot,C1=re.useRecoilTransactionObserver_UNSTABLE,N1=re.useTransactionObservation_UNSTABLE,k1=re.useSetUnvalidatedAtomValues_UNSTABLE,L1=re.noWait,P1=re.waitForNone,O1=re.waitForAny,V1=re.waitForAll,D1=re.waitForAllSettled,M1=re.isRecoilValue,I1=re.batchUpdates,$1=re.setBatcher,U1=re.snapshot_UNSTABLE;var Gr=ot({key:"fileTreeViewState",default:"folder"}),vt=ot({key:"fileTreeActiveFolderPathState",default:""}),Kr=ot({key:"fileTreeExcludedFoldersState",default:[]}),Yr=ot({key:"fileTreeExcludedExtensions",default:[]}),Zr=ot({key:"fileTreeFolderFileCountMapState",default:{}}),Xr=ot({key:"fileTreeFolderTreeState",default:null,dangerouslyAllowMutability:!0}),Jr=ot({key:"fileTreeFileListState",default:[],dangerouslyAllowMutability:!0}),Qr=ot({key:"fileTreePinnedFilesState",default:[],dangerouslyAllowMutability:!0}),rn=ot({key:"fileTreeOpenFoldersState",default:[],dangerouslyAllowMutability:!0}),eo=ot({key:"showSubFoldersInVault",default:!1}),on=ot({key:"fileTreeFocusedFolder",default:null,dangerouslyAllowMutability:!0});function to(e){let t=b.useRef(null),n=e.plugin,[r,o]=se(Gr),[i,a]=se(Jr),[s,l]=se(Qr),[c,u]=se(vt),[d]=se(Yr),[f,h]=se(eo),[p,y]=De(null),[m,w]=De(!1),[S,T]=De(""),[A,U]=De(!1),[V,I]=De(br(c,n.app));ke(()=>I(br(c,n.app)),[c]),ke(()=>{a(Xt(c,n))},[f]),ke(()=>{A&&t.current.focus()},[A]);let B=C=>{C.map(G=>Fe(this,null,function*(){G.arrayBuffer().then(j=>{n.app.vault.adapter.writeBinary(c+"/"+G.name,j)})}))},Z=(C,G)=>{jc(G,C.path,n.app),y(C)},W=(C,G)=>{let j=new pf.Menu(n.app);return j.addItem(_=>{_.setIcon("pin"),s.contains(C)?_.setTitle("Unpin"):_.setTitle("Pin to Top"),_.onClick(E=>{if(s.contains(C)){let R=s.filter($=>$!==C);l(R)}else l([...s,C])})}),j.addItem(_=>{_.setTitle("Rename"),_.setIcon("pencil"),_.onClick(E=>{new St(n.app,C,"rename").open()})}),j.addItem(_=>{_.setTitle("Delete"),_.setIcon("trash"),_.onClick(E=>{n.app.vault.delete(C,!0)})}),wr("file-explorer",n.app)||j.addItem(_=>{_.setTitle("Move file to..."),_.setIcon("paper-plane"),_.onClick(E=>{new Ln(n.app,C).open()})}),n.app.workspace.trigger("file-menu",j,C,"file-explorer"),j.showAtPosition({x:G.pageX,y:G.pageY}),!1},ee=C=>{let G;return d.length>0&&(G=C.filter(j=>!d.contains(j.extension))),G=G.sort((j,_)=>{if(n.settings.sortFilesBy==="name")return j.name.localeCompare(_.name,"en",{numeric:!0});if(n.settings.sortFilesBy==="last-update")return _.stat.mtime-j.stat.mtime}),s.length>0&&(G=G.reduce((j,_)=>s.contains(_)?[_,...j]:[...j,_],[])),G},Te=(C,G)=>Fe(this,null,function*(){let j=n.app.vault.getAbstractFileByPath(G);if(!j)return;new St(n.app,j,"create note").open()}),Q=C=>{o("folder"),u("")},ne=C=>{T(""),U(!A),a(Xt(c,n))},_e=new RegExp("all:(.*)?"),oe=new RegExp("tag:(.*)?"),ie=C=>{var G=C.target.value;T(G);var j=c;let _=G.match(oe);if(_){if(I("Files with Tag"),_[1]===void 0||_[1].replace(/\s/g,"").length===0){a([]);return}a([...D(_[1])]);return}let E=G.match(_e);E?(G=E[1]?E[1]:"",j="/",I("All Files")):I(br(c,n.app));let $=F(G,j,!!E);a($)},F=(C,G,j)=>{var _=Xt(G,n,j),E=_.filter(R=>R.name.toLowerCase().includes(C.toLowerCase().trimStart()));return E},D=C=>{let G=new Set,j=n.app.vault.getMarkdownFiles();for(let _ of j){let E=n.app.metadataCache.getFileCache(_);if(E.tags)for(let R of E.tags)R.tag.toLowerCase().contains(C.toLowerCase().trimStart())&&(G.has(_)||G.add(_))}return G},H=(C,G)=>{n.settings.filePreviewOnHover&&n.app.workspace.trigger("link-hover",{},C.target,G.path,G.path)},ve=()=>Fe(this,null,function*(){n.settings.showFilesFromSubFolders=!f,yield n.saveSettings(),h(!f)});return b.createElement(b.Fragment,null,b.createElement(ur,{onDrop:B,noClick:!0,onDragEnter:()=>w(!0),onDragLeave:()=>w(!1),onDropAccepted:()=>w(!1),onDropRejected:()=>w(!1)},({getRootProps:C,getInputProps:G})=>b.createElement("div",_t(Ue({},C()),{className:m?"drag-entered":"",style:{width:"100%",height:"100%",position:"relative"}}),b.createElement("input",Ue({},G())),b.createElement("div",{className:"oz-explorer-container"},b.createElement("div",{className:`oz-file-tree-header-wrapper${n.settings.fixedHeaderInFileList?" file-tree-header-fixed":""}`},b.createElement("div",{className:"oz-flex-container"},b.createElement("div",{className:"nav-action-button oz-nav-action-button"},b.createElement(lt,{icon:n.settings.evernoteView?ii.faTimesCircle:ni.faArrowCircleLeft,onClick:j=>Q(j),size:"lg"})),b.createElement("div",{className:"oz-nav-buttons-right-block"},n.settings.showFilesFromSubFoldersButton&&b.createElement("div",{className:"nav-action-button oz-nav-action-button"},f?b.createElement(lt,{icon:si.faEyeSlash,onClick:ve,size:"lg"}):b.createElement(lt,{icon:ai.faEye,onClick:ve,size:"lg"})),n.settings.searchFunction&&b.createElement("div",{className:"nav-action-button oz-nav-action-button"},b.createElement(lt,{icon:oi.faSearch,onClick:ne,size:"lg"})),b.createElement("div",{className:"nav-action-button oz-nav-action-button"},b.createElement(lt,{icon:ti.faPlusCircle,onClick:j=>Te(j,c),size:"lg"})))),A&&b.createElement("div",{className:"search-input-container oz-input-container"},b.createElement("input",{type:"search",placeholder:"Search...",ref:t,value:S,onChange:ie})),b.createElement("div",{className:"oz-file-tree-header"},V)),b.createElement("div",{className:`oz-file-tree-files${n.settings.fixedHeaderInFileList?" file-tree-files-fixed":""}`},ee(i).map(j=>b.createElement("div",{className:"nav-file oz-nav-file",key:j.path,onClick:_=>Z(j,_),onContextMenu:_=>W(j,_),onMouseEnter:_=>H(_,j)},b.createElement("div",{className:"nav-file-title oz-nav-file-title"+(p===j?" is-active":""),"data-path":j.path},yr(j.name).extension!=="md"&&b.createElement("span",{className:"nav-file-tag"},yr(j.name).extension),b.createElement("div",{className:"nav-file-title-content"},yr(j.name).fileName,s.contains(j)&&b.createElement(lt,{icon:ri.faThumbtack,style:{marginLeft:"3px",float:"right"},size:"xs"}))))))))))}function q(){return q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}function qn(e,t){return qn=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},qn(e,t)}function Le(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qn(e,t)}function $e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var hf=void 0,no=void 0,vf=[],Fy=function(t){return global.requestAnimationFrame(t)},Cy=function(t){return global.cancelAnimationFrame(t)},Xi=void 0,mf=function(){return Date.now()},Ny=void 0,ky=function(t,n){return no={fn:t,transform:n}},Ly=function(t){return vf=t},Py=function(t){return hf=t},Oy=function(t){return Xi=t};var Vy=function(t){return Ny=t};var ro={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},Dy=function(t){return t},Ji=function(){function e(){}return e.create=function(n){if(typeof n=="function")return n;if(Xi&&n.output&&typeof n.output[0]=="string")return Xi(n);var r=n.output,o=n.range,i=n.easing||Dy,a="extend",s=n.map;n.extrapolateLeft!==void 0?a=n.extrapolateLeft:n.extrapolate!==void 0&&(a=n.extrapolate);var l="extend";return n.extrapolateRight!==void 0?l=n.extrapolateRight:n.extrapolate!==void 0&&(l=n.extrapolate),function(c){var u=Iy(c,o);return My(c,o[u],o[u+1],r[u],r[u+1],i,a,l,s)}},e}();function My(e,t,n,r,o,i,a,s,l){var c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===o?r:t===n?e<=t?r:o:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=i(c),r===-1/0?c=-c:o===1/0?c=c+r:c=c*(o-r)+r,c)}function Iy(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var ft="[-+]?\\d*\\.?\\d+",oo=ft+"%";function io(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var $y=new RegExp("rgb"+io(ft,ft,ft)),Uy=new RegExp("rgba"+io(ft,ft,ft,ft)),zy=new RegExp("hsl"+io(ft,oo,oo)),jy=new RegExp("hsla"+io(ft,oo,oo,ft)),By=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Wy=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Hy=/^#([0-9a-fA-F]{6})$/,qy=/^#([0-9a-fA-F]{8})$/;function Gy(e){var t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Hy.exec(e))?parseInt(t[1]+"ff",16)>>>0:ro.hasOwnProperty(e)?ro[e]:(t=$y.exec(e))?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|255)>>>0:(t=Uy.exec(e))?(an(t[1])<<24|an(t[2])<<16|an(t[3])<<8|yf(t[4]))>>>0:(t=By.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=qy.exec(e))?parseInt(t[1],16)>>>0:(t=Wy.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=zy.exec(e))?(_f(gf(t[1]),ao(t[2]),ao(t[3]))|255)>>>0:(t=jy.exec(e))?(_f(gf(t[1]),ao(t[2]),ao(t[3]))|yf(t[4]))>>>0:null}function Qi(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 _f(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=Qi(o,r,e+1/3),a=Qi(o,r,e),s=Qi(o,r,e-1/3);return Math.round(i*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function an(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function gf(e){var t=parseFloat(e);return(t%360+360)%360/360}function yf(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function ao(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function bf(e){var t=Gy(e);if(t===null)return e;t=t||0;var n=(t&4278190080)>>>24,r=(t&16711680)>>>16,o=(t&65280)>>>8,i=(t&255)/255;return"rgba("+n+", "+r+", "+o+", "+i+")"}var so=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ky=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Yy=new RegExp("("+Object.keys(ro).join("|")+")","g");function Zy(e){var t=e.output.map(function(i){return i.replace(Ky,bf)}).map(function(i){return i.replace(Yy,bf)}),n=t[0].match(so).map(function(){return[]});t.forEach(function(i){i.match(so).forEach(function(a,s){return n[s].push(+a)})});var r=t[0].match(so).map(function(i,a){return Ji.create(q({},e,{output:n[a]}))}),o=/^rgb/.test(t[0]);return function(i){var a=0;return t[0].replace(so,function(){return r[a++](i)}).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,function(s,l,c,u,d){return"rgba("+Math.round(l)+", "+Math.round(c)+", "+Math.round(u)+", "+d+")"})}}var Pe=function(){function e(){}var t=e.prototype;return t.__attach=function(){},t.__detach=function(){},t.__getValue=function(){},t.__getAnimatedValue=function(){return this.__getValue()},t.__addChild=function(r){},t.__removeChild=function(r){},t.__getChildren=function(){return[]},e}(),Xy=function(e){Le(t,e);function t(r,o,i,a,s){var l;return l=e.call(this)||this,l.update=Jy(function(){l._value.animate(new l._animationClass(q({},l._animationConfig,{to:l._animationConfig.to.__getValue()})),l._callback)},1e3/30),l._value=r,l._parent=o,l._animationClass=i,l._animationConfig=a,l._callback=s,l.__attach(),l}var n=t.prototype;return n.__getValue=function(){return this._parent.__getValue()},n.__attach=function(){this._parent.__addChild(this)},n.__detach=function(){this._parent.__removeChild(this)},t}(Pe);function Jy(e,t){var n=null,r=0,o=function(){return e(r=Date.now(),n=null)};return function(){var i=Date.now(),a=t-(i-r);a<=0||a>t?(n&&(clearTimeout(n),n=null),e(r=i)):n||(n=setTimeout(o,a))}}var lo=function(e){Le(t,e);function t(){var r;return r=e.call(this)||this,r._children=[],r}var n=t.prototype;return n.__addChild=function(o){this._children.length===0&&this.__attach(),this._children.push(o)},n.__removeChild=function(o){var i=this._children.indexOf(o);i!==-1&&(this._children.splice(i,1),this._children.length===0&&this.__detach())},n.__getChildren=function(){return this._children},t}(Pe),Qy=function(e){Le(t,e);function t(r,o){var i;return i=e.call(this)||this,i._parents=r._values?r._values:Array.isArray(r)?r:[r],i._interpolation=Ji.create(o),i}var n=t.prototype;return n.__getValue=function(){return this._interpolation.apply(this,this._parents.map(function(o){return o.__getValue()}))},n.__attach=function(){for(var o=0;o<this._parents.length;++o)this._parents[o]instanceof Pe&&this._parents[o].__addChild(this)},n.__detach=function(){for(var o=0;o<this._parents.length;++o)this._parents[o]instanceof Pe&&this._parents[o].__removeChild(this)},n.__update=function(o){return this._interpolation=Ji.create(o),this},n.interpolate=function(o){return new t(this,o)},t}(lo);var e0=0;function wf(e,t){typeof e.update=="function"?t.add(e):e.__getChildren().forEach(function(n){return wf(n,t)})}var Ct=function(e){Le(t,e);function t(r){var o;return o=e.call(this)||this,o._updateValue=function(i){o._value=i,o._flush();for(var a in o._listeners)o._listeners[a]({value:i})},o._value=r,o._animation=null,o._animatedStyles=new Set,o._listeners={},o}var n=t.prototype;return n.__detach=function(){this.stopAnimation()},n.__getValue=function(){return this._value},n._update=function(){wf(this,this._animatedStyles)},n._flush=function(){this._animatedStyles.size===0&&this._update(),this._animatedStyles.forEach(function(o){return o.update()})},n.setValue=function(o){this._animation&&(this._animation.stop(),this._animation=null),this._animatedStyles.clear(),this._updateValue(o)},n.stopAnimation=function(o){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,o&&o(this.__getValue())},n.interpolate=function(o){return new Qy(this,o)},n.animate=function(o,i){var a=this,s=this._animation;this._animation&&this._animation.stop(),this._animation=o,this._animatedStyles.clear(),o.start(this._value,this._updateValue,function(l){a._animation=null,i&&i(l)},s)},n.addListener=function(o){var i=String(e0++);return this._listeners[i]=o,i},n.removeListener=function(o){delete this._listeners[o]},n.removeAllListeners=function(){this._listeners={}},n.stopTracking=function(){this._tracking&&this._tracking.__detach(),this._tracking=null},n.track=function(o){this.stopTracking(),this._tracking=o},t}(lo);function Sf(e,t){for(var n in e)if(!(n in t))return!1;for(var r in t)if(e[r]!==t[r])return!1;return!0}function xt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return typeof e=="function"?e.apply(void 0,[t].concat(r)):e}function Gn(e){return Object.keys(e).map(function(t){return e[t]})}function Tf(e){var t=e.to,n=e.from,r=e.config,o=e.native,i=e.onRest,a=e.onFrame,s=e.children,l=e.render,c=e.reset,u=e.reverse,d=e.force,f=e.immediate,h=e.impl,p=e.inject,y=e.delay,m=e.attach,w=e.destroyed,S=$e(e,["to","from","config","native","onRest","onFrame","children","render","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed"]);return S}function Ef(e,t){var n=q({},t,Tf(e));return e.render?e.render(q({},n,{children:e.children})):e.children(n)}function t0(e,t){var n,r=t[0],o=t[1];return q({},e,(n={},n[r]=new Ct(o),n))}function xf(e){var t=e.from,n=e.to,r=e.native,o=Object.entries(q({},t,n));return r?o.reduce(t0,{}):q({},t,n)}var Rf=function(t){return t==="auto"},n0=function(t,n){return function(r,o){var i,a=o[0],s=o[1];return q({},r,(i={},i[a]=s==="auto"?~a.indexOf("height")?n:t:s,i))}};function r0(e,t){var n=e.from,r=e.to;if(!!(Gn(r).some(Rf)||Gn(n).some(Rf))){var o=Ef(e,xf(e));if(!!o){var i=o.props.style;return b.createElement(o.type,q({key:o.key},o.props,{style:q({},i,{position:"absolute",visibility:"hidden"}),ref:function(s){if(s){var l=b.findDOMNode(s),c,u,d=getComputedStyle(l);if(d.boxSizing==="border-box")c=l.offsetWidth,u=l.offsetHeight;else{var f=parseFloat(d.paddingLeft||0)+parseFloat(d.paddingRight||0),h=parseFloat(d.paddingTop||0)+parseFloat(d.paddingBottom||0),p=parseFloat(d.borderLeftWidth||0)+parseFloat(d.borderRightWidth||0),y=parseFloat(d.borderTopWidth||0)+parseFloat(d.borderBottomWidth||0);c=l.offsetWidth-f-p,u=l.offsetHeight-h-y}var m=n0(c,u);t(q({},e,{from:Object.entries(n).reduce(m,n),to:Object.entries(r).reduce(m,r)}))}}}))}}}var Kn={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},o0=function(t,n){return t+n.charAt(0).toUpperCase()+n.substring(1)},i0=["Webkit","Ms","Moz","O"];Kn=Object.keys(Kn).reduce(function(e,t){return i0.forEach(function(n){return e[o0(n,t)]=e[t]}),e},Kn);function a0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":!n&&typeof t=="number"&&t!==0&&!(Kn.hasOwnProperty(e)&&Kn[e])?t+"px":(""+t).trim()}Vy("div");Oy(Zy);Ly(ro);Py(r0);ky(function(e,t){if(e.nodeType&&e.setAttribute!==void 0){var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=$e(t,["style","children","scrollTop","scrollLeft"]);o&&(e.scrollTop=o),i&&(e.scrollLeft=i),r&&(e.textContent=r);for(var s in n)if(!!n.hasOwnProperty(s)){var l=s.indexOf("--")===0,c=a0(s,n[s],l);s==="float"&&(s="cssFloat"),l?e.style.setProperty(s,c):e.style[s]=c}for(var u in a){var d=u.replace(/([A-Z])/g,function(f){return"-"+f.toLowerCase()});typeof e.getAttribute(d)!="undefined"&&e.setAttribute(d,a[u])}}else return!1},function(e){return e});var s0=function(){function e(){}var t=e.prototype;return t.start=function(r,o,i,a){},t.stop=function(){},t.__debouncedOnEnd=function(r){var o=this.__onEnd;this.__onEnd=null,o&&o(r)},e}(),It=function(t,n){return t??n},l0=function(t){return(t-30)*3.62+194},c0=function(t){return(t-8)*3+25},u0=function(t,n){return{tension:l0(t),friction:c0(n)}},ea=function(e){Le(t,e);function t(r){var o;o=e.call(this)||this,o.startAsync=function(){if(o._lastTime=mf(),typeof o._startPosition=="string"||typeof o._to=="string")return o._onUpdate(o._to),o.__debouncedOnEnd({finished:!0});if(o.__previous instanceof t){var a=o.__previous.getInternalState();o._lastPosition=a.lastPosition,o._lastVelocity=a.lastVelocity,o._lastTime=a.lastTime}o._initialVelocity!==void 0&&o._initialVelocity!==null&&(o._lastVelocity=o._initialVelocity),o.onUpdate()},o.onUpdate=function(){var a=o._lastPosition,s=o._lastVelocity,l=o._lastPosition,c=o._lastVelocity,u=64,d=mf();d>o._lastTime+u&&(d=o._lastTime+u);for(var f=1,h=Math.floor((d-o._lastTime)/f),p=0;p<h;++p){var y=f/1e3,m=s,w=o._tension*(o._to-l)-o._friction*c;l=a+m*y/2,c=s+w*y/2;var S=c,T=o._tension*(o._to-l)-o._friction*c;l=a+S*y/2,c=s+T*y/2;var A=c,U=o._tension*(o._to-l)-o._friction*c;l=a+A*y/2,c=s+U*y/2;var V=c,I=o._tension*(o._to-l)-o._friction*c;l=a+A*y/2,c=s+U*y/2;var B=(m+2*(S+A)+V)/6,Z=(w+2*(T+U)+I)/6;a+=B*y,s+=Z*y}o._lastTime=d,o._lastPosition=a,o._lastVelocity=s;var W=o._overshootClamping&&o._tension!==0?o._startPosition<o._to?a>o._to:a<o._to:!1,ee=Math.abs(s)<=o._restSpeedThreshold,Te=o._tension!==0?Math.abs(o._to-a)<=o._restDisplacementThreshold:!0,Q=W||ee&&Te;if(!!o.__active){if(Q)return o._tension!==0&&o._onUpdate(o._to),o.__debouncedOnEnd({finished:!0});o._onUpdate(a),o._animationFrame=Fy(o.onUpdate)}},o._overshootClamping=It(r.overshootClamping,!1),o._restDisplacementThreshold=It(r.restDisplacementThreshold,1e-4),o._restSpeedThreshold=It(r.restSpeedThreshold,1e-4),o._initialVelocity=r.velocity,o._lastVelocity=It(r.velocity,0),o._to=r.to;var i=u0(It(r.tension,40),It(r.friction,7));return o._tension=i.tension,o._friction=i.friction,o._delay=It(r.delay,0),o}var n=t.prototype;return n.start=function(o,i,a,s){this.__active=!0,this._startPosition=o,this._lastPosition=this._startPosition,this._onUpdate=i,this.__onEnd=a,this.__previous=s,this._delay>0?(this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._timer=setTimeout(this.startAsync,this._delay)):this.startAsync()},n.getInternalState=function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}},n.stop=function(){this.__active=!1,clearTimeout(this._timeout),this._timeout=void 0,Cy(this._animationFrame),this.__debouncedOnEnd({finished:!1})},t}(s0),Af=function(e){Le(t,e);function t(r){var o;return o=e.call(this)||this,o._values=r.map(function(i){return new Ct(i)}),o}var n=t.prototype;return n.setValue=function(o){var i=this;o.forEach(function(a,s){return i._values[s].setValue(a)})},n.__getValue=function(){return this._values.map(function(o){return o.__getValue()})},n.stopAnimation=function(o){this._values.forEach(function(i){return i.stopAnimation()}),o&&o(this.__getValue())},n.__attach=function(){for(var o=0;o<this._values.length;++o)this._values[o]instanceof Pe&&this._values[o].__addChild(this)},n.__detach=function(){for(var o=0;o<this._values.length;++o)this._values[o]instanceof Pe&&this._values[o].__removeChild(this)},t}(lo);function f0(e,t,n,r){var o=t.to,i=$e(t,["to"]);return e instanceof Af?d0(e._values.map(function(a,s){return n(a,q({},i,{to:o[s]}),r)}),{stopTogether:!1}):null}function d0(e,t){var n=0,r={},o=!(t&&t.stopTogether===!1),i={start:function(s){if(n===e.length)return s&&s({finished:!0});e.forEach(function(l,c){var u=function(f){if(r[c]=!0,n++,n===e.length)return n=0,s&&s(f);!f.finished&&o&&i.stop()};l?l.start(u):u({finished:!0})})},stop:function(){e.forEach(function(s,l){!r[l]&&s.stop(),r[l]=!0})}};return i}function Yn(e,t,n){return n===void 0&&(n=ea),f0(e,t,Yn,n)||{start:function(o){var i=e,a=t;i.stopTracking(),t.to instanceof Pe?i.track(new Xy(i,t.to,n,a,o)):i.animate(new n(a),o)},stop:function(){e.stopAnimation()}}}var p0=function(e){Le(t,e);function t(r){var o;return o=e.call(this)||this,r=r||{},r.transform&&!(r.transform instanceof Pe)&&(r=no.transform(r)),o._style=r,o}var n=t.prototype;return n.__getValue=function(){var o={};for(var i in this._style){var a=this._style[i];o[i]=a instanceof Pe?a.__getValue():a}return o},n.__getAnimatedValue=function(){var o={};for(var i in this._style){var a=this._style[i];a instanceof Pe&&(o[i]=a.__getAnimatedValue())}return o},n.__attach=function(){for(var o in this._style){var i=this._style[o];i instanceof Pe&&i.__addChild(this)}},n.__detach=function(){for(var o in this._style){var i=this._style[o];i instanceof Pe&&i.__removeChild(this)}},t}(lo),Ff=function(e){Le(t,e);function t(r,o){var i;return i=e.call(this)||this,r.style&&(r=q({},r,{style:new p0(r.style)})),i._props=r,i._callback=o,i.__attach(),i}var n=t.prototype;return n.__getValue=function(){var o={};for(var i in this._props){var a=this._props[i];a instanceof Pe?o[i]=a.__getValue():o[i]=a}return o},n.__getAnimatedValue=function(){var o={};for(var i in this._props){var a=this._props[i];a instanceof Pe&&(o[i]=a.__getAnimatedValue())}return o},n.__attach=function(){for(var o in this._props){var i=this._props[o];i instanceof Pe&&i.__addChild(this)}},n.__detach=function(){for(var o in this._props){var i=this._props[o];i instanceof Pe&&i.__removeChild(this)}},n.update=function(){this._callback()},t}(Pe);function ta(e){var t=function(n){Le(r,n);function r(){return n.apply(this,arguments)||this}var o=r.prototype;return o.componentWillUnmount=function(){this._propsAnimated&&this._propsAnimated.__detach()},o.setNativeProps=function(a){var s=no.fn(this.node,a,this);s===!1&&this.forceUpdate()},o.componentWillMount=function(){this.attachProps(this.props)},o.attachProps=function(a){var s=this,l=a.forwardRef,c=$e(a,["forwardRef"]),u=this._propsAnimated,d=function(){if(s.node){var h=no.fn(s.node,s._propsAnimated.__getAnimatedValue(),s);h===!1&&s.forceUpdate()}};this._propsAnimated=new Ff(c,d),u&&u.__detach()},o.componentWillReceiveProps=function(a){this.attachProps(a)},o.render=function(){var a=this,s=this.props.forwardRef,l=this._propsAnimated.__getValue(),c=l.scrollTop,u=l.scrollLeft,d=$e(l,["scrollTop","scrollLeft"]);return b.createElement(e,q({},d,{ref:function(h){a.node=h;var p=a.props.forwardRef;p&&(typeof p=="function"?p(h):typeof p=="object"&&(p.current=h))}}))},r}(b.Component);return b.forwardRef(function(n,r){return b.createElement(t,q({},n,{forwardRef:r}))})}var co={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}},uw=b.version.split("."),sn=function(e){Le(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},r.didUpdate=!1,r.didInject=!1,r.updating=!1,r.animations={},r.interpolators={},r.mergedProps={},r.start=function(){var s=r.props,l=s.config,c=s.delay,u=s.impl;r.props.onStart&&r.props.onStart(),Object.keys(r.animations).forEach(function(d){var f=r.animations[d],h=f.animation,p=f.toValue;if(!p.__getValue&&h.__getValue()===p)return r.finishAnimation(d);Yn(h,q({to:p,delay:c},xt(l,d)),u).start(!p.__getValue&&function(y){return y.finished&&r.finishAnimation(d)})})},r.stop=function(){return Gn(r.animations).forEach(function(s){var l=s.animation;return l.stopAnimation()})},r.finishAnimation=function(s){var l=r.animations[s],c=l.animation,u=l.toValue;if(r.animations[s].stopped=!0,!!r.mounted&&Gn(r.animations).every(function(f){return f.stopped})){var d=q({},r.props.from,r.props.to);r.props.onRest&&r.props.onRest(d),r.didInject&&(r.afterInject=xf(r.props),r.didInject=!1,r.setState({internal:!0}))}},r}var n=t.prototype;return n.componentDidMount=function(){this.componentDidUpdate(),this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1,this.stop()},t.getDerivedStateFromProps=function(o,i){var a=i.internal,s=i.lastProps,l=o.from,c=o.to,u=o.reset,d=o.force,f=!Sf(c,s.to)||!Sf(l,s.from)||u&&!a||d&&!a;return{propsChanged:f,lastProps:o,internal:!1}},n.render=function(){var o=this,i=this.state.propsChanged;if(this.props.inject&&i&&!this.injectProps){var a=this.props.inject(this.props,function(l){o.injectProps=l,o.setState({internal:!0})});if(a)return a}this.injectProps?(this.updateAnimations(this.injectProps),this.injectProps=void 0,this.didInject=!0):i&&this.updateAnimations(this.props);var s=this.getAnimatedValues();return s&&Object.keys(s).length?Ef(this.props,q({},s,this.afterInject)):null},n.componentDidUpdate=function(){this.didUpdate&&this.start(),this.didUpdate=!1},n.updateAnimations=function(o){var i=this,a=o.from,s=o.to,l=o.reverse,c=o.attach,u=o.reset,d=o.immediate,f=o.onFrame,h=o.native;if(this.updating=!0,l){var p=[s,a];a=p[0],s=p[1]}var y=c&&c(this),m=!1;this.mergedProps=q({},a,this.mergedProps,s);var w=Object.entries(this.mergedProps);if(this.animations=w.reduce(function(T,A,U){var V,I,B=A[0],Z=A[1],W=u===!1&&T[B]||{stopped:!0},ee=typeof Z=="number",Te=typeof Z=="string"&&!Z.startsWith("#")&&!/\d/.test(Z)&&!vf[Z],Q=!ee&&!Te&&Array.isArray(Z),ne=a[B]!==void 0?a[B]:Z,_e=ne instanceof Ct,oe=ee||Q||Te?Z:1;if(y){var ie=y.animations[B];ie&&(oe=ie.animation)}var F=W.animation,D,H;if(_e)D=H=ne;else if(ee||Te)D=H=W.animation||new Ct(ne);else if(Q)D=H=W.animation||new Af(ne);else{var ve=W.interpolation&&W.interpolation._interpolation(W.animation._value);W.animation?(D=W.animation,D.setValue(0)):D=new Ct(0);var C={range:[0,1],output:[ve!==void 0?ve:ne,Z]};W.interpolation?H=W.interpolation.__update(C):H=D.interpolate(C)}return F!==D&&(m=!0),xt(d,B)&&D.setValue(oe),i.interpolators=q({},i.interpolators,(V={},V[B]=H,V)),q({},T,(I={},I[B]=q({},W,{name:B,animation:D,interpolation:H,toValue:oe,stopped:!1}),I))},this.animations),m){var S=this.animatedProps;this.animatedProps=new Ff(this.interpolators,function(){f&&f(i.animatedProps.__getValue()),!h&&!i.updating&&i.setState({internal:!0})}),S&&S.__detach()}this.didUpdate=!0,this.afterInject=void 0,this.didInject=!1,this.updating=!1},n.flush=function(){Gn(this.animations).forEach(function(o){var i=o.animation;return i._update&&i._update()})},n.getValues=function(){return this.animatedProps?this.animatedProps.__getValue():{}},n.getAnimatedValues=function(){return this.props.native?this.interpolators:this.getValues()},t}(b.Component);sn.defaultProps={from:{},to:{},config:co.default,native:!1,immediate:!1,reset:!1,force:!1,impl:ea,inject:hf};var h0=function(){return null},Cf=function(t){var n=t.keys,r=t.children,o=t.render,i=t.items,a=$e(t,["keys","children","render","items"]);return r=o||r||h0,n=typeof n=="function"?i.map(n):n,Array.isArray(r)||(r=[r],n=n!==void 0?[n]:r.map(function(s){return s.toString()})),n=n.map(function(s){return String(s)}),q({keys:n,children:r,items:i},a)},v0=0,m0=function(e){Le(n,e);var t=n.prototype;t.componentDidMount=function(){this.mounted=!0},t.componentWillUnmount=function(){this.mounted=!1};function n(r){var o;return o=e.call(this,r)||this,o.destroyItem=function(i,a){return function(s){var l=o.props,c=l.onRest,u=l.onDestroyed;o.mounted&&(u&&u(i),o.setState(function(d){var f=d.deleted;return{deleted:f.filter(function(h){return h.key!==a})}},function(){return delete o.springs[a]}),c&&c(i,s))}},o.springs={},o.state={first:!0,transitions:[],current:{},deleted:[],prevProps:r},o}return n.getDerivedStateFromProps=function(o,i){var a=i.first,s=i.prevProps,l=$e(i,["first","prevProps"]),c=Cf(o),u=c.keys,d=c.children,f=c.items,h=c.initial,p=c.from,y=c.enter,m=c.leave,w=c.update,S=c.delay,T=S===void 0?0:S,A=c.config,U=Cf(s),V=U.keys,I=U.items,B=q({},l.current),Z=l.deleted.concat(),W=Object.keys(B),ee=new Set(W),Te=new Set(u),Q=u.filter(function(F){return!ee.has(F)}),ne=W.filter(function(F){return!Te.has(F)}),_e=u.filter(function(F){return ee.has(F)}),oe=0;Q.forEach(function(F){var D=u.indexOf(F),H=f?f[D]:F;B[F]={originalKey:F,key:v0++,item:H,delay:oe=oe+T,children:d[D],config:xt(A,H,"enter"),from:q({},xt(a&&typeof h!="undefined"?h:p,H)),to:xt(y,H)}}),ne.forEach(function(F){var D=V.indexOf(F),H=I?I[D]:F;Z.push(q({},B[F],{destroyed:!0,lastSibling:V[Math.max(0,D-1)],delay:oe=oe+T,config:xt(A,H,"leave"),to:q({},B[F].to,xt(m,H))})),delete B[F]}),_e.forEach(function(F){var D=u.indexOf(F),H=f?f[D]:F;B[F]=q({},B[F],{delay:oe=oe+T,children:d[D],config:xt(A,H,"update"),to:q({},B[F].to,xt(w,H))})});var ie=u.map(function(F){return B[F]});return Z.forEach(function(F){var D=F.lastSibling,H=$e(F,["lastSibling"]),ve=Math.max(0,ie.findIndex(function(C){return C.originalKey===D})+1);ie=ie.slice(0,ve).concat([H],ie.slice(ve))}),{first:a&&Q.length===0,transitions:ie,current:B,deleted:Z,prevProps:o}},t.getValues=function(){},t.render=function(){var o=this,i=this.props,a=i.render,s=i.initial,l=i.from,c=i.enter,u=i.leave,d=i.onDestroyed,f=i.keys,h=i.items,p=i.onFrame,y=i.onRest,m=i.delay,w=i.config,S=$e(i,["render","initial","from","enter","leave","onDestroyed","keys","items","onFrame","onRest","delay","config"]);return this.state.transitions.map(function(T,A){var U=T.key,V=T.item,I=T.children,B=T.from,Z=T.to,W=T.delay,ee=T.config,Te=T.destroyed;return b.createElement(sn,q({ref:function(ne){return ne&&(o.springs[U]=ne.getValues())},key:U,onRest:Te?o.destroyItem(V,U):y&&function(Q){return y(V,Q)},onFrame:p&&function(Q){return p(V,Q)},delay:W,config:ee},S,{from:Te&&o.springs[U]||B,to:Z,render:a&&I,children:a?o.props.children:I}))})},n}(b.PureComponent),_0=function(e){Le(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getValues=function(){return this.instance&&this.instance.getValues()},n.componentDidMount=function(){this.instance&&this.instance.flush()},n.componentDidUpdate=function(){this.instance&&this.instance.flush()},n.render=function(){var o=this,i=this.props,a=i.children,s=i.render,l=i.from,c=l===void 0?{}:l,u=i.to,d=u===void 0?{}:u,f=i.native,h=f===void 0?!1:f,p=i.keys,y=i.delay,m=i.onRest,w=$e(i,["children","render","from","to","native","keys","delay","onRest"]),S=new Set,T=function(I,B){if(S.add(B),I!==0)return Array.from(S)[I-1]},A=q({},w,{native:h,from:c,to:d}),U=s||a;return U.map(function(V,I){var B=function(ee){return T(I,ee)},Z=I===0&&y;return b.createElement(sn,q({ref:function(ee){return I===0&&(o.instance=ee)},onRest:I===0?m:null,key:p[I]},A,{delay:Z||void 0,attach:B,render:s&&V,children:s?a:V}))})},t}(b.PureComponent),Nf="__default",We=function(e){Le(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.guid=0,r.state={props:{},oldProps:{},resolve:function(){return null}},r.next=function(s){return r.running=!0,new Promise(function(l){r.mounted&&r.setState(function(c){return{props:s,oldProps:q({},r.state.props),resolve:l}},function(){return r.running=!1})})},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.componentDidUpdate({})},n.componentWillUnmount=function(){this.mounted=!1},n.componentDidUpdate=function(o){var i=this;(o.state!==this.props.state||this.props.reset&&!this.running)&&function(){var a=i.props,s=a.states,l=a.filter,c=a.state;s&&c&&function(){var u=++i.guid,d=s[c];if(d)if(Array.isArray(d))for(var f=Promise.resolve(),h=function(){if(y){if(m>=p.length)return"break";w=p[m++]}else{if(m=p.next(),m.done)return"break";w=m.value}var A=w;f=f.then(function(){return u===i.guid&&i.next(l(A))})},p=d,y=Array.isArray(p),m=0,p=y?p:p[Symbol.iterator]();;){var w,S=h();if(S==="break")break}else typeof d=="function"?d(function(T){return u===i.guid&&i.next(l(T))},i.props):i.next(l(s[c]))}()}()},n.render=function(){var o=this,i=this.state,a=i.props,s=i.oldProps,l=i.resolve;if(!a||Object.keys(a).length===0)return null;var c=this.props,u=c.state,d=c.filter,f=c.states,h=c.primitive,p=c.from,y=c.onRest,m=$e(c,["state","filter","states","primitive","from","onRest"]),w=this.instance&&this.instance.getValues(),S=typeof a.from=="function"?a.from:q({},s.from,w,a.from);return b.createElement(h,q({ref:function(A){return o.instance=A}},m,a,{from:q({},S,p),onRest:function(A){l(A),y&&y(A)}}))},t}(b.PureComponent);We.defaultProps={state:Nf};We.create=function(e){return function(t,n){var r;return n===void 0&&(n=function(i){return i}),(typeof t=="function"||Array.isArray(t))&&(t=(r={},r[Nf]=t,r)),function(o){return b.createElement(We,q({primitive:e,states:t,filter:n},o))}}};var kf=function(t){var n=Tf(t),r=Object.keys(t).reduce(function(o,i){var a;return typeof n[i]!="undefined"?o:q({},o,(a={},a[i]=t[i],a))},{});return q({to:n},r)};We.Spring=We.create(sn);We.Spring.to=function(e){return We.Spring(e,kf)};We.Trail=We.create(_0);We.Trail.to=function(e){return We.Trail(e,kf)};We.Transition=We.create(m0);var g0=ta("div"),Lf=b.createContext(null),y0=Lf.Provider,b0=Lf.Consumer;function na(e){return e?"scrollLeft":"scrollTop"}var uo="translate3d(0px,0px,0px)",fo="translate(0px,0px)",Pf=function(e){Le(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentDidMount=function(){var o=this.parent;o&&(o.layers=o.layers.concat(this),o.update())},n.componentWillUnmount=function(){var o=this,i=this.parent;i&&(i.layers=i.layers.filter(function(a){return a!==o}),i.update())},n.setPosition=function(o,i,a){a===void 0&&(a=!1);var s=this.parent.props,l=s.config,c=s.impl,u=Math.floor(this.props.offset)*o,d=o*this.props.offset+u*this.props.speed,f=parseFloat(-(i*this.props.speed)+d);a?this.animatedTranslate.setValue(f):Yn(this.animatedTranslate,q({to:f},l),c).start()},n.setHeight=function(o,i){i===void 0&&(i=!1);var a=this.parent.props,s=a.config,l=a.impl,c=parseFloat(o*this.props.factor);i?this.animatedSpace.setValue(c):Yn(this.animatedSpace,q({to:c},s),l).start()},n.initialize=function(){var o=this.props,i=this.parent,a=Math.floor(o.offset)*i.space,s=i.space*o.offset+a*o.speed,l=parseFloat(-(i.current*o.speed)+s);this.animatedTranslate=new Ct(l),this.animatedSpace=new Ct(i.space*o.factor)},n.renderLayer=function(){var o,i=this.props,a=i.style,s=i.children,l=i.offset,c=i.speed,u=i.factor,d=i.className,f=$e(i,["style","children","offset","speed","factor","className"]),h=this.parent.props.horizontal,p=this.animatedTranslate.interpolate({range:[0,1],output:h?[uo,"translate3d(1px,0,0)"]:[uo,"translate3d(0,1px,0)"]});return b.createElement(g0,q({},f,{className:d,style:q((o={position:"absolute",backgroundSize:"auto",backgroundRepeat:"no-repeat",willChange:"transform"},o[h?"height":"width"]="100%",o[h?"width":"height"]=this.animatedSpace,o.WebkitTransform=p,o.MsTransform=p,o.transform=p,o),a)}),s)},n.render=function(){var o=this;return b.createElement(b0,null,function(i){return i&&!o.parent&&(o.parent=i,o.initialize()),o.renderLayer()})},t}(b.PureComponent);Pf.defaultProps={factor:1,offset:0,speed:0};var Of=function(e){Le(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=e.call.apply(e,[this].concat(i))||this,r.state={ready:!1},r.layers=[],r.space=0,r.current=0,r.offset=0,r.busy=!1,r.moveItems=function(){r.layers.forEach(function(s){return s.setPosition(r.space,r.current)}),r.busy=!1},r.scrollerRaf=function(){return requestAnimationFrame(r.moveItems)},r.onScroll=function(s){var l=r.props.horizontal;r.busy||(r.busy=!0,r.scrollerRaf(),r.current=s.target[na(l)])},r.update=function(){var s=r.props,l=s.scrolling,c=s.horizontal,u=na(c);!r.container||(r.space=r.container[c?"clientWidth":"clientHeight"],l?r.current=r.container[u]:r.container[u]=r.current=r.offset*r.space,r.content&&(r.content.style[c?"width":"height"]=r.space*r.props.pages+"px"),r.layers.forEach(function(d){d.setHeight(r.space,!0),d.setPosition(r.space,r.current,!0)}))},r.updateRaf=function(){requestAnimationFrame(r.update),setTimeout(r.update,150)},r.scrollStop=function(s){return r.animatedScroll&&r.animatedScroll.stopAnimation()},r}var n=t.prototype;return n.scrollTo=function(o){var i=this.props,a=i.horizontal,s=i.config,l=i.impl,c=na(a);this.scrollStop(),this.offset=o;var u=this.container;this.animatedScroll=new Ct(u[c]),this.animatedScroll.addListener(function(d){var f=d.value;return u[c]=f}),Yn(this.animatedScroll,q({to:o*this.space},s),l).start()},n.componentDidMount=function(){window.addEventListener("resize",this.updateRaf,!1),this.update(),this.setState({ready:!0})},n.componentWillUnmount=function(){window.removeEventListener("resize",this.updateRaf,!1)},n.componentDidUpdate=function(){this.update()},n.render=function(){var o=this,i,a=this.props,s=a.style,l=a.innerStyle,c=a.pages,u=a.className,d=a.scrolling,f=a.children,h=a.horizontal,p=d?"scroll":"hidden";return b.createElement("div",{ref:function(m){return o.container=m},onScroll:this.onScroll,onWheel:d?this.scrollStop:null,onTouchStart:d?this.scrollStop:null,style:q({position:"absolute",width:"100%",height:"100%",overflow:p,overflowY:h?"hidden":p,overflowX:h?p:"hidden",WebkitOverflowScrolling:"touch",WebkitTransform:fo,MsTransform:fo,transform:uo},s),className:u},this.state.ready&&b.createElement("div",{ref:function(m){return o.content=m},style:q((i={position:"absolute"},i[h?"height":"width"]="100%",i.WebkitTransform=fo,i.MsTransform=fo,i.transform=uo,i.overflow="hidden",i[h?"width":"height"]=this.space*c,i),l)},b.createElement(y0,{value:this},f)))},t}(b.PureComponent);Of.Layer=Pf;Of.defaultProps={config:co.slow,scrolling:!0,horizontal:!1,impl:ea};var w0=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Vf=w0.reduce(function(e,t){return e[t]=ta(t),e},ta);function ln(e){let[t,n]=se(rn),[r]=se(Zr),[o]=se(vt),[i,a]=De(e.open),[s,l]=De(!1),c=e.folder.path===o,u=()=>{if(e.children){if(!i)n([...t,e.folder]);else{let y=t.filter(m=>e.folder!==m);n(y)}a(!i)}},d=y=>{y.map(m=>Fe(this,null,function*(){m.arrayBuffer().then(w=>{e.plugin.app.vault.adapter.writeBinary(e.folder.path+"/"+m.name,w)})}))},f=()=>e.onClick(),h=()=>e.onContextMenu(),p=e.children?i?Vc:Dc:Mc;return b.createElement(ur,{onDrop:d,noClick:!0,onDragEnter:()=>l(!0),onDragLeave:()=>l(!1),onDropAccepted:()=>l(!1),onDropRejected:()=>l(!1)},({getRootProps:y,getInputProps:m})=>b.createElement("div",{style:Ue({},e.style),className:"treeview"},b.createElement("div",_t(Ue({},y({className:"dropzone"})),{className:"oz-folder-element"+(s?" drag-entered":""),"data-path":e.folder.path}),b.createElement("input",Ue({},m())),b.createElement("div",{style:{width:"100%"}},b.createElement("div",{className:"oz-icon-div"},b.createElement(p,{className:"oz-folder-toggle",style:{opacity:e.children?1:.3},onClick:u})),b.createElement("div",{className:"oz-folder-block",onClick:f,onContextMenu:h},b.createElement("div",{className:"oz-folder-type",style:{marginRight:e.type?10:0}}," ",e.type," "),b.createElement("div",{className:`oz-folder-name ${c?"is-folder-active":""}${e.isRootFolder?" is-root-folder":""}`},e.content),!i&&r[e.folder.path]&&b.createElement("div",{className:`oz-folder-count ${e.plugin.settings.showRootFolder?"with-root":"no-root"}`},b.createElement("span",{className:"nav-file-tag"},r[e.folder.path]))))),b.createElement(sn,{native:!0,immediate:!0,config:_t(Ue({},co.default),{restSpeedThreshold:1,restDisplacementThreshold:.01}),from:{height:0,opacity:0,transform:"translate3d(20px,0,0)"},to:{height:i?"auto":0,opacity:i?1:0,transform:i?"translate3d(0px,0,0)":"translate3d(20px,0,0)"},render:S0},e.children)))}var S0=n=>{var r=n,{children:e}=r,t=pa(r,["children"]);return b.createElement(Vf.div,{style:Ue({},t),className:"oz-folder-contents"},e)};var T0=({condition:e,wrapper:t,children:n})=>e?t(n):n,Df=T0;var po=Ae(require("obsidian"));function ra(e){let t=e.plugin,n=t.app,r=n.vault.getRoot(),[o]=se(rn),[i,a]=se(vt),[s,l]=se(Kr),[c,u]=se(on),d=p=>a(p),f=p=>{let y=p;return s.length>0&&(y=y.filter(m=>!s.contains(m.folder.path))),y=y.sort((m,w)=>m.folder.name.localeCompare(w.folder.name,"en",{numeric:!0})),y},h=p=>{let{event:y,folder:m}=p,w=y;y===void 0&&(w=window.event);let S=new po.Menu(t.app);return zc(m)&&S.addItem(T=>{T.setTitle("Focus on Folder").setIcon("zoomInIcon").onClick(()=>u(m))}),c.isRoot()||S.addItem(T=>{T.setTitle("Focus Back to Root").setIcon("zoomOutIcon").onClick(()=>u(r))}),S.addItem(T=>{T.setTitle("New Folder").setIcon("folder").onClick(A=>{new St(n,m,"create folder").open()})}),S.addItem(T=>{T.setTitle("Delete").setIcon("trash").onClick(A=>{t.app.vault.delete(m,!0)})}),S.addItem(T=>{T.setTitle("Rename").setIcon("pencil").onClick(A=>{new St(n,m,"rename").open()})}),wr("file-explorer",n)||S.addItem(T=>{T.setTitle("Move folder to...").setIcon("paper-plane").onClick(A=>{new Ln(n,m).open()})}),S.addItem(T=>{T.setTitle("Add to Excluded Folders").setIcon("switch").onClick(A=>{l([...s,m.path])})}),n.workspace.trigger("file-menu",S,m,"file-explorer"),S.showAtPosition({x:w.pageX,y:w.pageY}),!1};return e.folderTree.children?b.createElement(b.Fragment,null,Array.isArray(e.folderTree.children)&&f(e.folderTree.children).map(p=>b.createElement(b.Fragment,{key:p.folder.path},p.folder.children.some(y=>y instanceof po.TFolder)?b.createElement(ln,{plugin:t,content:p.folder.name,open:!!o.contains(p.folder),onClick:()=>d(p.folder.path),onContextMenu:y=>h({event:y,folder:p.folder}),folder:p.folder},b.createElement(ra,{plugin:t,folderTree:p})):b.createElement(ln,{plugin:t,content:p.folder.name,onClick:()=>d(p.folder.path),onContextMenu:y=>h({event:y,folder:p.folder}),folder:p.folder})))):null}var Mf=Ae(require("obsidian"));function ho(e){let t={color:"var(--text-muted)",fill:"#c16ff7",width:"100%"},n=e.plugin,r=n.app,o=r.vault.getRoot(),[i,a]=se(vt),[s]=se(Xr),[l,c]=se(on),u=(d,f)=>{let h=d;d===void 0&&(h=window.event);let p=new Mf.Menu(r);return p.addItem(y=>{y.setTitle("New Folder").setIcon("folder").onClick(m=>{new St(r,f,"create folder").open()})}),f.isRoot()||p.addItem(y=>{y.setTitle("Focus Back to Root").setIcon("zoomOutDoubleIcon").onClick(()=>c(o))}),f.parent&&!f.parent.isRoot()&&f.parent!==l&&p.addItem(y=>{y.setTitle("Focus to Parent Folder").setIcon("zoomOutIcon").onClick(()=>c(f.parent))}),r.workspace.trigger("root-folder-menu",p,f),p.showAtPosition({x:h.pageX,y:h.pageY}),!1};return b.createElement("div",{className:"oz-folders-tree-wrapper"},b.createElement(Df,{condition:l&&!l.isRoot()||l&&l.isRoot&&n.settings.showRootFolder,wrapper:d=>b.createElement(ln,{plugin:n,content:l.isRoot()?n.app.vault.getName():l.name,open:!0,isRootFolder:l.isRoot(),style:t,onClick:()=>a(l.path),folder:l,onContextMenu:f=>u(f,l)},d)},s&&b.createElement(ra,{plugin:n,folderTree:s})))}var If=e=>{let[t,n]=De(!1),[r,o]=De(null),[i,a]=De(null),s=yt(),l=yt(),c=e.plugin.settings.customHeight;ke(()=>{r&&(e.plugin.settings.customHeight=r,e.plugin.saveSettings())},[r]);function u(h){h.preventDefault(),n(!0);let p=l.current.offsetTop-s.current.offsetTop;o(p),a(h.nativeEvent.clientY)}function d(h){h.preventDefault(),!!t&&(o(r+(h.nativeEvent.clientY-i)),a(h.nativeEvent.clientY))}function f(h){h.preventDefault(),n(!1),a(h.nativeEvent.clientY)}return b.createElement("div",{className:"file-tree-container",onMouseMove:h=>d(h),onMouseUp:h=>f(h)},b.createElement("div",{className:"oz-folder-pane",ref:s,style:{height:r?`${r}px`:c!==0?`${c}px`:"50%"}},b.createElement(ho,{plugin:e.plugin})),b.createElement("div",{id:"file-tree-divider",ref:l,onClick:h=>h.preventDefault(),onMouseDown:h=>u(h),style:{backgroundColor:t?"var(--interactive-accent)":""}}),b.createElement("div",{className:"oz-file-list-pane"},b.createElement(to,{plugin:e.plugin})))};function oa(e){let t=e.plugin;t.registerEvent(t.app.vault.on("modify",F=>ie(F,"modify"))),t.registerEvent(t.app.vault.on("rename",(F,D)=>ie(F,"rename",D))),t.registerEvent(t.app.vault.on("delete",F=>ie(F,"delete"))),t.registerEvent(t.app.vault.on("create",F=>ie(F,"create")));let[n,r]=se(Gr),[o,i]=se(vt),[a,s]=se(Jr),[l,c]=se(Qr),[u,d]=se(rn),[f,h]=se(Xr),[p,y]=se(Kr),[m,w]=se(Zr),[S,T]=se(Yr),[A,U]=se(eo),[V,I]=se(on),B=F=>{s(Xt(F||o,t))},Z=()=>{if(t.settings.evernoteView){let F=t.settings.activeFolderPath;if(F!==""){let D=t.app.vault.getAbstractFileByPath(F);D&&D instanceof Zn.TFolder&&i(D.path)}}};ke(()=>{I(t.app.vault.getRoot()),y(ee()),T(W()),c(Q()),d(Te()),U(t.settings.showFilesFromSubFolders),Z(),t.settings.folderCount&&w(ci(t))},[]),ke(()=>{V&&h(li(V))},[V]),ke(()=>_e(),[l]),ke(()=>ne(),[u]),ke(()=>oe(),[p]),ke(()=>{o!==""&&(B(o),r("file")),t.settings.activeFolderPath=o,t.saveSettings()},[o]);function W(){let F=t.settings.excludedExtensions,D=[];for(let H of F.split(","))D.push(H.trim());return D}function ee(){let F=t.settings.excludedFolders,D=[];for(let H of F.split(","))D.push(H.trim());return D}function Te(){let F=[];for(let D of t.settings.openFolders){let H=t.app.vault.getAbstractFileByPath(D);H&&F.push(H)}return F}function Q(){let F=[];for(let D of t.settings.pinnedFiles){let H=t.app.vault.getAbstractFileByPath(D);H&&F.push(H)}return F}function ne(){let F=[];for(let D of u)F.push(D.path);t.settings.openFolders=F,t.saveSettings()}function _e(){let F=[];for(let D of l)F.push(D.path);t.settings.pinnedFiles=F,t.saveSettings()}function oe(){t.settings.excludedFolders=p.join(", "),t.saveSettings()}function ie(F,D,H){if(F instanceof Zn.TFile){if(n==="file")if(D==="rename"||D==="modify"||D==="delete"){if(D==="modify"&&t.settings.sortFilesBy!=="last-update")return;a.some(ve=>ve.path===F.path)&&B()}else D==="create"&&F.path.match(new RegExp(o+".*"))&&B()}else F instanceof Zn.TFolder&&(h(li(V)),D==="rename"&&H&&o===H&&i(F.path));t.settings.folderCount&&w(ci(t))}return b.createElement(b.Fragment,null,n==="folder"?b.createElement(ho,{plugin:t}):t.settings.evernoteView?b.createElement(If,{plugin:t}):b.createElement(to,{plugin:t}))}var cn="file-tree-view",E0="File Tree",ia="sheets-in-box",aa=class extends $f.ItemView{constructor(t,n){super(t);this.plugin=n}getViewType(){return cn}getDisplayText(){return E0}getIcon(){return ia}onClose(){return Fe(this,null,function*(){this.destroy()})}destroy(){b.unmountComponentAtNode(this.contentEl)}onOpen(){return Fe(this,null,function*(){b.unmountComponentAtNode(this.contentEl),this.constructFileTree(this.app.vault.getRoot().path,"")})}constructFileTree(t,n){b.unmountComponentAtNode(this.contentEl),b.render(b.createElement("div",{className:"file-tree-plugin-view"},b.createElement(df,null,b.createElement(oa,{fileTreeView:this,plugin:this.plugin}))),this.contentEl)}};var Oe=Ae(require("obsidian")),Uf={ribbonIcon:!0,showRootFolder:!0,showFilesFromSubFolders:!0,searchFunction:!0,showFilesFromSubFoldersButton:!0,excludedExtensions:"",excludedFolders:"",folderCount:!0,folderCountOption:"notes",openFolders:[],pinnedFiles:[],customHeight:0,evernoteView:!0,filePreviewOnHover:!1,sortFilesBy:"name",fixedHeaderInFileList:!1,activeFolderPath:""},sa=class extends Oe.PluginSettingTab{constructor(t,n){super(t,n);this.plugin=n}display(){let{containerEl:t}=this;t.empty();let n=t.createDiv("coffee");n.addClass("oz-coffee-div");let o=n.createEl("a",{href:"https://ko-fi.com/L3L356V6Q"}).createEl("img",{attr:{src:"https://cdn.ko-fi.com/cdn/kofi2.png?v=3"}});o.height=40,t.createEl("h2",{text:"General"}),new Oe.Setting(t).setName("Evernote View").setDesc("Turn on if you want to see the folders and files in a single view without switching between views. Similar experience to Evernote.").addToggle(i=>i.setValue(this.plugin.settings.evernoteView).onChange(a=>{this.plugin.settings.evernoteView=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Ribbon Icon").setDesc("Turn on if you want Ribbon Icon for activating the File Tree.").addToggle(i=>i.setValue(this.plugin.settings.ribbonIcon).onChange(a=>{this.plugin.settings.ribbonIcon=a,this.plugin.saveSettings(),this.plugin.refreshIconRibbon()})),t.createEl("h2",{text:"Folder Pane Settings"}),new Oe.Setting(t).setName("Show Root Folder").setDesc(`Turn on if you want your Root Folder "${this.plugin.app.vault.getName()}" to be visible in the file tree`).addToggle(i=>i.setValue(this.plugin.settings.showRootFolder).onChange(a=>{this.plugin.settings.showRootFolder=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Folder Count").setDesc("Turn on if you want see the number of notes/files under file tree.").addToggle(i=>i.setValue(this.plugin.settings.folderCount).onChange(a=>{this.plugin.settings.folderCount=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Folder Count Details").setDesc("Select which files you want to be included into count").addDropdown(i=>{i.addOption("notes","Notes"),i.addOption("files","All Files"),i.setValue(this.plugin.settings.folderCountOption),i.onChange(a=>{this.plugin.settings.folderCountOption=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})}),t.createEl("h2",{text:"File Pane Settings"}),new Oe.Setting(t).setName("Include Files From Subfolders to the File List").setDesc("Turn on this option if you want to see the list of files from all subfolders in addition to the selected folder").addToggle(i=>i.setValue(this.plugin.settings.showFilesFromSubFolders).onChange(a=>{this.plugin.settings.showFilesFromSubFolders=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Toggle Button for Include Files from Subfolders").setDesc('Turn on this option if you want to have an additional button on the top of the file list to toggle "Include Files From Subfolders"').addToggle(i=>i.setValue(this.plugin.settings.showFilesFromSubFoldersButton).onChange(a=>{this.plugin.settings.showFilesFromSubFoldersButton=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Search in File List").setDesc("Turn on this option if you want to enable search function to filter files by name.").addToggle(i=>i.setValue(this.plugin.settings.searchFunction).onChange(a=>{this.plugin.settings.searchFunction=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),new Oe.Setting(t).setName("Sort Files By").setDesc("Select your preference how the files should be sorted in the file list").addDropdown(i=>{i.addOption("name","Name"),i.addOption("last-update","Last Update"),i.setValue(this.plugin.settings.sortFilesBy),i.onChange(a=>{this.plugin.settings.sortFilesBy=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})}),new Oe.Setting(t).setName("Preview File on Hover").setDesc("Turn on if you want to preview the files once you hover on them within the file list.").addToggle(i=>i.setValue(this.plugin.settings.filePreviewOnHover).onChange(a=>{this.plugin.settings.filePreviewOnHover=a,this.plugin.saveSettings()})),new Oe.Setting(t).setName("Fixed Buttons and Header in File Pane").setDesc("Turn on if you want buttons and header to be not scrolled within the file list.").addToggle(i=>i.setValue(this.plugin.settings.fixedHeaderInFileList).onChange(a=>{this.plugin.settings.fixedHeaderInFileList=a,this.plugin.saveSettings(),this.plugin.refreshTreeLeafs()})),t.createEl("h2",{text:"Exclude Settings"}),new Oe.Setting(t).setName("Excluded File Extensions").setDesc(`Provide extension of files, which you want to exclude from listing in file tree, divided by comma. i.e. 'png, pdf, jpeg'.
You need to reload the vault to make changes effective.`).addTextArea(i=>i.setValue(this.plugin.settings.excludedExtensions).onChange(a=>{this.plugin.settings.excludedExtensions=a,this.plugin.saveSettings()})),new Oe.Setting(t).setName("Excluded Folder Paths").setDesc(`Provide full path of folders, which you want to exclude from listing in file tree, divided by comma. i.e. 'Personal/Attachments, Work/Documents/Folders'.
All subfolders are going to be excluded, as well. You need to reload the vault to make changes effective.`).addTextArea(i=>i.setValue(this.plugin.settings.excludedFolders).onChange(a=>{this.plugin.settings.excludedFolders=a,this.plugin.saveSettings()}))}};var la=class extends un.Plugin{constructor(){super(...arguments);this.ribbonIconEl=void 0;this.refreshIconRibbon=()=>{var t;(t=this.ribbonIconEl)==null||t.remove(),this.settings.ribbonIcon&&(this.ribbonIconEl=this.addRibbonIcon(ia,"File Tree Alternative Plugin",()=>Fe(this,null,function*(){yield this.openFileTreeLeaf(!0)})))};this.openFileTreeLeaf=t=>Fe(this,null,function*(){if(this.app.workspace.getLeavesOfType(cn).length==0){let n=this.app.workspace.getLeftLeaf(!1);yield n.setViewState({type:cn}),t&&this.app.workspace.revealLeaf(n)}});this.detachFileTreeLeafs=()=>{let t=this.app.workspace.getLeavesOfType(cn);for(let n of t)n.view.destroy(),n.detach()};this.refreshTreeLeafs=()=>{this.detachFileTreeLeafs(),this.openFileTreeLeaf(!0)}}onload(){return Fe(this,null,function*(){console.log("Loading Alternative File Tree Plugin"),(0,un.addIcon)("zoomInIcon",Uc),(0,un.addIcon)("zoomOutIcon",Ic),(0,un.addIcon)("zoomOutDoubleIcon",$c),this.addSettingTab(new sa(this.app,this)),yield this.loadSettings(),this.registerView(cn,t=>new aa(t,this)),this.app.workspace.onLayoutReady(()=>Fe(this,null,function*(){return yield this.openFileTreeLeaf(!0)})),this.addCommand({id:"open-file-tree-leaf",name:"Open File Tree Leaf",callback:()=>Fe(this,null,function*(){return yield this.openFileTreeLeaf(!0)})}),this.refreshIconRibbon()})}onunload(){console.log("Unloading Alternative File Tree Plugin"),this.detachFileTreeLeafs()}loadSettings(){return Fe(this,null,function*(){this.settings=Object.assign({},Uf,yield this.loadData())})}saveSettings(){return Fe(this,null,function*(){yield this.saveData(this.settings)})}};0&&(module.exports={});
/*!
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */