/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
If you want to view the source, visit the plugins’ github repository.
This plugin uses feather icons (https://github.com/feathericons/feather). Feather icons is MIT-licensed:
The MIT License (MIT)
Copyright (c) 2013-2017 Cole Bemis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The commandSuggester, iconPicker, addFeatherIcons function, feather icon names and the biggest part of the settings tab have been adapted from the Obsidian Customizable Sidebar Plugin (https://github.com/phibr0/obsidian-customizable-sidebar).
It is MIT-licensed:
MIT License
Copyright (c) 2021 Phillip
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
var ie=Object.create;var F=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames;var se=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty;var X=o=>F(o,"__esModule",{value:!0});var pe=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),de=(o,r)=>{X(o);for(var e in r)F(o,e,{get:r[e],enumerable:!0})},ye=(o,r,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ae(r))!ce.call(o,n)&&n!=="default"&&F(o,n,{get:()=>r[n],enumerable:!(e=le(r,n))||e.enumerable});return o},H=o=>ye(X(F(o!=null?ie(se(o)):{},"default",o&&o.__esModule&&"default"in o?{get:()=>o.default,enumerable:!0}:{value:o,enumerable:!0})),o);var M=(o,r,e)=>new Promise((n,t)=>{var i=s=>{try{a(e.next(s))}catch(c){t(c)}},l=s=>{try{a(e.throw(s))}catch(c){t(c)}},a=s=>s.done?n(s.value):Promise.resolve(s.value).then(i,l);a((e=e.apply(o,r)).next())});var _=pe((L,Y)=>{(function(r,e){typeof L=="object"&&typeof Y=="object"?Y.exports=e():typeof define=="function"&&define.amd?define([],e):typeof L=="object"?L.feather=e():r.feather=e()})(typeof self!="undefined"?self:L,function(){return function(o){var r={};function e(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return o[n].call(t.exports,t,t.exports,e),t.l=!0,t.exports}return e.m=o,e.c=r,e.d=function(n,t,i){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:i})},e.r=function(n){Object.defineProperty(n,"__esModule",{value:!0})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="",e(e.s=0)}({"./dist/icons.json":function(o){o.exports={activity:'',airplay:'',"alert-circle":'',"alert-octagon":'',"alert-triangle":'',"align-center":'',"align-justify":'',"align-left":'',"align-right":'',anchor:'',aperture:'',archive:'',"arrow-down-circle":'',"arrow-down-left":'',"arrow-down-right":'',"arrow-down":'',"arrow-left-circle":'',"arrow-left":'',"arrow-right-circle":'',"arrow-right":'',"arrow-up-circle":'',"arrow-up-left":'',"arrow-up-right":'',"arrow-up":'',"at-sign":'',award:'',"bar-chart-2":'',"bar-chart":'',"battery-charging":'',battery:'',"bell-off":'',bell:'',bluetooth:'',bold:'',"book-open":'',book:'',bookmark:'',box:'',briefcase:'',calendar:'',"camera-off":'',camera:'',cast:'',"check-circle":'',"check-square":'',check:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',"chevrons-down":'',"chevrons-left":'',"chevrons-right":'',"chevrons-up":'',chrome:'',circle:'',clipboard:'',clock:'',"cloud-drizzle":'',"cloud-lightning":'',"cloud-off":'',"cloud-rain":'',"cloud-snow":'',cloud:'',code:'',codepen:'',codesandbox:'',coffee:'',columns:'',command:'',compass:'',copy:'',"corner-down-left":'',"corner-down-right":'',"corner-left-down":'',"corner-left-up":'',"corner-right-down":'',"corner-right-up":'',"corner-up-left":'',"corner-up-right":'',cpu:'',"credit-card":'',crop:'',crosshair:'',database:'',delete:'',disc:'',"divide-circle":'',"divide-square":'',divide:'',"dollar-sign":'',"download-cloud":'',download:'',dribbble:'',droplet:'',"edit-2":'',"edit-3":'',edit:'',"external-link":'',"eye-off":'',eye:'',facebook:'',"fast-forward":'',feather:'',figma:'',"file-minus":'',"file-plus":'',"file-text":'',file:'',film:'',filter:'',flag:'',"folder-minus":'',"folder-plus":'',folder:'',framer:'',frown:'',gift:'',"git-branch":'',"git-commit":'',"git-merge":'',"git-pull-request":'',github:'',gitlab:'',globe:'',grid:'',"hard-drive":'',hash:'',headphones:'',heart:'',"help-circle":'',hexagon:'',home:'',image:'',inbox:'',info:'',instagram:'',italic:'',key:'',layers:'',layout:'',"life-buoy":'',"link-2":'',link:'',linkedin:'',list:'',loader:'',lock:'',"log-in":'',"log-out":'',mail:'',"map-pin":'',map:'',"maximize-2":'',maximize:'',meh:'',menu:'',"message-circle":'',"message-square":'',"mic-off":'',mic:'',"minimize-2":'',minimize:'',"minus-circle":'',"minus-square":'',minus:'',monitor:'',moon:'',"more-horizontal":'',"more-vertical":'',"mouse-pointer":'',move:'',music:'',"navigation-2":'',navigation:'',octagon:'',package:'',paperclip:'',"pause-circle":'',pause:'',"pen-tool":'',percent:'',"phone-call":'',"phone-forwarded":'',"phone-incoming":'',"phone-missed":'',"phone-off":'',"phone-outgoing":'',phone:'',"pie-chart":'',"play-circle":'',play:'',"plus-circle":'',"plus-square":'',plus:'',pocket:'',power:'',printer:'',radio:'',"refresh-ccw":'',"refresh-cw":'',repeat:'',rewind:'',"rotate-ccw":'',"rotate-cw":'',rss:'',save:'',scissors:'',search:'',send:'',server:'',settings:'',"share-2":'',share:'',"shield-off":'',shield:'',"shopping-bag":'',"shopping-cart":'',shuffle:'',sidebar:'',"skip-back":'',"skip-forward":'',slack:'',slash:'',sliders:'',smartphone:'',smile:'',speaker:'',square:'',star:'',"stop-circle":'',sun:'',sunrise:'',sunset:'',tablet:'',tag:'',target:'',terminal:'',thermometer:'',"thumbs-down":'',"thumbs-up":'',"toggle-left":'',"toggle-right":'',tool:'',"trash-2":'',trash:'',trello:'',"trending-down":'',"trending-up":'',triangle:'',truck:'',tv:'',twitch:'',twitter:'',type:'',umbrella:'',underline:'',unlock:'',"upload-cloud":'',upload:'',"user-check":'',"user-minus":'',"user-plus":'',"user-x":'',user:'',users:'',"video-off":'',video:'',voicemail:'',"volume-1":'',"volume-2":'',"volume-x":'',volume:'',watch:'',"wifi-off":'',wifi:'',wind:'',"x-circle":'',"x-octagon":'',"x-square":'',x:'',youtube:'',"zap-off":'',zap:'',"zoom-in":'',"zoom-out":''}},"./node_modules/classnames/dedupe.js":function(o,r,e){var n,t;(function(){"use strict";var i=function(){function l(){}l.prototype=Object.create(null);function a(x,u){for(var f=u.length,g=0;g1?arguments[1]:void 0,u=x!==void 0,f=0,g=c(d),b,v,j,w;if(u&&(x=n(x,m>2?arguments[2]:void 0,2)),g!=null&&!(p==Array&&l(g)))for(w=g.call(d),v=new p;!(j=w.next()).done;f++)s(v,f,u?i(w,x,[j.value,f],!0):j.value);else for(b=a(d.length),v=new p(b);b>f;f++)s(v,f,u?x(d[f],f):d[f]);return v.length=f,v}},"./node_modules/core-js/internals/array-includes.js":function(o,r,e){var n=e("./node_modules/core-js/internals/to-indexed-object.js"),t=e("./node_modules/core-js/internals/to-length.js"),i=e("./node_modules/core-js/internals/to-absolute-index.js");o.exports=function(l){return function(a,s,c){var y=n(a),h=t(y.length),d=i(c,h),p;if(l&&s!=s){for(;h>d;)if(p=y[d++],p!=p)return!0}else for(;h>d;d++)if((l||d in y)&&y[d]===s)return l||d||0;return!l&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(o,r,e){var n=e("./node_modules/core-js/internals/a-function.js");o.exports=function(t,i,l){if(n(t),i===void 0)return t;switch(l){case 0:return function(){return t.call(i)};case 1:return function(a){return t.call(i,a)};case 2:return function(a,s){return t.call(i,a,s)};case 3:return function(a,s,c){return t.call(i,a,s,c)}}return function(){return t.apply(i,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(o,r,e){var n=e("./node_modules/core-js/internals/an-object.js");o.exports=function(t,i,l,a){try{return a?i(n(l)[0],l[1]):i(l)}catch(c){var s=t.return;throw s!==void 0&&n(s.call(t)),c}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(o,r,e){var n=e("./node_modules/core-js/internals/well-known-symbol.js"),t=n("iterator"),i=!1;try{var l=0,a={next:function(){return{done:!!l++}},return:function(){i=!0}};a[t]=function(){return this},Array.from(a,function(){throw 2})}catch{}o.exports=function(s,c){if(!c&&!i)return!1;var y=!1;try{var h={};h[t]=function(){return{next:function(){return{done:y=!0}}}},s(h)}catch{}return y}},"./node_modules/core-js/internals/classof-raw.js":function(o,r){var e={}.toString;o.exports=function(n){return e.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(o,r,e){var n=e("./node_modules/core-js/internals/classof-raw.js"),t=e("./node_modules/core-js/internals/well-known-symbol.js"),i=t("toStringTag"),l=n(function(){return arguments}())=="Arguments",a=function(s,c){try{return s[c]}catch{}};o.exports=function(s){var c,y,h;return s===void 0?"Undefined":s===null?"Null":typeof(y=a(c=Object(s),i))=="string"?y:l?n(c):(h=n(c))=="Object"&&typeof c.callee=="function"?"Arguments":h}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(o,r,e){var n=e("./node_modules/core-js/internals/has.js"),t=e("./node_modules/core-js/internals/own-keys.js"),i=e("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),l=e("./node_modules/core-js/internals/object-define-property.js");o.exports=function(a,s){for(var c=t(s),y=l.f,h=i.f,d=0;d",b="java"+f+":",v;for(m.style.display="none",a.appendChild(m),m.src=String(b),v=m.contentWindow.document,v.open(),v.write(u+f+g+"document.F=Object"+u+"/"+f+g),v.close(),p=v.F;x--;)delete p[h][i[x]];return p()};o.exports=Object.create||function(x,u){var f;return x!==null?(d[h]=n(x),f=new d,d[h]=null,f[y]=x):f=p(),u===void 0?f:t(f,u)},l[y]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(o,r,e){var n=e("./node_modules/core-js/internals/descriptors.js"),t=e("./node_modules/core-js/internals/object-define-property.js"),i=e("./node_modules/core-js/internals/an-object.js"),l=e("./node_modules/core-js/internals/object-keys.js");o.exports=n?Object.defineProperties:function(s,c){i(s);for(var y=l(c),h=y.length,d=0,p;h>d;)t.f(s,p=y[d++],c[p]);return s}},"./node_modules/core-js/internals/object-define-property.js":function(o,r,e){var n=e("./node_modules/core-js/internals/descriptors.js"),t=e("./node_modules/core-js/internals/ie8-dom-define.js"),i=e("./node_modules/core-js/internals/an-object.js"),l=e("./node_modules/core-js/internals/to-primitive.js"),a=Object.defineProperty;r.f=n?a:function(c,y,h){if(i(c),y=l(y,!0),i(h),t)try{return a(c,y,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(c[y]=h.value),c}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(o,r,e){var n=e("./node_modules/core-js/internals/descriptors.js"),t=e("./node_modules/core-js/internals/object-property-is-enumerable.js"),i=e("./node_modules/core-js/internals/create-property-descriptor.js"),l=e("./node_modules/core-js/internals/to-indexed-object.js"),a=e("./node_modules/core-js/internals/to-primitive.js"),s=e("./node_modules/core-js/internals/has.js"),c=e("./node_modules/core-js/internals/ie8-dom-define.js"),y=Object.getOwnPropertyDescriptor;r.f=n?y:function(d,p){if(d=l(d),p=a(p,!0),c)try{return y(d,p)}catch{}if(s(d,p))return i(!t.f.call(d,p),d[p])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(o,r,e){var n=e("./node_modules/core-js/internals/object-keys-internal.js"),t=e("./node_modules/core-js/internals/enum-bug-keys.js"),i=t.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(a){return n(a,i)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(o,r){r.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(o,r,e){var n=e("./node_modules/core-js/internals/has.js"),t=e("./node_modules/core-js/internals/to-object.js"),i=e("./node_modules/core-js/internals/shared-key.js"),l=e("./node_modules/core-js/internals/correct-prototype-getter.js"),a=i("IE_PROTO"),s=Object.prototype;o.exports=l?Object.getPrototypeOf:function(c){return c=t(c),n(c,a)?c[a]:typeof c.constructor=="function"&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?s:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(o,r,e){var n=e("./node_modules/core-js/internals/has.js"),t=e("./node_modules/core-js/internals/to-indexed-object.js"),i=e("./node_modules/core-js/internals/array-includes.js"),l=e("./node_modules/core-js/internals/hidden-keys.js"),a=i(!1);o.exports=function(s,c){var y=t(s),h=0,d=[],p;for(p in y)!n(l,p)&&n(y,p)&&d.push(p);for(;c.length>h;)n(y,p=c[h++])&&(~a(d,p)||d.push(p));return d}},"./node_modules/core-js/internals/object-keys.js":function(o,r,e){var n=e("./node_modules/core-js/internals/object-keys-internal.js"),t=e("./node_modules/core-js/internals/enum-bug-keys.js");o.exports=Object.keys||function(l){return n(l,t)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(o,r,e){"use strict";var n={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,i=t&&!n.call({1:2},1);r.f=i?function(a){var s=t(this,a);return!!s&&s.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(o,r,e){var n=e("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,i={},l;try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(i,[]),t=i instanceof Array}catch{}return function(s,c){return n(s,c),t?l.call(s,c):s.__proto__=c,s}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(o,r,e){var n=e("./node_modules/core-js/internals/global.js"),t=e("./node_modules/core-js/internals/object-get-own-property-names.js"),i=e("./node_modules/core-js/internals/object-get-own-property-symbols.js"),l=e("./node_modules/core-js/internals/an-object.js"),a=n.Reflect;o.exports=a&&a.ownKeys||function(c){var y=t.f(l(c)),h=i.f;return h?y.concat(h(c)):y}},"./node_modules/core-js/internals/path.js":function(o,r,e){o.exports=e("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(o,r,e){var n=e("./node_modules/core-js/internals/global.js"),t=e("./node_modules/core-js/internals/shared.js"),i=e("./node_modules/core-js/internals/hide.js"),l=e("./node_modules/core-js/internals/has.js"),a=e("./node_modules/core-js/internals/set-global.js"),s=e("./node_modules/core-js/internals/function-to-string.js"),c=e("./node_modules/core-js/internals/internal-state.js"),y=c.get,h=c.enforce,d=String(s).split("toString");t("inspectSource",function(p){return s.call(p)}),(o.exports=function(p,m,x,u){var f=u?!!u.unsafe:!1,g=u?!!u.enumerable:!1,b=u?!!u.noTargetGet:!1;if(typeof x=="function"&&(typeof m=="string"&&!l(x,"name")&&i(x,"name",m),h(x).source=d.join(typeof m=="string"?m:"")),p===n){g?p[m]=x:a(m,x);return}else f?!b&&p[m]&&(g=!0):delete p[m];g?p[m]=x:i(p,m,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||s.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(o,r){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(o,r,e){var n=e("./node_modules/core-js/internals/global.js"),t=e("./node_modules/core-js/internals/hide.js");o.exports=function(i,l){try{t(n,i,l)}catch{n[i]=l}return l}},"./node_modules/core-js/internals/set-to-string-tag.js":function(o,r,e){var n=e("./node_modules/core-js/internals/object-define-property.js").f,t=e("./node_modules/core-js/internals/has.js"),i=e("./node_modules/core-js/internals/well-known-symbol.js"),l=i("toStringTag");o.exports=function(a,s,c){a&&!t(a=c?a:a.prototype,l)&&n(a,l,{configurable:!0,value:s})}},"./node_modules/core-js/internals/shared-key.js":function(o,r,e){var n=e("./node_modules/core-js/internals/shared.js"),t=e("./node_modules/core-js/internals/uid.js"),i=n("keys");o.exports=function(l){return i[l]||(i[l]=t(l))}},"./node_modules/core-js/internals/shared.js":function(o,r,e){var n=e("./node_modules/core-js/internals/global.js"),t=e("./node_modules/core-js/internals/set-global.js"),i=e("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",a=n[l]||t(l,{});(o.exports=function(s,c){return a[s]||(a[s]=c!==void 0?c:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(o,r,e){var n=e("./node_modules/core-js/internals/to-integer.js"),t=e("./node_modules/core-js/internals/require-object-coercible.js");o.exports=function(i,l,a){var s=String(t(i)),c=n(l),y=s.length,h,d;return c<0||c>=y?a?"":void 0:(h=s.charCodeAt(c),h<55296||h>56319||c+1===y||(d=s.charCodeAt(c+1))<56320||d>57343?a?s.charAt(c):h:a?s.slice(c,c+2):(h-55296<<10)+(d-56320)+65536)}},"./node_modules/core-js/internals/to-absolute-index.js":function(o,r,e){var n=e("./node_modules/core-js/internals/to-integer.js"),t=Math.max,i=Math.min;o.exports=function(l,a){var s=n(l);return s<0?t(s+a,0):i(s,a)}},"./node_modules/core-js/internals/to-indexed-object.js":function(o,r,e){var n=e("./node_modules/core-js/internals/indexed-object.js"),t=e("./node_modules/core-js/internals/require-object-coercible.js");o.exports=function(i){return n(t(i))}},"./node_modules/core-js/internals/to-integer.js":function(o,r){var e=Math.ceil,n=Math.floor;o.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},"./node_modules/core-js/internals/to-length.js":function(o,r,e){var n=e("./node_modules/core-js/internals/to-integer.js"),t=Math.min;o.exports=function(i){return i>0?t(n(i),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(o,r,e){var n=e("./node_modules/core-js/internals/require-object-coercible.js");o.exports=function(t){return Object(n(t))}},"./node_modules/core-js/internals/to-primitive.js":function(o,r,e){var n=e("./node_modules/core-js/internals/is-object.js");o.exports=function(t,i){if(!n(t))return t;var l,a;if(i&&typeof(l=t.toString)=="function"&&!n(a=l.call(t))||typeof(l=t.valueOf)=="function"&&!n(a=l.call(t))||!i&&typeof(l=t.toString)=="function"&&!n(a=l.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(o,r){var e=0,n=Math.random();o.exports=function(t){return"Symbol(".concat(t===void 0?"":t,")_",(++e+n).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(o,r,e){var n=e("./node_modules/core-js/internals/is-object.js"),t=e("./node_modules/core-js/internals/an-object.js");o.exports=function(i,l){if(t(i),!n(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(o,r,e){var n=e("./node_modules/core-js/internals/global.js"),t=e("./node_modules/core-js/internals/shared.js"),i=e("./node_modules/core-js/internals/uid.js"),l=e("./node_modules/core-js/internals/native-symbol.js"),a=n.Symbol,s=t("wks");o.exports=function(c){return s[c]||(s[c]=l&&a[c]||(l?a:i)("Symbol."+c))}},"./node_modules/core-js/modules/es.array.from.js":function(o,r,e){var n=e("./node_modules/core-js/internals/export.js"),t=e("./node_modules/core-js/internals/array-from.js"),i=e("./node_modules/core-js/internals/check-correctness-of-iteration.js"),l=!i(function(a){Array.from(a)});n({target:"Array",stat:!0,forced:l},{from:t})},"./node_modules/core-js/modules/es.string.iterator.js":function(o,r,e){"use strict";var n=e("./node_modules/core-js/internals/string-at.js"),t=e("./node_modules/core-js/internals/internal-state.js"),i=e("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",a=t.set,s=t.getterFor(l);i(String,"String",function(c){a(this,{type:l,string:String(c),index:0})},function(){var y=s(this),h=y.string,d=y.index,p;return d>=h.length?{value:void 0,done:!0}:(p=n(h,d,!0),y.index+=p.length,{value:p,done:!1})})},"./node_modules/webpack/buildin/global.js":function(o,r){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(e=window)}o.exports=e},"./src/default-attrs.json":function(o){o.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(o,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(p){for(var m=1;m2&&arguments[2]!==void 0?arguments[2]:[];y(this,p),this.name=m,this.contents=x,this.tags=u,this.attrs=n({},s.default,{class:"feather feather-"+m})}return t(p,[{key:"toSvg",value:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=n({},this.attrs,x,{class:(0,l.default)(this.attrs.class,x.class)});return""}},{key:"toString",value:function(){return this.contents}}]),p}();function d(p){return Object.keys(p).map(function(m){return m+'="'+p[m]+'"'}).join(" ")}r.default=h},"./src/icons.js":function(o,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./src/icon.js"),t=c(n),i=e("./dist/icons.json"),l=c(i),a=e("./src/tags.json"),s=c(a);function c(y){return y&&y.__esModule?y:{default:y}}r.default=Object.keys(l.default).map(function(y){return new t.default(y,l.default[y],s.default[y])}).reduce(function(y,h){return y[h.name]=h,y},{})},"./src/index.js":function(o,r,e){"use strict";var n=e("./src/icons.js"),t=c(n),i=e("./src/to-svg.js"),l=c(i),a=e("./src/replace.js"),s=c(a);function c(y){return y&&y.__esModule?y:{default:y}}o.exports={icons:t.default,toSvg:l.default,replace:s.default}},"./src/replace.js":function(o,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=Object.assign||function(d){for(var p=1;p0&&arguments[0]!==void 0?arguments[0]:{};if(typeof document=="undefined")throw new Error("`feather.replace()` only works in a browser environment.");var p=document.querySelectorAll("[data-feather]");Array.from(p).forEach(function(m){return y(m,d)})}function y(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=h(d),x=m["data-feather"];delete m["data-feather"];var u=a.default[x].toSvg(n({},p,m,{class:(0,i.default)(p.class,m.class)})),f=new DOMParser().parseFromString(u,"image/svg+xml"),g=f.querySelector("svg");d.parentNode.replaceChild(g,d)}function h(d){return Array.from(d.attributes).reduce(function(p,m){return p[m.name]=m.value,p},{})}r.default=c},"./src/tags.json":function(o){o.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(o,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./src/icons.js"),t=i(n);function i(a){return a&&a.__esModule?a:{default:a}}function l(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!a)throw new Error("The required `key` (icon name) parameter is missing.");if(!t.default[a])throw new Error("No icon matching '"+a+"'. See the complete list of icons at https://feathericons.com");return t.default[a].toSvg(s)}r.default=l},0:function(o,r,e){e("./node_modules/core-js/es/array/from.js"),o.exports=e("./src/index.js")}})})});de(exports,{default:()=>U});var z=H(require("obsidian"));var A=H(require("obsidian"));var Z=H(require("obsidian"));var C=H(require("obsidian")),R=class extends C.FuzzySuggestModal{constructor(r,e,n=-1){super(r.app);this.plugin=r,this.command=e,this.index=n,this.setPlaceholder("Please pick an icon")}cap(r){return r.split(" ").map(n=>n[0].toUpperCase()+n.substring(1)).join(" ")}getItems(){return this.plugin.iconList}getItemText(r){return this.cap(r.replace("feather-","").replace(/-/gi," "))}renderSuggestion(r,e){e.addClass("CS-icon-container");let n=e.createDiv({cls:"CS-icon"});(0,C.setIcon)(n,r.item),super.renderSuggestion(r,e)}onChooseItem(r){return M(this,null,function*(){this.command.icon=r;let{id:e,name:n}=this.command,{settings:t}=this.plugin,i="both";this.index===-1?i="both":i=t.enabledButtons[this.index].showButtons;let l={id:e,icon:r,name:n,showButtons:i};this.index===-1?t.enabledButtons.push(l):(t.enabledButtons[this.index]=l,new C.Notice("This change will take effect for new panes only.")),yield this.plugin.saveSettings(),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)})}};var N=class extends Z.FuzzySuggestModal{constructor(r){super(r.app);this.plugin=r}getItems(){return this.app.commands.listCommands()}getItemText(r){return r.name}onChooseItem(r,e){return M(this,null,function*(){let{settings:n}=this.plugin;r.icon?(n.enabledButtons.push({id:r.id,icon:r.icon,name:r.name,showButtons:"both"}),yield this.plugin.saveSettings(),setTimeout(()=>{dispatchEvent(new Event("TopBar-addedCommand"))},100)):new R(this.plugin,r).open()})}};var G=class extends A.PluginSettingTab{constructor(r,e){super(r,e);this.plugin=e,this.plugin.listener=()=>{this.display()},addEventListener("TopBar-addedCommand",this.plugin.listener)}display(){let{containerEl:r}=this,{settings:e}=this.plugin;r.empty(),r.createEl("h2",{text:"Customizable Page Header Settings"}),r.createEl("p",{text:"The buttons are added in the order in which they are shown here. This only takes effect after a reload."}),new A.Setting(r).setName("Show buttons on desktop").setDesc("By default, the buttons will only be shown in Obsidian Mobile. It requires a reload after being toggled to take effect.").addToggle(n=>{n.setValue(e.desktop).onChange(t=>M(this,null,function*(){if(e.desktop=t,yield this.plugin.saveSettings(),this.display(),!t){for(let i of e.enabledButtons)i.showButtons="mobile";yield this.plugin.saveSettings()}}))}),new A.Setting(r).setName("Add Button").setDesc("Add a new button left to the switch edit/preview mode toggle.").addButton(n=>{n.setButtonText("Add Command").onClick(()=>{new N(this.plugin).open()})});for(let n=0;n{a.addOption("both","Add button for both mobile and desktop.").addOption("mobile","Add button only for mobile.").addOption("desktop","Add button only for desktop.").setValue(t.showButtons).onChange(s=>M(this,null,function*(){t.showButtons=s,e.enabledButtons[n]=t,yield this.plugin.saveSettings(),s==="desktop"&&A.Platform.isMobile?this.plugin.removeButton(t.id):s==="mobile"&&A.Platform.isDesktop&&this.plugin.removeButton(t.id)}))}),n>0&&l.addExtraButton(a=>{a.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(()=>M(this,null,function*(){let s=e.enabledButtons[n-1];e.enabledButtons[n]=s,e.enabledButtons[n-1]=t,yield this.plugin.saveSettings(),this.display()}))}),n{a.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(()=>M(this,null,function*(){let s=e.enabledButtons[n+1];e.enabledButtons[n]=s,e.enabledButtons[n+1]=t,yield this.plugin.saveSettings(),this.display()}))}),l.addExtraButton(a=>{a.setIcon("trash").setTooltip("Remove Command").onClick(()=>M(this,null,function*(){e.enabledButtons.remove(t),this.plugin.removeButton(t.id),yield this.plugin.saveSettings(),this.display()}))}).addExtraButton(a=>{a.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let s=e.enabledButtons.findIndex(c=>c===t);new R(this.plugin,t,s).open()})}),l.nameEl.prepend(i),l.nameEl.addClass("CS-flex")}}};var q=["any-key","audio-file","blocks","bold-glyph","bracket-glyph","broken-link","bullet-list","bullet-list-glyph","calendar-with-checkmark","check-in-circle","check-small","checkbox-glyph","checkmark","clock","cloud","code-glyph","create-new","cross","cross-in-box","crossed-star","csv","deleteColumn","deleteRow","dice","document","documents","dot-network","double-down-arrow-glyph","double-up-arrow-glyph","down-arrow-with-tail","down-chevron-glyph","enter","exit-fullscreen","expand-vertically","filled-pin","folder","formula","forward-arrow","fullscreen","gear","go-to-file","hashtag","heading-glyph","help","highlight-glyph","horizontal-split","image-file","image-glyph","indent-glyph","info","insertColumn","insertRow","install","italic-glyph","keyboard-glyph","languages","left-arrow","left-arrow-with-tail","left-chevron-glyph","lines-of-text","link","link-glyph","logo-crystal","magnifying-glass","microphone","microphone-filled","minus-with-circle","moveColumnLeft","moveColumnRight","moveRowDown","moveRowUp","note-glyph","number-list-glyph","open-vault","pane-layout","paper-plane","paused","pdf-file","pencil","percent-sign-glyph","pin","plus-with-circle","popup-open","presentation","price-tag-glyph","quote-glyph","redo-glyph","reset","right-arrow","right-arrow-with-tail","right-chevron-glyph","right-triangle","run-command","search","sheets-in-box","sortAsc","sortDesc","spreadsheet","stacked-levels","star","star-list","strikethrough-glyph","switch","sync","sync-small","tag-glyph","three-horizontal-bars","trash","undo-glyph","unindent-glyph","up-and-down-arrows","up-arrow-with-tail","up-chevron-glyph","uppercase-lowercase-a","vault","vertical-split","vertical-three-dots","wrench-screwdriver-glyph"];var ee=H(_()),ne=H(require("obsidian"));function te(o){Object.values(ee.icons).forEach(r=>{let e=r.toSvg({viewBox:"0 0 24 24",width:"100",height:"100"});(0,ne.addIcon)("feather-"+r.name,e),o.push("feather-"+r.name)})}var he={enabledButtons:[],desktop:!1},U=class extends z.Plugin{constructor(){super(...arguments);this.iconList=q;this.addButton=(r,e)=>{let{id:n,icon:t,name:i}=e,l=24;z.Platform.isMobile?l=24:z.Platform.isDesktop&&(l=18);let a="";i.includes(":")?a=i.split(":")[1].trim():a=i;let s=createEl("a",{cls:["view-action","page-header-button",n],attr:{"aria-label-position":"bottom","aria-label":a}});(0,z.setIcon)(s,t,l),r.prepend(s),this.registerDomEvent(s,"click",()=>{this.app.commands.executeCommandById(n)})};this.removeButton=r=>{let e=document.getElementsByClassName("workspace-leaf-content");for(let n=0;n{let r=document.getElementsByClassName("workspace-leaf-content");for(let e=0;e0)for(let i=t.length;i>=0;i--)t[i]&&t[i].remove()}}}onload(){return M(this,null,function*(){console.log("loading Customizable Page Header Plugin"),yield this.loadSettings(),te(this.iconList),(z.Platform.isMobile||this.settings.desktop)&&this.registerEvent(this.app.workspace.on("file-open",()=>{let e=document.getElementsByClassName("workspace-leaf mod-active")[0].getElementsByClassName("view-actions")[0];for(let n=this.settings.enabledButtons.length-1;n>=0;n--)(this.settings.enabledButtons[n].showButtons==="both"||this.settings.enabledButtons[n].showButtons==="mobile"&&z.Platform.isMobile||this.settings.enabledButtons[n].showButtons==="desktop"&&z.Platform.isDesktop)&&(e.getElementsByClassName(`view-action page-header-button ${this.settings.enabledButtons[n].id}`)[0]||this.addButton(e,this.settings.enabledButtons[n]))})),this.addSettingTab(new G(this.app,this))})}onunload(){console.log("unloading Customizable Page Header Plugin"),this.removeAllButtons(),globalThis.removeEventListener("TopBar-addedCommand",this.listener)}loadSettings(){return M(this,null,function*(){this.settings=Object.assign({},he,yield this.loadData())})}saveSettings(){return M(this,null,function*(){yield this.saveData(this.settings)})}};
/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/