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
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.
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 sp
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},
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.cl
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.
***************************************************************************** */