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.

4335 lines
590 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
if you want to view the source visit the plugins github repository
*/
'use strict';
var obsidian = require('obsidian');
let buttonStore;
const getStore = (isMobile) => isMobile ? buttonStore : JSON.parse(localStorage.getItem("buttons"));
const initializeButtonStore = (app, storeEvents) => {
const files = app.vault.getMarkdownFiles();
const blocksArr = files
.map((file) => {
const cache = app.metadataCache.getFileCache(file);
return buildButtonArray(cache, file);
})
.filter((arr) => arr !== undefined)
.flat();
localStorage.setItem("buttons", JSON.stringify(blocksArr));
buttonStore = blocksArr;
storeEvents.trigger('index-complete');
};
const addButtonToStore = (app, file) => {
const cache = app.metadataCache.getFileCache(file);
const buttons = buildButtonArray(cache, file);
const store = getStore(app.isMobile);
const newStore = buttons && store
? removeDuplicates([...buttons, ...store])
: store
? removeDuplicates(store)
: buttons
? removeDuplicates(buttons)
: [];
localStorage.setItem("buttons", JSON.stringify(newStore));
buttonStore = newStore;
};
const getButtonFromStore = async (app, args) => {
const store = getStore(app.isMobile);
args.id;
if (args.id) {
const storedButton = store &&
store.filter((item) => `button-${args.id}` === item.id)[0];
if (storedButton) {
const file = app.vault.getAbstractFileByPath(storedButton.path);
const content = await app.vault.cachedRead(file);
const contentArray = content.split("\n");
const button = contentArray
.slice(storedButton.position.start.line + 1, storedButton.position.end.line)
.join("\n");
const storedArgs = createArgumentObject(button);
return {
args: { ...storedArgs, ...args },
id: storedButton.id.split("button-")[1],
};
}
}
};
const getButtonById = async (app, id) => {
const store = getStore(app.isMobile);
const storedButton = store.filter((item) => `button-${id}` === item.id)[0];
if (storedButton) {
const file = app.vault.getAbstractFileByPath(storedButton.path);
const content = await app.vault.cachedRead(file);
const contentArray = content.split("\n");
const button = contentArray
.slice(storedButton.position.start.line + 1, storedButton.position.end.line)
.join("\n");
return createArgumentObject(button);
}
};
const getButtonSwapById = async (app, id) => {
const store = getStore(app.isMobile);
const storedButton = store.filter((item) => `button-${id}` === item.id)[0];
if (storedButton) {
return storedButton.swap;
}
};
const setButtonSwapById = async (app, id, newSwap) => {
const store = getStore(app.isMobile);
const storedButton = store.filter((item) => `button-${id}` === item.id)[0];
if (storedButton) {
storedButton.swap = newSwap;
const newStore = removeDuplicates([...store, storedButton]);
localStorage.setItem("buttons", JSON.stringify(newStore));
buttonStore = newStore;
}
};
const buildButtonArray = (cache, file) => {
const blocks = cache && cache.blocks;
if (blocks) {
const blockKeys = Array.from(Object.keys(blocks));
const blockArray = blockKeys
.map((key) => blocks[key])
.map((obj) => {
obj["path"] = file.path;
obj["swap"] = 0;
return obj;
})
.filter((block) => block.id.includes("button"));
return blockArray;
}
};
function removeDuplicates(arr) {
return arr && arr[0]
? arr.filter((v, i, a) => a.findIndex((t) => t.id === v.id ||
(t.path === v.path &&
t.position.start.line === v.position.start.line &&
t.position.end.line === v.position.end.line)) === i)
: arr;
}
function nanoid(num) {
let result = "";
const characters = "abcdefghijklmnopqrstuvwxyz0123456789";
const charactersLength = characters.length;
for (let i = 0; i < num; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
const insertButton = (app, outputObject) => {
const buttonArr = [];
buttonArr.push("```button");
outputObject.name && buttonArr.push(`name ${outputObject.name}`);
outputObject.type && buttonArr.push(`type ${outputObject.type}`);
outputObject.action && buttonArr.push(`action ${outputObject.action}`);
outputObject.id && buttonArr.push(`id ${outputObject.id}`);
outputObject.swap && buttonArr.push(`swap ${outputObject.swap}`);
outputObject.remove && buttonArr.push(`remove ${outputObject.remove}`);
outputObject.replace && buttonArr.push(`replace ${outputObject.replace}`);
outputObject.templater === true &&
buttonArr.push(`templater ${outputObject.templater}`);
outputObject.color && buttonArr.push(`color ${outputObject.color}`);
outputObject.customColor && buttonArr.push(`customColor ${outputObject.customColor}`);
outputObject.customTextColor && buttonArr.push(`customTextColor ${outputObject.customTextColor}`);
outputObject.class && buttonArr.push(`class ${outputObject.class}`);
outputObject.folder && buttonArr.push(`folder ${outputObject.folder}`);
outputObject.folder && buttonArr.push(`prompt ${outputObject.prompt}`);
buttonArr.push("```");
outputObject.blockId
? buttonArr.push(`^button-${outputObject.blockId}`)
: buttonArr.push(`^button-${nanoid(4)}`);
const page = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
const editor = page.editor;
editor.replaceSelection(buttonArr.join("\n"));
addButtonToStore(app, page.file);
};
const insertInlineButton = (app, id) => {
const page = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
const editor = page.editor;
editor.replaceSelection(`\`button-${id}\``);
};
const createArgumentObject = (source) => source.split("\n").reduce((acc, i) => {
const split = i.split(" ");
const key = split[0].toLowerCase();
acc[key] = split
.filter((item) => item !== split[0])
.join(" ")
.trim();
return acc;
}, {});
const createContentArray = async (app) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const file = activeView.file;
const content = await app.vault.read(file);
return { contentArray: content.split("\n"), file };
}
new obsidian.Notice("Could not get Active View", 1000);
console.error("could not get active view");
};
const handleValueArray = (value, callback) => {
if (value.includes("[") && value.includes("]")) {
const args = value.match(/\[(.*)\]/);
if (args[1]) {
const argArray = args[1].split(/,\s?/);
if (argArray[0]) {
callback(argArray);
}
}
}
};
async function getNewArgs(app, position) {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
const newContent = await app.vault
.cachedRead(activeView.file)
.then((content) => content.split("\n"));
const newButton = newContent
.splice(position.lineStart, position.lineEnd - position.lineStart)
.join("\n")
.replace("```button", "")
.replace("```", "");
return { args: createArgumentObject(newButton) };
}
const wrapAround = (value, size) => {
return ((value % size) + size) % size;
};
const buttonEventListener = (app, callback) => {
return app.metadataCache.on("changed", (file) => {
callback(app, file);
});
};
const openFileListener = (app, storeEvents, callback) => {
return app.workspace.on("file-open", () => {
callback(app, storeEvents);
});
};
var Mexp = function (parsed) {
this.value = parsed;
};
Mexp.math = {
isDegree: true, // mode of calculator
acos: function (x) {
return (Mexp.math.isDegree ? 180 / Math.PI * Math.acos(x) : Math.acos(x))
},
add: function (a, b) {
return a + b
},
asin: function (x) {
return (Mexp.math.isDegree ? 180 / Math.PI * Math.asin(x) : Math.asin(x))
},
atan: function (x) {
return (Mexp.math.isDegree ? 180 / Math.PI * Math.atan(x) : Math.atan(x))
},
acosh: function (x) {
return Math.log(x + Math.sqrt(x * x - 1))
},
asinh: function (x) {
return Math.log(x + Math.sqrt(x * x + 1))
},
atanh: function (x) {
return Math.log((1 + x) / (1 - x))
},
C: function (n, r) {
var pro = 1;
var other = n - r;
var choice = r;
if (choice < other) {
choice = other;
other = r;
}
for (var i = choice + 1; i <= n; i++) {
pro *= i;
}
return pro / Mexp.math.fact(other)
},
changeSign: function (x) {
return -x
},
cos: function (x) {
if (Mexp.math.isDegree) x = Mexp.math.toRadian(x);
return Math.cos(x)
},
cosh: function (x) {
return (Math.pow(Math.E, x) + Math.pow(Math.E, -1 * x)) / 2
},
div: function (a, b) {
return a / b
},
fact: function (n) {
if (n % 1 !== 0) return 'NaN'
var pro = 1;
for (var i = 2; i <= n; i++) {
pro *= i;
}
return pro
},
inverse: function (x) {
return 1 / x
},
log: function (i) {
return Math.log(i) / Math.log(10)
},
mod: function (a, b) {
return a % b
},
mul: function (a, b) {
return a * b
},
P: function (n, r) {
var pro = 1;
for (var i = Math.floor(n) - Math.floor(r) + 1; i <= Math.floor(n); i++) {
pro *= i;
}
return pro
},
Pi: function (low, high, ex) {
var pro = 1;
for (var i = low; i <= high; i++) {
pro *= Number(ex.postfixEval({
n: i
}));
}
return pro
},
pow10x: function (e) {
var x = 1;
while (e--) {
x *= 10;
}
return x
},
sigma: function (low, high, ex) {
var sum = 0;
for (var i = low; i <= high; i++) {
sum += Number(ex.postfixEval({
n: i
}));
}
return sum
},
sin: function (x) {
if (Mexp.math.isDegree) x = Mexp.math.toRadian(x);
return Math.sin(x)
},
sinh: function (x) {
return (Math.pow(Math.E, x) - Math.pow(Math.E, -1 * x)) / 2
},
sub: function (a, b) {
return a - b
},
tan: function (x) {
if (Mexp.math.isDegree) x = Mexp.math.toRadian(x);
return Math.tan(x)
},
tanh: function (x) {
return Mexp.sinha(x) / Mexp.cosha(x)
},
toRadian: function (x) {
return x * Math.PI / 180
}
};
Mexp.Exception = function (message) {
this.message = message;
};
var math_function = Mexp;
function inc(arr, val) {
for (var i = 0; i < arr.length; i++) {
arr[i] += val;
}
return arr
}
var token = ['sin', 'cos', 'tan', 'pi', '(', ')', 'P', 'C', ' ',
'asin', 'acos', 'atan', '7', '8', '9', 'int',
'cosh', 'acosh', 'ln', '^', 'root', '4', '5', '6', '/', '!',
'tanh', 'atanh', 'Mod', '1', '2', '3', '*',
'sinh', 'asinh', 'e', 'log', '0', '.', '+', '-', ',', 'Sigma', 'n', 'Pi', 'pow'];
var show = ['sin', 'cos', 'tan', '&pi;', '(', ')', 'P', 'C', ' ',
'asin', 'acos', 'atan', '7', '8', '9', 'Int',
'cosh', 'acosh', ' ln', '^', 'root', '4', '5', '6', '&divide;', '!',
'tanh', 'atanh', ' Mod ', '1', '2', '3', '&times;',
'sinh', 'asinh', 'e', ' log', '0', '.', '+', '-', ',', '&Sigma;', 'n', '&Pi;', 'pow'];
var eva = [math_function.math.sin, math_function.math.cos, math_function.math.tan, 'PI', '(', ')', math_function.math.P, math_function.math.C, ' '.anchor,
math_function.math.asin, math_function.math.acos, math_function.math.atan, '7', '8', '9', Math.floor,
math_function.math.cosh, math_function.math.acosh, Math.log, Math.pow, Math.sqrt, '4', '5', '6', math_function.math.div, math_function.math.fact,
math_function.math.tanh, math_function.math.atanh, math_function.math.mod, '1', '2', '3', math_function.math.mul,
math_function.math.sinh, math_function.math.asinh, 'E', math_function.math.log, '0', '.', math_function.math.add, math_function.math.sub, ',', math_function.math.sigma, 'n', math_function.math.Pi, Math.pow];
var preced = {
0: 11,
1: 0,
2: 3,
3: 0,
4: 0,
5: 0,
6: 0,
7: 11,
8: 11,
9: 1,
10: 10,
11: 0,
12: 11,
13: 0,
14: -1 // will be filtered after lexer
}; // stores precedence by types
var type = [0, 0, 0, 3, 4, 5, 10, 10, 14,
0, 0, 0, 1, 1, 1, 0,
0, 0, 0, 10, 0, 1, 1, 1, 2, 7,
0, 0, 2, 1, 1, 1, 2,
0, 0, 3, 0, 1, 6, 9, 9, 11, 12, 13, 12, 8];
/*
0 : function with syntax function_name(Maths_exp)
1 : numbers
2 : binary operators like * / Mod left associate and same precedence
3 : Math constant values like e,pi,Cruncher ans
4 : opening bracket
5 : closing bracket
6 : decimal
7 : function with syntax (Math_exp)function_name
8: function with syntax function_name(Math_exp1,Math_exp2)
9 : binary operator like +,-
10: binary operator like P C or ^
11: ,
12: function with , seperated three parameters and third parameter is a string that will be mexp string
13: variable of Sigma function
*/
var type0 = {
0: true,
1: true,
3: true,
4: true,
6: true,
8: true,
9: true,
12: true,
13: true,
14: true
}; // type2:true,type4:true,type9:true,type11:true,type21:true,type22
var type1 = {
0: true,
1: true,
2: true,
3: true,
4: true,
5: true,
6: true,
7: true,
8: true,
9: true,
10: true,
11: true,
12: true,
13: true
}; // type3:true,type5:true,type7:true,type23
var type1Asterick = {
0: true,
3: true,
4: true,
8: true,
12: true,
13: true
};
var empty = {};
var type3Asterick = {
0: true,
1: true,
3: true,
4: true,
6: true,
8: true,
12: true,
13: true
}; // type_5:true,type_7:true,type_23
var type6 = {
1: true
};
var newAr = [
[],
['1', '2', '3', '7', '8', '9', '4', '5', '6', '+', '-', '*', '/', '(', ')', '^', '!', 'P', 'C', 'e', '0', '.', ',', 'n', ' '],
['pi', 'ln', 'Pi'],
['sin', 'cos', 'tan', 'Del', 'int', 'Mod', 'log', 'pow'],
['asin', 'acos', 'atan', 'cosh', 'root', 'tanh', 'sinh'],
['acosh', 'atanh', 'asinh', 'Sigma']
];
function match(str1, str2, i, x) {
for (var f = 0; f < x; f++) {
if (str1[i + f] !== str2[f]) {
return false
}
}
return true
}
math_function.addToken = function (tokens) {
for (var i = 0; i < tokens.length; i++) {
var x = tokens[i].token.length;
var temp = -1;
// newAr is a specially designed data structure index of 1d array = length of tokens
newAr[x] = newAr[x] || [];
for (var y = 0; y < newAr[x].length; y++) {
if (tokens[i].token === newAr[x][y]) {
temp = token.indexOf(newAr[x][y]);
break
}
}
if (temp === -1) {
token.push(tokens[i].token);
type.push(tokens[i].type);
if (newAr.length <= tokens[i].token.length) {
newAr[tokens[i].token.length] = [];
}
newAr[tokens[i].token.length].push(tokens[i].token);
eva.push(tokens[i].value);
show.push(tokens[i].show);
} else { // overwrite
token[temp] = tokens[i].token;
type[temp] = tokens[i].type;
eva[temp] = tokens[i].value;
show[temp] = tokens[i].show;
}
}
};
function tokenize(string) {
var nodes = [];
var length = string.length;
var key, x, y;
for (var i = 0; i < length; i++) {
if (i < length - 1 && string[i] === ' ' && string[i + 1] === ' ') {
continue
}
key = '';
for (x = (string.length - i > (newAr.length - 2) ? newAr.length - 1 : string.length - i); x > 0; x--) {
if (newAr[x] === undefined) continue;
for (y = 0; y < newAr[x].length; y++) {
if (match(string, newAr[x][y], i, x)) {
key = newAr[x][y];
y = newAr[x].length;
x = 0;
}
}
}
i += key.length - 1;
if (key === '') {
throw (new math_function.Exception('Can\'t understand after ' + string.slice(i)))
}
var index = token.indexOf(key);
nodes.push({
index: index,
token: key,
type: type[index],
eval: eva[index],
precedence: preced[type[index]],
show: show[index]
});
}
return nodes;
}
math_function.lex = function (inp, tokens) {
var changeSignObj = {
value: math_function.math.changeSign,
type: 0,
pre: 21,
show: '-'
};
var closingParObj = {
value: ')',
show: ')',
type: 5,
pre: 0
};
var openingParObj = {
value: '(',
type: 4,
pre: 0,
show: '('
};
var str = [openingParObj];
var ptc = []; // Parenthesis to close at the beginning is after one token
var inpStr = inp;
var allowed = type0;
var bracToClose = 0;
var asterick = empty;
var prevKey = '';
var i;
if (typeof tokens !== 'undefined') {
math_function.addToken(tokens);
}
var obj = {};
var nodes = tokenize(inpStr);
for (i = 0; i < nodes.length; i++) {
var node = nodes[i];
if (node.type === 14) {
if (i > 0 &&
i < nodes.length - 1 &&
nodes[i + 1].type === 1 &&
(nodes[i - 1].type === 1 || nodes[i - 1].type === 6))
throw new math_function.Exception('Unexpected Space')
continue
}
node.index;
var cToken = node.token;
var cType = node.type;
var cEv = node.eval;
var cPre = node.precedence;
var cShow = node.show;
var pre = str[str.length - 1];
var j;
for (j = ptc.length; j--;) { // loop over ptc
if (ptc[j] === 0) {
if ([0, 2, 3, 4, 5, 9, 11, 12, 13].indexOf(cType) !== -1) {
if (allowed[cType] !== true) {
console.log(inp, node, nodes, allowed);
throw (new math_function.Exception(cToken + ' is not allowed after ' + prevKey))
}
str.push(closingParObj);
allowed = type1;
asterick = type3Asterick;
inc(ptc, -1).pop();
}
} else break
}
if (allowed[cType] !== true) {
throw (new math_function.Exception(cToken + ' is not allowed after ' + prevKey))
}
if (asterick[cType] === true) {
cType = 2;
cEv = math_function.math.mul;
cShow = '&times;';
cPre = 3;
i = i - cToken.length;
}
obj = {
value: cEv,
type: cType,
pre: cPre,
show: cShow
};
if (cType === 0) {
allowed = type0;
asterick = empty;
inc(ptc, 2).push(2);
str.push(obj);
str.push(openingParObj);
} else if (cType === 1) {
if (pre.type === 1) {
pre.value += cEv;
inc(ptc, 1);
} else {
str.push(obj);
}
allowed = type1;
asterick = type1Asterick;
} else if (cType === 2) {
allowed = type0;
asterick = empty;
inc(ptc, 2);
str.push(obj);
} else if (cType === 3) { // constant
str.push(obj);
allowed = type1;
asterick = type3Asterick;
} else if (cType === 4) {
inc(ptc, 1);
bracToClose++;
allowed = type0;
asterick = empty;
str.push(obj);
} else if (cType === 5) {
if (!bracToClose) {
throw (new math_function.Exception('Closing parenthesis are more than opening one, wait What!!!'))
}
bracToClose--;
allowed = type1;
asterick = type3Asterick;
str.push(obj);
inc(ptc, 1);
} else if (cType === 6) {
if (pre.hasDec) {
throw (new math_function.Exception('Two decimals are not allowed in one number'))
}
if (pre.type !== 1) {
pre = {
value: 0,
type: 1,
pre: 0
}; // pre needs to be changed as it will the last value now to be safe in later code
str.push(pre);
inc(ptc, -1);
}
allowed = type6;
inc(ptc, 1);
asterick = empty;
pre.value += cEv;
pre.hasDec = true;
} else if (cType === 7) {
allowed = type1;
asterick = type3Asterick;
inc(ptc, 1);
str.push(obj);
}
if (cType === 8) {
allowed = type0;
asterick = empty;
inc(ptc, 4).push(4);
str.push(obj);
str.push(openingParObj);
} else if (cType === 9) {
if (pre.type === 9) {
if (pre.value === math_function.math.add) {
pre.value = cEv;
pre.show = cShow;
inc(ptc, 1);
} else if (pre.value === math_function.math.sub && cShow === '-') {
pre.value = math_function.math.add;
pre.show = '+';
inc(ptc, 1);
}
} else if (pre.type !== 5 && pre.type !== 7 && pre.type !== 1 && pre.type !== 3 && pre.type !== 13) { // changesign only when negative is found
if (cToken === '-') { // do nothing for + token
// don't add with the above if statement as that will run the else statement of parent if on Ctoken +
allowed = type0;
asterick = empty;
inc(ptc, 2).push(2);
str.push(changeSignObj);
str.push(openingParObj);
}
} else {
str.push(obj);
inc(ptc, 2);
}
allowed = type0;
asterick = empty;
} else if (cType === 10) {
allowed = type0;
asterick = empty;
inc(ptc, 2);
str.push(obj);
} else if (cType === 11) {
allowed = type0;
asterick = empty;
str.push(obj);
} else if (cType === 12) {
allowed = type0;
asterick = empty;
inc(ptc, 6).push(6);
str.push(obj);
str.push(openingParObj);
} else if (cType === 13) {
allowed = type1;
asterick = type3Asterick;
str.push(obj);
}
inc(ptc, -1);
prevKey = cToken;
}
for (j = ptc.length; j--;) { // loop over ptc
if (ptc[j] === 0) {
str.push(closingParObj);
inc(ptc, -1).pop();
} else break // if it is not zero so before ptc also cant be zero
}
if (allowed[5] !== true) {
throw (new math_function.Exception('complete the expression'))
}
while (bracToClose--) {
str.push(closingParObj);
}
str.push(closingParObj);
// console.log(str);
return new math_function(str)
};
var lexer = math_function;
lexer.prototype.toPostfix = function () {
var post = [], elem, popped, prep, pre, ele;
var stack = [{ value: "(", type: 4, pre: 0 }];
var arr = this.value;
for (var i = 1; i < arr.length; i++) {
if (arr[i].type === 1 || arr[i].type === 3 || arr[i].type === 13) { //if token is number,constant,or n(which is also a special constant in our case)
if (arr[i].type === 1)
arr[i].value = Number(arr[i].value);
post.push(arr[i]);
}
else if (arr[i].type === 4) {
stack.push(arr[i]);
}
else if (arr[i].type === 5) {
while ((popped = stack.pop()).type !== 4) {
post.push(popped);
}
}
else if (arr[i].type === 11) {
while ((popped = stack.pop()).type !== 4) {
post.push(popped);
}
stack.push(popped);
}
else {
elem = arr[i];
pre = elem.pre;
ele = stack[stack.length - 1];
prep = ele.pre;
var flag = ele.value == 'Math.pow' && elem.value == 'Math.pow';
if (pre > prep) stack.push(elem);
else {
while (prep >= pre && !flag || flag && pre < prep) {
popped = stack.pop();
ele = stack[stack.length - 1];
post.push(popped);
prep = ele.pre;
flag = elem.value == 'Math.pow' && ele.value == 'Math.pow';
}
stack.push(elem);
}
}
}
return new lexer(post);
};
var postfix = lexer;
postfix.prototype.postfixEval = function (UserDefined) {
UserDefined=UserDefined||{};
UserDefined.PI=Math.PI;
UserDefined.E=Math.E;
var stack=[],pop1,pop2,pop3;
var arr=this.value;
var bool=(typeof UserDefined.n!=="undefined");
for(var i=0;i<arr.length;i++){
if(arr[i].type===1){
stack.push({value:arr[i].value,type:1});
}
else if(arr[i].type===3){
stack.push({value:UserDefined[arr[i].value],type:1});
}
else if(arr[i].type===0){
if(typeof stack[stack.length-1].type==="undefined"){
stack[stack.length-1].value.push(arr[i]);
}
else stack[stack.length-1].value=arr[i].value(stack[stack.length-1].value);
}
else if(arr[i].type===7){
if(typeof stack[stack.length-1].type==="undefined"){
stack[stack.length-1].value.push(arr[i]);
}
else stack[stack.length-1].value=arr[i].value(stack[stack.length-1].value);
}
else if(arr[i].type===8){
pop1=stack.pop();
pop2=stack.pop();
stack.push({type:1,value:arr[i].value(pop2.value,pop1.value)});
}
else if(arr[i].type===10){
pop1=stack.pop();
pop2=stack.pop();
if(typeof pop2.type==="undefined"){
pop2.value=pop2.concat(pop1);
pop2.value.push(arr[i]);
stack.push(pop2);
}
else if (typeof pop1.type==="undefined") {
pop1.unshift(pop2);
pop1.push(arr[i]);
stack.push(pop1);
}
else {
stack.push({type:1,value:arr[i].value(pop2.value,pop1.value)});
}
}
else if(arr[i].type===2||arr[i].type===9){
pop1=stack.pop();
pop2=stack.pop();
if(typeof pop2.type==="undefined"){
pop2=pop2.concat(pop1);
pop2.push(arr[i]);
stack.push(pop2);
}
else if (typeof pop1.type==="undefined") {
pop1.unshift(pop2);
pop1.push(arr[i]);
stack.push(pop1);
}
else {
stack.push({type:1,value:arr[i].value(pop2.value,pop1.value)});
}
}
else if(arr[i].type===12){
pop1=stack.pop();
if (typeof pop1.type!=="undefined") {
pop1=[pop1];
}
pop2=stack.pop();
pop3=stack.pop();
stack.push({type:1,value:arr[i].value(pop3.value,pop2.value,new postfix(pop1))});
}
else if(arr[i].type===13){
if(bool){
stack.push({value:UserDefined[arr[i].value],type:3});
}
else stack.push([arr[i]]);
}
}
if (stack.length>1) {
throw(new postfix.Exception("Uncaught Syntax error"));
}
return stack[0].value>1000000000000000?"Infinity":parseFloat(stack[0].value.toFixed(15));
};
postfix.eval=function(str,tokens,obj){
if (typeof tokens==="undefined") {
return this.lex(str).toPostfix().postfixEval();
}
else if (typeof obj==="undefined") {
if (typeof tokens.length!=="undefined")
return this.lex(str,tokens).toPostfix().postfixEval();
else
return this.lex(str).toPostfix().postfixEval(tokens);
}
else
return this.lex(str,tokens).toPostfix().postfixEval(obj);
};
var postfix_evaluator=postfix;
postfix_evaluator.prototype.formulaEval = function () {
var pop1,pop2,pop3;
var disp=[];
var arr=this.value;
for(var i=0;i<arr.length;i++){
if(arr[i].type===1||arr[i].type===3){
disp.push({value:arr[i].type===3?arr[i].show:arr[i].value,type:1});
}
else if(arr[i].type===13){
disp.push({value:arr[i].show,type:1});
}
else if(arr[i].type===0){
disp[disp.length-1]={value:arr[i].show+(arr[i].show!="-"?"(":"")+disp[disp.length-1].value+(arr[i].show!="-"?")":""),type:0};
}
else if(arr[i].type===7){
disp[disp.length-1]={value:(disp[disp.length-1].type!=1?"(":"")+disp[disp.length-1].value+(disp[disp.length-1].type!=1?")":"")+arr[i].show,type:7};
}
else if(arr[i].type===10){
pop1=disp.pop();
pop2=disp.pop();
if(arr[i].show==='P'||arr[i].show==='C')disp.push({value:"<sup>"+pop2.value+"</sup>"+arr[i].show+"<sub>"+pop1.value+"</sub>",type:10});
else disp.push({value:(pop2.type!=1?"(":"")+pop2.value+(pop2.type!=1?")":"")+"<sup>"+pop1.value+"</sup>",type:1});
}
else if(arr[i].type===2||arr[i].type===9){
pop1=disp.pop();
pop2=disp.pop();
disp.push({value:(pop2.type!=1?"(":"")+pop2.value+(pop2.type!=1?")":"")+arr[i].show+(pop1.type!=1?"(":"")+pop1.value+(pop1.type!=1?")":""),type:arr[i].type});
}
else if(arr[i].type===12){
pop1=disp.pop();
pop2=disp.pop();
pop3=disp.pop();
disp.push({value:arr[i].show+"("+pop3.value+","+pop2.value+","+pop1.value+")",type:12});
}
}
return disp[0].value;
};
var formula_evaluator=postfix_evaluator;
class nameModal extends obsidian.Modal {
constructor(app, onSubmit, defaultName) {
super(app);
this.onSubmit = onSubmit;
this.defaultName = defaultName;
}
onOpen() {
const { contentEl } = this;
contentEl.createEl("h1", { text: "Name of new note" });
new obsidian.Setting(contentEl).setName("Name").addText((text) => {
text.setPlaceholder(this.defaultName);
text.onChange((value) => {
this.result = value;
});
});
new obsidian.Setting(contentEl).addButton((btn) => btn
.setButtonText("Create Note")
.setCta()
.onClick(() => {
this.close();
this.onSubmit(this.result);
}));
}
onClose() {
const { contentEl } = this;
contentEl.empty();
}
}
const removeButton = async (app, remove, lineStart, lineEnd) => {
const { contentArray, file } = await createContentArray(app);
const store = getStore(app.isMobile);
if (remove === "true") {
const numberOfItems = lineEnd - lineStart;
contentArray.splice(lineStart, numberOfItems + 1);
if (contentArray[lineStart] &&
contentArray[lineStart].includes("^button-")) {
contentArray.splice(lineStart, 1);
}
const content = contentArray.join("\n");
await app.vault.modify(file, content);
}
if (lineStart === lineEnd) {
contentArray.splice(lineStart, 1);
const content = contentArray.join("\n");
await app.vault.modify(file, content);
}
else {
handleValueArray(remove, async (argArray) => {
const buttons = store &&
store.filter((item) => {
let exists;
argArray.forEach((arg) => {
if (item.id === `button-${arg}` && item.path === file.path) {
exists = true;
}
});
return exists;
});
if (buttons[0]) {
let offset = 0;
buttons.forEach((button) => {
const start = button.position.start.line - offset;
const numLines = button.position.end.line -
button.position.start.line;
contentArray.splice(start, numLines + 2);
offset += numLines + 2;
});
const content = contentArray.join("\n");
await app.vault.modify(file, content);
}
});
}
};
const removeSection = async (app, section) => {
const { contentArray, file } = await createContentArray(app);
if (section.includes("[") && section.includes("]")) {
const args = section.match(/\[(.*)\]/);
if (args[1]) {
const argArray = args[1].split(/,\s?/);
if (argArray[0]) {
const start = parseInt(argArray[0]) - 1;
const end = parseInt(argArray[1]);
const numLines = end - start;
contentArray.splice(start, numLines);
const content = contentArray.join("\n");
await app.vault.modify(file, content);
}
}
}
};
const prependContent = async (app, insert, lineStart) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const file = activeView.file;
let content = await app.vault.read(file);
const contentArray = content.split("\n");
contentArray.splice(lineStart, 0, insert);
content = contentArray.join("\n");
await app.vault.modify(file, content);
}
else {
new obsidian.Notice("There was an issue prepending content, please try again", 2000);
}
};
const appendContent = async (app, insert, lineEnd) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const file = activeView.file;
let content = await app.vault.read(file);
const contentArray = content.split("\n");
let insertionPoint;
if (contentArray[lineEnd + 1] &&
contentArray[lineEnd + 1].includes("^button")) {
insertionPoint = lineEnd + 2;
insert = `\n${insert}`;
}
else {
insertionPoint = lineEnd + 1;
}
contentArray.splice(insertionPoint, 0, `${insert}`);
content = contentArray.join("\n");
await app.vault.modify(file, content);
}
else {
new obsidian.Notice("There was an issue appending content, please try again", 2000);
}
};
const addContentAtLine = async (app, insert, type) => {
const lineNumber = type.match(/(\d+)/g);
if (lineNumber[0]) {
const insertionPoint = parseInt(lineNumber[0]) - 1;
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const file = activeView.file;
let content = await app.vault.read(file);
const contentArray = content.split("\n");
contentArray.splice(insertionPoint, 0, `${insert}`);
content = contentArray.join("\n");
await app.vault.modify(file, content);
}
}
else {
new obsidian.Notice("There was an issue adding content, please try again", 2000);
}
};
const createNote = async (app, content, type, folder, prompt, filePath, templater) => {
const path = type.match(/\(([\s\S]*?),?\s?(split|tab)?\)/);
if (path) {
let fullPath = `${path[1]}.md`;
const fileName = fullPath.substring(fullPath.lastIndexOf("/"));
// TODO: support folders with "folder" in the name
// If a folder is provided in the button args, add it to the path
fullPath = folder ? `${folder}/${fullPath}` : fullPath;
const directoryPath = fullPath.substring(0, fullPath.lastIndexOf("/"));
// Check if the directory exists, if not, create it
if (directoryPath && !app.vault.getAbstractFileByPath(directoryPath)) {
console.log("trying to create folder at: ", directoryPath);
await app.vault.createFolder(directoryPath);
}
try {
if (prompt === "true") {
const promptedName = await new Promise((res) => new nameModal(app, res, fileName).open());
fullPath = promptedName
? `${directoryPath}/${promptedName}.md`
: fullPath;
}
await app.vault.create(fullPath, content);
const file = app.vault.getAbstractFileByPath(fullPath);
if (path[2] === "split") {
await app.workspace.splitActiveLeaf().openFile(file);
}
else if (path[2] === "tab") {
await app.workspace.getLeaf(!0).openFile(file);
}
else {
await app.workspace.getLeaf().openFile(file);
}
// I don't know what this was supposed to do...
// if (filePath) {
// if (templater) {
// (app as any).plugins.plugins["templater-obsidian"].templater
// .append_template_to_active_file(filePath);
// } else {
// (app as any).internalPlugins?.plugins["templates"].instance
// .insertTemplate(filePath);
// }
// }
}
catch (e) {
console.error("Error in Buttons: ", e);
new obsidian.Notice("There was an error! Maybe the file already exists?", 2000);
}
}
else {
new obsidian.Notice(`couldn't parse the path!`, 2000);
}
};
const getButtonPosition = (content, args) => {
let finalPosition;
const possiblePositions = [];
let possiblePosition = { lineStart: 0, lineEnd: 0 };
const contentArray = content.split("\n");
let open = false;
contentArray.forEach((item, index) => {
if (item.includes("```")) {
if (open === false) {
possiblePosition.lineStart = index;
open = true;
}
else {
possiblePosition.lineEnd = index;
possiblePositions.push(possiblePosition);
possiblePosition = { lineStart: 0, lineEnd: 0 };
open = false;
}
}
});
possiblePositions.forEach((position) => {
const codeblock = contentArray
.slice(position.lineStart, position.lineEnd + 1)
.join("\n");
if (codeblock.includes("button") && codeblock.includes(args.name)) {
finalPosition = position;
}
});
return finalPosition;
};
const getInlineButtonPosition = async (app, id) => {
const content = await createContentArray(app);
const position = { lineStart: 0, lineEnd: 0 };
content.contentArray
.map((line) => line.split(" "))
.forEach((words, index) => {
words.forEach((word) => {
if (word.startsWith("`button")) {
if (word === `\`button-${id}\``) {
position.lineStart = index;
position.lineEnd = index;
}
}
});
});
return position;
};
const findNumber = async (app, lineNumber) => {
const content = await createContentArray(app);
const value = [];
content.contentArray.forEach((line, index) => {
if (index === lineNumber - 1) {
value.push(line);
}
});
const convertWords = value
.join("")
.replace("plus", "+")
.replace("minus", "-")
.replace("times", "*")
.replace(/divide(d)?(\sby)?/g, "/");
const numbers = convertWords.replace(/\s/g, "").match(/[^\w:]*?\d+?/g);
return numbers;
};
async function templater$1(file) {
const activeFile = file ? file : app.workspace.getActiveFile();
const config = {
template_file: activeFile,
active_file: activeFile,
target_file: activeFile,
run_mode: "DynamicProcessor",
};
const plugins = app.plugins.plugins;
const exists = plugins["templater-obsidian"];
if (!exists) {
new obsidian.Notice("Templater is not installed. Please install it.");
return;
}
// eslint-disable-next-line
// @ts-ignore
const { templater } = plugins["templater-obsidian"];
const internalModuleArray = templater.functions_generator.internal_functions.modules_array;
const functions = internalModuleArray.reduce((acc, item) => {
acc[item.name] = Object.fromEntries(item.static_functions);
return acc;
}, {});
functions.user = {};
const userScriptFunctions = await templater.functions_generator.user_functions.user_script_functions.generate_user_script_functions();
userScriptFunctions.forEach((value, key) => {
functions.user[key] = value;
});
if (activeFile) {
const userSystemFunctions = await templater.functions_generator.user_functions.user_system_functions.generate_system_functions(config);
userSystemFunctions.forEach((value, key) => {
functions.user[key] = value;
});
}
return async (command) => {
return await templater.parser.parse_commands(command, functions);
};
}
async function processTemplate(file) {
try {
const content = await app.vault.read(file);
const runTemplater = await templater$1(file);
if (runTemplater) {
const processed = await runTemplater(content);
return processed;
}
}
catch (e) {
new obsidian.Notice(`There was an error processing the template!`, 2000);
}
}
const calculate = async (app, { action }, position) => {
let equation = action;
const variables = action.match(/\$[0-9]*/g);
if (variables) {
const output = variables.map(async (value) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const lineNumber = parseInt(value.substring(1));
const numbers = await findNumber(app, lineNumber);
return { variable: value, numbers };
}
else {
new obsidian.Notice(`couldn't read file`, 2000);
}
});
const resolved = await Promise.all(output);
resolved.forEach((term) => {
if (term.numbers) {
equation = equation.replace(term.variable, term.numbers.join(""));
}
else {
new obsidian.Notice("Check the line number in your calculate button", 3000);
equation = undefined;
}
});
}
const fun = equation && formula_evaluator.eval(equation);
fun && appendContent(app, `Result: ${fun}`, position.lineEnd);
};
const remove = async (app, { remove }, { lineStart, lineEnd }) => {
await removeButton(app, remove, lineStart, lineEnd);
};
const replace = async (app, { replace }) => {
await removeSection(app, replace);
};
const text = async (app, args, position) => {
// prepend template above the button
if (args.type.includes("prepend")) {
await prependContent(app, args.action, position.lineStart);
}
// append template below the button
if (args.type.includes("append")) {
await appendContent(app, args.action, position.lineEnd);
}
if (args.type.includes("note")) {
createNote(app, args.action, args.type, args.folder, args.prompt);
}
if (args.type.includes("line")) {
await addContentAtLine(app, args.action, args.type);
}
};
const template = async (app, args, position) => {
const templatesEnabled = app.internalPlugins.plugins.templates.enabled;
const templaterPluginEnabled = app.plugins.plugins["templater-obsidian"];
// only run if templates plugin is enabled
if (templatesEnabled || templaterPluginEnabled) {
const folders = [
templatesEnabled &&
app.internalPlugins.plugins.templates.instance.options.folder?.toLowerCase(),
templaterPluginEnabled &&
app.plugins?.plugins["templater-obsidian"]?.settings.templates_folder?.toLowerCase(),
].filter((folder) => folder);
const templateFile = args.action.toLowerCase();
const allFiles = app.vault.getFiles();
const file = allFiles.filter((file) => {
let found = false;
folders[0] &&
folders.forEach((folder) => {
if (file.path.toLowerCase() === `${folder}/${templateFile}.md`) {
found = true;
}
});
return found;
})[0];
if (file) {
const content = await processTemplate(file);
// prepend template above the button
if (args.type.includes("prepend")) {
await prependContent(app, content, position.lineStart);
}
// append template below the button
if (args.type.includes("append")) {
await appendContent(app, content, position.lineEnd);
}
if (args.type.includes("note")) {
createNote(app, content, args.type, args.folder, args.prompt, file, args.templater);
}
if (args.type.includes("line")) {
await addContentAtLine(app, content, args.type);
}
}
else {
new obsidian.Notice(`Couldn't find the specified template, please check and try again`, 2000);
}
}
else {
new obsidian.Notice("You need to have the Templates or Templater plugin enabled and Template folder defined", 2000);
}
};
const link = ({ action }) => {
const link = action.trim();
window.open(link);
};
// take the action and copy it to the clipboard
const copy = ({ action }) => {
navigator.clipboard.writeText(action);
};
const command = (app, args, buttonStart) => {
const allCommands = app.commands.listCommands();
const action = args.action;
const command = allCommands.filter((command) => command.name.toUpperCase() === action.toUpperCase().trim())[0];
if (args.type.includes("prepend")) {
app.workspace.getActiveViewOfType(obsidian.MarkdownView).editor.setCursor(buttonStart.lineStart, 0);
app.commands.executeCommandById(command.id);
}
if (args.type.includes("append")) {
app.workspace.getActiveViewOfType(obsidian.MarkdownView).editor.setCursor(buttonStart.lineEnd + 2, 0);
app.commands.executeCommandById(command.id);
}
if (args.type === "command") {
app.commands.executeCommandById(command.id);
}
};
const swap = async (app, swap, id, inline, file, buttonStart) => {
handleValueArray(swap, async (argArray) => {
const swap = await getButtonSwapById(app, id);
const newSwap = swap + 1 > argArray.length - 1 ? 0 : swap + 1;
setButtonSwapById(app, id, newSwap);
let args = await getButtonById(app, argArray[swap]);
let position;
let content;
if (args) {
if (args.templater) {
args = await templater(app, position);
if (inline) {
new obsidian.Notice("templater args don't work with inline buttons yet", 2000);
}
}
if (args.replace) {
await replace(app, args);
}
if (args.type === "command") {
command(app, args, buttonStart);
}
// handle link buttons
if (args.type === "link") {
link(args);
}
// handle template buttons
if (args.type && args.type.includes("template")) {
content = await app.vault.read(file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await template(app, args, position);
}
if (args.type === "calculate") {
await calculate(app, args, position);
}
if (args.type && args.type.includes("text")) {
content = await app.vault.read(file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await text(app, args, position);
}
// handle removing the button
if (args.remove) {
content = await app.vault.read(file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await remove(app, args, position);
}
if (args.replace) {
await replace(app, args);
}
}
});
};
const templater = async (app, position) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
await activeView.save();
const file = activeView.file;
const content = await processTemplate(file);
const { args } = await getNewArgs(app, position);
const cachedData = [];
const cacheChange = app.vault.on("modify", (file) => {
cachedData.push(file.unsafeCachedData);
});
setTimeout(async () => {
const button = content
.split("\n")
.splice(position.lineStart, position.lineEnd - position.lineStart + 2)
.join("\n");
let finalContent;
if (cachedData[0]) {
const cachedContent = cachedData[cachedData.length - 1].split("\n");
let addOne = false;
if (args.type.includes("prepend")) {
addOne = true;
}
else if (args.type.includes("line")) {
const lineNumber = args.type.match(/(\d+)/g);
if (lineNumber[0]) {
const line = parseInt(lineNumber[0]) - 1;
if (line < position.lineStart && !args.replace) {
addOne = true;
}
}
}
if (addOne) {
cachedContent.splice(position.lineStart + 1, position.lineEnd - position.lineStart + 2, button);
}
else {
cachedContent.splice(position.lineStart, position.lineEnd - position.lineStart + 2, button);
}
finalContent = cachedContent.join("\n");
}
else {
finalContent = content;
}
await app.vault.modify(file, finalContent);
app.metadataCache.offref(cacheChange);
}, 200);
return args;
}
};
const copyText = ({ action }) => {
navigator.clipboard.writeText(action);
new obsidian.Notice('Text Copied!');
};
const createButton = ({ app, el, args, inline, id, clickOverride, }) => {
//create the button element
const button = el.createEl("button", {
cls: [
args.class
? `${args.class} ${args.color}`
: `button-default ${args.color ? args.color : ""}`,
inline ? "button-inline" : "",
],
});
if (args.customcolor) {
button.style.backgroundColor = args.customcolor;
}
if (args.customtextcolor) {
button.style.color = args.customtextcolor;
}
button.innerHTML = args.name;
args.id ? button.setAttribute("id", args.id) : "";
button.on("click", "button", () => {
clickOverride
? clickOverride.click(...clickOverride.params)
: clickHandler(app, args, inline, id);
});
return button;
};
const clickHandler = async (app, args, inline, id) => {
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
let content = await app.vault.read(activeView.file);
const buttonStart = getButtonPosition(content, args);
let position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
// if (args.templater) {
// args = await templater(app, position);
// if (inline) {
// new Notice("templater args don't work with inline buttons yet", 2000);
// }
// }
if (args.replace) {
replace(app, args);
}
if (args.type && args.type.includes("command")) {
command(app, args, buttonStart);
}
if (args.type === "copy") {
copy(args);
}
// handle link buttons
if (args.type === "link") {
link(args);
}
// handle copy text buttons
if (args.type === "copy") {
copyText(args);
}
// handle template buttons
if (args.type && args.type.includes("template")) {
content = await app.vault.read(activeView.file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await template(app, args, position);
}
if (args.type === "calculate") {
await calculate(app, args, position);
}
if (args.type && args.type.includes("text")) {
content = await app.vault.read(activeView.file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await text(app, args, position);
}
if (args.swap) {
if (!inline) {
new obsidian.Notice("swap args only work in inline buttons for now", 2000);
}
else {
await swap(app, args.swap, id, inline, activeView.file, buttonStart);
}
}
// handle removing the button
if (args.remove) {
content = await app.vault.read(activeView.file);
position = inline
? await getInlineButtonPosition(app, id)
: getButtonPosition(content, args);
await remove(app, args, position);
}
};
var top = 'top';
var bottom = 'bottom';
var right = 'right';
var left = 'left';
var auto = 'auto';
var basePlacements = [top, bottom, right, left];
var start = 'start';
var end = 'end';
var clippingParents = 'clippingParents';
var viewport = 'viewport';
var popper = 'popper';
var reference = 'reference';
var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {
return acc.concat([placement + "-" + start, placement + "-" + end]);
}, []);
var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {
return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
}, []); // modifiers that need to read the DOM
var beforeRead = 'beforeRead';
var read = 'read';
var afterRead = 'afterRead'; // pure-logic modifiers
var beforeMain = 'beforeMain';
var main = 'main';
var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)
var beforeWrite = 'beforeWrite';
var write = 'write';
var afterWrite = 'afterWrite';
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
function getNodeName(element) {
return element ? (element.nodeName || '').toLowerCase() : null;
}
function getWindow(node) {
if (node == null) {
return window;
}
if (node.toString() !== '[object Window]') {
var ownerDocument = node.ownerDocument;
return ownerDocument ? ownerDocument.defaultView || window : window;
}
return node;
}
function isElement(node) {
var OwnElement = getWindow(node).Element;
return node instanceof OwnElement || node instanceof Element;
}
function isHTMLElement(node) {
var OwnElement = getWindow(node).HTMLElement;
return node instanceof OwnElement || node instanceof HTMLElement;
}
function isShadowRoot(node) {
// IE 11 has no ShadowRoot
if (typeof ShadowRoot === 'undefined') {
return false;
}
var OwnElement = getWindow(node).ShadowRoot;
return node instanceof OwnElement || node instanceof ShadowRoot;
}
// and applies them to the HTMLElements such as popper and arrow
function applyStyles(_ref) {
var state = _ref.state;
Object.keys(state.elements).forEach(function (name) {
var style = state.styles[name] || {};
var attributes = state.attributes[name] || {};
var element = state.elements[name]; // arrow is optional + virtual elements
if (!isHTMLElement(element) || !getNodeName(element)) {
return;
} // Flow doesn't support to extend this property, but it's the most
// effective way to apply styles to an HTMLElement
// $FlowFixMe[cannot-write]
Object.assign(element.style, style);
Object.keys(attributes).forEach(function (name) {
var value = attributes[name];
if (value === false) {
element.removeAttribute(name);
} else {
element.setAttribute(name, value === true ? '' : value);
}
});
});
}
function effect$2(_ref2) {
var state = _ref2.state;
var initialStyles = {
popper: {
position: state.options.strategy,
left: '0',
top: '0',
margin: '0'
},
arrow: {
position: 'absolute'
},
reference: {}
};
Object.assign(state.elements.popper.style, initialStyles.popper);
state.styles = initialStyles;
if (state.elements.arrow) {
Object.assign(state.elements.arrow.style, initialStyles.arrow);
}
return function () {
Object.keys(state.elements).forEach(function (name) {
var element = state.elements[name];
var attributes = state.attributes[name] || {};
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them
var style = styleProperties.reduce(function (style, property) {
style[property] = '';
return style;
}, {}); // arrow is optional + virtual elements
if (!isHTMLElement(element) || !getNodeName(element)) {
return;
}
Object.assign(element.style, style);
Object.keys(attributes).forEach(function (attribute) {
element.removeAttribute(attribute);
});
});
};
} // eslint-disable-next-line import/no-unused-modules
var applyStyles$1 = {
name: 'applyStyles',
enabled: true,
phase: 'write',
fn: applyStyles,
effect: effect$2,
requires: ['computeStyles']
};
function getBasePlacement(placement) {
return placement.split('-')[0];
}
function getBoundingClientRect(element) {
var rect = element.getBoundingClientRect();
return {
width: rect.width,
height: rect.height,
top: rect.top,
right: rect.right,
bottom: rect.bottom,
left: rect.left,
x: rect.left,
y: rect.top
};
}
// means it doesn't take into account transforms.
function getLayoutRect(element) {
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
// Fixes https://github.com/popperjs/popper-core/issues/1223
var width = element.offsetWidth;
var height = element.offsetHeight;
if (Math.abs(clientRect.width - width) <= 1) {
width = clientRect.width;
}
if (Math.abs(clientRect.height - height) <= 1) {
height = clientRect.height;
}
return {
x: element.offsetLeft,
y: element.offsetTop,
width: width,
height: height
};
}
function contains(parent, child) {
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
if (parent.contains(child)) {
return true;
} // then fallback to custom implementation with Shadow DOM support
else if (rootNode && isShadowRoot(rootNode)) {
var next = child;
do {
if (next && parent.isSameNode(next)) {
return true;
} // $FlowFixMe[prop-missing]: need a better way to handle this...
next = next.parentNode || next.host;
} while (next);
} // Give up, the result is false
return false;
}
function getComputedStyle(element) {
return getWindow(element).getComputedStyle(element);
}
function isTableElement(element) {
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
}
function getDocumentElement(element) {
// $FlowFixMe[incompatible-return]: assume body is always available
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
element.document) || window.document).documentElement;
}
function getParentNode(element) {
if (getNodeName(element) === 'html') {
return element;
}
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
// $FlowFixMe[incompatible-return]
// $FlowFixMe[prop-missing]
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
element.parentNode || ( // DOM Element detected
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
getDocumentElement(element) // fallback
);
}
function getTrueOffsetParent(element) {
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
getComputedStyle(element).position === 'fixed') {
return null;
}
return element.offsetParent;
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
// return the containing block
function getContainingBlock(element) {
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
if (isIE && isHTMLElement(element)) {
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
var elementCss = getComputedStyle(element);
if (elementCss.position === 'fixed') {
return null;
}
}
var currentNode = getParentNode(element);
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
// create a containing block.
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
return currentNode;
} else {
currentNode = currentNode.parentNode;
}
}
return null;
} // Gets the closest ancestor positioned element. Handles some edge cases,
// such as table ancestors and cross browser bugs.
function getOffsetParent(element) {
var window = getWindow(element);
var offsetParent = getTrueOffsetParent(element);
while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {
offsetParent = getTrueOffsetParent(offsetParent);
}
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {
return window;
}
return offsetParent || getContainingBlock(element) || window;
}
function getMainAxisFromPlacement(placement) {
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
}
var max = Math.max;
var min = Math.min;
var round = Math.round;
function within(min$1, value, max$1) {
return max(min$1, min(value, max$1));
}
function getFreshSideObject() {
return {
top: 0,
right: 0,
bottom: 0,
left: 0
};
}
function mergePaddingObject(paddingObject) {
return Object.assign({}, getFreshSideObject(), paddingObject);
}
function expandToHashMap(value, keys) {
return keys.reduce(function (hashMap, key) {
hashMap[key] = value;
return hashMap;
}, {});
}
var toPaddingObject = function toPaddingObject(padding, state) {
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
placement: state.placement
})) : padding;
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
};
function arrow(_ref) {
var _state$modifiersData$;
var state = _ref.state,
name = _ref.name,
options = _ref.options;
var arrowElement = state.elements.arrow;
var popperOffsets = state.modifiersData.popperOffsets;
var basePlacement = getBasePlacement(state.placement);
var axis = getMainAxisFromPlacement(basePlacement);
var isVertical = [left, right].indexOf(basePlacement) >= 0;
var len = isVertical ? 'height' : 'width';
if (!arrowElement || !popperOffsets) {
return;
}
var paddingObject = toPaddingObject(options.padding, state);
var arrowRect = getLayoutRect(arrowElement);
var minProp = axis === 'y' ? top : left;
var maxProp = axis === 'y' ? bottom : right;
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
var arrowOffsetParent = getOffsetParent(arrowElement);
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
// outside of the popper bounds
var min = paddingObject[minProp];
var max = clientSize - arrowRect[len] - paddingObject[maxProp];
var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
var offset = within(min, center, max); // Prevents breaking syntax highlighting...
var axisProp = axis;
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
}
function effect$1(_ref2) {
var state = _ref2.state,
options = _ref2.options;
var _options$element = options.element,
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
if (arrowElement == null) {
return;
} // CSS selector
if (typeof arrowElement === 'string') {
arrowElement = state.elements.popper.querySelector(arrowElement);
if (!arrowElement) {
return;
}
}
if (process.env.NODE_ENV !== "production") {
if (!isHTMLElement(arrowElement)) {
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
}
}
if (!contains(state.elements.popper, arrowElement)) {
if (process.env.NODE_ENV !== "production") {
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
}
return;
}
state.elements.arrow = arrowElement;
} // eslint-disable-next-line import/no-unused-modules
var arrow$1 = {
name: 'arrow',
enabled: true,
phase: 'main',
fn: arrow,
effect: effect$1,
requires: ['popperOffsets'],
requiresIfExists: ['preventOverflow']
};
var unsetSides = {
top: 'auto',
right: 'auto',
bottom: 'auto',
left: 'auto'
}; // Round the offsets to the nearest suitable subpixel based on the DPR.
// Zooming can change the DPR, but it seems to report a value that will
// cleanly divide the values into the appropriate subpixels.
function roundOffsetsByDPR(_ref) {
var x = _ref.x,
y = _ref.y;
var win = window;
var dpr = win.devicePixelRatio || 1;
return {
x: round(round(x * dpr) / dpr) || 0,
y: round(round(y * dpr) / dpr) || 0
};
}
function mapToStyles(_ref2) {
var _Object$assign2;
var popper = _ref2.popper,
popperRect = _ref2.popperRect,
placement = _ref2.placement,
offsets = _ref2.offsets,
position = _ref2.position,
gpuAcceleration = _ref2.gpuAcceleration,
adaptive = _ref2.adaptive,
roundOffsets = _ref2.roundOffsets;
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
_ref3$x = _ref3.x,
x = _ref3$x === void 0 ? 0 : _ref3$x,
_ref3$y = _ref3.y,
y = _ref3$y === void 0 ? 0 : _ref3$y;
var hasX = offsets.hasOwnProperty('x');
var hasY = offsets.hasOwnProperty('y');
var sideX = left;
var sideY = top;
var win = window;
if (adaptive) {
var offsetParent = getOffsetParent(popper);
var heightProp = 'clientHeight';
var widthProp = 'clientWidth';
if (offsetParent === getWindow(popper)) {
offsetParent = getDocumentElement(popper);
if (getComputedStyle(offsetParent).position !== 'static') {
heightProp = 'scrollHeight';
widthProp = 'scrollWidth';
}
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
offsetParent = offsetParent;
if (placement === top) {
sideY = bottom; // $FlowFixMe[prop-missing]
y -= offsetParent[heightProp] - popperRect.height;
y *= gpuAcceleration ? 1 : -1;
}
if (placement === left) {
sideX = right; // $FlowFixMe[prop-missing]
x -= offsetParent[widthProp] - popperRect.width;
x *= gpuAcceleration ? 1 : -1;
}
}
var commonStyles = Object.assign({
position: position
}, adaptive && unsetSides);
if (gpuAcceleration) {
var _Object$assign;
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
}
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
}
function computeStyles(_ref4) {
var state = _ref4.state,
options = _ref4.options;
var _options$gpuAccelerat = options.gpuAcceleration,
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
_options$adaptive = options.adaptive,
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
_options$roundOffsets = options.roundOffsets,
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
if (process.env.NODE_ENV !== "production") {
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
return transitionProperty.indexOf(property) >= 0;
})) {
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
}
}
var commonStyles = {
placement: getBasePlacement(state.placement),
popper: state.elements.popper,
popperRect: state.rects.popper,
gpuAcceleration: gpuAcceleration
};
if (state.modifiersData.popperOffsets != null) {
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
offsets: state.modifiersData.popperOffsets,
position: state.options.strategy,
adaptive: adaptive,
roundOffsets: roundOffsets
})));
}
if (state.modifiersData.arrow != null) {
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
offsets: state.modifiersData.arrow,
position: 'absolute',
adaptive: false,
roundOffsets: roundOffsets
})));
}
state.attributes.popper = Object.assign({}, state.attributes.popper, {
'data-popper-placement': state.placement
});
} // eslint-disable-next-line import/no-unused-modules
var computeStyles$1 = {
name: 'computeStyles',
enabled: true,
phase: 'beforeWrite',
fn: computeStyles,
data: {}
};
var passive = {
passive: true
};
function effect(_ref) {
var state = _ref.state,
instance = _ref.instance,
options = _ref.options;
var _options$scroll = options.scroll,
scroll = _options$scroll === void 0 ? true : _options$scroll,
_options$resize = options.resize,
resize = _options$resize === void 0 ? true : _options$resize;
var window = getWindow(state.elements.popper);
var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
if (scroll) {
scrollParents.forEach(function (scrollParent) {
scrollParent.addEventListener('scroll', instance.update, passive);
});
}
if (resize) {
window.addEventListener('resize', instance.update, passive);
}
return function () {
if (scroll) {
scrollParents.forEach(function (scrollParent) {
scrollParent.removeEventListener('scroll', instance.update, passive);
});
}
if (resize) {
window.removeEventListener('resize', instance.update, passive);
}
};
} // eslint-disable-next-line import/no-unused-modules
var eventListeners = {
name: 'eventListeners',
enabled: true,
phase: 'write',
fn: function fn() {},
effect: effect,
data: {}
};
var hash$1 = {
left: 'right',
right: 'left',
bottom: 'top',
top: 'bottom'
};
function getOppositePlacement(placement) {
return placement.replace(/left|right|bottom|top/g, function (matched) {
return hash$1[matched];
});
}
var hash = {
start: 'end',
end: 'start'
};
function getOppositeVariationPlacement(placement) {
return placement.replace(/start|end/g, function (matched) {
return hash[matched];
});
}
function getWindowScroll(node) {
var win = getWindow(node);
var scrollLeft = win.pageXOffset;
var scrollTop = win.pageYOffset;
return {
scrollLeft: scrollLeft,
scrollTop: scrollTop
};
}
function getWindowScrollBarX(element) {
// If <html> has a CSS width greater than the viewport, then this will be
// incorrect for RTL.
// Popper 1 is broken in this case and never had a bug report so let's assume
// it's not an issue. I don't think anyone ever specifies width on <html>
// anyway.
// Browsers where the left scrollbar doesn't cause an issue report `0` for
// this (e.g. Edge 2019, IE11, Safari)
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
}
function getViewportRect(element) {
var win = getWindow(element);
var html = getDocumentElement(element);
var visualViewport = win.visualViewport;
var width = html.clientWidth;
var height = html.clientHeight;
var x = 0;
var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
// can be obscured underneath it.
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
// if it isn't open, so if this isn't available, the popper will be detected
// to overflow the bottom of the screen too early.
if (visualViewport) {
width = visualViewport.width;
height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
// In Chrome, it returns a value very close to 0 (+/-) but contains rounding
// errors due to floating point numbers, so we need to check precision.
// Safari returns a number <= 0, usually < -1 when pinch-zoomed
// Feature detection fails in mobile emulation mode in Chrome.
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
// 0.001
// Fallback here: "Not Safari" userAgent
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
x = visualViewport.offsetLeft;
y = visualViewport.offsetTop;
}
}
return {
width: width,
height: height,
x: x + getWindowScrollBarX(element),
y: y
};
}
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
function getDocumentRect(element) {
var _element$ownerDocumen;
var html = getDocumentElement(element);
var winScroll = getWindowScroll(element);
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
var y = -winScroll.scrollTop;
if (getComputedStyle(body || html).direction === 'rtl') {
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
}
return {
width: width,
height: height,
x: x,
y: y
};
}
function isScrollParent(element) {
// Firefox wants us to check `-x` and `-y` variations as well
var _getComputedStyle = getComputedStyle(element),
overflow = _getComputedStyle.overflow,
overflowX = _getComputedStyle.overflowX,
overflowY = _getComputedStyle.overflowY;
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
}
function getScrollParent(node) {
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
// $FlowFixMe[incompatible-return]: assume body is always available
return node.ownerDocument.body;
}
if (isHTMLElement(node) && isScrollParent(node)) {
return node;
}
return getScrollParent(getParentNode(node));
}
/*
given a DOM element, return the list of all scroll parents, up the list of ancesors
until we get to the top window object. This list is what we attach scroll listeners
to, because if any of these parent elements scroll, we'll need to re-calculate the
reference element's position.
*/
function listScrollParents(element, list) {
var _element$ownerDocumen;
if (list === void 0) {
list = [];
}
var scrollParent = getScrollParent(element);
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
var win = getWindow(scrollParent);
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
var updatedList = list.concat(target);
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
updatedList.concat(listScrollParents(getParentNode(target)));
}
function rectToClientRect(rect) {
return Object.assign({}, rect, {
left: rect.x,
top: rect.y,
right: rect.x + rect.width,
bottom: rect.y + rect.height
});
}
function getInnerBoundingClientRect(element) {
var rect = getBoundingClientRect(element);
rect.top = rect.top + element.clientTop;
rect.left = rect.left + element.clientLeft;
rect.bottom = rect.top + element.clientHeight;
rect.right = rect.left + element.clientWidth;
rect.width = element.clientWidth;
rect.height = element.clientHeight;
rect.x = rect.left;
rect.y = rect.top;
return rect;
}
function getClientRectFromMixedType(element, clippingParent) {
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
} // A "clipping parent" is an overflowable container with the characteristic of
// clipping (or hiding) overflowing elements with a position different from
// `initial`
function getClippingParents(element) {
var clippingParents = listScrollParents(getParentNode(element));
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
if (!isElement(clipperElement)) {
return [];
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
return clippingParents.filter(function (clippingParent) {
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
});
} // Gets the maximum area that the element is visible in due to any number of
// clipping parents
function getClippingRect(element, boundary, rootBoundary) {
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
var firstClippingParent = clippingParents[0];
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
var rect = getClientRectFromMixedType(element, clippingParent);
accRect.top = max(rect.top, accRect.top);
accRect.right = min(rect.right, accRect.right);
accRect.bottom = min(rect.bottom, accRect.bottom);
accRect.left = max(rect.left, accRect.left);
return accRect;
}, getClientRectFromMixedType(element, firstClippingParent));
clippingRect.width = clippingRect.right - clippingRect.left;
clippingRect.height = clippingRect.bottom - clippingRect.top;
clippingRect.x = clippingRect.left;
clippingRect.y = clippingRect.top;
return clippingRect;
}
function getVariation(placement) {
return placement.split('-')[1];
}
function computeOffsets(_ref) {
var reference = _ref.reference,
element = _ref.element,
placement = _ref.placement;
var basePlacement = placement ? getBasePlacement(placement) : null;
var variation = placement ? getVariation(placement) : null;
var commonX = reference.x + reference.width / 2 - element.width / 2;
var commonY = reference.y + reference.height / 2 - element.height / 2;
var offsets;
switch (basePlacement) {
case top:
offsets = {
x: commonX,
y: reference.y - element.height
};
break;
case bottom:
offsets = {
x: commonX,
y: reference.y + reference.height
};
break;
case right:
offsets = {
x: reference.x + reference.width,
y: commonY
};
break;
case left:
offsets = {
x: reference.x - element.width,
y: commonY
};
break;
default:
offsets = {
x: reference.x,
y: reference.y
};
}
var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
if (mainAxis != null) {
var len = mainAxis === 'y' ? 'height' : 'width';
switch (variation) {
case start:
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
break;
case end:
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
break;
}
}
return offsets;
}
function detectOverflow(state, options) {
if (options === void 0) {
options = {};
}
var _options = options,
_options$placement = _options.placement,
placement = _options$placement === void 0 ? state.placement : _options$placement,
_options$boundary = _options.boundary,
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
_options$rootBoundary = _options.rootBoundary,
rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,
_options$elementConte = _options.elementContext,
elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,
_options$altBoundary = _options.altBoundary,
altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,
_options$padding = _options.padding,
padding = _options$padding === void 0 ? 0 : _options$padding;
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
var altContext = elementContext === popper ? reference : popper;
var referenceElement = state.elements.reference;
var popperRect = state.rects.popper;
var element = state.elements[altBoundary ? altContext : elementContext];
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
var referenceClientRect = getBoundingClientRect(referenceElement);
var popperOffsets = computeOffsets({
reference: referenceClientRect,
element: popperRect,
strategy: 'absolute',
placement: placement
});
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
// 0 or negative = within the clipping rect
var overflowOffsets = {
top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
right: elementClientRect.right - clippingClientRect.right + paddingObject.right
};
var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element
if (elementContext === popper && offsetData) {
var offset = offsetData[placement];
Object.keys(overflowOffsets).forEach(function (key) {
var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';
overflowOffsets[key] += offset[axis] * multiply;
});
}
return overflowOffsets;
}
function computeAutoPlacement(state, options) {
if (options === void 0) {
options = {};
}
var _options = options,
placement = _options.placement,
boundary = _options.boundary,
rootBoundary = _options.rootBoundary,
padding = _options.padding,
flipVariations = _options.flipVariations,
_options$allowedAutoP = _options.allowedAutoPlacements,
allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
var variation = getVariation(placement);
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
return getVariation(placement) === variation;
}) : basePlacements;
var allowedPlacements = placements$1.filter(function (placement) {
return allowedAutoPlacements.indexOf(placement) >= 0;
});
if (allowedPlacements.length === 0) {
allowedPlacements = placements$1;
if (process.env.NODE_ENV !== "production") {
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
}
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
var overflows = allowedPlacements.reduce(function (acc, placement) {
acc[placement] = detectOverflow(state, {
placement: placement,
boundary: boundary,
rootBoundary: rootBoundary,
padding: padding
})[getBasePlacement(placement)];
return acc;
}, {});
return Object.keys(overflows).sort(function (a, b) {
return overflows[a] - overflows[b];
});
}
function getExpandedFallbackPlacements(placement) {
if (getBasePlacement(placement) === auto) {
return [];
}
var oppositePlacement = getOppositePlacement(placement);
return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
}
function flip(_ref) {
var state = _ref.state,
options = _ref.options,
name = _ref.name;
if (state.modifiersData[name]._skip) {
return;
}
var _options$mainAxis = options.mainAxis,
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
_options$altAxis = options.altAxis,
checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,
specifiedFallbackPlacements = options.fallbackPlacements,
padding = options.padding,
boundary = options.boundary,
rootBoundary = options.rootBoundary,
altBoundary = options.altBoundary,
_options$flipVariatio = options.flipVariations,
flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,
allowedAutoPlacements = options.allowedAutoPlacements;
var preferredPlacement = state.options.placement;
var basePlacement = getBasePlacement(preferredPlacement);
var isBasePlacement = basePlacement === preferredPlacement;
var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {
placement: placement,
boundary: boundary,
rootBoundary: rootBoundary,
padding: padding,
flipVariations: flipVariations,
allowedAutoPlacements: allowedAutoPlacements
}) : placement);
}, []);
var referenceRect = state.rects.reference;
var popperRect = state.rects.popper;
var checksMap = new Map();
var makeFallbackChecks = true;
var firstFittingPlacement = placements[0];
for (var i = 0; i < placements.length; i++) {
var placement = placements[i];
var _basePlacement = getBasePlacement(placement);
var isStartVariation = getVariation(placement) === start;
var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
var len = isVertical ? 'width' : 'height';
var overflow = detectOverflow(state, {
placement: placement,
boundary: boundary,
rootBoundary: rootBoundary,
altBoundary: altBoundary,
padding: padding
});
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
if (referenceRect[len] > popperRect[len]) {
mainVariationSide = getOppositePlacement(mainVariationSide);
}
var altVariationSide = getOppositePlacement(mainVariationSide);
var checks = [];
if (checkMainAxis) {
checks.push(overflow[_basePlacement] <= 0);
}
if (checkAltAxis) {
checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
}
if (checks.every(function (check) {
return check;
})) {
firstFittingPlacement = placement;
makeFallbackChecks = false;
break;
}
checksMap.set(placement, checks);
}
if (makeFallbackChecks) {
// `2` may be desired in some cases research later
var numberOfChecks = flipVariations ? 3 : 1;
var _loop = function _loop(_i) {
var fittingPlacement = placements.find(function (placement) {
var checks = checksMap.get(placement);
if (checks) {
return checks.slice(0, _i).every(function (check) {
return check;
});
}
});
if (fittingPlacement) {
firstFittingPlacement = fittingPlacement;
return "break";
}
};
for (var _i = numberOfChecks; _i > 0; _i--) {
var _ret = _loop(_i);
if (_ret === "break") break;
}
}
if (state.placement !== firstFittingPlacement) {
state.modifiersData[name]._skip = true;
state.placement = firstFittingPlacement;
state.reset = true;
}
} // eslint-disable-next-line import/no-unused-modules
var flip$1 = {
name: 'flip',
enabled: true,
phase: 'main',
fn: flip,
requiresIfExists: ['offset'],
data: {
_skip: false
}
};
function getSideOffsets(overflow, rect, preventedOffsets) {
if (preventedOffsets === void 0) {
preventedOffsets = {
x: 0,
y: 0
};
}
return {
top: overflow.top - rect.height - preventedOffsets.y,
right: overflow.right - rect.width + preventedOffsets.x,
bottom: overflow.bottom - rect.height + preventedOffsets.y,
left: overflow.left - rect.width - preventedOffsets.x
};
}
function isAnySideFullyClipped(overflow) {
return [top, right, bottom, left].some(function (side) {
return overflow[side] >= 0;
});
}
function hide(_ref) {
var state = _ref.state,
name = _ref.name;
var referenceRect = state.rects.reference;
var popperRect = state.rects.popper;
var preventedOffsets = state.modifiersData.preventOverflow;
var referenceOverflow = detectOverflow(state, {
elementContext: 'reference'
});
var popperAltOverflow = detectOverflow(state, {
altBoundary: true
});
var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
state.modifiersData[name] = {
referenceClippingOffsets: referenceClippingOffsets,
popperEscapeOffsets: popperEscapeOffsets,
isReferenceHidden: isReferenceHidden,
hasPopperEscaped: hasPopperEscaped
};
state.attributes.popper = Object.assign({}, state.attributes.popper, {
'data-popper-reference-hidden': isReferenceHidden,
'data-popper-escaped': hasPopperEscaped
});
} // eslint-disable-next-line import/no-unused-modules
var hide$1 = {
name: 'hide',
enabled: true,
phase: 'main',
requiresIfExists: ['preventOverflow'],
fn: hide
};
function distanceAndSkiddingToXY(placement, rects, offset) {
var basePlacement = getBasePlacement(placement);
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
placement: placement
})) : offset,
skidding = _ref[0],
distance = _ref[1];
skidding = skidding || 0;
distance = (distance || 0) * invertDistance;
return [left, right].indexOf(basePlacement) >= 0 ? {
x: distance,
y: skidding
} : {
x: skidding,
y: distance
};
}
function offset(_ref2) {
var state = _ref2.state,
options = _ref2.options,
name = _ref2.name;
var _options$offset = options.offset,
offset = _options$offset === void 0 ? [0, 0] : _options$offset;
var data = placements.reduce(function (acc, placement) {
acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);
return acc;
}, {});
var _data$state$placement = data[state.placement],
x = _data$state$placement.x,
y = _data$state$placement.y;
if (state.modifiersData.popperOffsets != null) {
state.modifiersData.popperOffsets.x += x;
state.modifiersData.popperOffsets.y += y;
}
state.modifiersData[name] = data;
} // eslint-disable-next-line import/no-unused-modules
var offset$1 = {
name: 'offset',
enabled: true,
phase: 'main',
requires: ['popperOffsets'],
fn: offset
};
function popperOffsets(_ref) {
var state = _ref.state,
name = _ref.name;
// Offsets are the actual position the popper needs to have to be
// properly positioned near its reference element
// This is the most basic placement, and will be adjusted by
// the modifiers in the next step
state.modifiersData[name] = computeOffsets({
reference: state.rects.reference,
element: state.rects.popper,
strategy: 'absolute',
placement: state.placement
});
} // eslint-disable-next-line import/no-unused-modules
var popperOffsets$1 = {
name: 'popperOffsets',
enabled: true,
phase: 'read',
fn: popperOffsets,
data: {}
};
function getAltAxis(axis) {
return axis === 'x' ? 'y' : 'x';
}
function preventOverflow(_ref) {
var state = _ref.state,
options = _ref.options,
name = _ref.name;
var _options$mainAxis = options.mainAxis,
checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,
_options$altAxis = options.altAxis,
checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,
boundary = options.boundary,
rootBoundary = options.rootBoundary,
altBoundary = options.altBoundary,
padding = options.padding,
_options$tether = options.tether,
tether = _options$tether === void 0 ? true : _options$tether,
_options$tetherOffset = options.tetherOffset,
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
var overflow = detectOverflow(state, {
boundary: boundary,
rootBoundary: rootBoundary,
padding: padding,
altBoundary: altBoundary
});
var basePlacement = getBasePlacement(state.placement);
var variation = getVariation(state.placement);
var isBasePlacement = !variation;
var mainAxis = getMainAxisFromPlacement(basePlacement);
var altAxis = getAltAxis(mainAxis);
var popperOffsets = state.modifiersData.popperOffsets;
var referenceRect = state.rects.reference;
var popperRect = state.rects.popper;
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
placement: state.placement
})) : tetherOffset;
var data = {
x: 0,
y: 0
};
if (!popperOffsets) {
return;
}
if (checkMainAxis || checkAltAxis) {
var mainSide = mainAxis === 'y' ? top : left;
var altSide = mainAxis === 'y' ? bottom : right;
var len = mainAxis === 'y' ? 'height' : 'width';
var offset = popperOffsets[mainAxis];
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
var additive = tether ? -popperRect[len] / 2 : 0;
var minLen = variation === start ? referenceRect[len] : popperRect[len];
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
// outside the reference bounds
var arrowElement = state.elements.arrow;
var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
width: 0,
height: 0
};
var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();
var arrowPaddingMin = arrowPaddingObject[mainSide];
var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want
// to include its full size in the calculation. If the reference is small
// and near the edge of a boundary, the popper can overflow even if the
// reference is not overflowing as well (e.g. virtual elements with no
// width or height)
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
if (checkMainAxis) {
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
popperOffsets[mainAxis] = preventedOffset;
data[mainAxis] = preventedOffset - offset;
}
if (checkAltAxis) {
var _mainSide = mainAxis === 'x' ? top : left;
var _altSide = mainAxis === 'x' ? bottom : right;
var _offset = popperOffsets[altAxis];
var _min = _offset + overflow[_mainSide];
var _max = _offset - overflow[_altSide];
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
popperOffsets[altAxis] = _preventedOffset;
data[altAxis] = _preventedOffset - _offset;
}
}
state.modifiersData[name] = data;
} // eslint-disable-next-line import/no-unused-modules
var preventOverflow$1 = {
name: 'preventOverflow',
enabled: true,
phase: 'main',
fn: preventOverflow,
requiresIfExists: ['offset']
};
function getHTMLElementScroll(element) {
return {
scrollLeft: element.scrollLeft,
scrollTop: element.scrollTop
};
}
function getNodeScroll(node) {
if (node === getWindow(node) || !isHTMLElement(node)) {
return getWindowScroll(node);
} else {
return getHTMLElementScroll(node);
}
}
// Composite means it takes into account transforms as well as layout.
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
if (isFixed === void 0) {
isFixed = false;
}
var documentElement = getDocumentElement(offsetParent);
var rect = getBoundingClientRect(elementOrVirtualElement);
var isOffsetParentAnElement = isHTMLElement(offsetParent);
var scroll = {
scrollLeft: 0,
scrollTop: 0
};
var offsets = {
x: 0,
y: 0
};
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
isScrollParent(documentElement)) {
scroll = getNodeScroll(offsetParent);
}
if (isHTMLElement(offsetParent)) {
offsets = getBoundingClientRect(offsetParent);
offsets.x += offsetParent.clientLeft;
offsets.y += offsetParent.clientTop;
} else if (documentElement) {
offsets.x = getWindowScrollBarX(documentElement);
}
}
return {
x: rect.left + scroll.scrollLeft - offsets.x,
y: rect.top + scroll.scrollTop - offsets.y,
width: rect.width,
height: rect.height
};
}
function order(modifiers) {
var map = new Map();
var visited = new Set();
var result = [];
modifiers.forEach(function (modifier) {
map.set(modifier.name, modifier);
}); // On visiting object, check for its dependencies and visit them recursively
function sort(modifier) {
visited.add(modifier.name);
var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
requires.forEach(function (dep) {
if (!visited.has(dep)) {
var depModifier = map.get(dep);
if (depModifier) {
sort(depModifier);
}
}
});
result.push(modifier);
}
modifiers.forEach(function (modifier) {
if (!visited.has(modifier.name)) {
// check for visited object
sort(modifier);
}
});
return result;
}
function orderModifiers(modifiers) {
// order based on dependencies
var orderedModifiers = order(modifiers); // order based on phase
return modifierPhases.reduce(function (acc, phase) {
return acc.concat(orderedModifiers.filter(function (modifier) {
return modifier.phase === phase;
}));
}, []);
}
function debounce(fn) {
var pending;
return function () {
if (!pending) {
pending = new Promise(function (resolve) {
Promise.resolve().then(function () {
pending = undefined;
resolve(fn());
});
});
}
return pending;
};
}
function format(str) {
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
return [].concat(args).reduce(function (p, c) {
return p.replace(/%s/, c);
}, str);
}
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
function validateModifiers(modifiers) {
modifiers.forEach(function (modifier) {
Object.keys(modifier).forEach(function (key) {
switch (key) {
case 'name':
if (typeof modifier.name !== 'string') {
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
}
break;
case 'enabled':
if (typeof modifier.enabled !== 'boolean') {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
}
case 'phase':
if (modifierPhases.indexOf(modifier.phase) < 0) {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
}
break;
case 'fn':
if (typeof modifier.fn !== 'function') {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
}
break;
case 'effect':
if (typeof modifier.effect !== 'function') {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
}
break;
case 'requires':
if (!Array.isArray(modifier.requires)) {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
}
break;
case 'requiresIfExists':
if (!Array.isArray(modifier.requiresIfExists)) {
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
}
break;
case 'options':
case 'data':
break;
default:
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
return "\"" + s + "\"";
}).join(', ') + "; but \"" + key + "\" was provided.");
}
modifier.requires && modifier.requires.forEach(function (requirement) {
if (modifiers.find(function (mod) {
return mod.name === requirement;
}) == null) {
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
}
});
});
});
}
function uniqueBy(arr, fn) {
var identifiers = new Set();
return arr.filter(function (item) {
var identifier = fn(item);
if (!identifiers.has(identifier)) {
identifiers.add(identifier);
return true;
}
});
}
function mergeByName(modifiers) {
var merged = modifiers.reduce(function (merged, current) {
var existing = merged[current.name];
merged[current.name] = existing ? Object.assign({}, existing, current, {
options: Object.assign({}, existing.options, current.options),
data: Object.assign({}, existing.data, current.data)
}) : current;
return merged;
}, {}); // IE11 does not support Object.values
return Object.keys(merged).map(function (key) {
return merged[key];
});
}
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
var DEFAULT_OPTIONS = {
placement: 'bottom',
modifiers: [],
strategy: 'absolute'
};
function areValidElements() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return !args.some(function (element) {
return !(element && typeof element.getBoundingClientRect === 'function');
});
}
function popperGenerator(generatorOptions) {
if (generatorOptions === void 0) {
generatorOptions = {};
}
var _generatorOptions = generatorOptions,
_generatorOptions$def = _generatorOptions.defaultModifiers,
defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,
_generatorOptions$def2 = _generatorOptions.defaultOptions,
defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
return function createPopper(reference, popper, options) {
if (options === void 0) {
options = defaultOptions;
}
var state = {
placement: 'bottom',
orderedModifiers: [],
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
modifiersData: {},
elements: {
reference: reference,
popper: popper
},
attributes: {},
styles: {}
};
var effectCleanupFns = [];
var isDestroyed = false;
var instance = {
state: state,
setOptions: function setOptions(options) {
cleanupModifierEffects();
state.options = Object.assign({}, defaultOptions, state.options, options);
state.scrollParents = {
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
popper: listScrollParents(popper)
}; // Orders the modifiers based on their dependencies and `phase`
// properties
var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers
state.orderedModifiers = orderedModifiers.filter(function (m) {
return m.enabled;
}); // Validate the provided modifiers so that the consumer will get warned
// if one of the modifiers is invalid for any reason
if (process.env.NODE_ENV !== "production") {
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
var name = _ref.name;
return name;
});
validateModifiers(modifiers);
if (getBasePlacement(state.options.placement) === auto) {
var flipModifier = state.orderedModifiers.find(function (_ref2) {
var name = _ref2.name;
return name === 'flip';
});
if (!flipModifier) {
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
}
}
var _getComputedStyle = getComputedStyle(popper),
marginTop = _getComputedStyle.marginTop,
marginRight = _getComputedStyle.marginRight,
marginBottom = _getComputedStyle.marginBottom,
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
// cause bugs with positioning, so we'll warn the consumer
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
return parseFloat(margin);
})) {
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
}
}
runModifierEffects();
return instance.update();
},
// Sync update it will always be executed, even if not necessary. This
// is useful for low frequency updates where sync behavior simplifies the
// logic.
// For high frequency updates (e.g. `resize` and `scroll` events), always
// prefer the async Popper#update method
forceUpdate: function forceUpdate() {
if (isDestroyed) {
return;
}
var _state$elements = state.elements,
reference = _state$elements.reference,
popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements
// anymore
if (!areValidElements(reference, popper)) {
if (process.env.NODE_ENV !== "production") {
console.error(INVALID_ELEMENT_ERROR);
}
return;
} // Store the reference and popper rects to be read by modifiers
state.rects = {
reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
popper: getLayoutRect(popper)
}; // Modifiers have the ability to reset the current update cycle. The
// most common use case for this is the `flip` modifier changing the
// placement, which then needs to re-run all the modifiers, because the
// logic was previously ran for the previous placement and is therefore
// stale/incorrect
state.reset = false;
state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier
// is filled with the initial data specified by the modifier. This means
// it doesn't persist and is fresh on each update.
// To ensure persistent data, use `${name}#persistent`
state.orderedModifiers.forEach(function (modifier) {
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
});
var __debug_loops__ = 0;
for (var index = 0; index < state.orderedModifiers.length; index++) {
if (process.env.NODE_ENV !== "production") {
__debug_loops__ += 1;
if (__debug_loops__ > 100) {
console.error(INFINITE_LOOP_ERROR);
break;
}
}
if (state.reset === true) {
state.reset = false;
index = -1;
continue;
}
var _state$orderedModifie = state.orderedModifiers[index],
fn = _state$orderedModifie.fn,
_state$orderedModifie2 = _state$orderedModifie.options,
_options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,
name = _state$orderedModifie.name;
if (typeof fn === 'function') {
state = fn({
state: state,
options: _options,
name: name,
instance: instance
}) || state;
}
}
},
// Async and optimistically optimized update it will not be executed if
// not necessary (debounced to run at most once-per-tick)
update: debounce(function () {
return new Promise(function (resolve) {
instance.forceUpdate();
resolve(state);
});
}),
destroy: function destroy() {
cleanupModifierEffects();
isDestroyed = true;
}
};
if (!areValidElements(reference, popper)) {
if (process.env.NODE_ENV !== "production") {
console.error(INVALID_ELEMENT_ERROR);
}
return instance;
}
instance.setOptions(options).then(function (state) {
if (!isDestroyed && options.onFirstUpdate) {
options.onFirstUpdate(state);
}
}); // Modifiers have the ability to execute arbitrary code before the first
// update cycle runs. They will be executed in the same order as the update
// cycle. This is useful when a modifier adds some persistent data that
// other modifiers need to use, but the modifier is run after the dependent
// one.
function runModifierEffects() {
state.orderedModifiers.forEach(function (_ref3) {
var name = _ref3.name,
_ref3$options = _ref3.options,
options = _ref3$options === void 0 ? {} : _ref3$options,
effect = _ref3.effect;
if (typeof effect === 'function') {
var cleanupFn = effect({
state: state,
name: name,
instance: instance,
options: options
});
var noopFn = function noopFn() {};
effectCleanupFns.push(cleanupFn || noopFn);
}
});
}
function cleanupModifierEffects() {
effectCleanupFns.forEach(function (fn) {
return fn();
});
effectCleanupFns = [];
}
return instance;
};
}
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
var createPopper = /*#__PURE__*/popperGenerator({
defaultModifiers: defaultModifiers
}); // eslint-disable-next-line import/no-unused-modules
// Stole All this from Liam's Periodic Notes Plugin: https://github.com/liamcain/obsidian-periodic-notes
class Suggest {
constructor(owner, containerEl, scope) {
this.owner = owner;
this.containerEl = containerEl;
containerEl.on("click", ".suggestion-item", this.onSuggestionClick.bind(this));
containerEl.on("mousemove", ".suggestion-item", this.onSuggestionMouseover.bind(this));
scope.register([], "ArrowUp", (event) => {
if (!event.isComposing) {
this.setSelectedItem(this.selectedItem - 1, true);
return false;
}
});
scope.register([], "ArrowDown", (event) => {
if (!event.isComposing) {
this.setSelectedItem(this.selectedItem + 1, true);
return false;
}
});
scope.register([], "Enter", (event) => {
if (!event.isComposing) {
this.useSelectedItem(event);
return false;
}
});
}
onSuggestionClick(event, el) {
event.preventDefault();
const item = this.suggestions.indexOf(el);
this.setSelectedItem(item, false);
this.useSelectedItem(event);
}
onSuggestionMouseover(_event, el) {
const item = this.suggestions.indexOf(el);
this.setSelectedItem(item, false);
}
setSuggestions(values) {
this.containerEl.empty();
const suggestionEls = [];
values.forEach((value) => {
const suggestionEl = this.containerEl.createDiv("suggestion-item");
this.owner.renderSuggestion(value, suggestionEl);
suggestionEls.push(suggestionEl);
});
this.values = values;
this.suggestions = suggestionEls;
this.setSelectedItem(0, false);
}
useSelectedItem(event) {
const currentValue = this.values[this.selectedItem];
if (currentValue) {
this.owner.selectSuggestion(currentValue, event);
}
}
setSelectedItem(selectedIndex, scrollIntoView) {
const normalizedIndex = wrapAround(selectedIndex, this.suggestions.length);
const prevSelectedSuggestion = this.suggestions[this.selectedItem];
const selectedSuggestion = this.suggestions[normalizedIndex];
prevSelectedSuggestion?.removeClass("is-selected");
selectedSuggestion?.addClass("is-selected");
this.selectedItem = normalizedIndex;
if (scrollIntoView) {
selectedSuggestion.scrollIntoView(false);
}
}
}
class TextInputSuggest {
constructor(app, inputEl) {
this.app = app;
this.inputEl = inputEl;
this.scope = new obsidian.Scope();
this.suggestEl = createDiv("suggestion-container");
const suggestion = this.suggestEl.createDiv("suggestion");
this.suggest = new Suggest(this, suggestion, this.scope);
this.scope.register([], "Escape", this.close.bind(this));
this.inputEl.addEventListener("input", this.onInputChanged.bind(this));
this.inputEl.addEventListener("focus", this.onInputChanged.bind(this));
this.inputEl.addEventListener("blur", this.close.bind(this));
this.suggestEl.on("mousedown", ".suggestion-container", (event) => {
event.preventDefault();
});
}
onInputChanged() {
const inputStr = this.inputEl.value;
const suggestions = this.getSuggestions(inputStr);
if (suggestions.length > 0) {
this.suggest.setSuggestions(suggestions);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.open(this.app.dom.appContainerEl, this.inputEl);
}
}
open(container, inputEl) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.app.keymap.pushScope(this.scope);
container.appendChild(this.suggestEl);
this.popper = createPopper(inputEl, this.suggestEl, {
placement: "bottom-start",
modifiers: [
{
name: "sameWidth",
enabled: true,
fn: ({ state, instance }) => {
// Note: positioning needs to be calculated twice -
// first pass - positioning it according to the width of the popper
// second pass - position it with the width bound to the reference element
// we need to early exit to avoid an infinite loop
const targetWidth = `${state.rects.reference.width}px`;
if (state.styles.popper.width === targetWidth) {
return;
}
state.styles.popper.width = targetWidth;
instance.update();
},
phase: "beforeWrite",
requires: ["computeStyles"],
},
],
});
}
close() {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
this.app.keymap.popScope(this.scope);
this.suggest.setSuggestions([]);
this.popper && this.popper.destroy();
this.suggestEl.detach();
}
}
class CommandSuggest extends TextInputSuggest {
getSuggestions(inputStr) {
const commands = this.app.commands.commands;
const commandNames = [];
const inputLowerCase = inputStr.toLowerCase();
for (const command in commands) {
const commandObj = commands[command];
if (commandObj.name.toLowerCase().contains(inputLowerCase)) {
commandNames.push(commandObj);
}
}
return commandNames;
}
renderSuggestion(command, el) {
el.setText(command.name);
}
selectSuggestion(command) {
this.inputEl.value = command.name;
this.inputEl.trigger("input");
this.close();
}
}
class TemplateSuggest extends TextInputSuggest {
constructor() {
super(...arguments);
this.templatesEnabled = this.app.internalPlugins.plugins.templates.enabled;
this.templaterPlugin = this.app.plugins.plugins["templater-obsidian"];
// only run if templates plugin is enabled
this.folder = () => {
const folders = [];
if (this.templatesEnabled) {
const folder = this.app.internalPlugins.plugins.templates.instance.options
.folder;
if (folder) {
folders.push(folder.toLowerCase());
}
if (this.templaterPlugin) {
const folder = this.templaterPlugin.settings.template_folder;
if (folder) {
folders.push(folder.toLowerCase());
}
}
}
return folders[0] ? folders : undefined;
};
}
getSuggestions(inputStr) {
const abstractFiles = this.app.vault.getAllLoadedFiles();
const files = [];
const lowerCaseInputStr = inputStr.toLowerCase();
const folders = this.folder();
abstractFiles.forEach((file) => {
let exists = false;
folders &&
folders.forEach((folder) => {
if (file.path.toLowerCase().contains(`${folder}/`)) {
exists = true;
}
});
if (file instanceof obsidian.TFile &&
file.extension === "md" &&
exists &&
file.path.toLowerCase().contains(lowerCaseInputStr)) {
files.push(file);
}
});
return files;
}
renderSuggestion(file, el) {
el.setText(file.name.split(".")[0]);
}
selectSuggestion(file) {
this.inputEl.value = file.name.split(".")[0];
this.inputEl.trigger("input");
this.close();
}
}
class ButtonSuggest extends TextInputSuggest {
getSuggestions() {
const buttonStore = getStore(this.app.isMobile);
const buttons = [];
buttonStore.forEach((button) => {
const trimmed = button.id.split("-")[1];
buttons.push(trimmed);
});
return buttons;
}
renderSuggestion(button, el) {
el.setText(button);
}
selectSuggestion(button) {
this.inputEl.value = this.inputEl.value + button;
this.inputEl.trigger("input");
this.close();
}
}
class ButtonModal extends obsidian.Modal {
constructor(app) {
super(app);
// actionInterval: Timeout;
this.buttonPreviewEl = createEl("p");
this.commandSuggestEl = createEl("input", { type: "text" });
this.fileSuggestEl = createEl("input", { type: "text" });
this.removeSuggestEl = createEl("input", { type: "text" });
this.swapSuggestEl = createEl("input", { type: "text" });
this.idSuggestEl = createEl("input", { type: "text" });
this.outputObject = {
name: "",
type: "",
action: "",
swap: "",
remove: "",
replace: "",
id: "",
templater: false,
class: "",
color: "",
customColor: "",
customTextColor: "",
blockId: "",
folder: "",
prompt: false,
};
this.commandSuggest = new CommandSuggest(this.app, this.commandSuggestEl);
this.commandSuggestEl.placeholder = "Toggle Pin";
this.commandSuggestEl.addEventListener("change", (e) => {
this.outputObject.action = e.target.value;
});
this.commandSuggestEl.addEventListener("blur", (e) => {
this.outputObject.action = e.target.value;
});
this.fileSuggest = new TemplateSuggest(this.app, this.fileSuggestEl);
this.fileSuggestEl.placeholder = "My Template";
this.fileSuggestEl.addEventListener("change", (e) => {
this.outputObject.action = e.target.value;
});
this.fileSuggestEl.addEventListener("blur", (e) => {
this.outputObject.action = e.target.value;
});
this.removeSuggest = new ButtonSuggest(this.app, this.removeSuggestEl);
this.removeSuggestEl.value = "true";
this.removeSuggestEl.addEventListener("change", (e) => {
this.outputObject.remove = e.target.value;
});
this.removeSuggestEl.addEventListener("blur", (e) => {
this.outputObject.remove = e.target.value;
});
this.swapSuggest = new ButtonSuggest(this.app, this.swapSuggestEl);
this.swapSuggestEl.addEventListener("change", (e) => {
this.outputObject.swap = e.target.value;
});
this.swapSuggestEl.addEventListener("blur", (e) => {
this.outputObject.swap = e.target.value;
});
this.idSuggest = new ButtonSuggest(this.app, this.idSuggestEl);
this.idSuggestEl.addEventListener("change", (e) => {
this.outputObject.id = e.target.value;
});
this.idSuggestEl.addEventListener("blur", (e) => {
this.outputObject.id = e.target.value;
});
this.swapSuggestEl.placeholder = "[idOne, idTwo]";
}
onOpen() {
const { titleEl, contentEl } = this;
titleEl.setText("Button Maker");
contentEl.addClass("button-maker");
contentEl.createEl("form", {}, (formEl) => {
new obsidian.Setting(formEl)
.setName("Button Name")
.setDesc("What would you like to call this button?")
.addText((textEl) => {
textEl.setPlaceholder("My Awesome Button");
textEl.onChange((value) => {
this.buttonPreviewEl.setText(value);
this.outputObject.name = value;
});
window.setTimeout(() => textEl.inputEl.focus(), 10);
});
const typeContainer = createEl("div");
const typeTitle = createEl("span", { cls: "setting-item-title" });
typeTitle.setText("Button Type");
const typeDesc = createEl("div", { cls: "setting-item-description" });
typeDesc.setText("What type of button are you making?");
formEl.appendChild(typeContainer);
typeContainer.appendChild(typeTitle);
typeContainer.appendChild(typeDesc);
new obsidian.Setting(typeDesc).addDropdown((drop) => {
drop.addOption("pre", "Select a Button Type");
drop.addOption("command", "Command - run a command prompt command");
drop.addOption("link", "Link - open a url or uri");
drop.addOption("template", "Template - insert or create notes from templates");
drop.addOption("text", "Text - insert or create notes with text");
drop.addOption("calculate", "Calculate - run a mathematical calculation");
drop.addOption("swap", "Swap - Create a multi-purpose Inline Button from other Buttons");
drop.addOption("copy", "Text - Copy text to clipboard");
const action = formEl.createEl("div");
drop.onChange((value) => {
this.outputObject.type = value;
if (value === "link") {
action.empty();
new obsidian.Setting(action)
.setName("Link")
.setDesc("Enter a link to open")
.addText((textEl) => {
textEl.setPlaceholder("https://obsidian.md");
textEl.onChange((value) => (this.outputObject.action = value));
});
}
if (value === "command") {
action.empty();
new obsidian.Setting(action)
.setName("Command")
.setDesc("Enter a command to run")
.addDropdown((drop) => {
drop.addOption("command", "Default");
drop.addOption("prepend command", "Prepend");
drop.addOption("append command", "Append");
drop.onChange((value) => {
this.outputObject.type = value;
});
})
.addText((textEl) => {
textEl.inputEl.replaceWith(this.commandSuggestEl);
});
}
if (value.includes("template")) {
action.empty();
new obsidian.Setting(action)
.setName("Template")
.setDesc("Select a template note and what should happen")
.addDropdown((drop) => {
drop.addOption("pre", "Do this...");
drop.addOption("prepend template", "Prepend");
drop.addOption("append template", "Append");
drop.addOption("line template", "Line");
drop.addOption("note template", "Note");
drop.onChange((value) => {
this.outputObject.type = value;
if (value == "line template") {
new obsidian.Setting(action)
.setName("Line Number")
.setDesc("At which line should the template be inserted?")
.addText((textEl) => {
textEl.setPlaceholder("69");
textEl.onChange((value) => {
this.outputObject.type = `line(${value}) template`;
});
});
}
if (value == "note template") {
new obsidian.Setting(action)
.setName("Prompt")
.setDesc("Should you be prompted to enter a name for the file on creation?")
.addToggle((toggleEl) => {
this.outputObject.prompt = false;
toggleEl.onChange((bool) => (this.outputObject.prompt = bool));
});
new obsidian.Setting(action)
.setName("Note Name")
.setDesc("What should the new note be named? Note: if prompt is on, this will be the default name")
.addText((textEl) => {
textEl.setPlaceholder("My New Note");
new obsidian.Setting(action)
.setName("Default Folder")
.setDesc("Enter a folder path to place the note in. Defaults to root")
.addText((textEl) => {
this.outputObject.folder = "";
textEl.onChange((textVal) => {
this.outputObject.folder = textVal;
});
});
new obsidian.Setting(action)
.setName("Split")
.setDesc("Should the new note open in a split pane?")
.addToggle((toggleEl) => {
this.outputObject.type = `note(${textEl.getValue}) template`;
textEl.onChange((textVal) => {
const toggleVal = toggleEl.getValue();
if (toggleVal) {
this.outputObject.type = `note(${textVal}, split) template`;
}
if (!toggleVal) {
this.outputObject.type = `note(${textVal}) template`;
}
});
toggleEl.onChange((toggleVal) => {
const textVal = textEl.getValue();
if (toggleVal) {
this.outputObject.type = `note(${textVal}, split) template`;
}
if (!toggleVal) {
this.outputObject.type = `note(${textVal}) template`;
}
});
});
});
}
});
})
.addText((textEl) => {
textEl.inputEl.replaceWith(this.fileSuggestEl);
});
}
if (value.includes("text")) {
action.empty();
new obsidian.Setting(action)
.setName("Text")
.setDesc("What text and where should it go?")
.addDropdown((drop) => {
drop.addOption("pre", "Do this...");
drop.addOption("prepend text", "Prepend");
drop.addOption("append text", "Append");
drop.addOption("line text", "Line");
drop.addOption("note text", "Note");
drop.onChange((value) => {
this.outputObject.type = value;
if (value == "line text") {
new obsidian.Setting(action)
.setName("Line Number")
.setDesc("At which line should the template be inserted?")
.addText((textEl) => {
textEl.setPlaceholder("69");
textEl.onChange((value) => {
this.outputObject.type = `line(${value}) text`;
});
});
}
if (value == "note text") {
new obsidian.Setting(action)
.setName("Note Name")
.setDesc("What should the new note be named?")
.addText((textEl) => {
textEl.setPlaceholder("My New Note");
new obsidian.Setting(action)
.setName("Split")
.setDesc("Should the new note open in a split pane?")
.addToggle((toggleEl) => {
this.outputObject.type = `note(${textEl.getValue}) text`;
textEl.onChange((textVal) => {
const toggleVal = toggleEl.getValue();
if (toggleVal) {
this.outputObject.type = `note(${textVal}, split) text`;
}
if (!toggleVal) {
this.outputObject.type = `note(${textVal}) text`;
}
});
toggleEl.onChange((toggleVal) => {
const textVal = textEl.getValue();
if (toggleVal) {
this.outputObject.type = `note(${textVal}, split) text`;
}
if (!toggleVal) {
this.outputObject.type = `note(${textVal}) text`;
}
});
});
});
}
});
})
.addText((textEl) => {
textEl.setPlaceholder("My Text to Insert");
textEl.onChange((value) => {
this.outputObject.action = value;
});
});
}
if (value === "calculate") {
action.empty();
new obsidian.Setting(action)
.setName("Calculate")
.setDesc("Enter a calculation, you can reference a line number with $LineNumber")
.addText((textEl) => {
textEl.setPlaceholder("2+$10");
textEl.onChange((value) => (this.outputObject.action = value));
});
}
if (value === "swap") {
this.outputObject.type = "";
action.empty();
new obsidian.Setting(action)
.setName("Swap")
.setDesc("choose buttons to be included in the Inline Swap Button")
.addText((textEl) => {
textEl.inputEl.replaceWith(this.swapSuggestEl);
});
}
if (value === "copy") {
action.empty();
new obsidian.Setting(action)
.setName("Text")
.setDesc("Text to copy for clipboard")
.addText((textEl) => {
textEl.setPlaceholder("Text to copy");
textEl.onChange((value) => (this.outputObject.action = value));
});
}
});
});
new obsidian.Setting(formEl)
.setName("Button Block ID")
.setDesc("Provide a custom button-block-id")
.addText((textEl) => {
textEl.setPlaceholder("buttonId");
textEl.onChange((value) => {
this.outputObject.blockId = value;
});
});
new obsidian.Setting(formEl)
.setName("Remove")
.setDesc("Would you like to remove this button (or other buttons) after clicking?")
.addToggle((toggleEl) => {
toggleEl.onChange((value) => {
if (value) {
new obsidian.Setting(remove)
.setName("Select Remove")
.setDesc("Use true to remove this button, or supply an [array] of button block-ids")
.addText((textEl) => {
textEl.inputEl.replaceWith(this.removeSuggestEl);
});
this.outputObject.remove = value;
}
if (!value) {
this.outputObject.remove = "";
remove.empty();
}
});
});
const remove = formEl.createEl("div");
new obsidian.Setting(formEl)
.setName("Replace")
.setDesc("Would you like to replace lines in the note after clicking?")
.addToggle((toggleEl) => {
toggleEl.onChange((value) => {
if (value) {
new obsidian.Setting(replace)
.setName("Select Lines")
.setDesc("Supply an array of [startingLine, endingLine] to be replaced")
.addText((textEl) => {
textEl.setValue("[]");
textEl.onChange((value) => (this.outputObject.replace = value));
});
}
if (!value) {
replace.empty();
}
});
});
const replace = formEl.createEl("div");
new obsidian.Setting(formEl)
.setName("Inherit")
.setDesc("Would you like to inherit args by adding an existing button block-id?")
.addToggle((toggleEl) => {
toggleEl.onChange((value) => {
if (value) {
new obsidian.Setting(id)
.setName("id")
.setDesc("inherit from other Buttons by adding their button block-id")
.addText((textEl) => {
textEl.inputEl.replaceWith(this.idSuggestEl);
});
}
if (!value) {
this.outputObject.replace = "";
id.empty();
}
});
});
const id = formEl.createEl("div");
new obsidian.Setting(formEl)
.setName("Templater")
.setDesc("Do you want to convert a templater command inside your Button on each click?")
.addToggle((toggleEl) => {
toggleEl.setTooltip("Do not use for inline Button");
toggleEl.onChange((value) => {
this.outputObject.templater = value;
});
});
new obsidian.Setting(formEl)
.setName("Custom Class")
.setDesc("Add a custom class for button styling")
.addText((textEl) => {
textEl.onChange((value) => {
this.buttonPreviewEl.setAttribute("class", value);
this.outputObject.class = value;
if (value === "") {
this.buttonPreviewEl.setAttribute("class", "button-default");
}
});
});
new obsidian.Setting(formEl)
.setName("Color")
.setDesc("What color would you like your button to be?")
.addDropdown((drop) => {
drop.addOption("default", "Default Color");
drop.addOption("blue", "Blue");
drop.addOption("red", "Red");
drop.addOption("green", "Green");
drop.addOption("yellow", "Yellow");
drop.addOption("purple", "Purple");
drop.addOption("custom", "Custom");
drop.onChange((value) => {
customBackgroundColor.empty();
customTextColor.empty();
if (value === 'custom') {
this.outputObject.color = "";
new obsidian.Setting(customBackgroundColor)
.setName("Background: ")
.addText((el) => {
el.setPlaceholder("#FFFFFF");
el.onChange((value) => {
this.buttonPreviewEl.className = "";
this.buttonPreviewEl.style.background = value;
this.outputObject.customColor = value;
});
});
new obsidian.Setting(customTextColor)
.setName("Text Color: ")
.addText((el) => {
el.setPlaceholder("#000000");
el.onChange((value) => {
this.buttonPreviewEl.className = "";
this.buttonPreviewEl.style.color = value;
this.outputObject.customTextColor = value;
});
});
return;
}
this.outputObject.color = value;
const buttonClass = this.buttonPreviewEl
.getAttribute("class")
.replace(" blue", "")
.replace(" red", "")
.replace(" green", "")
.replace(" yellow", "")
.replace(" purple", "");
if (value !== "default") {
this.buttonPreviewEl.setAttribute("class", `${buttonClass} ${value}`);
if (value === "blue") {
value = "#76b3fa";
}
if (value === "purple") {
value = "#725585";
}
this.buttonPreviewEl.setAttribute("style", `background: ${value}`);
}
else {
this.buttonPreviewEl.setAttribute("class", `${buttonClass}`);
this.buttonPreviewEl.removeAttribute("style");
}
});
});
const customBackgroundColor = formEl.createEl("div");
const customTextColor = formEl.createEl("div");
formEl.createDiv("modal-button-container", (buttonContainerEl) => {
buttonContainerEl
.createEl("button", {
attr: { type: "button" },
cls: "button-default",
text: "Cancel",
})
.addEventListener("click", () => this.close());
buttonContainerEl.createEl("button", {
attr: { type: "submit" },
cls: "button-default mod-cta",
text: "Insert Button",
});
});
formEl.addEventListener("submit", (e) => {
e.preventDefault();
insertButton(this.app, this.outputObject);
this.close();
});
});
contentEl.createEl("p").setText("Button Preview");
this.buttonPreviewEl = createButton({
app: this.app,
el: contentEl,
args: { name: "My Awesome Button" },
});
}
onClose() {
const { contentEl } = this;
contentEl.empty();
}
}
class InlineButtonModal extends obsidian.Modal {
constructor(app) {
super(app);
this.buttonSuggestEl = createEl("input", { type: "text" });
this.buttonSuggest = new ButtonSuggest(this.app, this.buttonSuggestEl);
this.buttonSuggestEl.setAttribute("style", "width: 100%; height: 40px");
}
onOpen() {
const { titleEl, contentEl } = this;
titleEl.setText("Insert Inline Button");
contentEl.createEl("form", {}, (formEl) => {
formEl.appendChild(this.buttonSuggestEl);
formEl.addEventListener("submit", (e) => {
e.preventDefault();
insertInlineButton(this.app, this.buttonSuggestEl.value);
this.close();
});
});
}
onClose() {
const { contentEl } = this;
contentEl.empty();
}
}
class ButtonsPlugin extends obsidian.Plugin {
constructor() {
super(...arguments);
this.storeEvents = new obsidian.Events();
this.indexCount = 0;
}
async addButtonInEdit(app) {
let widget;
if (widget) {
widget.clear();
}
const activeView = app.workspace.getActiveViewOfType(obsidian.MarkdownView);
if (activeView) {
const store = getStore(app.isMobile);
const buttonsInFile = store.filter((button) => button.path === activeView.file.path);
this.registerCodeMirror((cm) => {
buttonsInFile.forEach(async (button) => {
const widgetEl = document.createElement("div");
const storeButton = await getButtonFromStore(app, {
id: button.id.split("-")[1],
});
if (!app.isMobile &&
storeButton &&
storeButton?.args.editview === "true") {
widget = cm.addLineWidget(button.position.end.line + 1, createButton({
app,
el: widgetEl,
args: storeButton.args,
inline: false,
id: button.id,
}));
}
});
});
}
}
async onload() {
this.app.workspace.onLayoutReady(async () => {
// await updateWarning();
});
this.buttonEvents = buttonEventListener(this.app, addButtonToStore);
this.closedFile = openFileListener(this.app, this.storeEvents, initializeButtonStore);
this.createButton = createButton;
this.storeEventsRef = this.storeEvents.on("index-complete", () => {
this.indexCount++;
});
initializeButtonStore(this.app, this.storeEvents);
this.buttonEdit = openFileListener(this.app, this.storeEvents, this.addButtonInEdit.bind(this));
this.addCommand({
id: "button-maker",
name: "Button Maker",
callback: () => new ButtonModal(this.app).open(),
});
this.addCommand({
id: "inline-button",
name: "Insert Inline Button",
callback: () => new InlineButtonModal(this.app).open(),
});
this.registerMarkdownCodeBlockProcessor("button", async (source, el, ctx) => {
if (source.includes("<%")) {
const runTemplater = await templater$1();
if (runTemplater) {
source = await runTemplater(source);
}
}
// create an object out of the arguments
const file = this.app.vault
.getFiles()
.find((f) => f.path === ctx.sourcePath);
addButtonToStore(this.app, file);
let args = createArgumentObject(source);
const storeArgs = await getButtonFromStore(this.app, args);
args = storeArgs ? storeArgs.args : args;
const id = storeArgs && storeArgs.id;
if (Boolean(args['hidden']) !== true)
createButton({ app: this.app, el, args, inline: false, id });
});
this.registerMarkdownPostProcessor(async (el, ctx) => {
// Search for <code> blocks inside this element; for each one, look for things of the form `
const codeblocks = el.querySelectorAll("code");
for (let index = 0; index < codeblocks.length; index++) {
const codeblock = codeblocks.item(index);
const text = codeblock.innerText.trim();
if (text.startsWith("button")) {
const id = text.split("button-")[1].trim();
if (this.indexCount < 2) {
this.storeEventsRef = this.storeEvents.on("index-complete", async () => {
this.indexCount++;
const args = await getButtonById(this.app, id);
if (args) {
ctx.addChild(new InlineButton(codeblock, this.app, args, id));
}
});
}
else {
const args = await getButtonById(this.app, id);
if (args) {
ctx.addChild(new InlineButton(codeblock, this.app, args, id));
}
}
}
}
});
}
onunload() {
this.app.metadataCache.offref(this.buttonEvents);
this.app.workspace.offref(this.closedFile);
this.app.workspace.offref(this.buttonEdit);
this.storeEvents.offref(this.storeEventsRef);
}
}
class InlineButton extends obsidian.MarkdownRenderChild {
constructor(el, app, args, id) {
super(el);
this.el = el;
this.app = app;
this.args = args;
this.id = id;
}
async onload() {
const button = createButton({
app: this.app,
el: this.el,
args: this.args,
inline: true,
id: this.id,
});
this.el.replaceWith(button);
}
}
module.exports = ButtonsPlugin;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsic3JjL2J1dHRvblN0b3JlLnRzIiwic3JjL3V0aWxzLnRzIiwic3JjL2V2ZW50cy50cyIsIm5vZGVfbW9kdWxlcy9tYXRoLWV4cHJlc3Npb24tZXZhbHVhdG9yL3NyYy9tYXRoX2Z1bmN0aW9uLmpzIiwibm9kZV9tb2R1bGVzL21hdGgtZXhwcmVzc2lvbi1ldmFsdWF0b3Ivc3JjL2xleGVyLmpzIiwibm9kZV9tb2R1bGVzL21hdGgtZXhwcmVzc2lvbi1ldmFsdWF0b3Ivc3JjL3Bvc3RmaXguanMiLCJub2RlX21vZHVsZXMvbWF0aC1leHByZXNzaW9uLWV2YWx1YXRvci9zcmMvcG9zdGZpeF9ldmFsdWF0b3IuanMiLCJub2RlX21vZHVsZXMvbWF0aC1leHByZXNzaW9uLWV2YWx1YXRvci9zcmMvZm9ybXVsYV9ldmFsdWF0b3IuanMiLCJzcmMvbmFtZU1vZGFsLnRzIiwic3JjL2hhbmRsZXJzLnRzIiwic3JjL3BhcnNlci50cyIsInNyYy90ZW1wbGF0ZXIudHMiLCJzcmMvYnV0dG9uVHlwZXMudHMiLCJzcmMvYnV0dG9uLnRzIiwibm9kZV9tb2R1bGVzL0Bwb3BwZXJqcy9jb3JlL2xpYi9lbnVtcy5qcyIsI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cbn1cclxudmFyIHRva2VuID0gWydzaW4nLCAnY29zJywgJ3RhbicsICdwaScsICcoJywgJyknLCAnUCcsICdDJywgJyAnLFxyXG4gICdhc2luJywgJ2Fjb3MnLCAnYXRhbicsICc3JywgJzgnLCAnOScsICdpbnQnLFxyXG4gICdjb3NoJywgJ2Fjb3NoJywgJ2xuJywgJ14nLCAncm9vdCcsICc0JywgJzUnLCAnNicsICcvJywgJyEnLFxyXG4gICd0YW5oJywgJ2F0YW5oJywgJ01vZCcsICcxJywgJzInLCAnMycsICcqJyxcclxuICAnc2luaCcsICdhc2luaCcsICdlJywgJ2xvZycsICcwJywgJy4nLCAnKycsICctJywgJywnLCAnU2lnbWEnLCAnbicsICdQaScsICdwb3cnXVxyXG52YXIgc2hvdyA9IFsnc2luJywgJ2NvcycsICd0YW4nLCAnJnBpOycsICcoJywgJyknLCAnUCcsICdDJywgJyAnLFxyXG4gICdhc2luJywgJ2Fjb3MnLCAnYXRhbicsICc3JywgJzgnLCAnOScsICdJbnQnLFxyXG4gICdjb3NoJywgJ2Fjb3NoJywgJyBsbicsICdeJywgJ3Jvb3QnLCAnNCcsICc1JywgJzYnLCAnJmRpdmlkZTsnLCAnIScsXHJcbiAgJ3RhbmgnLCAnYXRhbmgnLCAnIE1vZCAnLCAnMScsICcyJywgJzMnLCAnJnRpbWVzOycsXHJcbiAgJ3NpbmgnLCAnYXNpbmgnLCAnZScsICcgbG9nJywgJzAnLCAnLicsICcrJywgJy0nLCAnLCcsICcmU2lnbWE7JywgJ24nLCAnJlBpOycsICdwb3cnXVxyXG52YXIgZXZhID0gW01leHAubWF0aC5zaW4sIE1leHAubWF0aC5jb3MsIE1leHAubWF0aC50YW4sICdQSScsICcoJywgJyknLCBNZXhwLm1hdGguUCwgTWV4cC5tYXRoLkMsICcgJy5hbmNob3IsXHJcbk1leHAubWF0aC5hc2luLCBNZXhwLm1hdGguYWNvcywgTWV4cC5tYXRoLmF0YW4sICc3JywgJzgnLCAnOScsIE1hdGguZmx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bmd0aCAtIDIpID8gbmV3QXIubGVuZ3RoIC0gMSA6IHN0cmluZy5sZW5ndGggLSBpKTsgeCA+IDA7IHgtLSkge1xyXG4gICAgICBpZiAobmV3QXJbeF0gPT09IHVuZGVmaW5lZCkgY29udGludWU7XHJcbiAgICAgIGZvciAoeSA9IDA7IHkgPCBuZXdBclt4XS5sZW5ndGg7IHkrKykge1xyXG4gICAgICAgIGlmIChtYXRjaChzdHJpbmcsIG5ld0FyW3hdW3ldLCBpLCB4KSkge1xyXG4gICAgICAgICAga2V5ID0gbmV3QXJbeF1beV1cclxuICAgICAgICAgIHkgPSBuZXdBclt4XS5sZW5ndGhcclxuICAgICAgICAgIHggPSAwXHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgICBpICs9IGtleS5sZW5ndGggLSAxXHJcbiAgICBpZiAoa2V5ID09PSAnJykge1xyXG4gICAgICB0aHJvdyAobmV3IE1leHAuRXhjZXB0aW9uKCdDYW5cXCd0IHVuZGVyc3RhbmQgYWZ0ZXIgJyArIHN0cmluZy5zbGljZShpKSkpXHJcbiAgICB9XHJcbiAgICB2YXIgaW5kZXggPSB0b2tlbi5pbmRleE9mKGtleSk7XHJcbiAgICBub2Rlcy5wdXNoKHtcclxuICAgICAgaW5kZXg6IGluZGV4LFxyXG4gICAgICB0b2tlbjoga2V5LFxyXG4gICAgICB0eXBlOiB0eXBlW2luZGV4XSxcclxuICAgICAgZXZhbDogZXZhW2luZGV4XSxcclxuICAgICAgcHJlY2VkZW5jZTogcHJlY2VkW3R5cGVbaW5kZXhdXSxcclxuICAgICAgc2hvdzogc2hvd1tpbmRleF1cclxuICAgIH0pXHJcbiAgfVxyXG4gIHJldHVybiBub2RlcztcclxufVxyXG5cclxuTWV4cC5sZXggPSBmdW5jdGlvbiAoaW5wLCB0b2tlbnMpIHtcclxuICAndXNlIHN0cmljdCdcclxuXHJcblxyXG4gIHZhciBjaGFuZ2VTaWduT2JqID0ge1xyXG4gICAgdmFsd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vZGVzW2kgKyAxXS50eXBlID09PSAxICYmXHJcbiAgICAgICAgKG5vZGVzW2kgLSAxXS50eXBlID09PSAxIHx8IG5vZGVzW2kgLSAxXS50eXBlID09PSA2KSlcclxuICAgICAgICB0aHJvdyBuZXcgTWV4cC5FeGNlcHRpb24oJ1VuZXhwZWN0ZWQgU3BhY2UnKVxyXG4gICAgICBjb250aW51ZVxyXG4gICAgfVxyXG5cclxuICAgIHZhciBpbmRleCA9IG5vZGUuaW5kZXhcclxuICAgIHZhciBjVG9rZW4gPSBub2RlLnRva2VuXHJcbiAgICB2YXIgY1R5cGUgPSBub2RlLnR5cGVcclxuICAgIHZhciBjRXYgPSBub2RlLmV2YWxcclxuICAgIHZhciBjUHJlID0gbm9kZS5wcmVjZWRlbmNlXHJcbiAgICB2YXIgY1Nob3cgPSBub2RlLnNob3dcclxuICAgIHZhciBwcmUgPSBzdHJbc3RyLmxlbmd0aCAtIDFdXHJcbiAgICB2YXIgalxyXG4gICAgZm9yIChqID0gcHRjLmxlbmd0aDsgai0tOykgeyAvLyBsb29wIG92ZXIgcHRjXHJcbiAgICAgIGlmIChwdGNbal0gPT09IDApIHtcclxuICAgICAgICBpZiAoWzAsIDIsIDMsIDQsIDUsIDksIDExLCAxMiwgMTNdLmluZGV4T2YoY1R5cGUpICE9PSAtMSkge1xyXG4gICAgICAgICAgaWYgKGFsbG93ZWRbY1R5cGVdICE9PSB0cnVlKSB7XHJcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKGlucCwgbm9kZSwgbm9kZXMsIGFsbG93ZWQpXHJcbiAgICAgICAgICAgIHRocm93IChuZXcgTWV4cC5FeGNlcHRpb24oY1Rva2VuICsgJyBpcyBub3QgYWxsb3dlZCBhZnRlciAnICsgcHJldktleSkpXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBzdHIucHVzaChjbG9zaW5nUGFyT2JqKVxyXG4gICAgICAgICAgYWxsb3dlZCA9IHR5cGUxXHJcbiAgICAgICAgICBhc3Rlcmlj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clxuICAgICAgICBzdHIucHVzaChvYmopXHJcbiAgICAgICAgaW5jKHB0YywgMilcclxuICAgICAgfVxyXG4gICAgICBhbGxvd2VkID0gdHlwZTBcclxuICAgICAgYXN0ZXJpY2sgPSBlbXB0eVxyXG4gICAgfSBlbHNlIGlmIChjVHlwZSA9PT0gMTApIHtcclxuICAgICAgYWxsb3dlZCA9IHR5cGUwXHJcbiAgICAgIGFzdGVyaWNrID0gZW1wdHlcclxuICAgICAgaW5jKHB0YywgMilcclxuICAgICAgc3RyLnB1c2gob2JqKVxyXG4gICAgfSBlbHNlIGlmIChjVHlwZSA9PT0gMTEpIHtcclxuICAgICAgYWxsb3dlZCA9IHR5cGUwXHJcbiAgICAgIGFzdGVyaWNrID0gZW1wdHlcclxuICAgICAgc3RyLnB1c2gob2JqKVxyXG4gICAgfSBlbHNlIGlmIChjVHlwZSA9PT0gMTIpIHtcclxuICAgICAgYWxsb3dlZCA9IHR5cGUwXHJcbiAgICAgIGFzdGVyaWNrID0gZW1wdHlcclxuICAgICAgaW5jKHB0YywgNikucHVzaCg2KVxyXG4gICAgICBzdHIucHVzaChvYmopXHJcbiAgICAgIHN0ci5wdXNoKG9wZW5pbmdQYXJPYmopXHJcbiAgICB9IGVsc2UgaWYgKGNUeXBlID09PSAxMykge1xyXG4gICAgICBhbGxvd2VkID0gdHlwZTFcclxuICAgICAgYXN0ZXJpY2sgPSB0eXBlM0FzdGVyaWNrXHJcbiAgICAgIHN0ci5wdXNoKG9iailcclxuICAgIH1cclxuICAgIGluYyhwdGMsIC0xKVxyXG4gICAgcHJldktleSA9IGNUb2tlblxyXG4gIH1cclxuICBmb3IgKGogPSBwdGMubGVuZ3RoOyBqLS07KSB7IC8vIGxvb3Agb3ZlciBwdGNcclxuICAgIGlmIChwdGNbal0gPT09IDApIHtcclxuICAgICAgc3RyLnB1c2goY2xvc2luZ1Bhck9iailcclxuICAgICAgaW5jKHB0YywgLTEpLnBvcCgpXHJcbiAgICB9IGVsc2UgYnJlYWs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tIDFdLnNwbGl0KFwiXFxuXCIpO1xuICAgICAgICBsZXQgYWRkT25lID0gZmFsc2U7XG4gICAgICAgIGlmIChhcmdzLnR5cGUuaW5jbHVkZXMoXCJwcmVwZW5kXCIpKSB7XG4gICAgICAgICAgYWRkT25lID0gdHJ1ZTtcbiAgICAgICAgfSBlbHNlIGlmIChhcmdzLnR5cGUuaW5jbHVkZXMoXCJsaW5lXCIpKSB7XG4gICAgICAgICAgY29uc3QgbGluZU51bWJlciA9IGFyZ3MudHlwZS5tYXRjaCgvKFxcZCspL2cpO1xuICAgICAgICAgIGlmIChsaW5lTnVtYmVyWzBdKSB7XG4gICAgICAgICAgICBjb25zdCBsaW5lID0gcGFyc2VJbnQobGluZU51bWJlclswXSkgLSAxO1xuICAgICAgICAgICAgaWYgKGxpbmUgPCBwb3NpdGlvbi5saW5lU3RhcnQgJiYgIWFyZ3MucmVwbGFjZSkge1xuICAgICAgICAgICAgICBhZGRPbmUgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAoYWRkT25lKSB7XG4gICAgICAgICAgY2FjaGVkQ29udGVudC5zcGxpY2UoXG4gICAgICAgICAgICBwb3NpdGlvbi5saW5lU3RhcnQgKyAxLFxuICAgICAgICAgICAgcG9zaXRpb24ubGluZUVuZCAtIHBvc2l0aW9uLmxpbmVTdGFydCArIDIsXG4gICAgICAgICAgICBidXR0b25cbiAgICAgICAgICApO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIGNhY2hlZENvbnRlbnQuc3BsaWNlKFxuICAgICAgICAgICAgcG9zaXRpb24ubGluZVN0YXJ0LFxuICAgICAgICAgICAgcG9zaXRpb24ubGluZUVuZCAtIHBvc2l0aW9uLmxpbmVTdGFydCArIDIsXG4gICAgICAgICAgICBidXR0b25cbiAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgICAgIGZpbmFsQ29udGVudCA9IGNhY2hlZENvbnRlbnQuam9pbihc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hbHVlKSk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAodmFsdWUgPT09IFwiY29tbWFuZFwiKSB7XG4gICAgICAgICAgICBhY3Rpb24uZW1wdHkoKTtcbiAgICAgICAgICAgIG5ldyBTZXR0aW5nKGFjdGlvbilcbiAgICAgICAgICAgICAgLnNldE5hbWUoXCJDb21tYW5kXCIpXG4gICAgICAgICAgICAgIC5zZXREZXNjKFwiRW50ZXIgYSBjb21tYW5kIHRvIHJ1blwiKVxuICAgICAgICAgICAgICAuYWRkRHJvcGRvd24oKGRyb3ApID0+IHtcbiAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJjb21tYW5kXCIsIFwiRGVmYXVsdFwiKTtcbiAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJwcmVwZW5kIGNvbW1hbmRcIiwgXCJQcmVwZW5kXCIpO1xuICAgICAgICAgICAgICBkcm9wLmFkZE9wdGlvbihcImFwcGVuZCBjb21tYW5kXCIsIFwiQXBwZW5kXCIpO1xuICAgICAgICAgICAgICBkcm9wLm9uQ2hhbmdlKCh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgICAgICAgIHRleHRFbC5pbnB1dEVsLnJlcGxhY2VXaXRoKHRoaXMuY29tbWFuZFN1Z2dlc3RFbCk7XG4gICAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAodmFsdWUuaW5jbHVkZXMoXCJ0ZW1wbGF0ZVwiKSkge1xuICAgICAgICAgICAgYWN0aW9uLmVtcHR5KCk7XG4gICAgICAgICAgICBuZXcgU2V0dGluZyhhY3Rpb24pXG4gICAgICAgICAgICAgIC5zZXROYW1lKFwiVGVtcGxhdGVcIilcbiAgICAgICAgICAgICAgLnNldERlc2MoXCJTZWxlY3QgYSB0ZW1wbGF0ZSBub3RlIGFuZCB3aGF0IHNob3VsZCBoYXBwZW5cIilcbiAgICAgICAgICAgICAgLmFkZERyb3Bkb3duKChkcm9wKSA9PiB7XG4gICAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJwcmVcIiwgXCJEbyB0aGlzLi4uXCIpO1xuICAgICAgICAgICAgICAgIGRyb3AuYWRkT3B0aW9uKFwicHJlcGVuZCB0ZW1wbGF0ZVwiLCBcIlByZXBlbmRcIik7XG4gICAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJhcHBlbmQgdGVtcGxhdGVcIiwgXCJBcHBlbmRcIik7XG4gICAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJsaW5lIHRlbXBsYXRlXCIsIFwiTGluZVwiKTtcbiAgICAgICAgICAgICAgICBkcm9wLmFkZE9wdGlvbihcIm5vdGUgdGVtcGxhdGVcIiwgXCJOb3RlXCIpO1xuICAgICAgICAgICAgICAgIGRyb3Aub25DaGFuZ2UoKHZhbHVlKSA9PiB7XG4gICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICBpZiAodmFsdWUgPT0gXCJsaW5lIHRlbXBsYXRlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgbmV3IFNldHRpbmcoYWN0aW9uKVxuICAgICAgICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiTGluZSBOdW1iZXJcIilcbiAgICAgICAgICAgICAgICAgICAgICAuc2V0RGVzYyhcIkF0IHdoaWNoIGxpbmUgc2hvdWxkIHRoZSB0ZW1wbGF0ZSBiZSBpbnNlcnRlZD9cIilcbiAgICAgICAgICAgICAgICAgICAgICAuYWRkVGV4dCgodGV4dEVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0RWwuc2V0UGxhY2Vob2xkZXIoXCI2OVwiKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHRFbC5vbkNoYW5nZSgodmFsdWUpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vdXRwdXRPYmplY3QudHlwZSA9IGBsaW5lKCR7dmFsdWV9KSB0ZW1wbGF0ZWA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZSA9PSBcIm5vdGUgdGVtcGxhdGVcIikge1xuICAgICAgICAgICAgICAgICAgICBuZXcgU2V0dGluZyhhY3Rpb24pXG4gICAgICAgICAgICAgICAgICAgICAgLnNldE5hbWUoXCJQcm9tcHRcIilcbiAgICAgICAgICAgICAgICAgICAgICAuc2V0RGVzYyhcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiU2hvdWxkIHlvdSBiZSBwcm9tcHRlZCB0byBlbnRlciBhIG5hbWUgZm9yIHRoZSBmaWxlIG9uIGNyZWF0aW9uP1wiXG4gICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgIC5hZGRUb2dnbGUoKHRvZ2dsZUVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC5wcm9tcHQgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRvZ2dsZUVsLm9uQ2hhbmdlKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAoYm9vbCkgPT4gKHRoaXMub3V0cHV0T2JqZWN0LnByb21wdCA9IGJvb2wpXG4gICAgICAgICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBuZXcgU2V0dGluZyhhY3Rpb24pXG4gICAgICAgICAgICAgICAgICAgICAgLnNldE5hbWUoXCJOb3RlIE5hbWVcIilcbiAgICAgICAgICAgICAgICAgICAgICAuc2V0RGVzYyhcbiAgICAgICAgICAgICAgICAgICAgICAgIFwiV2hhdCBzaG91bGQgdGhlIG5ldyBub3RlIGJlIG5hbWVkPyBOb3RlOiBpZiBwcm9tcHQgaXMgb24sIHRoaXMgd2lsbCBiZSB0aGUgZGVmYXVsdCBuYW1lXCJcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEVsLnNldFBsYWNlaG9sZGVyKFwiTXkgTmV3IE5vdGVcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgU2V0dGluZyhhY3Rpb24pXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiRGVmYXVsdCBGb2xkZXJcIilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLnNldERlc2MoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJFbnRlciBhIGZvbGRlciBwYXRoIHRvIHBsYWNlIHRoZSBub3RlIGluLiBEZWZhdWx0cyB0byByb290XCJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAuYWRkVGV4dCgodGV4dEVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vdXRwdXRPYmplY3QuZm9sZGVyID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0RWwub25DaGFuZ2UoKHRleHRWYWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LmZvbGRlciA9IHRleHRWYWw7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IFNldHRpbmcoYWN0aW9uKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAuc2V0TmFtZShcIlNwbGl0XCIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC5zZXREZXNjKFwiU2hvdWxkIHRoZSBuZXcgbm90ZSBvcGVuIGluIGEgc3BsaXQgcGFuZT9cIilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLmFkZFRvZ2dsZSgodG9nZ2xlRWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0RWwuZ2V0VmFsdWV9KSB0ZW1wbGF0ZWA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEVsLm9uQ2hhbmdlKCh0ZXh0VmFsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zdCB0b2dnbGVWYWwgPSB0b2dnbGVFbC5nZXRWYWx1ZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRvZ2dsZVZhbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0VmFsfSwgc3BsaXQpIHRlbXBsYXRlYDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdG9nZ2xlVmFsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSBgbm90ZSgke3RleHRWYWx9KSB0ZW1wbGF0ZWA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9nZ2xlRWwub25DaGFuZ2UoKHRvZ2dsZVZhbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdGV4dFZhbCA9IHRleHRFbC5nZXRWYWx1ZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRvZ2dsZVZhbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0VmFsfSwgc3BsaXQpIHRlbXBsYXRlYDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghdG9nZ2xlVmFsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSBgbm90ZSgke3RleHRWYWx9KSB0ZW1wbGF0ZWA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAuYWRkVGV4dCgodGV4dEVsKSA9PiB7XG4gICAgICAgICAgICAgICAgdGV4dEVsLmlucHV0RWwucmVwbGFjZVdpdGgodGhpcy5maWxlU3VnZ2VzdEVsKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh2YWx1ZS5pbmNsdWRlcyhcInRleHRcIikpIHtcbiAgICAgICAgICAgIGFjdGlvbi5lbXB0eSgpO1xuICAgICAgICAgICAgbmV3IFNldHRpbmcoYWN0aW9uKVxuICAgICAgICAgICAgICAuc2V0TmFtZShcIlRleHRcIilcbiAgICAgICAgICAgICAgLnNldERlc2MoXCJXaGF0IHRleHQgYW5kIHdoZXJlIHNob3VsZCBpdCBnbz9cIilcbiAgICAgICAgICAgICAgLmFkZERyb3Bkb3duKChkcm9wKSA9PiB7XG4gICAgICAgICAgICAgICAgZHJvcC5hZGRPcHRpb24oXCJwcmVcIiwgXCJEbyB0aGlzLi4uXCIpO1xuICAgICAgICAgICAgICAgIGRyb3AuYWRkT3B0aW9uKFwicHJlcGVuZCB0ZXh0XCIsIFwiUHJlcGVuZFwiKTtcbiAgICAgICAgICAgICAgICBkcm9wLmFkZE9wdGlvbihcImFwcGVuZCB0ZXh0XCIsIFwiQXBwZW5kXCIpO1xuICAgICAgICAgICAgICAgIGRyb3AuYWRkT3B0aW9uKFwibGluZSB0ZXh0XCIsIFwiTGluZVwiKTtcbiAgICAgICAgICAgICAgICBkcm9wLmFkZE9wdGlvbihcIm5vdGUgdGV4dFwiLCBcIk5vdGVcIik7XG4gICAgICAgICAgICAgICAgZHJvcC5vbkNoYW5nZSgodmFsdWUpID0+IHtcbiAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZSA9PSBcImxpbmUgdGV4dFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIG5ldyBTZXR0aW5nKGFjdGlvbilcbiAgICAgICAgICAgICAgICAgICAgICAuc2V0TmFtZShcIkxpbmUgTnVtYmVyXCIpXG4gICAgICAgICAgICAgICAgICAgICAgLnNldERlc2MoXCJBdCB3aGljaCBsaW5lIHNob3VsZCB0aGUgdGVtcGxhdGUgYmUgaW5zZXJ0ZWQ/XCIpXG4gICAgICAgICAgICAgICAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dEVsLnNldFBsYWNlaG9sZGVyKFwiNjlcIik7XG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0RWwub25DaGFuZ2UoKHZhbHVlKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSBgbGluZSgke3ZhbHVlfSkgdGV4dGA7XG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgIGlmICh2YWx1ZSA9PSBcIm5vdGUgdGV4dFwiKSB7XG4gICAgICAgICAgICAgICAgICAgIG5ldyBTZXR0aW5nKGFjdGlvbilcbiAgICAgICAgICAgICAgICAgICAgICAuc2V0TmFtZShcIk5vdGUgTmFtZVwiKVxuICAgICAgICAgICAgICAgICAgICAgIC5zZXREZXNjKFwiV2hhdCBzaG91bGQgdGhlIG5ldyBub3RlIGJlIG5hbWVkP1wiKVxuICAgICAgICAgICAgICAgICAgICAgIC5hZGRUZXh0KCh0ZXh0RWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRleHRFbC5zZXRQbGFjZWhvbGRlcihcIk15IE5ldyBOb3RlXCIpO1xuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IFNldHRpbmcoYWN0aW9uKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAuc2V0TmFtZShcIlNwbGl0XCIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC5zZXREZXNjKFwiU2hvdWxkIHRoZSBuZXcgbm90ZSBvcGVuIGluIGEgc3BsaXQgcGFuZT9cIilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLmFkZFRvZ2dsZSgodG9nZ2xlRWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0RWwuZ2V0VmFsdWV9KSB0ZXh0YDtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0RWwub25DaGFuZ2UoKHRleHRWYWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IHRvZ2dsZVZhbCA9IHRvZ2dsZUVsLmdldFZhbHVlKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAodG9nZ2xlVmFsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSBgbm90ZSgke3RleHRWYWx9LCBzcGxpdCkgdGV4dGA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoIXRvZ2dsZVZhbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0VmFsfSkgdGV4dGA7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9nZ2xlRWwub25DaGFuZ2UoKHRvZ2dsZVZhbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgdGV4dFZhbCA9IHRleHRFbC5nZXRWYWx1ZSgpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHRvZ2dsZVZhbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC50eXBlID0gYG5vdGUoJHt0ZXh0VmFsfSwgc3BsaXQpIHRleHRgO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKCF0b2dnbGVWYWwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5vdXRwdXRPYmplY3QudHlwZSA9IGBub3RlKCR7dGV4dFZhbH0pIHRleHRgO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgICAgICAgIHRleHRFbC5zZXRQbGFjZWhvbGRlcihcIk15IFRleHQgdG8gSW5zZXJ0XCIpO1xuICAgICAgICAgICAgICAgIHRleHRFbC5vbkNoYW5nZSgodmFsdWUpID0+IHtcbiAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LmFjdGlvbiA9IHZhbHVlO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYgKHZhbHVlID09PSBcImNhbGN1bGF0ZVwiKSB7XG4gICAgICAgICAgICBhY3Rpb24uZW1wdHkoKTtcbiAgICAgICAgICAgIG5ldyBTZXR0aW5nKGFjdGlvbilcbiAgICAgICAgICAgICAgLnNldE5hbWUoXCJDYWxjdWxhdGVcIilcbiAgICAgICAgICAgICAgLnNldERlc2MoXG4gICAgICAgICAgICAgICAgXCJFbnRlciBhIGNhbGN1bGF0aW9uLCB5b3UgY2FuIHJlZmVyZW5jZSBhIGxpbmUgbnVtYmVyIHdpdGggJExpbmVOdW1iZXJcIlxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgIC5hZGRUZXh0KCh0ZXh0RWwpID0+IHtcbiAgICAgICAgICAgICAgICB0ZXh0RWwuc2V0UGxhY2Vob2xkZXIoXCIyKyQxMFwiKTtcbiAgICAgICAgICAgICAgICB0ZXh0RWwub25DaGFuZ2UoKHZhbHVlKSA9PiAodGhpcy5vdXRwdXRPYmplY3QuYWN0aW9uID0gdmFsdWUpKTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfVxuICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJzd2FwXCIpIHtcbiAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnR5cGUgPSBcIlwiO1xuICAgICAgICAgICAgYWN0aW9uLmVtcHR5KCk7XG4gICAgICAgICAgICBuZXcgU2V0dGluZyhhY3Rpb24pXG4gICAgICAgICAgICAgIC5zZXROYW1lKFwiU3dhcFwiKVxuICAgICAgICAgICAgICAuc2V0RGVzYyhcbiAgICAgICAgICAgICAgICBcImNob29zZSBidXR0b25zIHRvIGJlIGluY2x1ZGVkIGluIHRoZSBJbmxpbmUgU3dhcCBCdXR0b25cIlxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgIC5hZGRUZXh0KCh0ZXh0RWwpID0+IHtcbiAgICAgICAgICAgICAgICB0ZXh0RWwuaW5wdXRFbC5yZXBsYWNlV2l0aCh0aGlzLnN3YXBTdWdnZXN0RWwpO1xuICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYodmFsdWUgPT09IFwiY29weVwiKSB7XG4gICAgICAgICAgICBhY3Rpb24uZW1wdHkoKTtcbiAgICAgICAgICAgIG5ldyBTZXR0aW5nKGFjdGlvbilcbiAgICAgICAgICAgICAgLnNldE5hbWUoXCJUZXh0XCIpXG4gICAgICAgICAgICAgIC5zZXREZXNjKFwiVGV4dCB0byBjb3B5IGZvciBjbGlwYm9hcmRcIilcbiAgICAgICAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgICAgICAgIHRleHRFbC5zZXRQbGFjZWhvbGRlcihcIlRleHQgdG8gY29weVwiKTtcbiAgICAgICAgICAgICAgICB0ZXh0RWwub25DaGFuZ2UoKHZhbHVlKSA9PiAodGhpcy5vdXRwdXRPYmplY3QuYWN0aW9uID0gdmFsdWUpKTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gICAgICBuZXcgU2V0dGluZyhmb3JtRWwpXG4gICAgICAgIC5zZXROYW1lKFwiQnV0dG9uIEJsb2NrIElEXCIpXG4gICAgICAgIC5zZXREZXNjKFwiUHJvdmlkZSBhIGN1c3RvbSBidXR0b24tYmxvY2staWRcIilcbiAgICAgICAgLmFkZFRleHQoKHRleHRFbCkgPT4ge1xuICAgICAgICAgIHRleHRFbC5zZXRQbGFjZWhvbGRlcihcImJ1dHRvbklkXCIpO1xuICAgICAgICAgIHRleHRFbC5vbkNoYW5nZSgodmFsdWUpID0+IHtcbiAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LmJsb2NrSWQgPSB2YWx1ZTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICBuZXcgU2V0dGluZyhmb3JtRWwpXG4gICAgICAgIC5zZXROYW1lKFwiUmVtb3ZlXCIpXG4gICAgICAgIC5zZXREZXNjKFxuICAgICAgICAgIFwiV291bGQgeW91IGxpa2UgdG8gcmVtb3ZlIHRoaXMgYnV0dG9uIChvciBvdGhlciBidXR0b25zKSBhZnRlciBjbGlja2luZz9cIlxuICAgICAgICApXG4gICAgICAgIC5hZGRUb2dnbGUoKHRvZ2dsZUVsKSA9PiB7XG4gICAgICAgICAgdG9nZ2xlRWwub25DaGFuZ2UoKHZhbHVlKSA9PiB7XG4gICAgICAgICAgICBpZiAodmFsdWUpIHtcbiAgICAgICAgICAgICAgbmV3IFNldHRpbmcocmVtb3ZlKVxuICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiU2VsZWN0IFJlbW92ZVwiKVxuICAgICAgICAgICAgICAgIC5zZXREZXNjKFxuICAgICAgICAgICAgICAgICAgXCJVc2UgdHJ1ZSB0byByZW1vdmUgdGhpcyBidXR0b24sIG9yIHN1cHBseSBhbiBbYXJyYXldIG9mIGJ1dHRvbiBibG9jay1pZHNcIlxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAuYWRkVGV4dCgodGV4dEVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICB0ZXh0RWwuaW5wdXRFbC5yZXBsYWNlV2l0aCh0aGlzLnJlbW92ZVN1Z2dlc3RFbCk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgdGhpcy5vdXRwdXRPYmplY3QucmVtb3ZlID0gdmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAoIXZhbHVlKSB7XG4gICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LnJlbW92ZSA9IFwiXCI7XG4gICAgICAgICAgICAgIHJlbW92ZS5lbXB0eSgpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICAgIGNvbnN0IHJlbW92ZSA9IGZvcm1FbC5jcmVhdGVFbChcImRpdlwiKTtcbiAgICAgIG5ldyBTZXR0aW5nKGZvcm1FbClcbiAgICAgICAgLnNldE5hbWUoXCJSZXBsYWNlXCIpXG4gICAgICAgIC5zZXREZXNjKFwiV291bGQgeW91IGxpa2UgdG8gcmVwbGFjZSBsaW5lcyBpbiB0aGUgbm90ZSBhZnRlciBjbGlja2luZz9cIilcbiAgICAgICAgLmFkZFRvZ2dsZSgodG9nZ2xlRWwpID0+IHtcbiAgICAgICAgICB0b2dnbGVFbC5vbkNoYW5nZSgodmFsdWUpID0+IHtcbiAgICAgICAgICAgIGlmICh2YWx1ZSkge1xuICAgICAgICAgICAgICBuZXcgU2V0dGluZyhyZXBsYWNlKVxuICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiU2VsZWN0IExpbmVzXCIpXG4gICAgICAgICAgICAgICAgLnNldERlc2MoXG4gICAgICAgICAgICAgICAgICBcIlN1cHBseSBhbiBhcnJheSBvZiBbc3RhcnRpbmdMaW5lLCBlbmRpbmdMaW5lXSB0byBiZSByZXBsYWNlZFwiXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIC5hZGRUZXh0KCh0ZXh0RWwpID0+IHtcbiAgICAgICAgICAgICAgICAgIHRleHRFbC5zZXRWYWx1ZShcIltdXCIpO1xuICAgICAgICAgICAgICAgICAgdGV4dEVsLm9uQ2hhbmdlKFxuICAgICAgICAgICAgICAgICAgICAodmFsdWUpID0+ICh0aGlzLm91dHB1dE9iamVjdC5yZXBsYWNlID0gdmFsdWUpXG4gICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKCF2YWx1ZSkge1xuICAgICAgICAgICAgICByZXBsYWNlLmVtcHR5KCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuICAgICAgY29uc3QgcmVwbGFjZSA9IGZvcm1FbC5jcmVhdGVFbChcImRpdlwiKTtcbiAgICAgIG5ldyBTZXR0aW5nKGZvcm1FbClcbiAgICAgICAgLnNldE5hbWUoXCJJbmhlcml0XCIpXG4gICAgICAgIC5zZXREZXNjKFxuICAgICAgICAgIFwiV291bGQgeW91IGxpa2UgdG8gaW5oZXJpdCBhcmdzIGJ5IGFkZGluZyBhbiBleGlzdGluZyBidXR0b24gYmxvY2staWQ/XCJcbiAgICAgICAgKVxuICAgICAgICAuYWRkVG9nZ2xlKCh0b2dnbGVFbCkgPT4ge1xuICAgICAgICAgIHRvZ2dsZUVsLm9uQ2hhbmdlKCh2YWx1ZSkgPT4ge1xuICAgICAgICAgICAgaWYgKHZhbHVlKSB7XG4gICAgICAgICAgICAgIG5ldyBTZXR0aW5nKGlkKVxuICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiaWRcIilcbiAgICAgICAgICAgICAgICAuc2V0RGVzYyhcbiAgICAgICAgICAgICAgICAgIFwiaW5oZXJpdCBmcm9tIG90aGVyIEJ1dHRvbnMgYnkgYWRkaW5nIHRoZWlyIGJ1dHRvbiBibG9jay1pZFwiXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgIC5hZGRUZXh0KCh0ZXh0RWwpID0+IHtcbiAgICAgICAgICAgICAgICAgIHRleHRFbC5pbnB1dEVsLnJlcGxhY2VXaXRoKHRoaXMuaWRTdW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Y2tncm91bmRDb2xvci5lbXB0eSgpXG4gICAgICAgICAgICBjdXN0b21UZXh0Q29sb3IuZW1wdHkoKVxuICAgICAgICAgICAgaWYodmFsdWUgPT09ICdjdXN0b20nKSB7XG4gICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LmNvbG9yID0gXCJcIjtcbiAgICAgICAgICAgICAgbmV3IFNldHRpbmcoY3VzdG9tQmFja2dyb3VuZENvbG9yKVxuICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiQmFja2dyb3VuZDogXCIpXG4gICAgICAgICAgICAgICAgLmFkZFRleHQoKGVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICBlbC5zZXRQbGFjZWhvbGRlcihcIiNGRkZGRkZcIik7XG4gICAgICAgICAgICAgICAgICBlbC5vbkNoYW5nZSgodmFsdWU6IHN0cmluZykgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJ1dHRvblByZXZpZXdFbC5jbGFzc05hbWUgPSBcIlwiO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmJ1dHRvblByZXZpZXdFbC5zdHlsZS5iYWNrZ3JvdW5kID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMub3V0cHV0T2JqZWN0LmN1c3RvbUNvbG9yID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgbmV3IFNldHRpbmcoY3VzdG9tVGV4dENvbG9yKVxuICAgICAgICAgICAgICAuc2V0TmFtZShcIlRleHQgQ29sb3I6IFwiKVxuICAgICAgICAgICAgICAgIC5hZGRUZXh0KChlbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgZWwuc2V0UGxhY2Vob2xkZXIoXCIjMDAwMDAwXCIpO1xuICAgICAgICAgICAgICAgICAgZWwub25DaGFuZ2UoKHZhbHVlOiBzdHJpbmcpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5idXR0b25QcmV2aWV3RWwuY2xhc3NOYW1lID0gXCJcIjtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5idXR0b25QcmV2aWV3RWwuc3R5bGUuY29sb3IgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5vdXRwdXRPYmplY3QuY3VzdG9tVGV4dENvbG9yID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICB9XG4gICAgICAgICAgICB0aGlzLm91dHB1dE9iamVjdC5jb2xvciA9IHZhbHVlO1xuICAgICAgICAgICAgY29uc3QgYnV0dG9uQ2xhc3MgPSB0aGlzLmJ1dHRvblByZXZpZXdFbFxuICAgICAgICAgICAgICAuZ2V0QXR0cmlidXRlKFwiY2xhc3NcIilcbiAgICAgICAgICAgICAgLnJlcGxhY2UoXCIgYmx1ZVwiLCBcIlwiKVxuICAgICAgICAgICAgICAucmVwbGFjZShcIiByZWRcIiwgXCJcIilcbiAgICAgICAgICAgICAgLnJlcGxhY2UoXCIgZ3JlZW5cIiwgXCJcIilcbiAgICAgICAgICAgICAgLnJlcGxhY2UoXCIgeWVsbG93XCIsIFwiXCIpXG4gICAgICAgICAgICAgIC5yZXBsYWNlKFwiIHB1cnBsZVwiLCBcIlwiKTtcbiAgICAgICAgICAgIGlmICh2YWx1ZSAhPT0gXCJkZWZhdWx0XCIpIHtcbiAgICAgICAgICAgICAgdGhpcy5idXR0b25QcmV2aWV3RWwuc2V0QXR0cmlidXRlKFxuICAgICAgICAgICAgICAgIFwiY2xhc3NcIixcbiAgICAgICAgICAgICAgICBgJHtidXR0b25DbGFzc30gJHt2YWx1ZX1gXG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJibHVlXCIpIHtcbiAgICAgICAgICAgICAgICB2YWx1ZSA9IFwiIzc2YjNmYVwiO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGlmICh2YWx1ZSA9PT0gXCJwdXJwbGVcIikge1xuICAgICAgICAgICAgICAgIHZhbHVlID0gXCIjNzI1NTg1XCI7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgdGhpcy5idXR0b25QcmV2aWV3RWwuc2V0QXR0cmlidXRlKFxuICAgICAgICAgICAgICAgIFwic3R5bGVcIixcbiAgICAgICAgICAgICAgICBgYmFja2dyb3VuZDogJHt2YWx1ZX1gXG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICB0aGlzLmJ1dHRvblByZXZpZXdFbC5zZXRBdHRyaWJ1dGUoXCJjbGFzc1wiLCBgJHtidXR0b25DbGFzc31gKTtcbiAgICAgICAgICAgICAgdGhpcy5idXR0b25QcmV2aWV3RWwucmVtb3ZlQXR0cmlidXRlKFwic3R5bGVcIik7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSk7XG4gICAgICAgIH0pO1xuXG4gICAgICBjb25zdCBjdXN0b21CYWNrZ3JvdW5kQ29sb3IgPSBmb3JtRWwuY3JlYXRlRWwoXCJkaXZcIik7XG4gICAgICBjb25zdCBjdXN0b21UZXh0Q29sb3IgPSBmb3JtRWwuY3JlYXRlRWwoXCJkaXZcIik7XG5cbiAgICAgIGZvcm1FbC5jcmVhdGVEaXYoXCJtb2RhbC1idXR0b24tY29udGFpbmVyXCIsIChidXR0b25Db250YWluZXJFbCkgPT4ge1xuICAgICAgICBidXR0b25Db250YWluZXJFbFxuICAgICAgICAgIC5jcmVhdGVFbChcImJ1dHRvblwiLCB7XG4gICAgICAgICAgICBhdHRyOiB7IHR5cGU6IFwiYnV0dG9uXCIgfSxcbiAgICAgICAgICAgIGNsczogXCJidXR0b24tZGVmYXVsdFwiLFxuICAgICAgICAgICAgdGV4dDogXCJDYW5jZWxcIixcbiAgICAgICAgICB9KVxuICAgICAgICAgIC5hZGRFdmVudExpc3RlbmVyKFwiY2xpY2tcIi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rKSB7XG4gICAgICAgIGNvbnN0IGNvZGVibG9jayA9IGNvZGVibG9ja3MuaXRlbShpbmRleCk7XG4gICAgICAgIGNvbnN0IHRleHQgPSBjb2RlYmxvY2suaW5uZXJUZXh0LnRyaW0oKTtcbiAgICAgICAgaWYgKHRleHQuc3RhcnRzV2l0aChcImJ1dHRvblwiKSkge1xuICAgICAgICAgIGNvbnN0IGlkID0gdGV4dC5zcGxpdChcImJ1dHRvbi1cIilbMV0udHJpbSgpO1xuICAgICAgICAgIGlmICh0aGlzLmluZGV4Q291bnQgPCAyKSB7XG4gICAgICAgICAgICB0aGlzLnN0b3JlRXZlbnRzUmVmID0gdGhpcy5zdG9yZUV2ZW50cy5vbihcbiAgICAgICAgICAgICAgXCJpbmRleC1jb21wbGV0ZVwiLFxuICAgICAgICAgICAgICBhc3luYyAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbmRleENvdW50Kys7XG4gICAgICAgICAgICAgICAgY29uc3QgYXJncyA9IGF3YWl0IGdldEJ1dHRvbkJ5SWQodGhpcy5hcHAsIGlkKTtcbiAgICAgICAgICAgICAgICBpZiAoYXJncykge1xuICAgICAgICAgICAgICAgICAgY3R4LmFkZENoaWxkKG5ldyBJbmxpbmVCdXR0b24oY29kZWJsb2NrLCB0aGlzLmFwcCwgYXJncywgaWQpKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIGNvbnN0IGFyZ3MgPSBhd2FpdCBnZXRCdXR0b25CeUlkKHRoaXMuYXBwLCBpZCk7XG4gICAgICAgICAgICBpZiAoYXJncykge1xuICAgICAgICAgICAgICBjdHguYWRkQ2hpbGQobmV3IElubGluZUJ1dHRvbihjb2RlYmxvY2ssIHRoaXMuYXBwLCBhcmdzLCBpZCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICA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