diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/LICENSE b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/LICENSE
@@ -0,0 +1,22 @@
+MIT License
+
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/README.md b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..2f3368ef58e938d8016e762d4ca91aad338e6f50
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/README.md
@@ -0,0 +1,19 @@
+# @babel/runtime
+
+> babel's modular runtime helpers
+
+See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information.
+
+## Install
+
+Using npm:
+
+```sh
+npm install --save @babel/runtime
+```
+
+or using yarn:
+
+```sh
+yarn add @babel/runtime
+```
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/OverloadYield.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/OverloadYield.js
new file mode 100644
index 0000000000000000000000000000000000000000..0eca88c7c000a4e8f1980ab38981e9994e5f32dc
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/OverloadYield.js
@@ -0,0 +1,4 @@
+function _OverloadYield(e, d) {
+ this.v = e, this.k = d;
+}
+module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread.js
new file mode 100644
index 0000000000000000000000000000000000000000..a367643812c64fc4fa8b5be971323b0447aaf951
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread.js
@@ -0,0 +1,14 @@
+var defineProperty = require("./defineProperty.js");
+function _objectSpread(e) {
+ for (var r = 1; r < arguments.length; r++) {
+ var t = null != arguments[r] ? Object(arguments[r]) : {},
+ o = Object.keys(t);
+ "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })), o.forEach(function (r) {
+ defineProperty(e, r, t[r]);
+ });
+ }
+ return e;
+}
+module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread2.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread2.js
new file mode 100644
index 0000000000000000000000000000000000000000..4f3b9fa020acbed2e10d2c32e2566991c00ba47b
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectSpread2.js
@@ -0,0 +1,23 @@
+var defineProperty = require("./defineProperty.js");
+function ownKeys(e, r) {
+ var t = Object.keys(e);
+ if (Object.getOwnPropertySymbols) {
+ var o = Object.getOwnPropertySymbols(e);
+ r && (o = o.filter(function (r) {
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
+ })), t.push.apply(t, o);
+ }
+ return t;
+}
+function _objectSpread2(e) {
+ for (var r = 1; r < arguments.length; r++) {
+ var t = null != arguments[r] ? arguments[r] : {};
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
+ defineProperty(e, r, t[r]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
+ });
+ }
+ return e;
+}
+module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
new file mode 100644
index 0000000000000000000000000000000000000000..3a40f9e4e6d1074ec0a2572fcc60fb66f2642156
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutProperties.js
@@ -0,0 +1,13 @@
+var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js");
+function _objectWithoutProperties(e, t) {
+ if (null == e) return {};
+ var o,
+ r,
+ i = objectWithoutPropertiesLoose(e, t);
+ if (Object.getOwnPropertySymbols) {
+ var n = Object.getOwnPropertySymbols(e);
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
+ }
+ return i;
+}
+module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
new file mode 100644
index 0000000000000000000000000000000000000000..c243acdff0e8923402ea9a0069e03776c7162235
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
@@ -0,0 +1,10 @@
+function _objectWithoutPropertiesLoose(r, e) {
+ if (null == r) return {};
+ var t = {};
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
+ if (-1 !== e.indexOf(n)) continue;
+ t[n] = r[n];
+ }
+ return t;
+}
+module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
new file mode 100644
index 0000000000000000000000000000000000000000..06e6e6d865d50b00dde04a172f2bd2bcaa2aa044
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js
@@ -0,0 +1,8 @@
+var _typeof = require("./typeof.js")["default"];
+var assertThisInitialized = require("./assertThisInitialized.js");
+function _possibleConstructorReturn(t, e) {
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
+ return assertThisInitialized(t);
+}
+module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/readOnlyError.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/readOnlyError.js
new file mode 100644
index 0000000000000000000000000000000000000000..1bf3e0929f916e4c05e4009150ffedf84329447d
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/readOnlyError.js
@@ -0,0 +1,4 @@
+function _readOnlyError(r) {
+ throw new TypeError('"' + r + '" is read-only');
+}
+module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regenerator.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regenerator.js
new file mode 100644
index 0000000000000000000000000000000000000000..0cf8710aaee4ef16ed8105bd24167f443d85adb1
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regenerator.js
@@ -0,0 +1,89 @@
+var regeneratorDefine = require("./regeneratorDefine.js");
+function _regenerator() {
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
+ var e,
+ t,
+ r = "function" == typeof Symbol ? Symbol : {},
+ n = r.iterator || "@@iterator",
+ o = r.toStringTag || "@@toStringTag";
+ function i(r, n, o, i) {
+ var c = n && n.prototype instanceof Generator ? n : Generator,
+ u = Object.create(c.prototype);
+ return regeneratorDefine(u, "_invoke", function (r, n, o) {
+ var i,
+ c,
+ u,
+ f = 0,
+ p = o || [],
+ y = !1,
+ G = {
+ p: 0,
+ n: 0,
+ v: e,
+ a: d,
+ f: d.bind(e, 4),
+ d: function d(t, r) {
+ return i = t, c = 0, u = e, G.n = r, a;
+ }
+ };
+ function d(r, n) {
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
+ var o,
+ i = p[t],
+ d = G.p,
+ l = i[2];
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
+ }
+ if (o || r > 1) return a;
+ throw y = !0, n;
+ }
+ return function (o, p, l) {
+ if (f > 1) throw TypeError("Generator is already running");
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
+ try {
+ if (f = 2, i) {
+ if (c || (o = "next"), t = i[o]) {
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
+ if (!t.done) return t;
+ u = t.value, c < 2 && (c = 0);
+ } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
+ i = e;
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
+ } catch (t) {
+ i = e, c = 1, u = t;
+ } finally {
+ f = 1;
+ }
+ }
+ return {
+ value: t,
+ done: y
+ };
+ };
+ }(r, o, i), !0), u;
+ }
+ var a = {};
+ function Generator() {}
+ function GeneratorFunction() {}
+ function GeneratorFunctionPrototype() {}
+ t = Object.getPrototypeOf;
+ var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
+ return this;
+ }), t),
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
+ function f(e) {
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
+ }
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () {
+ return this;
+ }), regeneratorDefine(u, "toString", function () {
+ return "[object Generator]";
+ }), (module.exports = _regenerator = function _regenerator() {
+ return {
+ w: i,
+ m: f
+ };
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
+}
+module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsync.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsync.js
new file mode 100644
index 0000000000000000000000000000000000000000..d1e4c3f99ebcb3c46c389782e6c826b56688d04a
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsync.js
@@ -0,0 +1,8 @@
+var regeneratorAsyncGen = require("./regeneratorAsyncGen.js");
+function _regeneratorAsync(n, e, r, t, o) {
+ var a = regeneratorAsyncGen(n, e, r, t, o);
+ return a.next().then(function (n) {
+ return n.done ? n.value : a.next();
+ });
+}
+module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js
new file mode 100644
index 0000000000000000000000000000000000000000..f0212e324386262d0d8be733705cbdbb9e00252e
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js
@@ -0,0 +1,6 @@
+var regenerator = require("./regenerator.js");
+var regeneratorAsyncIterator = require("./regeneratorAsyncIterator.js");
+function _regeneratorAsyncGen(r, e, t, o, n) {
+ return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
+}
+module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js
new file mode 100644
index 0000000000000000000000000000000000000000..afcb0601a29ba72f02f6c39bf9c8f984c3a408a0
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js
@@ -0,0 +1,33 @@
+var OverloadYield = require("./OverloadYield.js");
+var regeneratorDefine = require("./regeneratorDefine.js");
+function AsyncIterator(t, e) {
+ function n(r, o, i, f) {
+ try {
+ var c = t[r](o),
+ u = c.value;
+ return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
+ n("next", t, i, f);
+ }, function (t) {
+ n("throw", t, i, f);
+ }) : e.resolve(u).then(function (t) {
+ c.value = t, i(c);
+ }, function (t) {
+ return n("throw", t, i, f);
+ });
+ } catch (t) {
+ f(t);
+ }
+ }
+ var r;
+ this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
+ return this;
+ })), regeneratorDefine(this, "_invoke", function (t, o, i) {
+ function f() {
+ return new e(function (e, r) {
+ n(t, i, e, r);
+ });
+ }
+ return r = r ? r.then(f, f) : f();
+ }, !0);
+}
+module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorDefine.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorDefine.js
new file mode 100644
index 0000000000000000000000000000000000000000..8d7ffe09973f8e32cbd5d34852ac020a5fd2f0a8
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorDefine.js
@@ -0,0 +1,22 @@
+function _regeneratorDefine(e, r, n, t) {
+ var i = Object.defineProperty;
+ try {
+ i({}, "", {});
+ } catch (e) {
+ i = 0;
+ }
+ module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
+ function o(r, n) {
+ _regeneratorDefine(e, r, function (e) {
+ return this._invoke(r, n, e);
+ });
+ }
+ r ? i ? i(e, r, {
+ value: n,
+ enumerable: !t,
+ configurable: !t,
+ writable: !t
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
+}
+module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorKeys.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorKeys.js
new file mode 100644
index 0000000000000000000000000000000000000000..99442bddbf18869c21622e17948020a851bc6d51
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorKeys.js
@@ -0,0 +1,10 @@
+function _regeneratorKeys(e) {
+ var n = Object(e),
+ r = [];
+ for (var t in n) r.unshift(t);
+ return function e() {
+ for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
+ return e.done = !0, e;
+ };
+}
+module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js
new file mode 100644
index 0000000000000000000000000000000000000000..24baaa05a9c432f3671c3c05fa941b41e2bfd25c
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorRuntime.js
@@ -0,0 +1,77 @@
+var OverloadYield = require("./OverloadYield.js");
+var regenerator = require("./regenerator.js");
+var regeneratorAsync = require("./regeneratorAsync.js");
+var regeneratorAsyncGen = require("./regeneratorAsyncGen.js");
+var regeneratorAsyncIterator = require("./regeneratorAsyncIterator.js");
+var regeneratorKeys = require("./regeneratorKeys.js");
+var regeneratorValues = require("./regeneratorValues.js");
+function _regeneratorRuntime() {
+ "use strict";
+
+ var r = regenerator(),
+ e = r.m(_regeneratorRuntime),
+ t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
+ function n(r) {
+ var e = "function" == typeof r && r.constructor;
+ return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
+ }
+ var o = {
+ "throw": 1,
+ "return": 2,
+ "break": 3,
+ "continue": 3
+ };
+ function a(r) {
+ var e, t;
+ return function (n) {
+ e || (e = {
+ stop: function stop() {
+ return t(n.a, 2);
+ },
+ "catch": function _catch() {
+ return n.v;
+ },
+ abrupt: function abrupt(r, e) {
+ return t(n.a, o[r], e);
+ },
+ delegateYield: function delegateYield(r, o, a) {
+ return e.resultName = o, t(n.d, regeneratorValues(r), a);
+ },
+ finish: function finish(r) {
+ return t(n.f, r);
+ }
+ }, t = function t(r, _t, o) {
+ n.p = e.prev, n.n = e.next;
+ try {
+ return r(_t, o);
+ } finally {
+ e.next = n.n;
+ }
+ }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
+ try {
+ return r.call(this, e);
+ } finally {
+ n.p = e.prev, n.n = e.next;
+ }
+ };
+ }
+ return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
+ return {
+ wrap: function wrap(e, t, n, o) {
+ return r.w(a(e), t, n, o && o.reverse());
+ },
+ isGeneratorFunction: n,
+ mark: r.m,
+ awrap: function awrap(r, e) {
+ return new OverloadYield(r, e);
+ },
+ AsyncIterator: regeneratorAsyncIterator,
+ async: function async(r, e, t, o, u) {
+ return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
+ },
+ keys: regeneratorKeys,
+ values: regeneratorValues
+ };
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
+}
+module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorValues.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorValues.js
new file mode 100644
index 0000000000000000000000000000000000000000..1335a23d5bc02eeee7c5b090214e7f185b117224
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/regeneratorValues.js
@@ -0,0 +1,19 @@
+var _typeof = require("./typeof.js")["default"];
+function _regeneratorValues(e) {
+ if (null != e) {
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
+ r = 0;
+ if (t) return t.call(e);
+ if ("function" == typeof e.next) return e;
+ if (!isNaN(e.length)) return {
+ next: function next() {
+ return e && r >= e.length && (e = void 0), {
+ value: e && e[r++],
+ done: !e
+ };
+ }
+ };
+ }
+ throw new TypeError(_typeof(e) + " is not iterable");
+}
+module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/set.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/set.js
new file mode 100644
index 0000000000000000000000000000000000000000..6421470aa17e98983210b3fe2b69081bdb7d0d6e
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/set.js
@@ -0,0 +1,22 @@
+var superPropBase = require("./superPropBase.js");
+var defineProperty = require("./defineProperty.js");
+function set(e, r, t, o) {
+ return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) {
+ var f,
+ i = superPropBase(e, r);
+ if (i) {
+ if ((f = Object.getOwnPropertyDescriptor(i, r)).set) return f.set.call(o, t), !0;
+ if (!f.writable) return !1;
+ }
+ if (f = Object.getOwnPropertyDescriptor(o, r)) {
+ if (!f.writable) return !1;
+ f.value = t, Object.defineProperty(o, r, f);
+ } else defineProperty(o, r, t);
+ return !0;
+ }, set(e, r, t, o);
+}
+function _set(e, r, t, o, f) {
+ if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property");
+ return t;
+}
+module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setFunctionName.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setFunctionName.js
new file mode 100644
index 0000000000000000000000000000000000000000..9664076a861f6fd4516d124a32924ed7eeccccee
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setFunctionName.js
@@ -0,0 +1,12 @@
+var _typeof = require("./typeof.js")["default"];
+function setFunctionName(e, t, n) {
+ "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : "");
+ try {
+ Object.defineProperty(e, "name", {
+ configurable: !0,
+ value: n ? n + " " + t : t
+ });
+ } catch (e) {}
+ return e;
+}
+module.exports = setFunctionName, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setPrototypeOf.js
new file mode 100644
index 0000000000000000000000000000000000000000..7d991ffa6f0966a0cb455959f0b736ccf445f9ac
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/setPrototypeOf.js
@@ -0,0 +1,6 @@
+function _setPrototypeOf(t, e) {
+ return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
+ return t.__proto__ = e, t;
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
+}
+module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js
new file mode 100644
index 0000000000000000000000000000000000000000..2aed548efc8d5fffeb0c3d3f75f2e3df4f698bf7
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js
@@ -0,0 +1,7 @@
+function _skipFirstGeneratorNext(t) {
+ return function () {
+ var r = t.apply(this, arguments);
+ return r.next(), r;
+ };
+}
+module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/slicedToArray.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/slicedToArray.js
new file mode 100644
index 0000000000000000000000000000000000000000..3d752c4251abfe03fdbb9bc1a8965e4779f0d8e2
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/slicedToArray.js
@@ -0,0 +1,8 @@
+var arrayWithHoles = require("./arrayWithHoles.js");
+var iterableToArrayLimit = require("./iterableToArrayLimit.js");
+var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
+var nonIterableRest = require("./nonIterableRest.js");
+function _slicedToArray(r, e) {
+ return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
+}
+module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropBase.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropBase.js
new file mode 100644
index 0000000000000000000000000000000000000000..5cad45953f6a6348a5ea3f5bcebdaf60e3778226
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropBase.js
@@ -0,0 +1,6 @@
+var getPrototypeOf = require("./getPrototypeOf.js");
+function _superPropBase(t, o) {
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
+ return t;
+}
+module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropGet.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropGet.js
new file mode 100644
index 0000000000000000000000000000000000000000..baf8b1024cf484ec5e1ab14418bd3efb6696d067
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropGet.js
@@ -0,0 +1,9 @@
+var get = require("./get.js");
+var getPrototypeOf = require("./getPrototypeOf.js");
+function _superPropGet(t, o, e, r) {
+ var p = get(getPrototypeOf(1 & r ? t.prototype : t), o, e);
+ return 2 & r && "function" == typeof p ? function (t) {
+ return p.apply(e, t);
+ } : p;
+}
+module.exports = _superPropGet, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropSet.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropSet.js
new file mode 100644
index 0000000000000000000000000000000000000000..e0578c049039e7f286bbe0b81716e116e174131f
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/superPropSet.js
@@ -0,0 +1,6 @@
+var set = require("./set.js");
+var getPrototypeOf = require("./getPrototypeOf.js");
+function _superPropSet(t, e, o, r, p, f) {
+ return set(getPrototypeOf(f ? t.prototype : t), e, o, r, p);
+}
+module.exports = _superPropSet, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
new file mode 100644
index 0000000000000000000000000000000000000000..38d6065ae92ab78b0dde3aabcc4fd1986910cb30
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js
@@ -0,0 +1,8 @@
+function _taggedTemplateLiteral(e, t) {
+ return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
+ raw: {
+ value: Object.freeze(t)
+ }
+ }));
+}
+module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
new file mode 100644
index 0000000000000000000000000000000000000000..2f8c146aece3a14910cd934c593f9e2d0c2c5f22
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js
@@ -0,0 +1,4 @@
+function _taggedTemplateLiteralLoose(e, t) {
+ return t || (t = e.slice(0)), e.raw = t, e;
+}
+module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tdz.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tdz.js
new file mode 100644
index 0000000000000000000000000000000000000000..c66f476c6c10d5ea7685d92f7311d04a5a68ee9b
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tdz.js
@@ -0,0 +1,4 @@
+function _tdzError(e) {
+ throw new ReferenceError(e + " is not defined - temporal dead zone");
+}
+module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalRef.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalRef.js
new file mode 100644
index 0000000000000000000000000000000000000000..54c9190c4aca91f7128fdb8404fe6c23eca47183
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalRef.js
@@ -0,0 +1,6 @@
+var temporalUndefined = require("./temporalUndefined.js");
+var tdz = require("./tdz.js");
+function _temporalRef(r, e) {
+ return r === temporalUndefined ? tdz(e) : r;
+}
+module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalUndefined.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalUndefined.js
new file mode 100644
index 0000000000000000000000000000000000000000..f8def80021dbb3f39d3ad67730c2ad87e7748c6d
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/temporalUndefined.js
@@ -0,0 +1,2 @@
+function _temporalUndefined() {}
+module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toArray.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toArray.js
new file mode 100644
index 0000000000000000000000000000000000000000..2be1d2bd70286b66a52a317643e8d843e4d58a54
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toArray.js
@@ -0,0 +1,8 @@
+var arrayWithHoles = require("./arrayWithHoles.js");
+var iterableToArray = require("./iterableToArray.js");
+var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
+var nonIterableRest = require("./nonIterableRest.js");
+function _toArray(r) {
+ return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest();
+}
+module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toConsumableArray.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toConsumableArray.js
new file mode 100644
index 0000000000000000000000000000000000000000..698f9c69c29bd6d0112c46275dd0f99bd228268c
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toConsumableArray.js
@@ -0,0 +1,8 @@
+var arrayWithoutHoles = require("./arrayWithoutHoles.js");
+var iterableToArray = require("./iterableToArray.js");
+var unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
+var nonIterableSpread = require("./nonIterableSpread.js");
+function _toConsumableArray(r) {
+ return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();
+}
+module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPrimitive.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPrimitive.js
new file mode 100644
index 0000000000000000000000000000000000000000..ef9d249b5cb2fba37c43154f56c3d9b282b994dc
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPrimitive.js
@@ -0,0 +1,12 @@
+var _typeof = require("./typeof.js")["default"];
+function toPrimitive(t, r) {
+ if ("object" != _typeof(t) || !t) return t;
+ var e = t[Symbol.toPrimitive];
+ if (void 0 !== e) {
+ var i = e.call(t, r || "default");
+ if ("object" != _typeof(i)) return i;
+ throw new TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return ("string" === r ? String : Number)(t);
+}
+module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPropertyKey.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPropertyKey.js
new file mode 100644
index 0000000000000000000000000000000000000000..3ca3d4fcba6752a10a4defbd2ab146215fc19d58
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toPropertyKey.js
@@ -0,0 +1,7 @@
+var _typeof = require("./typeof.js")["default"];
+var toPrimitive = require("./toPrimitive.js");
+function toPropertyKey(t) {
+ var i = toPrimitive(t, "string");
+ return "symbol" == _typeof(i) ? i : i + "";
+}
+module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toSetter.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toSetter.js
new file mode 100644
index 0000000000000000000000000000000000000000..e0012a8f8fc7d92fceb1eda1ff47607e3078c205
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/toSetter.js
@@ -0,0 +1,10 @@
+function _toSetter(t, e, n) {
+ e || (e = []);
+ var r = e.length++;
+ return Object.defineProperty({}, "_", {
+ set: function set(o) {
+ e[r] = o, t.apply(n, e);
+ }
+ });
+}
+module.exports = _toSetter, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js
new file mode 100644
index 0000000000000000000000000000000000000000..4de0e4de81a1851d9ca15d9aa7ce6055c3766a0f
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js
@@ -0,0 +1,6 @@
+function tsRewriteRelativeImportExtensions(t, e) {
+ return "string" == typeof t && /^\.\.?\//.test(t) ? t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function (t, s, r, n, o) {
+ return s ? e ? ".jsx" : ".js" : !r || n && o ? r + n + "." + o.toLowerCase() + "js" : t;
+ }) : t;
+}
+module.exports = tsRewriteRelativeImportExtensions, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/typeof.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/typeof.js
new file mode 100644
index 0000000000000000000000000000000000000000..b6fbfaf8c102a66332e3d899c2e688eb80c52c69
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/typeof.js
@@ -0,0 +1,10 @@
+function _typeof(o) {
+ "@babel/helpers - typeof";
+
+ return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
+ return typeof o;
+ } : function (o) {
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
+}
+module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
new file mode 100644
index 0000000000000000000000000000000000000000..8fb1a71de61213141368a8341f9140bdb4b6bc20
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js
@@ -0,0 +1,9 @@
+var arrayLikeToArray = require("./arrayLikeToArray.js");
+function _unsupportedIterableToArray(r, a) {
+ if (r) {
+ if ("string" == typeof r) return arrayLikeToArray(r, a);
+ var t = {}.toString.call(r).slice(8, -1);
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
+ }
+}
+module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/using.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/using.js
new file mode 100644
index 0000000000000000000000000000000000000000..37c79e2c17d74f89638d26166d75b83fbb4c17af
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/using.js
@@ -0,0 +1,12 @@
+function _using(o, n, e) {
+ if (null == n) return n;
+ if (Object(n) !== n) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
+ if (e) var r = n[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
+ if (null == r && (r = n[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof r) throw new TypeError("Property [Symbol.dispose] is not a function.");
+ return o.push({
+ v: n,
+ d: r,
+ a: e
+ }), n;
+}
+module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/usingCtx.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/usingCtx.js
new file mode 100644
index 0000000000000000000000000000000000000000..652ab15d5494264f449ca38486cc47dd7fdeb420
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/usingCtx.js
@@ -0,0 +1,59 @@
+function _usingCtx() {
+ var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) {
+ var n = Error();
+ return n.name = "SuppressedError", n.error = r, n.suppressed = e, n;
+ },
+ e = {},
+ n = [];
+ function using(r, e) {
+ if (null != e) {
+ if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
+ if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
+ if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o;
+ if ("function" != typeof o) throw new TypeError("Object is not disposable.");
+ t && (o = function o() {
+ try {
+ t.call(e);
+ } catch (r) {
+ return Promise.reject(r);
+ }
+ }), n.push({
+ v: e,
+ d: o,
+ a: r
+ });
+ } else r && n.push({
+ d: e,
+ a: r
+ });
+ return e;
+ }
+ return {
+ e: e,
+ u: using.bind(null, !1),
+ a: using.bind(null, !0),
+ d: function d() {
+ var o,
+ t = this.e,
+ s = 0;
+ function next() {
+ for (; o = n.pop();) try {
+ if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next);
+ if (o.d) {
+ var r = o.d.call(o.v);
+ if (o.a) return s |= 2, Promise.resolve(r).then(next, err);
+ } else s |= 1;
+ } catch (r) {
+ return err(r);
+ }
+ if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve();
+ if (t !== e) throw t;
+ }
+ function err(n) {
+ return t = t !== e ? new r(n, t) : n, next();
+ }
+ return next();
+ }
+ };
+}
+module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js
new file mode 100644
index 0000000000000000000000000000000000000000..a3d32d7f135d4fd3d2501a8990f1374b2303efd3
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js
@@ -0,0 +1,56 @@
+var OverloadYield = require("./OverloadYield.js");
+function _wrapAsyncGenerator(e) {
+ return function () {
+ return new AsyncGenerator(e.apply(this, arguments));
+ };
+}
+function AsyncGenerator(e) {
+ var t, n;
+ function resume(t, n) {
+ try {
+ var r = e[t](n),
+ o = r.value,
+ u = o instanceof OverloadYield;
+ Promise.resolve(u ? o.v : o).then(function (n) {
+ if (u) {
+ var i = "return" === t && o.k ? t : "next";
+ if (!o.k || n.done) return resume(i, n);
+ n = e[i](n).value;
+ }
+ settle(!!r.done, n);
+ }, function (e) {
+ resume("throw", e);
+ });
+ } catch (e) {
+ settle(2, e);
+ }
+ }
+ function settle(e, r) {
+ 2 === e ? t.reject(r) : t.resolve({
+ value: r,
+ done: e
+ }), (t = t.next) ? resume(t.key, t.arg) : n = null;
+ }
+ this._invoke = function (e, r) {
+ return new Promise(function (o, u) {
+ var i = {
+ key: e,
+ arg: r,
+ resolve: o,
+ reject: u,
+ next: null
+ };
+ n ? n = n.next = i : (t = n = i, resume(e, r));
+ });
+ }, "function" != typeof e["return"] && (this["return"] = void 0);
+}
+AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
+ return this;
+}, AsyncGenerator.prototype.next = function (e) {
+ return this._invoke("next", e);
+}, AsyncGenerator.prototype["throw"] = function (e) {
+ return this._invoke("throw", e);
+}, AsyncGenerator.prototype["return"] = function (e) {
+ return this._invoke("return", e);
+};
+module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapNativeSuper.js
new file mode 100644
index 0000000000000000000000000000000000000000..acd87aba61f46a45c9946d62113c14cd892ae33a
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapNativeSuper.js
@@ -0,0 +1,27 @@
+var getPrototypeOf = require("./getPrototypeOf.js");
+var setPrototypeOf = require("./setPrototypeOf.js");
+var isNativeFunction = require("./isNativeFunction.js");
+var construct = require("./construct.js");
+function _wrapNativeSuper(t) {
+ var r = "function" == typeof Map ? new Map() : void 0;
+ return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
+ if (null === t || !isNativeFunction(t)) return t;
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
+ if (void 0 !== r) {
+ if (r.has(t)) return r.get(t);
+ r.set(t, Wrapper);
+ }
+ function Wrapper() {
+ return construct(t, arguments, getPrototypeOf(this).constructor);
+ }
+ return Wrapper.prototype = Object.create(t.prototype, {
+ constructor: {
+ value: Wrapper,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ }), setPrototypeOf(Wrapper, t);
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
+}
+module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapRegExp.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapRegExp.js
new file mode 100644
index 0000000000000000000000000000000000000000..3d6e6ce5ec7b6242bc22d3bc505ea305a0ee60b2
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/wrapRegExp.js
@@ -0,0 +1,52 @@
+var _typeof = require("./typeof.js")["default"];
+var setPrototypeOf = require("./setPrototypeOf.js");
+var inherits = require("./inherits.js");
+function _wrapRegExp() {
+ module.exports = _wrapRegExp = function _wrapRegExp(e, r) {
+ return new BabelRegExp(e, void 0, r);
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
+ var e = RegExp.prototype,
+ r = new WeakMap();
+ function BabelRegExp(e, t, p) {
+ var o = RegExp(e, t);
+ return r.set(o, p || r.get(e)), setPrototypeOf(o, BabelRegExp.prototype);
+ }
+ function buildGroups(e, t) {
+ var p = r.get(t);
+ return Object.keys(p).reduce(function (r, t) {
+ var o = p[t];
+ if ("number" == typeof o) r[t] = e[o];else {
+ for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
+ r[t] = e[o[i]];
+ }
+ return r;
+ }, Object.create(null));
+ }
+ return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
+ var t = e.exec.call(this, r);
+ if (t) {
+ t.groups = buildGroups(t, this);
+ var p = t.indices;
+ p && (p.groups = buildGroups(p, this));
+ }
+ return t;
+ }, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
+ if ("string" == typeof p) {
+ var o = r.get(this);
+ return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)(>|$)/g, function (e, r, t) {
+ if ("" === t) return e;
+ var p = o[r];
+ return Array.isArray(p) ? "$" + p.join("$") : "number" == typeof p ? "$" + p : "";
+ }));
+ }
+ if ("function" == typeof p) {
+ var i = this;
+ return e[Symbol.replace].call(this, t, function () {
+ var e = arguments;
+ return "object" != _typeof(e[e.length - 1]) && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
+ });
+ }
+ return e[Symbol.replace].call(this, t, p);
+ }, _wrapRegExp.apply(this, arguments);
+}
+module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/writeOnlyError.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/writeOnlyError.js
new file mode 100644
index 0000000000000000000000000000000000000000..c98ee825dc33bac8498ba0799587cf994f6893bc
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/helpers/writeOnlyError.js
@@ -0,0 +1,4 @@
+function _writeOnlyError(r) {
+ throw new TypeError('"' + r + '" is write-only');
+}
+module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/package.json b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0f7db7f2f7419ebabb7124cc73b296f515470326
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/package.json
@@ -0,0 +1,1107 @@
+{
+ "name": "@babel/runtime",
+ "version": "7.29.7",
+ "description": "babel's modular runtime helpers",
+ "license": "MIT",
+ "publishConfig": {
+ "access": "public"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/babel/babel.git",
+ "directory": "packages/babel-runtime"
+ },
+ "homepage": "https://babel.dev/docs/en/next/babel-runtime",
+ "author": "The Babel Team (https://babel.dev/team)",
+ "exports": {
+ "./helpers/OverloadYield": [
+ {
+ "node": "./helpers/OverloadYield.js",
+ "import": "./helpers/esm/OverloadYield.js",
+ "default": "./helpers/OverloadYield.js"
+ },
+ "./helpers/OverloadYield.js"
+ ],
+ "./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js",
+ "./helpers/applyDecoratedDescriptor": [
+ {
+ "node": "./helpers/applyDecoratedDescriptor.js",
+ "import": "./helpers/esm/applyDecoratedDescriptor.js",
+ "default": "./helpers/applyDecoratedDescriptor.js"
+ },
+ "./helpers/applyDecoratedDescriptor.js"
+ ],
+ "./helpers/esm/applyDecoratedDescriptor": "./helpers/esm/applyDecoratedDescriptor.js",
+ "./helpers/applyDecs2311": [
+ {
+ "node": "./helpers/applyDecs2311.js",
+ "import": "./helpers/esm/applyDecs2311.js",
+ "default": "./helpers/applyDecs2311.js"
+ },
+ "./helpers/applyDecs2311.js"
+ ],
+ "./helpers/esm/applyDecs2311": "./helpers/esm/applyDecs2311.js",
+ "./helpers/arrayLikeToArray": [
+ {
+ "node": "./helpers/arrayLikeToArray.js",
+ "import": "./helpers/esm/arrayLikeToArray.js",
+ "default": "./helpers/arrayLikeToArray.js"
+ },
+ "./helpers/arrayLikeToArray.js"
+ ],
+ "./helpers/esm/arrayLikeToArray": "./helpers/esm/arrayLikeToArray.js",
+ "./helpers/arrayWithHoles": [
+ {
+ "node": "./helpers/arrayWithHoles.js",
+ "import": "./helpers/esm/arrayWithHoles.js",
+ "default": "./helpers/arrayWithHoles.js"
+ },
+ "./helpers/arrayWithHoles.js"
+ ],
+ "./helpers/esm/arrayWithHoles": "./helpers/esm/arrayWithHoles.js",
+ "./helpers/arrayWithoutHoles": [
+ {
+ "node": "./helpers/arrayWithoutHoles.js",
+ "import": "./helpers/esm/arrayWithoutHoles.js",
+ "default": "./helpers/arrayWithoutHoles.js"
+ },
+ "./helpers/arrayWithoutHoles.js"
+ ],
+ "./helpers/esm/arrayWithoutHoles": "./helpers/esm/arrayWithoutHoles.js",
+ "./helpers/assertClassBrand": [
+ {
+ "node": "./helpers/assertClassBrand.js",
+ "import": "./helpers/esm/assertClassBrand.js",
+ "default": "./helpers/assertClassBrand.js"
+ },
+ "./helpers/assertClassBrand.js"
+ ],
+ "./helpers/esm/assertClassBrand": "./helpers/esm/assertClassBrand.js",
+ "./helpers/assertThisInitialized": [
+ {
+ "node": "./helpers/assertThisInitialized.js",
+ "import": "./helpers/esm/assertThisInitialized.js",
+ "default": "./helpers/assertThisInitialized.js"
+ },
+ "./helpers/assertThisInitialized.js"
+ ],
+ "./helpers/esm/assertThisInitialized": "./helpers/esm/assertThisInitialized.js",
+ "./helpers/asyncGeneratorDelegate": [
+ {
+ "node": "./helpers/asyncGeneratorDelegate.js",
+ "import": "./helpers/esm/asyncGeneratorDelegate.js",
+ "default": "./helpers/asyncGeneratorDelegate.js"
+ },
+ "./helpers/asyncGeneratorDelegate.js"
+ ],
+ "./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js",
+ "./helpers/asyncIterator": [
+ {
+ "node": "./helpers/asyncIterator.js",
+ "import": "./helpers/esm/asyncIterator.js",
+ "default": "./helpers/asyncIterator.js"
+ },
+ "./helpers/asyncIterator.js"
+ ],
+ "./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js",
+ "./helpers/asyncToGenerator": [
+ {
+ "node": "./helpers/asyncToGenerator.js",
+ "import": "./helpers/esm/asyncToGenerator.js",
+ "default": "./helpers/asyncToGenerator.js"
+ },
+ "./helpers/asyncToGenerator.js"
+ ],
+ "./helpers/esm/asyncToGenerator": "./helpers/esm/asyncToGenerator.js",
+ "./helpers/awaitAsyncGenerator": [
+ {
+ "node": "./helpers/awaitAsyncGenerator.js",
+ "import": "./helpers/esm/awaitAsyncGenerator.js",
+ "default": "./helpers/awaitAsyncGenerator.js"
+ },
+ "./helpers/awaitAsyncGenerator.js"
+ ],
+ "./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js",
+ "./helpers/callSuper": [
+ {
+ "node": "./helpers/callSuper.js",
+ "import": "./helpers/esm/callSuper.js",
+ "default": "./helpers/callSuper.js"
+ },
+ "./helpers/callSuper.js"
+ ],
+ "./helpers/esm/callSuper": "./helpers/esm/callSuper.js",
+ "./helpers/checkInRHS": [
+ {
+ "node": "./helpers/checkInRHS.js",
+ "import": "./helpers/esm/checkInRHS.js",
+ "default": "./helpers/checkInRHS.js"
+ },
+ "./helpers/checkInRHS.js"
+ ],
+ "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js",
+ "./helpers/checkPrivateRedeclaration": [
+ {
+ "node": "./helpers/checkPrivateRedeclaration.js",
+ "import": "./helpers/esm/checkPrivateRedeclaration.js",
+ "default": "./helpers/checkPrivateRedeclaration.js"
+ },
+ "./helpers/checkPrivateRedeclaration.js"
+ ],
+ "./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js",
+ "./helpers/classCallCheck": [
+ {
+ "node": "./helpers/classCallCheck.js",
+ "import": "./helpers/esm/classCallCheck.js",
+ "default": "./helpers/classCallCheck.js"
+ },
+ "./helpers/classCallCheck.js"
+ ],
+ "./helpers/esm/classCallCheck": "./helpers/esm/classCallCheck.js",
+ "./helpers/classNameTDZError": [
+ {
+ "node": "./helpers/classNameTDZError.js",
+ "import": "./helpers/esm/classNameTDZError.js",
+ "default": "./helpers/classNameTDZError.js"
+ },
+ "./helpers/classNameTDZError.js"
+ ],
+ "./helpers/esm/classNameTDZError": "./helpers/esm/classNameTDZError.js",
+ "./helpers/classPrivateFieldGet2": [
+ {
+ "node": "./helpers/classPrivateFieldGet2.js",
+ "import": "./helpers/esm/classPrivateFieldGet2.js",
+ "default": "./helpers/classPrivateFieldGet2.js"
+ },
+ "./helpers/classPrivateFieldGet2.js"
+ ],
+ "./helpers/esm/classPrivateFieldGet2": "./helpers/esm/classPrivateFieldGet2.js",
+ "./helpers/classPrivateFieldInitSpec": [
+ {
+ "node": "./helpers/classPrivateFieldInitSpec.js",
+ "import": "./helpers/esm/classPrivateFieldInitSpec.js",
+ "default": "./helpers/classPrivateFieldInitSpec.js"
+ },
+ "./helpers/classPrivateFieldInitSpec.js"
+ ],
+ "./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js",
+ "./helpers/classPrivateFieldLooseBase": [
+ {
+ "node": "./helpers/classPrivateFieldLooseBase.js",
+ "import": "./helpers/esm/classPrivateFieldLooseBase.js",
+ "default": "./helpers/classPrivateFieldLooseBase.js"
+ },
+ "./helpers/classPrivateFieldLooseBase.js"
+ ],
+ "./helpers/esm/classPrivateFieldLooseBase": "./helpers/esm/classPrivateFieldLooseBase.js",
+ "./helpers/classPrivateFieldLooseKey": [
+ {
+ "node": "./helpers/classPrivateFieldLooseKey.js",
+ "import": "./helpers/esm/classPrivateFieldLooseKey.js",
+ "default": "./helpers/classPrivateFieldLooseKey.js"
+ },
+ "./helpers/classPrivateFieldLooseKey.js"
+ ],
+ "./helpers/esm/classPrivateFieldLooseKey": "./helpers/esm/classPrivateFieldLooseKey.js",
+ "./helpers/classPrivateFieldSet2": [
+ {
+ "node": "./helpers/classPrivateFieldSet2.js",
+ "import": "./helpers/esm/classPrivateFieldSet2.js",
+ "default": "./helpers/classPrivateFieldSet2.js"
+ },
+ "./helpers/classPrivateFieldSet2.js"
+ ],
+ "./helpers/esm/classPrivateFieldSet2": "./helpers/esm/classPrivateFieldSet2.js",
+ "./helpers/classPrivateGetter": [
+ {
+ "node": "./helpers/classPrivateGetter.js",
+ "import": "./helpers/esm/classPrivateGetter.js",
+ "default": "./helpers/classPrivateGetter.js"
+ },
+ "./helpers/classPrivateGetter.js"
+ ],
+ "./helpers/esm/classPrivateGetter": "./helpers/esm/classPrivateGetter.js",
+ "./helpers/classPrivateMethodInitSpec": [
+ {
+ "node": "./helpers/classPrivateMethodInitSpec.js",
+ "import": "./helpers/esm/classPrivateMethodInitSpec.js",
+ "default": "./helpers/classPrivateMethodInitSpec.js"
+ },
+ "./helpers/classPrivateMethodInitSpec.js"
+ ],
+ "./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js",
+ "./helpers/classPrivateSetter": [
+ {
+ "node": "./helpers/classPrivateSetter.js",
+ "import": "./helpers/esm/classPrivateSetter.js",
+ "default": "./helpers/classPrivateSetter.js"
+ },
+ "./helpers/classPrivateSetter.js"
+ ],
+ "./helpers/esm/classPrivateSetter": "./helpers/esm/classPrivateSetter.js",
+ "./helpers/classStaticPrivateMethodGet": [
+ {
+ "node": "./helpers/classStaticPrivateMethodGet.js",
+ "import": "./helpers/esm/classStaticPrivateMethodGet.js",
+ "default": "./helpers/classStaticPrivateMethodGet.js"
+ },
+ "./helpers/classStaticPrivateMethodGet.js"
+ ],
+ "./helpers/esm/classStaticPrivateMethodGet": "./helpers/esm/classStaticPrivateMethodGet.js",
+ "./helpers/construct": [
+ {
+ "node": "./helpers/construct.js",
+ "import": "./helpers/esm/construct.js",
+ "default": "./helpers/construct.js"
+ },
+ "./helpers/construct.js"
+ ],
+ "./helpers/esm/construct": "./helpers/esm/construct.js",
+ "./helpers/createClass": [
+ {
+ "node": "./helpers/createClass.js",
+ "import": "./helpers/esm/createClass.js",
+ "default": "./helpers/createClass.js"
+ },
+ "./helpers/createClass.js"
+ ],
+ "./helpers/esm/createClass": "./helpers/esm/createClass.js",
+ "./helpers/createForOfIteratorHelper": [
+ {
+ "node": "./helpers/createForOfIteratorHelper.js",
+ "import": "./helpers/esm/createForOfIteratorHelper.js",
+ "default": "./helpers/createForOfIteratorHelper.js"
+ },
+ "./helpers/createForOfIteratorHelper.js"
+ ],
+ "./helpers/esm/createForOfIteratorHelper": "./helpers/esm/createForOfIteratorHelper.js",
+ "./helpers/createForOfIteratorHelperLoose": [
+ {
+ "node": "./helpers/createForOfIteratorHelperLoose.js",
+ "import": "./helpers/esm/createForOfIteratorHelperLoose.js",
+ "default": "./helpers/createForOfIteratorHelperLoose.js"
+ },
+ "./helpers/createForOfIteratorHelperLoose.js"
+ ],
+ "./helpers/esm/createForOfIteratorHelperLoose": "./helpers/esm/createForOfIteratorHelperLoose.js",
+ "./helpers/createSuper": [
+ {
+ "node": "./helpers/createSuper.js",
+ "import": "./helpers/esm/createSuper.js",
+ "default": "./helpers/createSuper.js"
+ },
+ "./helpers/createSuper.js"
+ ],
+ "./helpers/esm/createSuper": "./helpers/esm/createSuper.js",
+ "./helpers/decorate": [
+ {
+ "node": "./helpers/decorate.js",
+ "import": "./helpers/esm/decorate.js",
+ "default": "./helpers/decorate.js"
+ },
+ "./helpers/decorate.js"
+ ],
+ "./helpers/esm/decorate": "./helpers/esm/decorate.js",
+ "./helpers/defaults": [
+ {
+ "node": "./helpers/defaults.js",
+ "import": "./helpers/esm/defaults.js",
+ "default": "./helpers/defaults.js"
+ },
+ "./helpers/defaults.js"
+ ],
+ "./helpers/esm/defaults": "./helpers/esm/defaults.js",
+ "./helpers/defineAccessor": [
+ {
+ "node": "./helpers/defineAccessor.js",
+ "import": "./helpers/esm/defineAccessor.js",
+ "default": "./helpers/defineAccessor.js"
+ },
+ "./helpers/defineAccessor.js"
+ ],
+ "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js",
+ "./helpers/defineProperty": [
+ {
+ "node": "./helpers/defineProperty.js",
+ "import": "./helpers/esm/defineProperty.js",
+ "default": "./helpers/defineProperty.js"
+ },
+ "./helpers/defineProperty.js"
+ ],
+ "./helpers/esm/defineProperty": "./helpers/esm/defineProperty.js",
+ "./helpers/extends": [
+ {
+ "node": "./helpers/extends.js",
+ "import": "./helpers/esm/extends.js",
+ "default": "./helpers/extends.js"
+ },
+ "./helpers/extends.js"
+ ],
+ "./helpers/esm/extends": "./helpers/esm/extends.js",
+ "./helpers/get": [
+ {
+ "node": "./helpers/get.js",
+ "import": "./helpers/esm/get.js",
+ "default": "./helpers/get.js"
+ },
+ "./helpers/get.js"
+ ],
+ "./helpers/esm/get": "./helpers/esm/get.js",
+ "./helpers/getPrototypeOf": [
+ {
+ "node": "./helpers/getPrototypeOf.js",
+ "import": "./helpers/esm/getPrototypeOf.js",
+ "default": "./helpers/getPrototypeOf.js"
+ },
+ "./helpers/getPrototypeOf.js"
+ ],
+ "./helpers/esm/getPrototypeOf": "./helpers/esm/getPrototypeOf.js",
+ "./helpers/identity": [
+ {
+ "node": "./helpers/identity.js",
+ "import": "./helpers/esm/identity.js",
+ "default": "./helpers/identity.js"
+ },
+ "./helpers/identity.js"
+ ],
+ "./helpers/esm/identity": "./helpers/esm/identity.js",
+ "./helpers/importDeferProxy": [
+ {
+ "node": "./helpers/importDeferProxy.js",
+ "import": "./helpers/esm/importDeferProxy.js",
+ "default": "./helpers/importDeferProxy.js"
+ },
+ "./helpers/importDeferProxy.js"
+ ],
+ "./helpers/esm/importDeferProxy": "./helpers/esm/importDeferProxy.js",
+ "./helpers/inherits": [
+ {
+ "node": "./helpers/inherits.js",
+ "import": "./helpers/esm/inherits.js",
+ "default": "./helpers/inherits.js"
+ },
+ "./helpers/inherits.js"
+ ],
+ "./helpers/esm/inherits": "./helpers/esm/inherits.js",
+ "./helpers/inheritsLoose": [
+ {
+ "node": "./helpers/inheritsLoose.js",
+ "import": "./helpers/esm/inheritsLoose.js",
+ "default": "./helpers/inheritsLoose.js"
+ },
+ "./helpers/inheritsLoose.js"
+ ],
+ "./helpers/esm/inheritsLoose": "./helpers/esm/inheritsLoose.js",
+ "./helpers/initializerDefineProperty": [
+ {
+ "node": "./helpers/initializerDefineProperty.js",
+ "import": "./helpers/esm/initializerDefineProperty.js",
+ "default": "./helpers/initializerDefineProperty.js"
+ },
+ "./helpers/initializerDefineProperty.js"
+ ],
+ "./helpers/esm/initializerDefineProperty": "./helpers/esm/initializerDefineProperty.js",
+ "./helpers/initializerWarningHelper": [
+ {
+ "node": "./helpers/initializerWarningHelper.js",
+ "import": "./helpers/esm/initializerWarningHelper.js",
+ "default": "./helpers/initializerWarningHelper.js"
+ },
+ "./helpers/initializerWarningHelper.js"
+ ],
+ "./helpers/esm/initializerWarningHelper": "./helpers/esm/initializerWarningHelper.js",
+ "./helpers/instanceof": [
+ {
+ "node": "./helpers/instanceof.js",
+ "import": "./helpers/esm/instanceof.js",
+ "default": "./helpers/instanceof.js"
+ },
+ "./helpers/instanceof.js"
+ ],
+ "./helpers/esm/instanceof": "./helpers/esm/instanceof.js",
+ "./helpers/interopRequireDefault": [
+ {
+ "node": "./helpers/interopRequireDefault.js",
+ "import": "./helpers/esm/interopRequireDefault.js",
+ "default": "./helpers/interopRequireDefault.js"
+ },
+ "./helpers/interopRequireDefault.js"
+ ],
+ "./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js",
+ "./helpers/interopRequireWildcard": [
+ {
+ "node": "./helpers/interopRequireWildcard.js",
+ "import": "./helpers/esm/interopRequireWildcard.js",
+ "default": "./helpers/interopRequireWildcard.js"
+ },
+ "./helpers/interopRequireWildcard.js"
+ ],
+ "./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js",
+ "./helpers/isNativeFunction": [
+ {
+ "node": "./helpers/isNativeFunction.js",
+ "import": "./helpers/esm/isNativeFunction.js",
+ "default": "./helpers/isNativeFunction.js"
+ },
+ "./helpers/isNativeFunction.js"
+ ],
+ "./helpers/esm/isNativeFunction": "./helpers/esm/isNativeFunction.js",
+ "./helpers/isNativeReflectConstruct": [
+ {
+ "node": "./helpers/isNativeReflectConstruct.js",
+ "import": "./helpers/esm/isNativeReflectConstruct.js",
+ "default": "./helpers/isNativeReflectConstruct.js"
+ },
+ "./helpers/isNativeReflectConstruct.js"
+ ],
+ "./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js",
+ "./helpers/iterableToArray": [
+ {
+ "node": "./helpers/iterableToArray.js",
+ "import": "./helpers/esm/iterableToArray.js",
+ "default": "./helpers/iterableToArray.js"
+ },
+ "./helpers/iterableToArray.js"
+ ],
+ "./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js",
+ "./helpers/iterableToArrayLimit": [
+ {
+ "node": "./helpers/iterableToArrayLimit.js",
+ "import": "./helpers/esm/iterableToArrayLimit.js",
+ "default": "./helpers/iterableToArrayLimit.js"
+ },
+ "./helpers/iterableToArrayLimit.js"
+ ],
+ "./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js",
+ "./helpers/jsx": [
+ {
+ "node": "./helpers/jsx.js",
+ "import": "./helpers/esm/jsx.js",
+ "default": "./helpers/jsx.js"
+ },
+ "./helpers/jsx.js"
+ ],
+ "./helpers/esm/jsx": "./helpers/esm/jsx.js",
+ "./helpers/maybeArrayLike": [
+ {
+ "node": "./helpers/maybeArrayLike.js",
+ "import": "./helpers/esm/maybeArrayLike.js",
+ "default": "./helpers/maybeArrayLike.js"
+ },
+ "./helpers/maybeArrayLike.js"
+ ],
+ "./helpers/esm/maybeArrayLike": "./helpers/esm/maybeArrayLike.js",
+ "./helpers/newArrowCheck": [
+ {
+ "node": "./helpers/newArrowCheck.js",
+ "import": "./helpers/esm/newArrowCheck.js",
+ "default": "./helpers/newArrowCheck.js"
+ },
+ "./helpers/newArrowCheck.js"
+ ],
+ "./helpers/esm/newArrowCheck": "./helpers/esm/newArrowCheck.js",
+ "./helpers/nonIterableRest": [
+ {
+ "node": "./helpers/nonIterableRest.js",
+ "import": "./helpers/esm/nonIterableRest.js",
+ "default": "./helpers/nonIterableRest.js"
+ },
+ "./helpers/nonIterableRest.js"
+ ],
+ "./helpers/esm/nonIterableRest": "./helpers/esm/nonIterableRest.js",
+ "./helpers/nonIterableSpread": [
+ {
+ "node": "./helpers/nonIterableSpread.js",
+ "import": "./helpers/esm/nonIterableSpread.js",
+ "default": "./helpers/nonIterableSpread.js"
+ },
+ "./helpers/nonIterableSpread.js"
+ ],
+ "./helpers/esm/nonIterableSpread": "./helpers/esm/nonIterableSpread.js",
+ "./helpers/nullishReceiverError": [
+ {
+ "node": "./helpers/nullishReceiverError.js",
+ "import": "./helpers/esm/nullishReceiverError.js",
+ "default": "./helpers/nullishReceiverError.js"
+ },
+ "./helpers/nullishReceiverError.js"
+ ],
+ "./helpers/esm/nullishReceiverError": "./helpers/esm/nullishReceiverError.js",
+ "./helpers/objectDestructuringEmpty": [
+ {
+ "node": "./helpers/objectDestructuringEmpty.js",
+ "import": "./helpers/esm/objectDestructuringEmpty.js",
+ "default": "./helpers/objectDestructuringEmpty.js"
+ },
+ "./helpers/objectDestructuringEmpty.js"
+ ],
+ "./helpers/esm/objectDestructuringEmpty": "./helpers/esm/objectDestructuringEmpty.js",
+ "./helpers/objectSpread2": [
+ {
+ "node": "./helpers/objectSpread2.js",
+ "import": "./helpers/esm/objectSpread2.js",
+ "default": "./helpers/objectSpread2.js"
+ },
+ "./helpers/objectSpread2.js"
+ ],
+ "./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js",
+ "./helpers/objectWithoutProperties": [
+ {
+ "node": "./helpers/objectWithoutProperties.js",
+ "import": "./helpers/esm/objectWithoutProperties.js",
+ "default": "./helpers/objectWithoutProperties.js"
+ },
+ "./helpers/objectWithoutProperties.js"
+ ],
+ "./helpers/esm/objectWithoutProperties": "./helpers/esm/objectWithoutProperties.js",
+ "./helpers/objectWithoutPropertiesLoose": [
+ {
+ "node": "./helpers/objectWithoutPropertiesLoose.js",
+ "import": "./helpers/esm/objectWithoutPropertiesLoose.js",
+ "default": "./helpers/objectWithoutPropertiesLoose.js"
+ },
+ "./helpers/objectWithoutPropertiesLoose.js"
+ ],
+ "./helpers/esm/objectWithoutPropertiesLoose": "./helpers/esm/objectWithoutPropertiesLoose.js",
+ "./helpers/possibleConstructorReturn": [
+ {
+ "node": "./helpers/possibleConstructorReturn.js",
+ "import": "./helpers/esm/possibleConstructorReturn.js",
+ "default": "./helpers/possibleConstructorReturn.js"
+ },
+ "./helpers/possibleConstructorReturn.js"
+ ],
+ "./helpers/esm/possibleConstructorReturn": "./helpers/esm/possibleConstructorReturn.js",
+ "./helpers/readOnlyError": [
+ {
+ "node": "./helpers/readOnlyError.js",
+ "import": "./helpers/esm/readOnlyError.js",
+ "default": "./helpers/readOnlyError.js"
+ },
+ "./helpers/readOnlyError.js"
+ ],
+ "./helpers/esm/readOnlyError": "./helpers/esm/readOnlyError.js",
+ "./helpers/regenerator": [
+ {
+ "node": "./helpers/regenerator.js",
+ "import": "./helpers/esm/regenerator.js",
+ "default": "./helpers/regenerator.js"
+ },
+ "./helpers/regenerator.js"
+ ],
+ "./helpers/esm/regenerator": "./helpers/esm/regenerator.js",
+ "./helpers/regeneratorAsync": [
+ {
+ "node": "./helpers/regeneratorAsync.js",
+ "import": "./helpers/esm/regeneratorAsync.js",
+ "default": "./helpers/regeneratorAsync.js"
+ },
+ "./helpers/regeneratorAsync.js"
+ ],
+ "./helpers/esm/regeneratorAsync": "./helpers/esm/regeneratorAsync.js",
+ "./helpers/regeneratorAsyncGen": [
+ {
+ "node": "./helpers/regeneratorAsyncGen.js",
+ "import": "./helpers/esm/regeneratorAsyncGen.js",
+ "default": "./helpers/regeneratorAsyncGen.js"
+ },
+ "./helpers/regeneratorAsyncGen.js"
+ ],
+ "./helpers/esm/regeneratorAsyncGen": "./helpers/esm/regeneratorAsyncGen.js",
+ "./helpers/regeneratorKeys": [
+ {
+ "node": "./helpers/regeneratorKeys.js",
+ "import": "./helpers/esm/regeneratorKeys.js",
+ "default": "./helpers/regeneratorKeys.js"
+ },
+ "./helpers/regeneratorKeys.js"
+ ],
+ "./helpers/esm/regeneratorKeys": "./helpers/esm/regeneratorKeys.js",
+ "./helpers/regeneratorValues": [
+ {
+ "node": "./helpers/regeneratorValues.js",
+ "import": "./helpers/esm/regeneratorValues.js",
+ "default": "./helpers/regeneratorValues.js"
+ },
+ "./helpers/regeneratorValues.js"
+ ],
+ "./helpers/esm/regeneratorValues": "./helpers/esm/regeneratorValues.js",
+ "./helpers/set": [
+ {
+ "node": "./helpers/set.js",
+ "import": "./helpers/esm/set.js",
+ "default": "./helpers/set.js"
+ },
+ "./helpers/set.js"
+ ],
+ "./helpers/esm/set": "./helpers/esm/set.js",
+ "./helpers/setFunctionName": [
+ {
+ "node": "./helpers/setFunctionName.js",
+ "import": "./helpers/esm/setFunctionName.js",
+ "default": "./helpers/setFunctionName.js"
+ },
+ "./helpers/setFunctionName.js"
+ ],
+ "./helpers/esm/setFunctionName": "./helpers/esm/setFunctionName.js",
+ "./helpers/setPrototypeOf": [
+ {
+ "node": "./helpers/setPrototypeOf.js",
+ "import": "./helpers/esm/setPrototypeOf.js",
+ "default": "./helpers/setPrototypeOf.js"
+ },
+ "./helpers/setPrototypeOf.js"
+ ],
+ "./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js",
+ "./helpers/skipFirstGeneratorNext": [
+ {
+ "node": "./helpers/skipFirstGeneratorNext.js",
+ "import": "./helpers/esm/skipFirstGeneratorNext.js",
+ "default": "./helpers/skipFirstGeneratorNext.js"
+ },
+ "./helpers/skipFirstGeneratorNext.js"
+ ],
+ "./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js",
+ "./helpers/slicedToArray": [
+ {
+ "node": "./helpers/slicedToArray.js",
+ "import": "./helpers/esm/slicedToArray.js",
+ "default": "./helpers/slicedToArray.js"
+ },
+ "./helpers/slicedToArray.js"
+ ],
+ "./helpers/esm/slicedToArray": "./helpers/esm/slicedToArray.js",
+ "./helpers/superPropBase": [
+ {
+ "node": "./helpers/superPropBase.js",
+ "import": "./helpers/esm/superPropBase.js",
+ "default": "./helpers/superPropBase.js"
+ },
+ "./helpers/superPropBase.js"
+ ],
+ "./helpers/esm/superPropBase": "./helpers/esm/superPropBase.js",
+ "./helpers/superPropGet": [
+ {
+ "node": "./helpers/superPropGet.js",
+ "import": "./helpers/esm/superPropGet.js",
+ "default": "./helpers/superPropGet.js"
+ },
+ "./helpers/superPropGet.js"
+ ],
+ "./helpers/esm/superPropGet": "./helpers/esm/superPropGet.js",
+ "./helpers/superPropSet": [
+ {
+ "node": "./helpers/superPropSet.js",
+ "import": "./helpers/esm/superPropSet.js",
+ "default": "./helpers/superPropSet.js"
+ },
+ "./helpers/superPropSet.js"
+ ],
+ "./helpers/esm/superPropSet": "./helpers/esm/superPropSet.js",
+ "./helpers/taggedTemplateLiteral": [
+ {
+ "node": "./helpers/taggedTemplateLiteral.js",
+ "import": "./helpers/esm/taggedTemplateLiteral.js",
+ "default": "./helpers/taggedTemplateLiteral.js"
+ },
+ "./helpers/taggedTemplateLiteral.js"
+ ],
+ "./helpers/esm/taggedTemplateLiteral": "./helpers/esm/taggedTemplateLiteral.js",
+ "./helpers/taggedTemplateLiteralLoose": [
+ {
+ "node": "./helpers/taggedTemplateLiteralLoose.js",
+ "import": "./helpers/esm/taggedTemplateLiteralLoose.js",
+ "default": "./helpers/taggedTemplateLiteralLoose.js"
+ },
+ "./helpers/taggedTemplateLiteralLoose.js"
+ ],
+ "./helpers/esm/taggedTemplateLiteralLoose": "./helpers/esm/taggedTemplateLiteralLoose.js",
+ "./helpers/tdz": [
+ {
+ "node": "./helpers/tdz.js",
+ "import": "./helpers/esm/tdz.js",
+ "default": "./helpers/tdz.js"
+ },
+ "./helpers/tdz.js"
+ ],
+ "./helpers/esm/tdz": "./helpers/esm/tdz.js",
+ "./helpers/temporalRef": [
+ {
+ "node": "./helpers/temporalRef.js",
+ "import": "./helpers/esm/temporalRef.js",
+ "default": "./helpers/temporalRef.js"
+ },
+ "./helpers/temporalRef.js"
+ ],
+ "./helpers/esm/temporalRef": "./helpers/esm/temporalRef.js",
+ "./helpers/temporalUndefined": [
+ {
+ "node": "./helpers/temporalUndefined.js",
+ "import": "./helpers/esm/temporalUndefined.js",
+ "default": "./helpers/temporalUndefined.js"
+ },
+ "./helpers/temporalUndefined.js"
+ ],
+ "./helpers/esm/temporalUndefined": "./helpers/esm/temporalUndefined.js",
+ "./helpers/toArray": [
+ {
+ "node": "./helpers/toArray.js",
+ "import": "./helpers/esm/toArray.js",
+ "default": "./helpers/toArray.js"
+ },
+ "./helpers/toArray.js"
+ ],
+ "./helpers/esm/toArray": "./helpers/esm/toArray.js",
+ "./helpers/toConsumableArray": [
+ {
+ "node": "./helpers/toConsumableArray.js",
+ "import": "./helpers/esm/toConsumableArray.js",
+ "default": "./helpers/toConsumableArray.js"
+ },
+ "./helpers/toConsumableArray.js"
+ ],
+ "./helpers/esm/toConsumableArray": "./helpers/esm/toConsumableArray.js",
+ "./helpers/toPrimitive": [
+ {
+ "node": "./helpers/toPrimitive.js",
+ "import": "./helpers/esm/toPrimitive.js",
+ "default": "./helpers/toPrimitive.js"
+ },
+ "./helpers/toPrimitive.js"
+ ],
+ "./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js",
+ "./helpers/toPropertyKey": [
+ {
+ "node": "./helpers/toPropertyKey.js",
+ "import": "./helpers/esm/toPropertyKey.js",
+ "default": "./helpers/toPropertyKey.js"
+ },
+ "./helpers/toPropertyKey.js"
+ ],
+ "./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js",
+ "./helpers/toSetter": [
+ {
+ "node": "./helpers/toSetter.js",
+ "import": "./helpers/esm/toSetter.js",
+ "default": "./helpers/toSetter.js"
+ },
+ "./helpers/toSetter.js"
+ ],
+ "./helpers/esm/toSetter": "./helpers/esm/toSetter.js",
+ "./helpers/tsRewriteRelativeImportExtensions": [
+ {
+ "node": "./helpers/tsRewriteRelativeImportExtensions.js",
+ "import": "./helpers/esm/tsRewriteRelativeImportExtensions.js",
+ "default": "./helpers/tsRewriteRelativeImportExtensions.js"
+ },
+ "./helpers/tsRewriteRelativeImportExtensions.js"
+ ],
+ "./helpers/esm/tsRewriteRelativeImportExtensions": "./helpers/esm/tsRewriteRelativeImportExtensions.js",
+ "./helpers/typeof": [
+ {
+ "node": "./helpers/typeof.js",
+ "import": "./helpers/esm/typeof.js",
+ "default": "./helpers/typeof.js"
+ },
+ "./helpers/typeof.js"
+ ],
+ "./helpers/esm/typeof": "./helpers/esm/typeof.js",
+ "./helpers/unsupportedIterableToArray": [
+ {
+ "node": "./helpers/unsupportedIterableToArray.js",
+ "import": "./helpers/esm/unsupportedIterableToArray.js",
+ "default": "./helpers/unsupportedIterableToArray.js"
+ },
+ "./helpers/unsupportedIterableToArray.js"
+ ],
+ "./helpers/esm/unsupportedIterableToArray": "./helpers/esm/unsupportedIterableToArray.js",
+ "./helpers/usingCtx": [
+ {
+ "node": "./helpers/usingCtx.js",
+ "import": "./helpers/esm/usingCtx.js",
+ "default": "./helpers/usingCtx.js"
+ },
+ "./helpers/usingCtx.js"
+ ],
+ "./helpers/esm/usingCtx": "./helpers/esm/usingCtx.js",
+ "./helpers/wrapAsyncGenerator": [
+ {
+ "node": "./helpers/wrapAsyncGenerator.js",
+ "import": "./helpers/esm/wrapAsyncGenerator.js",
+ "default": "./helpers/wrapAsyncGenerator.js"
+ },
+ "./helpers/wrapAsyncGenerator.js"
+ ],
+ "./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js",
+ "./helpers/wrapNativeSuper": [
+ {
+ "node": "./helpers/wrapNativeSuper.js",
+ "import": "./helpers/esm/wrapNativeSuper.js",
+ "default": "./helpers/wrapNativeSuper.js"
+ },
+ "./helpers/wrapNativeSuper.js"
+ ],
+ "./helpers/esm/wrapNativeSuper": "./helpers/esm/wrapNativeSuper.js",
+ "./helpers/wrapRegExp": [
+ {
+ "node": "./helpers/wrapRegExp.js",
+ "import": "./helpers/esm/wrapRegExp.js",
+ "default": "./helpers/wrapRegExp.js"
+ },
+ "./helpers/wrapRegExp.js"
+ ],
+ "./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js",
+ "./helpers/writeOnlyError": [
+ {
+ "node": "./helpers/writeOnlyError.js",
+ "import": "./helpers/esm/writeOnlyError.js",
+ "default": "./helpers/writeOnlyError.js"
+ },
+ "./helpers/writeOnlyError.js"
+ ],
+ "./helpers/esm/writeOnlyError": "./helpers/esm/writeOnlyError.js",
+ "./helpers/AwaitValue": [
+ {
+ "node": "./helpers/AwaitValue.js",
+ "import": "./helpers/esm/AwaitValue.js",
+ "default": "./helpers/AwaitValue.js"
+ },
+ "./helpers/AwaitValue.js"
+ ],
+ "./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js",
+ "./helpers/applyDecs": [
+ {
+ "node": "./helpers/applyDecs.js",
+ "import": "./helpers/esm/applyDecs.js",
+ "default": "./helpers/applyDecs.js"
+ },
+ "./helpers/applyDecs.js"
+ ],
+ "./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js",
+ "./helpers/applyDecs2203": [
+ {
+ "node": "./helpers/applyDecs2203.js",
+ "import": "./helpers/esm/applyDecs2203.js",
+ "default": "./helpers/applyDecs2203.js"
+ },
+ "./helpers/applyDecs2203.js"
+ ],
+ "./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js",
+ "./helpers/applyDecs2203R": [
+ {
+ "node": "./helpers/applyDecs2203R.js",
+ "import": "./helpers/esm/applyDecs2203R.js",
+ "default": "./helpers/applyDecs2203R.js"
+ },
+ "./helpers/applyDecs2203R.js"
+ ],
+ "./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js",
+ "./helpers/applyDecs2301": [
+ {
+ "node": "./helpers/applyDecs2301.js",
+ "import": "./helpers/esm/applyDecs2301.js",
+ "default": "./helpers/applyDecs2301.js"
+ },
+ "./helpers/applyDecs2301.js"
+ ],
+ "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js",
+ "./helpers/applyDecs2305": [
+ {
+ "node": "./helpers/applyDecs2305.js",
+ "import": "./helpers/esm/applyDecs2305.js",
+ "default": "./helpers/applyDecs2305.js"
+ },
+ "./helpers/applyDecs2305.js"
+ ],
+ "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js",
+ "./helpers/classApplyDescriptorDestructureSet": [
+ {
+ "node": "./helpers/classApplyDescriptorDestructureSet.js",
+ "import": "./helpers/esm/classApplyDescriptorDestructureSet.js",
+ "default": "./helpers/classApplyDescriptorDestructureSet.js"
+ },
+ "./helpers/classApplyDescriptorDestructureSet.js"
+ ],
+ "./helpers/esm/classApplyDescriptorDestructureSet": "./helpers/esm/classApplyDescriptorDestructureSet.js",
+ "./helpers/classApplyDescriptorGet": [
+ {
+ "node": "./helpers/classApplyDescriptorGet.js",
+ "import": "./helpers/esm/classApplyDescriptorGet.js",
+ "default": "./helpers/classApplyDescriptorGet.js"
+ },
+ "./helpers/classApplyDescriptorGet.js"
+ ],
+ "./helpers/esm/classApplyDescriptorGet": "./helpers/esm/classApplyDescriptorGet.js",
+ "./helpers/classApplyDescriptorSet": [
+ {
+ "node": "./helpers/classApplyDescriptorSet.js",
+ "import": "./helpers/esm/classApplyDescriptorSet.js",
+ "default": "./helpers/classApplyDescriptorSet.js"
+ },
+ "./helpers/classApplyDescriptorSet.js"
+ ],
+ "./helpers/esm/classApplyDescriptorSet": "./helpers/esm/classApplyDescriptorSet.js",
+ "./helpers/classCheckPrivateStaticAccess": [
+ {
+ "node": "./helpers/classCheckPrivateStaticAccess.js",
+ "import": "./helpers/esm/classCheckPrivateStaticAccess.js",
+ "default": "./helpers/classCheckPrivateStaticAccess.js"
+ },
+ "./helpers/classCheckPrivateStaticAccess.js"
+ ],
+ "./helpers/esm/classCheckPrivateStaticAccess": "./helpers/esm/classCheckPrivateStaticAccess.js",
+ "./helpers/classCheckPrivateStaticFieldDescriptor": [
+ {
+ "node": "./helpers/classCheckPrivateStaticFieldDescriptor.js",
+ "import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js",
+ "default": "./helpers/classCheckPrivateStaticFieldDescriptor.js"
+ },
+ "./helpers/classCheckPrivateStaticFieldDescriptor.js"
+ ],
+ "./helpers/esm/classCheckPrivateStaticFieldDescriptor": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js",
+ "./helpers/classExtractFieldDescriptor": [
+ {
+ "node": "./helpers/classExtractFieldDescriptor.js",
+ "import": "./helpers/esm/classExtractFieldDescriptor.js",
+ "default": "./helpers/classExtractFieldDescriptor.js"
+ },
+ "./helpers/classExtractFieldDescriptor.js"
+ ],
+ "./helpers/esm/classExtractFieldDescriptor": "./helpers/esm/classExtractFieldDescriptor.js",
+ "./helpers/classPrivateFieldDestructureSet": [
+ {
+ "node": "./helpers/classPrivateFieldDestructureSet.js",
+ "import": "./helpers/esm/classPrivateFieldDestructureSet.js",
+ "default": "./helpers/classPrivateFieldDestructureSet.js"
+ },
+ "./helpers/classPrivateFieldDestructureSet.js"
+ ],
+ "./helpers/esm/classPrivateFieldDestructureSet": "./helpers/esm/classPrivateFieldDestructureSet.js",
+ "./helpers/classPrivateFieldGet": [
+ {
+ "node": "./helpers/classPrivateFieldGet.js",
+ "import": "./helpers/esm/classPrivateFieldGet.js",
+ "default": "./helpers/classPrivateFieldGet.js"
+ },
+ "./helpers/classPrivateFieldGet.js"
+ ],
+ "./helpers/esm/classPrivateFieldGet": "./helpers/esm/classPrivateFieldGet.js",
+ "./helpers/classPrivateFieldSet": [
+ {
+ "node": "./helpers/classPrivateFieldSet.js",
+ "import": "./helpers/esm/classPrivateFieldSet.js",
+ "default": "./helpers/classPrivateFieldSet.js"
+ },
+ "./helpers/classPrivateFieldSet.js"
+ ],
+ "./helpers/esm/classPrivateFieldSet": "./helpers/esm/classPrivateFieldSet.js",
+ "./helpers/classPrivateMethodGet": [
+ {
+ "node": "./helpers/classPrivateMethodGet.js",
+ "import": "./helpers/esm/classPrivateMethodGet.js",
+ "default": "./helpers/classPrivateMethodGet.js"
+ },
+ "./helpers/classPrivateMethodGet.js"
+ ],
+ "./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js",
+ "./helpers/classPrivateMethodSet": [
+ {
+ "node": "./helpers/classPrivateMethodSet.js",
+ "import": "./helpers/esm/classPrivateMethodSet.js",
+ "default": "./helpers/classPrivateMethodSet.js"
+ },
+ "./helpers/classPrivateMethodSet.js"
+ ],
+ "./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js",
+ "./helpers/classStaticPrivateFieldDestructureSet": [
+ {
+ "node": "./helpers/classStaticPrivateFieldDestructureSet.js",
+ "import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js",
+ "default": "./helpers/classStaticPrivateFieldDestructureSet.js"
+ },
+ "./helpers/classStaticPrivateFieldDestructureSet.js"
+ ],
+ "./helpers/esm/classStaticPrivateFieldDestructureSet": "./helpers/esm/classStaticPrivateFieldDestructureSet.js",
+ "./helpers/classStaticPrivateFieldSpecGet": [
+ {
+ "node": "./helpers/classStaticPrivateFieldSpecGet.js",
+ "import": "./helpers/esm/classStaticPrivateFieldSpecGet.js",
+ "default": "./helpers/classStaticPrivateFieldSpecGet.js"
+ },
+ "./helpers/classStaticPrivateFieldSpecGet.js"
+ ],
+ "./helpers/esm/classStaticPrivateFieldSpecGet": "./helpers/esm/classStaticPrivateFieldSpecGet.js",
+ "./helpers/classStaticPrivateFieldSpecSet": [
+ {
+ "node": "./helpers/classStaticPrivateFieldSpecSet.js",
+ "import": "./helpers/esm/classStaticPrivateFieldSpecSet.js",
+ "default": "./helpers/classStaticPrivateFieldSpecSet.js"
+ },
+ "./helpers/classStaticPrivateFieldSpecSet.js"
+ ],
+ "./helpers/esm/classStaticPrivateFieldSpecSet": "./helpers/esm/classStaticPrivateFieldSpecSet.js",
+ "./helpers/classStaticPrivateMethodSet": [
+ {
+ "node": "./helpers/classStaticPrivateMethodSet.js",
+ "import": "./helpers/esm/classStaticPrivateMethodSet.js",
+ "default": "./helpers/classStaticPrivateMethodSet.js"
+ },
+ "./helpers/classStaticPrivateMethodSet.js"
+ ],
+ "./helpers/esm/classStaticPrivateMethodSet": "./helpers/esm/classStaticPrivateMethodSet.js",
+ "./helpers/defineEnumerableProperties": [
+ {
+ "node": "./helpers/defineEnumerableProperties.js",
+ "import": "./helpers/esm/defineEnumerableProperties.js",
+ "default": "./helpers/defineEnumerableProperties.js"
+ },
+ "./helpers/defineEnumerableProperties.js"
+ ],
+ "./helpers/esm/defineEnumerableProperties": "./helpers/esm/defineEnumerableProperties.js",
+ "./helpers/dispose": [
+ {
+ "node": "./helpers/dispose.js",
+ "import": "./helpers/esm/dispose.js",
+ "default": "./helpers/dispose.js"
+ },
+ "./helpers/dispose.js"
+ ],
+ "./helpers/esm/dispose": "./helpers/esm/dispose.js",
+ "./helpers/objectSpread": [
+ {
+ "node": "./helpers/objectSpread.js",
+ "import": "./helpers/esm/objectSpread.js",
+ "default": "./helpers/objectSpread.js"
+ },
+ "./helpers/objectSpread.js"
+ ],
+ "./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js",
+ "./helpers/regeneratorRuntime": [
+ {
+ "node": "./helpers/regeneratorRuntime.js",
+ "import": "./helpers/esm/regeneratorRuntime.js",
+ "default": "./helpers/regeneratorRuntime.js"
+ },
+ "./helpers/regeneratorRuntime.js"
+ ],
+ "./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js",
+ "./helpers/using": [
+ {
+ "node": "./helpers/using.js",
+ "import": "./helpers/esm/using.js",
+ "default": "./helpers/using.js"
+ },
+ "./helpers/using.js"
+ ],
+ "./helpers/esm/using": "./helpers/esm/using.js",
+ "./package": "./package.json",
+ "./package.json": "./package.json",
+ "./regenerator": "./regenerator/index.js",
+ "./regenerator/*.js": "./regenerator/*.js",
+ "./regenerator/": "./regenerator/"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "type": "commonjs"
+}
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@babel/runtime/regenerator/index.js b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/regenerator/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..5881357364f41aea98c1c01ab2b9056adc79689f
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@babel/runtime/regenerator/index.js
@@ -0,0 +1,15 @@
+// TODO(Babel 8): Remove this file.
+
+var runtime = require("../helpers/regeneratorRuntime")();
+module.exports = runtime;
+
+// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
+try {
+ regeneratorRuntime = runtime;
+} catch (accidentalStrictMode) {
+ if (typeof globalThis === "object") {
+ globalThis.regeneratorRuntime = runtime;
+ } else {
+ Function("r", "regeneratorRuntime = r")(runtime);
+ }
+}
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/LICENSE.md b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/LICENSE.md
new file mode 100644
index 0000000000000000000000000000000000000000..6247ca912cb4bcc379aed9b711290dc3d174f915
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Evan Wallace
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/README.md b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..f73907058bcf54c79201466a277d4ca2e6df3572
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/README.md
@@ -0,0 +1,289 @@
+# Source Map Support
+
+[](https://npmjs.org/package/@cspotcode/source-map-support)
+[](https://npmjs.org/package/@cspotcode/source-map-support)
+[](https://github.com/cspotcode/node-source-map-support/actions?query=workflow%3A%22Continuous+Integration%22)
+
+This module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
+
+## Installation and Usage
+
+#### Node support
+
+```
+$ npm install @cspotcode/source-map-support
+```
+
+Source maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, place a source mapping comment somewhere in the file (usually done automatically or with an option by your transpiler):
+
+```
+//# sourceMappingURL=path/to/source.map
+```
+
+If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be
+respected (e.g. if a file mentions the comment in code, or went through multiple transpilers).
+The path should either be absolute or relative to the compiled file.
+
+From here you have two options.
+
+##### CLI Usage
+
+```bash
+node -r @cspotcode/source-map-support/register compiled.js
+# Or to enable hookRequire
+node -r @cspotcode/source-map-support/register-hook-require compiled.js
+```
+
+##### Programmatic Usage
+
+Put the following line at the top of the compiled file.
+
+```js
+require('@cspotcode/source-map-support').install();
+```
+
+It is also possible to install the source map support directly by
+requiring the `register` module which can be handy with ES6:
+
+```js
+import '@cspotcode/source-map-support/register'
+
+// Instead of:
+import sourceMapSupport from '@cspotcode/source-map-support'
+sourceMapSupport.install()
+```
+Note: if you're using babel-register, it includes source-map-support already.
+
+It is also very useful with Mocha:
+
+```
+$ mocha --require @cspotcode/source-map-support/register tests/
+```
+
+#### Browser support
+
+This library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code.
+
+This library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify.
+
+```html
+
+
+```
+
+This library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency:
+
+```html
+
+```
+
+## Options
+
+This module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer:
+
+```js
+require('@cspotcode/source-map-support').install({
+ handleUncaughtExceptions: false
+});
+```
+
+This module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access.
+
+```js
+require('@cspotcode/source-map-support').install({
+ retrieveSourceMap: function(source) {
+ if (source === 'compiled.js') {
+ return {
+ url: 'original.js',
+ map: fs.readFileSync('compiled.js.map', 'utf8')
+ };
+ }
+ return null;
+ }
+});
+```
+
+The module will by default assume a browser environment if XMLHttpRequest and window are defined. If either of these do not exist it will instead assume a node environment.
+In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explictly specify the environment to be either 'browser' or 'node'.
+
+```js
+require('@cspotcode/source-map-support').install({
+ environment: 'node'
+});
+```
+
+To support files with inline source maps, the `hookRequire` options can be specified, which will monitor all source files for inline source maps.
+
+
+```js
+require('@cspotcode/source-map-support').install({
+ hookRequire: true
+});
+```
+
+This monkey patches the `require` module loading chain, so is not enabled by default and is not recommended for any sort of production usage.
+
+## Demos
+
+#### Basic Demo
+
+original.js:
+
+```js
+throw new Error('test'); // This is the original code
+```
+
+compiled.js:
+
+```js
+require('@cspotcode/source-map-support').install();
+
+throw new Error('test'); // This is the compiled code
+// The next line defines the sourceMapping.
+//# sourceMappingURL=compiled.js.map
+```
+
+compiled.js.map:
+
+```json
+{
+ "version": 3,
+ "file": "compiled.js",
+ "sources": ["original.js"],
+ "names": [],
+ "mappings": ";;AAAA,MAAM,IAAI"
+}
+```
+
+Run compiled.js using node (notice how the stack trace uses original.js instead of compiled.js):
+
+```
+$ node compiled.js
+
+original.js:1
+throw new Error('test'); // This is the original code
+ ^
+Error: test
+ at Object. (original.js:1:7)
+ at Module._compile (module.js:456:26)
+ at Object.Module._extensions..js (module.js:474:10)
+ at Module.load (module.js:356:32)
+ at Function.Module._load (module.js:312:12)
+ at Function.Module.runMain (module.js:497:10)
+ at startup (node.js:119:16)
+ at node.js:901:3
+```
+
+#### TypeScript Demo
+
+demo.ts:
+
+```typescript
+declare function require(name: string);
+require('@cspotcode/source-map-support').install();
+class Foo {
+ constructor() { this.bar(); }
+ bar() { throw new Error('this is a demo'); }
+}
+new Foo();
+```
+
+Compile and run the file using the TypeScript compiler from the terminal:
+
+```
+$ npm install source-map-support typescript
+$ node_modules/typescript/bin/tsc -sourcemap demo.ts
+$ node demo.js
+
+demo.ts:5
+ bar() { throw new Error('this is a demo'); }
+ ^
+Error: this is a demo
+ at Foo.bar (demo.ts:5:17)
+ at new Foo (demo.ts:4:24)
+ at Object. (demo.ts:7:1)
+ at Module._compile (module.js:456:26)
+ at Object.Module._extensions..js (module.js:474:10)
+ at Module.load (module.js:356:32)
+ at Function.Module._load (module.js:312:12)
+ at Function.Module.runMain (module.js:497:10)
+ at startup (node.js:119:16)
+ at node.js:901:3
+```
+
+There is also the option to use `-r source-map-support/register` with typescript, without the need add the `require('@cspotcode/source-map-support').install()` in the code base:
+
+```
+$ npm install source-map-support typescript
+$ node_modules/typescript/bin/tsc -sourcemap demo.ts
+$ node -r source-map-support/register demo.js
+
+demo.ts:5
+ bar() { throw new Error('this is a demo'); }
+ ^
+Error: this is a demo
+ at Foo.bar (demo.ts:5:17)
+ at new Foo (demo.ts:4:24)
+ at Object. (demo.ts:7:1)
+ at Module._compile (module.js:456:26)
+ at Object.Module._extensions..js (module.js:474:10)
+ at Module.load (module.js:356:32)
+ at Function.Module._load (module.js:312:12)
+ at Function.Module.runMain (module.js:497:10)
+ at startup (node.js:119:16)
+ at node.js:901:3
+```
+
+#### CoffeeScript Demo
+
+demo.coffee:
+
+```coffee
+require('@cspotcode/source-map-support').install()
+foo = ->
+ bar = -> throw new Error 'this is a demo'
+ bar()
+foo()
+```
+
+Compile and run the file using the CoffeeScript compiler from the terminal:
+
+```sh
+$ npm install @cspotcode/source-map-support coffeescript
+$ node_modules/.bin/coffee --map --compile demo.coffee
+$ node demo.js
+
+demo.coffee:3
+ bar = -> throw new Error 'this is a demo'
+ ^
+Error: this is a demo
+ at bar (demo.coffee:3:22)
+ at foo (demo.coffee:4:3)
+ at Object. (demo.coffee:5:1)
+ at Object. (demo.coffee:1:1)
+ at Module._compile (module.js:456:26)
+ at Object.Module._extensions..js (module.js:474:10)
+ at Module.load (module.js:356:32)
+ at Function.Module._load (module.js:312:12)
+ at Function.Module.runMain (module.js:497:10)
+ at startup (node.js:119:16)
+```
+
+## Tests
+
+This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests:
+
+* Build the tests using `build.js`
+* Launch the HTTP server (`npm run serve-tests`) and visit
+ * http://127.0.0.1:1336/amd-test
+ * http://127.0.0.1:1336/browser-test
+ * http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details).
+* For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/
+
+## License
+
+This code is available under the [MIT license](http://opensource.org/licenses/MIT).
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/browser-source-map-support.js b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/browser-source-map-support.js
new file mode 100644
index 0000000000000000000000000000000000000000..782da501459760dd729b76cb0a80358063f70e30
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/browser-source-map-support.js
@@ -0,0 +1,114 @@
+/*
+ * Support for source maps in V8 stack traces
+ * https://github.com/evanw/node-source-map-support
+ */
+/*
+ The buffer module from node.js, for the browser.
+
+ @author Feross Aboukhadijeh
+ license MIT
+*/
+(this.define||function(R,U){this.sourceMapSupport=U()})("browser-source-map-support",function(R){(function e(C,J,A){function p(f,c){if(!J[f]){if(!C[f]){var l="function"==typeof require&&require;if(!c&&l)return l(f,!0);if(t)return t(f,!0);throw Error("Cannot find module '"+f+"'");}l=J[f]={exports:{}};C[f][0].call(l.exports,function(q){var r=C[f][1][q];return p(r?r:q)},l,l.exports,e,C,J,A)}return J[f].exports}for(var t="function"==typeof require&&require,m=0;mm)return-1;if(58>m)return m-48+52;if(91>m)return m-65;if(123>m)return m-97+26}var t="undefined"!==typeof Uint8Array?Uint8Array:Array;e.toByteArray=function(m){function f(d){q[k++]=d}if(0>16);f((u&65280)>>8);f(u&255)}2===l?(u=p(m.charAt(c))<<2|p(m.charAt(c+1))>>4,f(u&255)):1===l&&(u=p(m.charAt(c))<<10|p(m.charAt(c+1))<<4|p(m.charAt(c+2))>>2,f(u>>8&255),f(u&255));return q};e.fromByteArray=function(m){var f=m.length%3,c="",l;var q=0;for(l=m.length-f;q>
+18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r&63);c+=r}switch(f){case 1:r=m[m.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<4&63);c+="==";break;case 2:r=(m[m.length-2]<<8)+
+m[m.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<2&63),c+="="}return c}})("undefined"===typeof A?this.base64js={}:A)},{}],3:[function(C,J,A){},{}],4:[function(C,J,A){(function(e){var p=Object.prototype.toString,t="function"===typeof e.alloc&&"function"===typeof e.allocUnsafe&&"function"===
+typeof e.from;J.exports=function(m,f,c){if("number"===typeof m)throw new TypeError('"value" argument must not be a number');if("ArrayBuffer"===p.call(m).slice(8,-1)){f>>>=0;var l=m.byteLength-f;if(0>l)throw new RangeError("'offset' is out of bounds");if(void 0===c)c=l;else if(c>>>=0,c>l)throw new RangeError("'length' is out of bounds");return t?e.from(m.slice(f,f+c)):new e(new Uint8Array(m.slice(f,f+c)))}if("string"===typeof m){c=f;if("string"!==typeof c||""===c)c="utf8";if(!e.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');
+return t?e.from(m,c):new e(m,c)}return t?e.from(m):new e(m)}}).call(this,C("buffer").Buffer)},{buffer:5}],5:[function(C,J,A){function e(a,b,h){if(!(this instanceof e))return new e(a,b,h);var w=typeof a;if("number"===w)var y=0>>0:0;else if("string"===w){if("base64"===b)for(a=(a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")).replace(L,"");0!==a.length%4;)a+="=";y=e.byteLength(a,b)}else if("object"===w&&null!==a)"Buffer"===a.type&&z(a.data)&&(a=a.data),y=0<+a.length?Math.floor(+a.length):0;else throw new TypeError("must start with number, buffer, array or string");
+if(this.length>G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");if(e.TYPED_ARRAY_SUPPORT)var I=e._augment(new Uint8Array(y));else I=this,I.length=y,I._isBuffer=!0;if(e.TYPED_ARRAY_SUPPORT&&"number"===typeof a.byteLength)I._set(a);else{var K=a;if(z(K)||e.isBuffer(K)||K&&"object"===typeof K&&"number"===typeof K.length)if(e.isBuffer(a))for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>h)throw new RangeError("Trying to access beyond buffer length");}function m(a,b,h,w,y,I){if(!e.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>y||ba.length)throw new TypeError("index out of range");
+}function f(a,b,h,w){0>b&&(b=65535+b+1);for(var y=0,I=Math.min(a.length-h,2);y>>8*(w?y:1-y)}function c(a,b,h,w){0>b&&(b=4294967295+b+1);for(var y=0,I=Math.min(a.length-h,4);y>>8*(w?y:3-y)&255}function l(a,b,h,w,y,I){if(b>y||ba.length)throw new TypeError("index out of range");}function q(a,b,h,w,y){y||l(a,b,h,4,3.4028234663852886E38,-3.4028234663852886E38);v.write(a,b,h,w,23,4);return h+4}function r(a,
+b,h,w,y){y||l(a,b,h,8,1.7976931348623157E308,-1.7976931348623157E308);v.write(a,b,h,w,52,8);return h+8}function k(a){for(var b=[],h=0;h=w)b.push(w);else{var y=h;55296<=w&&57343>=w&&h++;w=encodeURIComponent(a.slice(y,h+1)).substr(1).split("%");for(y=0;y=b.length||y>=a.length);y++)b[y+
+h]=a[y];return y}function g(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var n=C("base64-js"),v=C("ieee754"),z=C("is-array");A.Buffer=e;A.SlowBuffer=e;A.INSPECT_MAX_BYTES=50;e.poolSize=8192;var G=1073741823;e.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray&&0===(new Uint8Array(1)).subarray(1,1).byteLength}catch(h){return!1}}();e.isBuffer=function(a){return!(null==
+a||!a._isBuffer)};e.compare=function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");for(var h=a.length,w=b.length,y=0,I=Math.min(h,w);y>>1;break;case "utf8":case "utf-8":h=k(a).length;break;case "base64":h=n.toByteArray(a).length;
+break;default:h=a.length}return h};e.prototype.length=void 0;e.prototype.parent=void 0;e.prototype.toString=function(a,b,h){var w=!1;b>>>=0;h=void 0===h||Infinity===h?this.length:h>>>0;a||(a="utf8");0>b&&(b=0);h>this.length&&(h=this.length);if(h<=b)return"";for(;;)switch(a){case "hex":a=b;b=h;h=this.length;if(!a||0>a)a=0;if(!b||0>b||b>h)b=h;w="";for(h=a;hw?"0"+w.toString(16):w.toString(16),w=a+w;return w;case "utf8":case "utf-8":w=a="";for(h=Math.min(this.length,h);b=
+this[b]?(a+=g(w)+String.fromCharCode(this[b]),w=""):w+="%"+this[b].toString(16);return a+g(w);case "ascii":return p(this,b,h);case "binary":return p(this,b,h);case "base64":return b=0===b&&h===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(b,h)),b;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=this.slice(b,h);h="";for(a=0;ab&&(a+=" ... "));return""};e.prototype.compare=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return e.compare(this,a)};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
+return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.write=function(a,b,h,w){if(isFinite(b))isFinite(h)||(w=h,h=void 0);else{var y=w;w=b;b=h;h=y}b=Number(b)||0;y=this.length-b;h?(h=Number(h),h>y&&(h=y)):h=y;w=String(w||"utf8").toLowerCase();switch(w){case "hex":b=Number(b)||0;w=this.length-b;h?(h=Number(h),h>w&&(h=w)):h=w;w=a.length;if(0!==w%2)throw Error("Invalid hex string");h>w/
+2&&(h=w/2);for(w=0;w>8;K%=256;y.push(K);y.push(w)}a=d(y,this,b,h,2);break;default:throw new TypeError("Unknown encoding: "+
+w);}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.slice=function(a,b){var h=this.length;a=~~a;b=void 0===b?h:~~b;0>a?(a+=h,0>a&&(a=0)):a>h&&(a=h);0>b?(b+=h,0>b&&(b=0)):b>h&&(b=h);b>>=0;h||m(this,a,b,1,255,0);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));this[b]=a;return b+1};e.prototype.writeUInt16LE=function(a,
+b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeUInt16BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeUInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):c(this,a,b,!0);return b+4};e.prototype.writeUInt32BE=function(a,
+b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,127,-128);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[b]=a;return b+1};e.prototype.writeInt16LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeInt16BE=function(a,
+b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):c(this,a,b,!0);return b+4};e.prototype.writeInt32BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+
+2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeFloatLE=function(a,b,h){return q(this,a,b,!0,h)};e.prototype.writeFloatBE=function(a,b,h){return q(this,a,b,!1,h)};e.prototype.writeDoubleLE=function(a,b,h){return r(this,a,b,!0,h)};e.prototype.writeDoubleBE=function(a,b,h){return r(this,a,b,!1,h)};e.prototype.copy=function(a,b,h,w){h||(h=0);w||0===w||(w=this.length);b||(b=0);if(w!==h&&0!==a.length&&0!==this.length){if(wb||b>=a.length)throw new TypeError("targetStart out of bounds");
+if(0>h||h>=this.length)throw new TypeError("sourceStart out of bounds");if(0>w||w>this.length)throw new TypeError("sourceEnd out of bounds");w>this.length&&(w=this.length);a.length-bw||!e.TYPED_ARRAY_SUPPORT)for(var y=0;yb||b>=this.length)throw new TypeError("start out of bounds");
+if(0>h||h>this.length)throw new TypeError("end out of bounds");if("number"===typeof a)for(;b>1,r=-7;f=t?f-1:0;var k=t?-1:1,u=e[p+f];f+=k;t=u&(1<<-r)-1;u>>=-r;for(r+=c;0>=-r;for(r+=m;0>1,u=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;c=m?0:c-1;var d=m?1:-1,g=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,m=r):(m=Math.floor(Math.log(p)/Math.LN2),1>p*(l=Math.pow(2,-m))&&(m--,l*=2),p=1<=m+k?p+u/l:p+u*Math.pow(2,1-k),2<=p*l&&(m++,l/=2),m+k>=r?(p=0,m=r):1<=m+k?(p=(p*l-1)*Math.pow(2,f),m+=k):(p=p*Math.pow(2,k-1)*Math.pow(2,f),m=0));for(;8<=f;e[t+c]=p&255,c+=
+d,p/=256,f-=8);m=m<z?[]:n.slice(v,z-v+1)}c=A.resolve(c).substr(1);l=A.resolve(l).substr(1);
+for(var r=q(c.split("/")),k=q(l.split("/")),u=Math.min(r.length,k.length),d=u,g=0;gl&&(l=c.length+l);return c.substr(l,q)}}).call(this,C("g5I+bs"))},{"g5I+bs":9}],9:[function(C,J,A){function e(){}C=J.exports={};C.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(t){return window.setImmediate(t)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var p=[];window.addEventListener("message",function(t){var m=t.source;m!==window&&null!==
+m||"process-tick"!==t.data||(t.stopPropagation(),0p?(-p<<1)+1:p<<1;do p=m&31,m>>>=5,0=f)throw Error("Expected more digits in base 64 VLQ value.");var q=e.decode(p.charCodeAt(t++));if(-1===q)throw Error("Invalid base64 digit: "+p.charAt(t-1));var r=!!(q&32);q&=31;c+=q<>1;m.value=1===(c&1)?-p:p;m.rest=t}},{"./base64":12}],12:[function(C,
+J,A){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");A.encode=function(p){if(0<=p&&p=p?p-65:97<=p&&122>=p?p-97+26:48<=p&&57>=p?p-48+52:43==p?62:47==p?63:-1}},{}],13:[function(C,J,A){function e(p,t,m,f,c,l){var q=Math.floor((t-p)/2)+p,r=c(m,f[q],!0);return 0===r?q:0p?-1:p}A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.search=function(p,t,m,f){if(0===t.length)return-1;p=e(-1,t.length,p,t,m,f||A.GREATEST_LOWER_BOUND);if(0>p)return-1;for(;0<=p-1&&0===m(t[p],t[p-1],!0);)--p;return p}},{}],14:[function(C,J,A){function e(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var p=C("./util");e.prototype.unsortedForEach=function(t,m){this._array.forEach(t,m)};e.prototype.add=function(t){var m=this._last,f=m.generatedLine,
+c=t.generatedLine,l=m.generatedColumn,q=t.generatedColumn;c>f||c==f&&q>=l||0>=p.compareByGeneratedPositionsInflated(m,t)?this._last=t:this._sorted=!1;this._array.push(t)};e.prototype.toArray=function(){this._sorted||(this._array.sort(p.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};A.MappingList=e},{"./util":19}],15:[function(C,J,A){function e(t,m,f){var c=t[m];t[m]=t[f];t[f]=c}function p(t,m,f,c){if(f=m(t[r],q)&&(l+=1,e(t,l,r));e(t,l+1,r);l+=1;p(t,m,f,l-1);p(t,m,l+1,c)}}A.quickSort=function(t,m){p(t,m,0,t.length-1)}},{}],16:[function(C,J,A){function e(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));return null!=d.sections?new m(d,u):new p(d,u)}function p(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version"),n=f.getArg(d,"sources"),v=f.getArg(d,"names",[]),z=f.getArg(d,"sourceRoot",null),G=f.getArg(d,"sourcesContent",null),D=f.getArg(d,
+"mappings");d=f.getArg(d,"file",null);if(g!=this._version)throw Error("Unsupported version: "+g);z&&(z=f.normalize(z));n=n.map(String).map(f.normalize).map(function(L){return z&&f.isAbsolute(z)&&f.isAbsolute(L)?f.relative(z,L):L});this._names=l.fromArray(v.map(String),!0);this._sources=l.fromArray(n,!0);this.sourceRoot=z;this.sourcesContent=G;this._mappings=D;this._sourceMapURL=u;this.file=d}function t(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=
+null}function m(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version");d=f.getArg(d,"sections");if(g!=this._version)throw Error("Unsupported version: "+g);this._sources=new l;this._names=new l;var n={line:-1,column:0};this._sections=d.map(function(v){if(v.url)throw Error("Support for url field in sections not implemented.");var z=f.getArg(v,"offset"),G=f.getArg(z,"line"),D=f.getArg(z,"column");if(G=k[d])throw new TypeError("Line must be greater than or equal to 1, got "+
+k[d]);if(0>k[g])throw new TypeError("Column must be greater than or equal to 0, got "+k[g]);return c.search(k,u,n,v)};p.prototype.computeColumnSpans=function(){for(var k=0;k=this._sources.size()&&!this.sourcesContent.some(function(k){return null==k}):!1};p.prototype.sourceContentFor=function(k,u){if(!this.sourcesContent)return null;var d=k;null!=this.sourceRoot&&(d=f.relative(this.sourceRoot,d));if(this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];
+var g=this.sources,n;for(n=0;n
+g||95!==d.charCodeAt(g-1)||95!==d.charCodeAt(g-2)||111!==d.charCodeAt(g-3)||116!==d.charCodeAt(g-4)||111!==d.charCodeAt(g-5)||114!==d.charCodeAt(g-6)||112!==d.charCodeAt(g-7)||95!==d.charCodeAt(g-8)||95!==d.charCodeAt(g-9))return!1;for(g-=10;0<=g;g--)if(36!==d.charCodeAt(g))return!1;return!0}function r(d,g){return d===g?0:null===d?1:null===g?-1:d>g?1:-1}A.getArg=function(d,g,n){if(g in d)return d[g];if(3===arguments.length)return n;throw Error('"'+g+'" is a required argument.');};var k=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,
+u=/^data:.+,.+$/;A.urlParse=e;A.urlGenerate=p;A.normalize=t;A.join=m;A.isAbsolute=function(d){return"/"===d.charAt(0)||k.test(d)};A.relative=function(d,g){""===d&&(d=".");d=d.replace(/\/$/,"");for(var n=0;0!==g.indexOf(d+"/");){var v=d.lastIndexOf("/");if(0>v)return g;d=d.slice(0,v);if(d.match(/^([^\/]+:\/)?\/*$/))return g;++n}return Array(n+1).join("../")+g.substr(d.length+1)};C=!("__proto__"in Object.create(null));A.toSetString=C?f:c;A.fromSetString=C?f:l;A.compareByOriginalPositions=function(d,
+g,n){var v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;if(0!==v||n)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v)return v;v=d.generatedLine-g.generatedLine;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsDeflated=function(d,g,n){var v=d.generatedLine-g.generatedLine;if(0!==v)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v||n)return v;v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-
+g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsInflated=function(d,g){var n=d.generatedLine-g.generatedLine;if(0!==n)return n;n=d.generatedColumn-g.generatedColumn;if(0!==n)return n;n=r(d.source,g.source);if(0!==n)return n;n=d.originalLine-g.originalLine;if(0!==n)return n;n=d.originalColumn-g.originalColumn;return 0!==n?n:r(d.name,g.name)};A.parseSourceMapInput=function(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,
+""))};A.computeSourceURL=function(d,g,n){g=g||"";d&&("/"!==d[d.length-1]&&"/"!==g[0]&&(d+="/"),g=d+g);if(n){d=e(n);if(!d)throw Error("sourceMapURL could not be parsed");d.path&&(n=d.path.lastIndexOf("/"),0<=n&&(d.path=d.path.substring(0,n+1)));g=m(p(d),g)}return t(g)}},{}],20:[function(C,J,A){A.SourceMapGenerator=C("./lib/source-map-generator").SourceMapGenerator;A.SourceMapConsumer=C("./lib/source-map-consumer").SourceMapConsumer;A.SourceNode=C("./lib/source-node").SourceNode},{"./lib/source-map-consumer":16,
+"./lib/source-map-generator":17,"./lib/source-node":18}],21:[function(C,J,A){(function(e){function p(){return"browser"===a?!0:"node"===a?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function t(x){return function(B){for(var F=0;F";B=this.getLineNumber();null!=B&&(x+=":"+B,(B=
+this.getColumnNumber())&&(x+=":"+B))}B="";var F=this.getFunctionName(),E=!0,H=this.isConstructor();if(this.isToplevel()||H)H?B+="new "+(F||""):F?B+=F:(B+=x,E=!1);else{H=this.getTypeName();"[object Object]"===H&&(H="null");var M=this.getMethodName();F?(H&&0!=F.indexOf(H)&&(B+=H+"."),B+=F,M&&F.indexOf("."+M)!=F.length-M.length-1&&(B+=" [as "+M+"]")):B+=H+"."+(M||"")}E&&(B+=" ("+x+")");return B}function q(x){var B={};Object.getOwnPropertyNames(Object.getPrototypeOf(x)).forEach(function(F){B[F]=
+/^(?:is|get)/.test(F)?function(){return x[F].call(x)}:x[F]});B.toString=l;return B}function r(x,B){void 0===B&&(B={nextPosition:null,curPosition:null});if(x.isNative())return B.curPosition=null,x;var F=x.getFileName()||x.getScriptNameOrSourceURL();if(F){var E=x.getLineNumber(),H=x.getColumnNumber()-1,M=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,S=M.test;var V="object"===typeof e&&null!==e?e.version:"";M=S.call(M,V)?0:62;1===E&&H>M&&!p()&&!x.isEval()&&(H-=M);var O=
+f({source:F,line:E,column:H});B.curPosition=O;x=q(x);var T=x.getFunctionName;x.getFunctionName=function(){return null==B.nextPosition?T():B.nextPosition.name||T()};x.getFileName=function(){return O.source};x.getLineNumber=function(){return O.line};x.getColumnNumber=function(){return O.column+1};x.getScriptNameOrSourceURL=function(){return O.source};return x}var Q=x.isEval()&&x.getEvalOrigin();Q&&(Q=c(Q),x=q(x),x.getEvalOrigin=function(){return Q});return x}function k(x,B){L&&(b={},h={});for(var F=
+(x.name||"Error")+": "+(x.message||""),E={nextPosition:null,curPosition:null},H=[],M=B.length-1;0<=M;M--)H.push("\n at "+r(B[M],E)),E.nextPosition=E.curPosition;E.curPosition=E.nextPosition=null;return F+H.reverse().join("")}function u(x){var B=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(x.stack);if(B){x=B[1];var F=+B[2];B=+B[3];var E=b[x];if(!E&&v&&v.existsSync(x))try{E=v.readFileSync(x,"utf8")}catch(H){E=""}if(E&&(E=E.split(/(?:\r\n|\r|\n)/)[F-1]))return x+":"+F+"\n"+E+"\n"+Array(B).join(" ")+
+"^"}return null}function d(){var x=e.emit;e.emit=function(B){if("uncaughtException"===B){var F=arguments[1]&&arguments[1].stack,E=0=12"
+ },
+ "volta": {
+ "node": "16.11.0",
+ "npm": "7.24.2"
+ }
+}
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..a787e696575a57a7b16eb317aa5401fa663f4c93
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts
@@ -0,0 +1,7 @@
+// tslint:disable:no-useless-files
+
+// For following usage:
+// import '@cspotcode/source-map-support/register-hook-require'
+// Instead of:
+// import sourceMapSupport from '@cspotcode/source-map-support'
+// sourceMapSupport.install({hookRequire: true})
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.js b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.js
new file mode 100644
index 0000000000000000000000000000000000000000..6bc12abb7668141cbb13b49b48a859c62f58c493
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register-hook-require.js
@@ -0,0 +1,3 @@
+require('./').install({
+ hookRequire: true
+});
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.d.ts b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..063cd7c17c5cd44cefa8d87a956b1e7efb0a4a40
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.d.ts
@@ -0,0 +1,7 @@
+// tslint:disable:no-useless-files
+
+// For following usage:
+// import '@cspotcode/source-map-support/register'
+// Instead of:
+// import sourceMapSupport from '@cspotcode/source-map-support'
+// sourceMapSupport.install()
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.js b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.js
new file mode 100644
index 0000000000000000000000000000000000000000..4f68e67d02afc93544e773a769a368754bb14686
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/register.js
@@ -0,0 +1 @@
+require('./').install();
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.d.ts b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..d8cb9d8d352ed05b79068a6e41a821c1aa60cb42
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.d.ts
@@ -0,0 +1,76 @@
+// Type definitions for source-map-support 0.5
+// Project: https://github.com/evanw/node-source-map-support
+// Definitions by: Bart van der Schoor
+// Jason Cheatham
+// Alcedo Nathaniel De Guzman Jr
+// Griffin Yourick
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+export interface RawSourceMap {
+ version: 3;
+ sources: string[];
+ names: string[];
+ sourceRoot?: string;
+ sourcesContent?: string[];
+ mappings: string;
+ file: string;
+}
+
+/**
+ * Output of retrieveSourceMap().
+ * From source-map-support:
+ * The map field may be either a string or the parsed JSON object (i.e.,
+ * it must be a valid argument to the SourceMapConsumer constructor).
+ */
+export interface UrlAndMap {
+ url: string;
+ map: string | RawSourceMap;
+}
+
+/**
+ * Options to install().
+ */
+export interface Options {
+ handleUncaughtExceptions?: boolean | undefined;
+ hookRequire?: boolean | undefined;
+ emptyCacheBetweenOperations?: boolean | undefined;
+ environment?: 'auto' | 'browser' | 'node' | undefined;
+ overrideRetrieveFile?: boolean | undefined;
+ overrideRetrieveSourceMap?: boolean | undefined;
+ retrieveFile?(path: string): string;
+ retrieveSourceMap?(source: string): UrlAndMap | null;
+ /**
+ * Set false to disable redirection of require / import `source-map-support` to `@cspotcode/source-map-support`
+ */
+ redirectConflictingLibrary?: boolean;
+ /**
+ * Callback will be called every time we redirect due to `redirectConflictingLibrary`
+ * This allows consumers to log helpful warnings if they choose.
+ * @param parent NodeJS.Module which made the require() or require.resolve() call
+ * @param options options object internally passed to node's `_resolveFilename` hook
+ */
+ onConflictingLibraryRedirect?: (request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void;
+}
+
+export interface Position {
+ source: string;
+ line: number;
+ column: number;
+}
+
+export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */;
+export function getErrorSource(error: Error): string | null;
+export function mapSourcePosition(position: Position): Position;
+export function retrieveSourceMap(source: string): UrlAndMap | null;
+export function resetRetrieveHandlers(): void;
+
+/**
+ * Install SourceMap support.
+ * @param options Can be used to e.g. disable uncaughtException handler.
+ */
+export function install(options?: Options): void;
+
+/**
+ * Uninstall SourceMap support.
+ */
+export function uninstall(): void;
diff --git a/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.js b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.js
new file mode 100644
index 0000000000000000000000000000000000000000..ad830b62f47db3f0d04843dde5649a4b03fbcfae
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@cspotcode/source-map-support/source-map-support.js
@@ -0,0 +1,938 @@
+const { TraceMap, originalPositionFor, AnyMap } = require('@jridgewell/trace-mapping');
+var path = require('path');
+const { fileURLToPath, pathToFileURL } = require('url');
+var util = require('util');
+
+var fs;
+try {
+ fs = require('fs');
+ if (!fs.existsSync || !fs.readFileSync) {
+ // fs doesn't have all methods we need
+ fs = null;
+ }
+} catch (err) {
+ /* nop */
+}
+
+/**
+ * Requires a module which is protected against bundler minification.
+ *
+ * @param {NodeModule} mod
+ * @param {string} request
+ */
+function dynamicRequire(mod, request) {
+ return mod.require(request);
+}
+
+/**
+ * @typedef {{
+ * enabled: boolean;
+ * originalValue: any;
+ * installedValue: any;
+ * }} HookState
+ * Used for installing and uninstalling hooks
+ */
+
+// Increment this if the format of sharedData changes in a breaking way.
+var sharedDataVersion = 1;
+
+/**
+ * @template T
+ * @param {T} defaults
+ * @returns {T}
+ */
+function initializeSharedData(defaults) {
+ var sharedDataKey = 'source-map-support/sharedData';
+ if (typeof Symbol !== 'undefined') {
+ sharedDataKey = Symbol.for(sharedDataKey);
+ }
+ var sharedData = this[sharedDataKey];
+ if (!sharedData) {
+ sharedData = { version: sharedDataVersion };
+ if (Object.defineProperty) {
+ Object.defineProperty(this, sharedDataKey, { value: sharedData });
+ } else {
+ this[sharedDataKey] = sharedData;
+ }
+ }
+ if (sharedDataVersion !== sharedData.version) {
+ throw new Error("Multiple incompatible instances of source-map-support were loaded");
+ }
+ for (var key in defaults) {
+ if (!(key in sharedData)) {
+ sharedData[key] = defaults[key];
+ }
+ }
+ return sharedData;
+}
+
+// If multiple instances of source-map-support are loaded into the same
+// context, they shouldn't overwrite each other. By storing handlers, caches,
+// and other state on a shared object, different instances of
+// source-map-support can work together in a limited way. This does require
+// that future versions of source-map-support continue to support the fields on
+// this object. If this internal contract ever needs to be broken, increment
+// sharedDataVersion. (This version number is not the same as any of the
+// package's version numbers, which should reflect the *external* API of
+// source-map-support.)
+var sharedData = initializeSharedData({
+
+ // Only install once if called multiple times
+ // Remember how the environment looked before installation so we can restore if able
+ /** @type {HookState} */
+ errorPrepareStackTraceHook: undefined,
+ /** @type {HookState} */
+ processEmitHook: undefined,
+ /** @type {HookState} */
+ moduleResolveFilenameHook: undefined,
+
+ /** @type {Array<(request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void>} */
+ onConflictingLibraryRedirectArr: [],
+
+ // If true, the caches are reset before a stack trace formatting operation
+ emptyCacheBetweenOperations: false,
+
+ // Maps a file path to a string containing the file contents
+ fileContentsCache: Object.create(null),
+
+ // Maps a file path to a source map for that file
+ /** @type {Record C:/dir/file
+ '/'; // file:///root-dir/file -> /root-dir/file
+ });
+ }
+ const key = getCacheKey(path);
+ if(hasFileContentsCacheFromKey(key)) {
+ return getFileContentsCacheFromKey(key);
+ }
+
+ var contents = '';
+ try {
+ if (!fs) {
+ // Use SJAX if we are in the browser
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', path, /** async */ false);
+ xhr.send(null);
+ if (xhr.readyState === 4 && xhr.status === 200) {
+ contents = xhr.responseText;
+ }
+ } else if (fs.existsSync(path)) {
+ // Otherwise, use the filesystem
+ contents = fs.readFileSync(path, 'utf8');
+ }
+ } catch (er) {
+ /* ignore any errors */
+ }
+
+ return setFileContentsCache(path, contents);
+});
+
+// Support URLs relative to a directory, but be careful about a protocol prefix
+// in case we are in the browser (i.e. directories may start with "http://" or "file:///")
+function supportRelativeURL(file, url) {
+ if(!file) return url;
+ // given that this happens within error formatting codepath, probably best to
+ // fallback instead of throwing if anything goes wrong
+ try {
+ // if should output a URL
+ if(isAbsoluteUrl(file) || isSchemeRelativeUrl(file)) {
+ if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
+ return new URL(url, file).toString();
+ }
+ if(path.isAbsolute(url)) {
+ return new URL(pathToFileURL(url), file).toString();
+ }
+ // url is relative path or URL
+ return new URL(url.replace(/\\/g, '/'), file).toString();
+ }
+ // if should output a path (unless URL is something like https://)
+ if(path.isAbsolute(file)) {
+ if(isFileUrl(url)) {
+ return fileURLToPath(url);
+ }
+ if(isSchemeRelativeUrl(url)) {
+ return fileURLToPath(new URL(url, 'file://'));
+ }
+ if(isAbsoluteUrl(url)) {
+ // url is a non-file URL
+ // Go with the URL
+ return url;
+ }
+ if(path.isAbsolute(url)) {
+ // Normalize at all? decodeURI or normalize slashes?
+ return path.normalize(url);
+ }
+ // url is relative path or URL
+ return path.join(file, '..', decodeURI(url));
+ }
+ // If we get here, file is relative.
+ // Shouldn't happen since node identifies modules with absolute paths or URLs.
+ // But we can take a stab at returning something meaningful anyway.
+ if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
+ return url;
+ }
+ return path.join(file, '..', url);
+ } catch(e) {
+ return url;
+ }
+}
+
+// Return pathOrUrl in the same style as matchStyleOf: either a file URL or a native path
+function matchStyleOfPathOrUrl(matchStyleOf, pathOrUrl) {
+ try {
+ if(isAbsoluteUrl(matchStyleOf) || isSchemeRelativeUrl(matchStyleOf)) {
+ if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) return pathOrUrl;
+ if(path.isAbsolute(pathOrUrl)) return pathToFileURL(pathOrUrl).toString();
+ } else if(path.isAbsolute(matchStyleOf)) {
+ if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) {
+ return fileURLToPath(new URL(pathOrUrl, 'file://'));
+ }
+ }
+ return pathOrUrl;
+ } catch(e) {
+ return pathOrUrl;
+ }
+}
+
+function retrieveSourceMapURL(source) {
+ var fileData;
+
+ if (isInBrowser()) {
+ try {
+ var xhr = new XMLHttpRequest();
+ xhr.open('GET', source, false);
+ xhr.send(null);
+ fileData = xhr.readyState === 4 ? xhr.responseText : null;
+
+ // Support providing a sourceMappingURL via the SourceMap header
+ var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
+ xhr.getResponseHeader("X-SourceMap");
+ if (sourceMapHeader) {
+ return sourceMapHeader;
+ }
+ } catch (e) {
+ }
+ }
+
+ // Get the URL of the source map
+ fileData = retrieveFile(tryFileURLToPath(source));
+ var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
+ // Keep executing the search to find the *last* sourceMappingURL to avoid
+ // picking up sourceMappingURLs from comments, strings, etc.
+ var lastMatch, match;
+ while (match = re.exec(fileData)) lastMatch = match;
+ if (!lastMatch) return null;
+ return lastMatch[1];
+};
+
+// Can be overridden by the retrieveSourceMap option to install. Takes a
+// generated source filename; returns a {map, optional url} object, or null if
+// there is no source map. The map field may be either a string or the parsed
+// JSON object (ie, it must be a valid argument to the SourceMapConsumer
+// constructor).
+/** @type {(source: string) => import('./source-map-support').UrlAndMap | null} */
+var retrieveSourceMap = handlerExec(sharedData.retrieveMapHandlers, sharedData.internalRetrieveMapHandlers);
+sharedData.internalRetrieveMapHandlers.push(function(source) {
+ var sourceMappingURL = retrieveSourceMapURL(source);
+ if (!sourceMappingURL) return null;
+
+ // Read the contents of the source map
+ var sourceMapData;
+ if (reSourceMap.test(sourceMappingURL)) {
+ // Support source map URL as a data url
+ var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
+ sourceMapData = Buffer.from(rawData, "base64").toString();
+ sourceMappingURL = source;
+ } else {
+ // Support source map URLs relative to the source URL
+ sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
+ sourceMapData = retrieveFile(tryFileURLToPath(sourceMappingURL));
+ }
+
+ if (!sourceMapData) {
+ return null;
+ }
+
+ return {
+ url: sourceMappingURL,
+ map: sourceMapData
+ };
+});
+
+function mapSourcePosition(position) {
+ var sourceMap = getSourceMapCache(position.source);
+ if (!sourceMap) {
+ // Call the (overrideable) retrieveSourceMap function to get the source map.
+ var urlAndMap = retrieveSourceMap(position.source);
+ if (urlAndMap) {
+ sourceMap = setSourceMapCache(position.source, {
+ url: urlAndMap.url,
+ map: new AnyMap(urlAndMap.map, urlAndMap.url)
+ });
+
+ // Overwrite trace-mapping's resolutions, because they do not handle
+ // Windows paths the way we want.
+ // TODO Remove now that windows path support was added to resolve-uri and thus trace-mapping?
+ sourceMap.map.resolvedSources = sourceMap.map.sources.map(s => supportRelativeURL(sourceMap.url, s));
+
+ // Load all sources stored inline with the source map into the file cache
+ // to pretend like they are already loaded. They may not exist on disk.
+ if (sourceMap.map.sourcesContent) {
+ sourceMap.map.resolvedSources.forEach(function(resolvedSource, i) {
+ var contents = sourceMap.map.sourcesContent[i];
+ if (contents) {
+ setFileContentsCache(resolvedSource, contents);
+ }
+ });
+ }
+ } else {
+ sourceMap = setSourceMapCache(position.source, {
+ url: null,
+ map: null
+ });
+ }
+ }
+
+ // Resolve the source URL relative to the URL of the source map
+ if (sourceMap && sourceMap.map) {
+ var originalPosition = originalPositionFor(sourceMap.map, position);
+
+ // Only return the original position if a matching line was found. If no
+ // matching line is found then we return position instead, which will cause
+ // the stack trace to print the path and line for the compiled file. It is
+ // better to give a precise location in the compiled file than a vague
+ // location in the original file.
+ if (originalPosition.source !== null) {
+ // originalPosition.source has *already* been resolved against sourceMap.url
+ // so is *already* as absolute as possible.
+ // However, we want to ensure we output in same format as input: URL or native path
+ originalPosition.source = matchStyleOfPathOrUrl(
+ position.source, originalPosition.source);
+ return originalPosition;
+ }
+ }
+
+ return position;
+}
+
+// Parses code generated by FormatEvalOrigin(), a function inside V8:
+// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
+function mapEvalOrigin(origin) {
+ // Most eval() calls are in this format
+ var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
+ if (match) {
+ var position = mapSourcePosition({
+ source: match[2],
+ line: +match[3],
+ column: match[4] - 1
+ });
+ return 'eval at ' + match[1] + ' (' + position.source + ':' +
+ position.line + ':' + (position.column + 1) + ')';
+ }
+
+ // Parse nested eval() calls using recursion
+ match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
+ if (match) {
+ return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
+ }
+
+ // Make sure we still return useful information if we didn't find anything
+ return origin;
+}
+
+// This is copied almost verbatim from the V8 source code at
+// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
+// Update 2022-04-29:
+// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/builtins/builtins-callsite.cc#L175-L179
+// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L795-L804
+// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L717-L750
+// The implementation of wrapCallSite() used to just forward to the actual source
+// code of CallSite.prototype.toString but unfortunately a new release of V8
+// did something to the prototype chain and broke the shim. The only fix I
+// could find was copy/paste.
+function CallSiteToString() {
+ var fileName;
+ var fileLocation = "";
+ if (this.isNative()) {
+ fileLocation = "native";
+ } else {
+ fileName = this.getScriptNameOrSourceURL();
+ if (!fileName && this.isEval()) {
+ fileLocation = this.getEvalOrigin();
+ fileLocation += ", "; // Expecting source position to follow.
+ }
+
+ if (fileName) {
+ fileLocation += fileName;
+ } else {
+ // Source code does not originate from a file and is not native, but we
+ // can still get the source position inside the source string, e.g. in
+ // an eval string.
+ fileLocation += "";
+ }
+ var lineNumber = this.getLineNumber();
+ if (lineNumber != null) {
+ fileLocation += ":" + lineNumber;
+ var columnNumber = this.getColumnNumber();
+ if (columnNumber) {
+ fileLocation += ":" + columnNumber;
+ }
+ }
+ }
+
+ var line = "";
+ var isAsync = this.isAsync ? this.isAsync() : false;
+ if(isAsync) {
+ line += 'async ';
+ var isPromiseAll = this.isPromiseAll ? this.isPromiseAll() : false;
+ var isPromiseAny = this.isPromiseAny ? this.isPromiseAny() : false;
+ if(isPromiseAny || isPromiseAll) {
+ line += isPromiseAll ? 'Promise.all (index ' : 'Promise.any (index ';
+ var promiseIndex = this.getPromiseIndex();
+ line += promiseIndex + ')';
+ }
+ }
+ var functionName = this.getFunctionName();
+ var addSuffix = true;
+ var isConstructor = this.isConstructor();
+ var isMethodCall = !(this.isToplevel() || isConstructor);
+ if (isMethodCall) {
+ var typeName = this.getTypeName();
+ // Fixes shim to be backward compatable with Node v0 to v4
+ if (typeName === "[object Object]") {
+ typeName = "null";
+ }
+ var methodName = this.getMethodName();
+ if (functionName) {
+ if (typeName && functionName.indexOf(typeName) != 0) {
+ line += typeName + ".";
+ }
+ line += functionName;
+ if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
+ line += " [as " + methodName + "]";
+ }
+ } else {
+ line += typeName + "." + (methodName || "");
+ }
+ } else if (isConstructor) {
+ line += "new " + (functionName || "");
+ } else if (functionName) {
+ line += functionName;
+ } else {
+ line += fileLocation;
+ addSuffix = false;
+ }
+ if (addSuffix) {
+ line += " (" + fileLocation + ")";
+ }
+ return line;
+}
+
+function cloneCallSite(frame) {
+ var object = {};
+ Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
+ object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
+ });
+ object.toString = CallSiteToString;
+ return object;
+}
+
+function wrapCallSite(frame, state) {
+ // provides interface backward compatibility
+ if (state === undefined) {
+ state = { nextPosition: null, curPosition: null }
+ }
+ if(frame.isNative()) {
+ state.curPosition = null;
+ return frame;
+ }
+
+ // Most call sites will return the source file from getFileName(), but code
+ // passed to eval() ending in "//# sourceURL=..." will return the source file
+ // from getScriptNameOrSourceURL() instead
+ var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
+ if (source) {
+ // v8 does not expose its internal isWasm, etc methods, so we do this instead.
+ if(source.startsWith('wasm://')) {
+ state.curPosition = null;
+ return frame;
+ }
+
+ var line = frame.getLineNumber();
+ var column = frame.getColumnNumber() - 1;
+
+ // Fix position in Node where some (internal) code is prepended.
+ // See https://github.com/evanw/node-source-map-support/issues/36
+ // Header removed in node at ^10.16 || >=11.11.0
+ // v11 is not an LTS candidate, we can just test the one version with it.
+ // Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11
+ var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
+ var headerLength = noHeader.test(process.version) ? 0 : 62;
+ if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
+ column -= headerLength;
+ }
+
+ var position = mapSourcePosition({
+ source: source,
+ line: line,
+ column: column
+ });
+ state.curPosition = position;
+ frame = cloneCallSite(frame);
+ var originalFunctionName = frame.getFunctionName;
+ frame.getFunctionName = function() {
+ if (state.nextPosition == null) {
+ return originalFunctionName();
+ }
+ return state.nextPosition.name || originalFunctionName();
+ };
+ frame.getFileName = function() { return position.source; };
+ frame.getLineNumber = function() { return position.line; };
+ frame.getColumnNumber = function() { return position.column + 1; };
+ frame.getScriptNameOrSourceURL = function() { return position.source; };
+ return frame;
+ }
+
+ // Code called using eval() needs special handling
+ var origin = frame.isEval() && frame.getEvalOrigin();
+ if (origin) {
+ origin = mapEvalOrigin(origin);
+ frame = cloneCallSite(frame);
+ frame.getEvalOrigin = function() { return origin; };
+ return frame;
+ }
+
+ // If we get here then we were unable to change the source position
+ return frame;
+}
+
+var kIsNodeError = undefined;
+try {
+ // Get a deliberate ERR_INVALID_ARG_TYPE
+ // TODO is there a better way to reliably get an instance of NodeError?
+ path.resolve(123);
+} catch(e) {
+ const symbols = Object.getOwnPropertySymbols(e);
+ const symbol = symbols.find(function (s) {return s.toString().indexOf('kIsNodeError') >= 0});
+ if(symbol) kIsNodeError = symbol;
+}
+
+const ErrorPrototypeToString = (err) =>Error.prototype.toString.call(err);
+
+/** @param {HookState} hookState */
+function createPrepareStackTrace(hookState) {
+ return prepareStackTrace;
+
+ // This function is part of the V8 stack trace API, for more info see:
+ // https://v8.dev/docs/stack-trace-api
+ function prepareStackTrace(error, stack) {
+ if(!hookState.enabled) return hookState.originalValue.apply(this, arguments);
+
+ if (sharedData.emptyCacheBetweenOperations) {
+ clearCaches();
+ }
+
+ // node gives its own errors special treatment. Mimic that behavior
+ // https://github.com/nodejs/node/blob/3cbaabc4622df1b4009b9d026a1a970bdbae6e89/lib/internal/errors.js#L118-L128
+ // https://github.com/nodejs/node/pull/39182
+ var errorString;
+ if (kIsNodeError) {
+ if(kIsNodeError in error) {
+ errorString = `${error.name} [${error.code}]: ${error.message}`;
+ } else {
+ errorString = ErrorPrototypeToString(error);
+ }
+ } else {
+ var name = error.name || 'Error';
+ var message = error.message || '';
+ errorString = message ? name + ": " + message : name;
+ }
+
+ var state = { nextPosition: null, curPosition: null };
+ var processedStack = [];
+ for (var i = stack.length - 1; i >= 0; i--) {
+ processedStack.push('\n at ' + wrapCallSite(stack[i], state));
+ state.nextPosition = state.curPosition;
+ }
+ state.curPosition = state.nextPosition = null;
+ return errorString + processedStack.reverse().join('');
+ }
+}
+
+// Generate position and snippet of original source with pointer
+function getErrorSource(error) {
+ var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
+ if (match) {
+ var source = match[1];
+ var line = +match[2];
+ var column = +match[3];
+
+ // Support the inline sourceContents inside the source map
+ var contents = getFileContentsCache(source);
+
+ const sourceAsPath = tryFileURLToPath(source);
+
+ // Support files on disk
+ if (!contents && fs && fs.existsSync(sourceAsPath)) {
+ try {
+ contents = fs.readFileSync(sourceAsPath, 'utf8');
+ } catch (er) {
+ contents = '';
+ }
+ }
+
+ // Format the line from the original source code like node does
+ if (contents) {
+ var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
+ if (code) {
+ return source + ':' + line + '\n' + code + '\n' +
+ new Array(column).join(' ') + '^';
+ }
+ }
+ }
+ return null;
+}
+
+function printFatalErrorUponExit (error) {
+ var source = getErrorSource(error);
+
+ // Ensure error is printed synchronously and not truncated
+ if (process.stderr._handle && process.stderr._handle.setBlocking) {
+ process.stderr._handle.setBlocking(true);
+ }
+
+ if (source) {
+ console.error(source);
+ }
+
+ // Matches node's behavior for colorized output
+ console.error(
+ util.inspect(error, {
+ customInspect: false,
+ colors: process.stderr.isTTY
+ })
+ );
+}
+
+function shimEmitUncaughtException () {
+ const originalValue = process.emit;
+ var hook = sharedData.processEmitHook = {
+ enabled: true,
+ originalValue,
+ installedValue: undefined
+ };
+ var isTerminatingDueToFatalException = false;
+ var fatalException;
+
+ process.emit = sharedData.processEmitHook.installedValue = function (type) {
+ const hadListeners = originalValue.apply(this, arguments);
+ if(hook.enabled) {
+ if (type === 'uncaughtException' && !hadListeners) {
+ isTerminatingDueToFatalException = true;
+ fatalException = arguments[1];
+ process.exit(1);
+ }
+ if (type === 'exit' && isTerminatingDueToFatalException) {
+ printFatalErrorUponExit(fatalException);
+ }
+ }
+ return hadListeners;
+ };
+}
+
+var originalRetrieveFileHandlers = sharedData.retrieveFileHandlers.slice(0);
+var originalRetrieveMapHandlers = sharedData.retrieveMapHandlers.slice(0);
+
+exports.wrapCallSite = wrapCallSite;
+exports.getErrorSource = getErrorSource;
+exports.mapSourcePosition = mapSourcePosition;
+exports.retrieveSourceMap = retrieveSourceMap;
+
+exports.install = function(options) {
+ options = options || {};
+
+ if (options.environment) {
+ environment = options.environment;
+ if (["node", "browser", "auto"].indexOf(environment) === -1) {
+ throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}")
+ }
+ }
+
+ // Use dynamicRequire to avoid including in browser bundles
+ var Module = dynamicRequire(module, 'module');
+
+ // Redirect subsequent imports of "source-map-support"
+ // to this package
+ const {redirectConflictingLibrary = true, onConflictingLibraryRedirect} = options;
+ if(redirectConflictingLibrary) {
+ if (!sharedData.moduleResolveFilenameHook) {
+ const originalValue = Module._resolveFilename;
+ const moduleResolveFilenameHook = sharedData.moduleResolveFilenameHook = {
+ enabled: true,
+ originalValue,
+ installedValue: undefined,
+ }
+ Module._resolveFilename = sharedData.moduleResolveFilenameHook.installedValue = function (request, parent, isMain, options) {
+ if (moduleResolveFilenameHook.enabled) {
+ // Match all source-map-support entrypoints: source-map-support, source-map-support/register
+ let requestRedirect;
+ if (request === 'source-map-support') {
+ requestRedirect = './';
+ } else if (request === 'source-map-support/register') {
+ requestRedirect = './register';
+ }
+
+ if (requestRedirect !== undefined) {
+ const newRequest = require.resolve(requestRedirect);
+ for (const cb of sharedData.onConflictingLibraryRedirectArr) {
+ cb(request, parent, isMain, options, newRequest);
+ }
+ request = newRequest;
+ }
+ }
+
+ return originalValue.call(this, request, parent, isMain, options);
+ }
+ }
+ if (onConflictingLibraryRedirect) {
+ sharedData.onConflictingLibraryRedirectArr.push(onConflictingLibraryRedirect);
+ }
+ }
+
+ // Allow sources to be found by methods other than reading the files
+ // directly from disk.
+ if (options.retrieveFile) {
+ if (options.overrideRetrieveFile) {
+ sharedData.retrieveFileHandlers.length = 0;
+ }
+
+ sharedData.retrieveFileHandlers.unshift(options.retrieveFile);
+ }
+
+ // Allow source maps to be found by methods other than reading the files
+ // directly from disk.
+ if (options.retrieveSourceMap) {
+ if (options.overrideRetrieveSourceMap) {
+ sharedData.retrieveMapHandlers.length = 0;
+ }
+
+ sharedData.retrieveMapHandlers.unshift(options.retrieveSourceMap);
+ }
+
+ // Support runtime transpilers that include inline source maps
+ if (options.hookRequire && !isInBrowser()) {
+ var $compile = Module.prototype._compile;
+
+ if (!$compile.__sourceMapSupport) {
+ Module.prototype._compile = function(content, filename) {
+ setFileContentsCache(filename, content);
+ setSourceMapCache(filename, undefined);
+ return $compile.call(this, content, filename);
+ };
+
+ Module.prototype._compile.__sourceMapSupport = true;
+ }
+ }
+
+ // Configure options
+ if (!sharedData.emptyCacheBetweenOperations) {
+ sharedData.emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
+ options.emptyCacheBetweenOperations : false;
+ }
+
+
+ // Install the error reformatter
+ if (!sharedData.errorPrepareStackTraceHook) {
+ const originalValue = Error.prepareStackTrace;
+ sharedData.errorPrepareStackTraceHook = {
+ enabled: true,
+ originalValue,
+ installedValue: undefined
+ };
+ Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.installedValue = createPrepareStackTrace(sharedData.errorPrepareStackTraceHook);
+ }
+
+ if (!sharedData.processEmitHook) {
+ var installHandler = 'handleUncaughtExceptions' in options ?
+ options.handleUncaughtExceptions : true;
+
+ // Do not override 'uncaughtException' with our own handler in Node.js
+ // Worker threads. Workers pass the error to the main thread as an event,
+ // rather than printing something to stderr and exiting.
+ try {
+ // We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify.
+ var worker_threads = dynamicRequire(module, 'worker_threads');
+ if (worker_threads.isMainThread === false) {
+ installHandler = false;
+ }
+ } catch(e) {}
+
+ // Provide the option to not install the uncaught exception handler. This is
+ // to support other uncaught exception handlers (in test frameworks, for
+ // example). If this handler is not installed and there are no other uncaught
+ // exception handlers, uncaught exceptions will be caught by node's built-in
+ // exception handler and the process will still be terminated. However, the
+ // generated JavaScript code will be shown above the stack trace instead of
+ // the original source code.
+ if (installHandler && hasGlobalProcessEventEmitter()) {
+ shimEmitUncaughtException();
+ }
+ }
+};
+
+exports.uninstall = function() {
+ if(sharedData.processEmitHook) {
+ // Disable behavior
+ sharedData.processEmitHook.enabled = false;
+ // If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
+ if(process.emit === sharedData.processEmitHook.installedValue) {
+ process.emit = sharedData.processEmitHook.originalValue;
+ }
+ sharedData.processEmitHook = undefined;
+ }
+ if(sharedData.errorPrepareStackTraceHook) {
+ // Disable behavior
+ sharedData.errorPrepareStackTraceHook.enabled = false;
+ // If possible or necessary, remove our hook function.
+ // In vanilla environments, prepareStackTrace is `undefined`.
+ // We cannot delegate to `undefined` the way we can to a function w/`.apply()`; our only option is to remove the function.
+ // If we are the *first* hook installed, and another was installed on top of us, we have no choice but to remove both.
+ if(Error.prepareStackTrace === sharedData.errorPrepareStackTraceHook.installedValue || typeof sharedData.errorPrepareStackTraceHook.originalValue !== 'function') {
+ Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.originalValue;
+ }
+ sharedData.errorPrepareStackTraceHook = undefined;
+ }
+ if (sharedData.moduleResolveFilenameHook) {
+ // Disable behavior
+ sharedData.moduleResolveFilenameHook.enabled = false;
+ // If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
+ var Module = dynamicRequire(module, 'module');
+ if(Module._resolveFilename === sharedData.moduleResolveFilenameHook.installedValue) {
+ Module._resolveFilename = sharedData.moduleResolveFilenameHook.originalValue;
+ }
+ sharedData.moduleResolveFilenameHook = undefined;
+ }
+ sharedData.onConflictingLibraryRedirectArr.length = 0;
+}
+
+exports.resetRetrieveHandlers = function() {
+ sharedData.retrieveFileHandlers.length = 0;
+ sharedData.retrieveMapHandlers.length = 0;
+}
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/LICENSE b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..639cdc6c98cad0a67de011da403716f83550897f
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/LICENSE
@@ -0,0 +1,20 @@
+MIT License
+
+Copyright (c) 2021-present Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/README.md b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..c4b69b2ea13621bfb0fab5544bc16ad0f6ff4b73
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/README.md
@@ -0,0 +1,4 @@
+# @floating-ui/core
+
+This is the platform-agnostic core of Floating UI, exposing the main
+`computePosition` function but no platform interface logic.
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..0952e6c2cf9f918d525ab8c1ad14d6ba987c198b
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
@@ -0,0 +1 @@
+const t=["top","right","bottom","left"],e=["start","end"],n=t.reduce(((t,n)=>t.concat(n,n+"-"+e[0],n+"-"+e[1])),[]),r=Math.min,i=Math.max,o={left:"right",right:"left",bottom:"top",top:"bottom"};function a(t,e,n){return i(t,r(e,n))}function l(t,e){return"function"==typeof t?t(e):t}function s(t){return t.split("-")[0]}function c(t){return t.split("-")[1]}function f(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function u(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function d(t){return f(u(t))}function g(t,e,n){void 0===n&&(n=!1);const r=c(t),i=d(t),o=m(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=b(a)),[a,b(a)]}function p(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const h=["left","right"],y=["right","left"],w=["top","bottom"],x=["bottom","top"];function v(t,e,n,r){const i=c(t);let o=function(t,e,n){switch(t){case"top":case"bottom":return n?e?y:h:e?h:y;case"left":case"right":return e?w:x;default:return[]}}(s(t),"start"===n,r);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(p)))),o}function b(t){const e=s(t);return o[e]+t.slice(e.length)}function A(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function R(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function O(t,e,n){let{reference:r,floating:i}=t;const o=u(e),a=d(e),l=m(a),f=s(e),g="y"===o,p=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,y=r[l]/2-i[l]/2;let w;switch(f){case"top":w={x:p,y:r.y-i.height};break;case"bottom":w={x:p,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:h};break;case"left":w={x:r.x-i.width,y:h};break;default:w={x:r.x,y:r.y}}switch(c(e)){case"start":w[a]-=y*(n&&g?-1:1);break;case"end":w[a]+=y*(n&&g?-1:1)}return w}async function D(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:c}=t,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:u="floating",altBoundary:d=!1,padding:g=0}=l(e,t),p=A(g),h=s[d?"floating"===u?"reference":"floating":u],y=R(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(h)))||n?h:h.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:f,rootBoundary:m,strategy:c})),w="floating"===u?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await(null==o.isElement?void 0:o.isElement(x))&&await(null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},b=R(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:c}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}const P=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:D},s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:m}=O(c,r,s),u=r,d=0;const g={};for(let n=0;n({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:f,elements:u,middlewareData:g}=e,{element:p,padding:h=0}=l(t,e)||{};if(null==p)return{};const y=A(h),w={x:n,y:i},x=d(o),v=m(x),b=await f.getDimensions(p),R="y"===x,O=R?"top":"left",D=R?"bottom":"right",P=R?"clientHeight":"clientWidth",E=s.reference[v]+s.reference[x]-w[x]-s.floating[v],T=w[x]-s.reference[x],L=await(null==f.getOffsetParent?void 0:f.getOffsetParent(p));let k=L?L[P]:0;k&&await(null==f.isElement?void 0:f.isElement(L))||(k=u.floating[P]||s.floating[v]);const C=E/2-T/2,H=k/2-b[v]/2-1,B=r(y[O],H),S=r(y[D],H),F=B,M=k-b[v]-S,V=k/2-b[v]/2+C,W=a(F,V,M),j=!g.arrow&&null!=c(o)&&V!==W&&s.reference[v]/2-(Vc(e)===t)),...n.filter((e=>c(e)!==t))]:n.filter((t=>s(t)===t))).filter((n=>!t||c(n)===t||!!e&&p(n)!==n))}(y||null,x,w):w,A=await u.detectOverflow(e,v),R=(null==(r=f.autoPlacement)?void 0:r.index)||0,O=b[R];if(null==O)return{};const D=g(O,a,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(m!==O)return{reset:{placement:b[0]}};const P=[A[s(O)],A[D[0]],A[D[1]]],E=[...(null==(i=f.autoPlacement)?void 0:i.overflows)||[],{placement:O,overflows:P}],T=b[R+1];if(T)return{data:{index:R+1,overflows:E},reset:{placement:T}};const L=E.map((t=>{const e=c(t.placement);return[t.placement,e&&h?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),k=(null==(o=L.filter((t=>t[2].slice(0,c(t[0])?2:3).every((t=>t<=0))))[0])?void 0:o[0])||L[0][0];return k!==m?{data:{index:R+1,overflows:E},reset:{placement:k}}:{}}}},L=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:f,elements:m}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:A=!0,...R}=l(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const O=s(i),D=u(c),P=s(c)===c,E=await(null==f.isRTL?void 0:f.isRTL(m.floating)),T=y||(P||!A?[b(c)]:function(t){const e=b(t);return[p(t),e,p(e)]}(c)),L="none"!==x;!y&&L&&T.push(...v(c,A,x,E));const k=[c,...T],C=await f.detectOverflow(e,R),H=[];let B=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&H.push(C[O]),h){const t=g(i,a,E);H.push(C[t[0]],C[t[1]])}if(B=[...B,{placement:i,overflows:H}],!H.every((t=>t<=0))){var S,F;const t=((null==(S=o.flip)?void 0:S.index)||0)+1,e=k[t];if(e){if(!("alignment"===h&&D!==u(e))||B.every((t=>u(t.placement)!==D||t.overflows[0]>0)))return{data:{index:t,overflows:B},reset:{placement:e}}}let n=null==(F=B.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(w){case"bestFit":{var M;const t=null==(M=B.filter((t=>{if(L){const e=u(t.placement);return e===D||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}};function k(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function C(e){return t.some((t=>e[t]>=0))}const H=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...o}=l(t,e);switch(i){case"referenceHidden":{const t=k(await r.detectOverflow(e,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:C(t)}}}case"escaped":{const t=k(await r.detectOverflow(e,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:C(t)}}}default:return{}}}}};function B(t){const e=r(...t.map((t=>t.left))),n=r(...t.map((t=>t.top)));return{x:e,y:n,width:i(...t.map((t=>t.right)))-e,height:i(...t.map((t=>t.bottom)))-n}}const S=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:o,rects:a,platform:c,strategy:f}=e,{padding:m=2,x:d,y:g}=l(t,e),p=Array.from(await(null==c.getClientRects?void 0:c.getClientRects(o.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let r=null;for(let t=0;tr.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map((t=>R(B(t))))}(p),y=R(B(p)),w=A(m);const x=await c.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=d&&null!=g)return h.find((t=>d>t.left-w.left&&dt.top-w.top&&g=2){if("y"===u(n)){const t=h[0],e=h[h.length-1],r="top"===s(n),i=t.top,o=e.bottom,a=r?t.left:e.left,l=r?t.right:e.right;return{top:i,bottom:o,left:a,right:l,width:l-a,height:o-i,x:a,y:i}}const t="left"===s(n),e=i(...h.map((t=>t.right))),o=r(...h.map((t=>t.left))),a=h.filter((n=>t?n.left===o:n.right===e)),l=a[0].top,c=a[a.length-1].bottom;return{top:l,bottom:c,left:o,right:e,width:e-o,height:c-l,x:o,y:l}}return y}},floating:o.floating,strategy:f});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},F=new Set(["left","top"]);const M=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:a,middlewareData:f}=e,m=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=s(n),f=c(n),m="y"===u(n),d=F.has(a)?-1:1,g=o&&m?-1:1,p=l(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return f&&"number"==typeof w&&(y="end"===f?-1*w:w),m?{x:y*g,y:h*d}:{x:h*d,y:y*g}}(e,t);return a===(null==(n=f.offset)?void 0:n.placement)&&null!=(r=f.arrow)&&r.alignmentOffset?{}:{x:i+m.x,y:o+m.y,data:{...m,placement:a}}}}},V=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:o}=e,{mainAxis:c=!0,crossAxis:m=!1,limiter:d={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...g}=l(t,e),p={x:n,y:r},h=await o.detectOverflow(e,g),y=u(s(i)),w=f(y);let x=p[w],v=p[y];if(c){const t="y"===w?"bottom":"right";x=a(x+h["y"===w?"top":"left"],x,x-h[t])}if(m){const t="y"===y?"bottom":"right";v=a(v+h["y"===y?"top":"left"],v,v-h[t])}const b=d.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[w]:c,[y]:m}}}}}},W=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=e,{offset:c=0,mainAxis:m=!0,crossAxis:d=!0}=l(t,e),g={x:n,y:r},p=u(i),h=f(p);let y=g[h],w=g[p];const x=l(c,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(m){const t="y"===h?"height":"width",e=o.reference[h]-o.floating[t]+v.mainAxis,n=o.reference[h]+o.reference[t]-v.mainAxis;yn&&(y=n)}if(d){var b,A;const t="y"===h?"width":"height",e=F.has(s(i)),n=o.reference[p]-o.floating[t]+(e&&(null==(b=a.offset)?void 0:b[p])||0)+(e?0:v.crossAxis),r=o.reference[p]+o.reference[t]+(e?0:(null==(A=a.offset)?void 0:A[p])||0)-(e?v.crossAxis:0);wr&&(w=r)}return{[h]:y,[p]:w}}}},j=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:a,rects:f,platform:m,elements:d}=e,{apply:g=()=>{},...p}=l(t,e),h=await m.detectOverflow(e,p),y=s(a),w=c(a),x="y"===u(a),{width:v,height:b}=f.floating;let A,R;"top"===y||"bottom"===y?(A=y,R=w===(await(null==m.isRTL?void 0:m.isRTL(d.floating))?"start":"end")?"left":"right"):(R=y,A="end"===w?"top":"bottom");const O=b-h.top-h.bottom,D=v-h.left-h.right,P=r(b-h[A],O),E=r(v-h[R],D),T=!e.middlewareData.shift;let L=P,k=E;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(k=D),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(L=O),T&&!w){const t=i(h.left,0),e=i(h.right,0),n=i(h.top,0),r=i(h.bottom,0);x?k=v-2*(0!==t||0!==e?t+e:i(h.left,h.right)):L=b-2*(0!==n||0!==r?n+r:i(h.top,h.bottom))}await g({...e,availableWidth:k,availableHeight:L});const C=await m.getDimensions(d.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}};export{E as arrow,T as autoPlacement,P as computePosition,D as detectOverflow,L as flip,H as hide,S as inline,W as limitShift,M as offset,R as rectToClientRect,V as shift,j as size};
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..7765a1820d589573f3a29359df260a8ddb280975
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.browser.mjs
@@ -0,0 +1,1184 @@
+/**
+ * Custom positioning reference element.
+ * @see https://floating-ui.com/docs/virtual-elements
+ */
+
+const sides = ['top', 'right', 'bottom', 'left'];
+const alignments = ['start', 'end'];
+const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
+const min = Math.min;
+const max = Math.max;
+const oppositeSideMap = {
+ left: 'right',
+ right: 'left',
+ bottom: 'top',
+ top: 'bottom'
+};
+function clamp(start, value, end) {
+ return max(start, min(value, end));
+}
+function evaluate(value, param) {
+ return typeof value === 'function' ? value(param) : value;
+}
+function getSide(placement) {
+ return placement.split('-')[0];
+}
+function getAlignment(placement) {
+ return placement.split('-')[1];
+}
+function getOppositeAxis(axis) {
+ return axis === 'x' ? 'y' : 'x';
+}
+function getAxisLength(axis) {
+ return axis === 'y' ? 'height' : 'width';
+}
+function getSideAxis(placement) {
+ const firstChar = placement[0];
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
+}
+function getAlignmentAxis(placement) {
+ return getOppositeAxis(getSideAxis(placement));
+}
+function getAlignmentSides(placement, rects, rtl) {
+ if (rtl === void 0) {
+ rtl = false;
+ }
+ const alignment = getAlignment(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const length = getAxisLength(alignmentAxis);
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
+ if (rects.reference[length] > rects.floating[length]) {
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
+ }
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
+}
+function getExpandedPlacements(placement) {
+ const oppositePlacement = getOppositePlacement(placement);
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
+}
+function getOppositeAlignmentPlacement(placement) {
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
+}
+const lrPlacement = ['left', 'right'];
+const rlPlacement = ['right', 'left'];
+const tbPlacement = ['top', 'bottom'];
+const btPlacement = ['bottom', 'top'];
+function getSideList(side, isStart, rtl) {
+ switch (side) {
+ case 'top':
+ case 'bottom':
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
+ return isStart ? lrPlacement : rlPlacement;
+ case 'left':
+ case 'right':
+ return isStart ? tbPlacement : btPlacement;
+ default:
+ return [];
+ }
+}
+function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
+ const alignment = getAlignment(placement);
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
+ if (alignment) {
+ list = list.map(side => side + "-" + alignment);
+ if (flipAlignment) {
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
+ }
+ }
+ return list;
+}
+function getOppositePlacement(placement) {
+ const side = getSide(placement);
+ return oppositeSideMap[side] + placement.slice(side.length);
+}
+function expandPaddingObject(padding) {
+ return {
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
+ ...padding
+ };
+}
+function getPaddingObject(padding) {
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
+ top: padding,
+ right: padding,
+ bottom: padding,
+ left: padding
+ };
+}
+function rectToClientRect(rect) {
+ const {
+ x,
+ y,
+ width,
+ height
+ } = rect;
+ return {
+ width,
+ height,
+ top: y,
+ left: x,
+ right: x + width,
+ bottom: y + height,
+ x,
+ y
+ };
+}
+
+function computeCoordsFromPlacement(_ref, placement, rtl) {
+ let {
+ reference,
+ floating
+ } = _ref;
+ const sideAxis = getSideAxis(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const alignLength = getAxisLength(alignmentAxis);
+ const side = getSide(placement);
+ const isVertical = sideAxis === 'y';
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
+ let coords;
+ switch (side) {
+ case 'top':
+ coords = {
+ x: commonX,
+ y: reference.y - floating.height
+ };
+ break;
+ case 'bottom':
+ coords = {
+ x: commonX,
+ y: reference.y + reference.height
+ };
+ break;
+ case 'right':
+ coords = {
+ x: reference.x + reference.width,
+ y: commonY
+ };
+ break;
+ case 'left':
+ coords = {
+ x: reference.x - floating.width,
+ y: commonY
+ };
+ break;
+ default:
+ coords = {
+ x: reference.x,
+ y: reference.y
+ };
+ }
+ switch (getAlignment(placement)) {
+ case 'start':
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ case 'end':
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ }
+ return coords;
+}
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+async function detectOverflow(state, options) {
+ var _await$platform$isEle;
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ x,
+ y,
+ platform,
+ rects,
+ elements,
+ strategy
+ } = state;
+ const {
+ boundary = 'clippingAncestors',
+ rootBoundary = 'viewport',
+ elementContext = 'floating',
+ altBoundary = false,
+ padding = 0
+ } = evaluate(options, state);
+ const paddingObject = getPaddingObject(padding);
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
+ const element = elements[altBoundary ? altContext : elementContext];
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
+ boundary,
+ rootBoundary,
+ strategy
+ }));
+ const rect = elementContext === 'floating' ? {
+ x,
+ y,
+ width: rects.floating.width,
+ height: rects.floating.height
+ } : rects.reference;
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
+ x: 1,
+ y: 1
+ } : {
+ x: 1,
+ y: 1
+ };
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
+ elements,
+ rect,
+ offsetParent,
+ strategy
+ }) : rect);
+ return {
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
+ };
+}
+
+// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
+const MAX_RESET_COUNT = 50;
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+const computePosition = async (reference, floating, config) => {
+ const {
+ placement = 'bottom',
+ strategy = 'absolute',
+ middleware = [],
+ platform
+ } = config;
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
+ ...platform,
+ detectOverflow
+ };
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
+ let rects = await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ });
+ let {
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, placement, rtl);
+ let statefulPlacement = placement;
+ let resetCount = 0;
+ const middlewareData = {};
+ for (let i = 0; i < middleware.length; i++) {
+ const currentMiddleware = middleware[i];
+ if (!currentMiddleware) {
+ continue;
+ }
+ const {
+ name,
+ fn
+ } = currentMiddleware;
+ const {
+ x: nextX,
+ y: nextY,
+ data,
+ reset
+ } = await fn({
+ x,
+ y,
+ initialPlacement: placement,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData,
+ rects,
+ platform: platformWithDetectOverflow,
+ elements: {
+ reference,
+ floating
+ }
+ });
+ x = nextX != null ? nextX : x;
+ y = nextY != null ? nextY : y;
+ middlewareData[name] = {
+ ...middlewareData[name],
+ ...data
+ };
+ if (reset && resetCount < MAX_RESET_COUNT) {
+ resetCount++;
+ if (typeof reset === 'object') {
+ if (reset.placement) {
+ statefulPlacement = reset.placement;
+ }
+ if (reset.rects) {
+ rects = reset.rects === true ? await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ }) : reset.rects;
+ }
+ ({
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
+ }
+ i = -1;
+ }
+ }
+ return {
+ x,
+ y,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData
+ };
+};
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+const arrow = options => ({
+ name: 'arrow',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ platform,
+ elements,
+ middlewareData
+ } = state;
+ // Since `element` is required, we don't Partial<> the type.
+ const {
+ element,
+ padding = 0
+ } = evaluate(options, state) || {};
+ if (element == null) {
+ return {};
+ }
+ const paddingObject = getPaddingObject(padding);
+ const coords = {
+ x,
+ y
+ };
+ const axis = getAlignmentAxis(placement);
+ const length = getAxisLength(axis);
+ const arrowDimensions = await platform.getDimensions(element);
+ const isYAxis = axis === 'y';
+ const minProp = isYAxis ? 'top' : 'left';
+ const maxProp = isYAxis ? 'bottom' : 'right';
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
+ const startDiff = coords[axis] - rects.reference[axis];
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
+
+ // DOM platform can return `window` as the `offsetParent`.
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
+ clientSize = elements.floating[clientProp] || rects.floating[length];
+ }
+ const centerToReference = endDiff / 2 - startDiff / 2;
+
+ // If the padding is large enough that it causes the arrow to no longer be
+ // centered, modify the padding so that it is centered.
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
+
+ // Make sure the arrow doesn't overflow the floating element if the center
+ // point is outside the floating element's bounds.
+ const min$1 = minPadding;
+ const max = clientSize - arrowDimensions[length] - maxPadding;
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
+ const offset = clamp(min$1, center, max);
+
+ // If the reference is small enough that the arrow's padding causes it to
+ // to point to nothing for an aligned placement, adjust the offset of the
+ // floating element itself. To ensure `shift()` continues to take action,
+ // a single reset is performed when this is true.
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
+ return {
+ [axis]: coords[axis] + alignmentOffset,
+ data: {
+ [axis]: offset,
+ centerOffset: center - offset - alignmentOffset,
+ ...(shouldAddOffset && {
+ alignmentOffset
+ })
+ },
+ reset: shouldAddOffset
+ };
+ }
+});
+
+function getPlacementList(alignment, autoAlignment, allowedPlacements) {
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
+ return allowedPlacementsSortedByAlignment.filter(placement => {
+ if (alignment) {
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
+ }
+ return true;
+ });
+}
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+const autoPlacement = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'autoPlacement',
+ options,
+ async fn(state) {
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
+ const {
+ rects,
+ middlewareData,
+ placement,
+ platform,
+ elements
+ } = state;
+ const {
+ crossAxis = false,
+ alignment,
+ allowedPlacements = placements,
+ autoAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
+ const currentPlacement = placements$1[currentIndex];
+ if (currentPlacement == null) {
+ return {};
+ }
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
+
+ // Make `computeCoords` start from the right place.
+ if (placement !== currentPlacement) {
+ return {
+ reset: {
+ placement: placements$1[0]
+ }
+ };
+ }
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
+ placement: currentPlacement,
+ overflows: currentOverflows
+ }];
+ const nextPlacement = placements$1[currentIndex + 1];
+
+ // There are more placements to check.
+ if (nextPlacement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ const placementsSortedByMostSpace = allOverflows.map(d => {
+ const alignment = getAlignment(d.placement);
+ return [d.placement, alignment && crossAxis ?
+ // Check along the mainAxis and main crossAxis side.
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
+ // Check only the mainAxis.
+ d.overflows[0], d.overflows];
+ }).sort((a, b) => a[1] - b[1]);
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
+ // Aligned placements should not check their opposite crossAxis
+ // side.
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
+ if (resetPlacement !== placement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+const flip = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'flip',
+ options,
+ async fn(state) {
+ var _middlewareData$arrow, _middlewareData$flip;
+ const {
+ placement,
+ middlewareData,
+ rects,
+ initialPlacement,
+ platform,
+ elements
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true,
+ fallbackPlacements: specifiedFallbackPlacements,
+ fallbackStrategy = 'bestFit',
+ fallbackAxisSideDirection = 'none',
+ flipAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+
+ // If a reset by the arrow was caused due to an alignment offset being
+ // added, we should skip any logic now since `flip()` has already done its
+ // work.
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ const side = getSide(placement);
+ const initialSideAxis = getSideAxis(initialPlacement);
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
+ }
+ const placements = [initialPlacement, ...fallbackPlacements];
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const overflows = [];
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
+ if (checkMainAxis) {
+ overflows.push(overflow[side]);
+ }
+ if (checkCrossAxis) {
+ const sides = getAlignmentSides(placement, rects, rtl);
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
+ }
+ overflowsData = [...overflowsData, {
+ placement,
+ overflows
+ }];
+
+ // One or more sides is overflowing.
+ if (!overflows.every(side => side <= 0)) {
+ var _middlewareData$flip2, _overflowsData$filter;
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
+ const nextPlacement = placements[nextIndex];
+ if (nextPlacement) {
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
+ if (!ignoreCrossAxisOverflow ||
+ // We leave the current main axis only if every placement on that axis
+ // overflows the main axis.
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
+ // Try next placement and re-run the lifecycle.
+ return {
+ data: {
+ index: nextIndex,
+ overflows: overflowsData
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ }
+
+ // First, find the candidates that fit on the mainAxis side of overflow,
+ // then find the placement that fits the best on the main crossAxis side.
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
+
+ // Otherwise fallback.
+ if (!resetPlacement) {
+ switch (fallbackStrategy) {
+ case 'bestFit':
+ {
+ var _overflowsData$filter2;
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
+ if (hasFallbackAxisSideDirection) {
+ const currentSideAxis = getSideAxis(d.placement);
+ return currentSideAxis === initialSideAxis ||
+ // Create a bias to the `y` side axis due to horizontal
+ // reading directions favoring greater width.
+ currentSideAxis === 'y';
+ }
+ return true;
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
+ if (placement) {
+ resetPlacement = placement;
+ }
+ break;
+ }
+ case 'initialPlacement':
+ resetPlacement = initialPlacement;
+ break;
+ }
+ }
+ if (placement !== resetPlacement) {
+ return {
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ }
+ return {};
+ }
+ };
+};
+
+function getSideOffsets(overflow, rect) {
+ return {
+ top: overflow.top - rect.height,
+ right: overflow.right - rect.width,
+ bottom: overflow.bottom - rect.height,
+ left: overflow.left - rect.width
+ };
+}
+function isAnySideFullyClipped(overflow) {
+ return sides.some(side => overflow[side] >= 0);
+}
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+const hide = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'hide',
+ options,
+ async fn(state) {
+ const {
+ rects,
+ platform
+ } = state;
+ const {
+ strategy = 'referenceHidden',
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ switch (strategy) {
+ case 'referenceHidden':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ elementContext: 'reference'
+ });
+ const offsets = getSideOffsets(overflow, rects.reference);
+ return {
+ data: {
+ referenceHiddenOffsets: offsets,
+ referenceHidden: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ case 'escaped':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ altBoundary: true
+ });
+ const offsets = getSideOffsets(overflow, rects.floating);
+ return {
+ data: {
+ escapedOffsets: offsets,
+ escaped: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ default:
+ {
+ return {};
+ }
+ }
+ }
+ };
+};
+
+function getBoundingRect(rects) {
+ const minX = min(...rects.map(rect => rect.left));
+ const minY = min(...rects.map(rect => rect.top));
+ const maxX = max(...rects.map(rect => rect.right));
+ const maxY = max(...rects.map(rect => rect.bottom));
+ return {
+ x: minX,
+ y: minY,
+ width: maxX - minX,
+ height: maxY - minY
+ };
+}
+function getRectsByLine(rects) {
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
+ const groups = [];
+ let prevRect = null;
+ for (let i = 0; i < sortedRects.length; i++) {
+ const rect = sortedRects[i];
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
+ groups.push([rect]);
+ } else {
+ groups[groups.length - 1].push(rect);
+ }
+ prevRect = rect;
+ }
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
+}
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+const inline = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'inline',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ elements,
+ rects,
+ platform,
+ strategy
+ } = state;
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
+ // ClientRect's bounds, despite the event listener being triggered. A
+ // padding of 2 seems to handle this issue.
+ const {
+ padding = 2,
+ x,
+ y
+ } = evaluate(options, state);
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
+ const clientRects = getRectsByLine(nativeClientRects);
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
+ const paddingObject = getPaddingObject(padding);
+ function getBoundingClientRect() {
+ // There are two rects and they are disjoined.
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
+ // Find the first rect in which the point is fully inside.
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
+ }
+
+ // There are 2 or more connected rects.
+ if (clientRects.length >= 2) {
+ if (getSideAxis(placement) === 'y') {
+ const firstRect = clientRects[0];
+ const lastRect = clientRects[clientRects.length - 1];
+ const isTop = getSide(placement) === 'top';
+ const top = firstRect.top;
+ const bottom = lastRect.bottom;
+ const left = isTop ? firstRect.left : lastRect.left;
+ const right = isTop ? firstRect.right : lastRect.right;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ const isLeftSide = getSide(placement) === 'left';
+ const maxRight = max(...clientRects.map(rect => rect.right));
+ const minLeft = min(...clientRects.map(rect => rect.left));
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
+ const top = measureRects[0].top;
+ const bottom = measureRects[measureRects.length - 1].bottom;
+ const left = minLeft;
+ const right = maxRight;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ return fallback;
+ }
+ const resetRects = await platform.getElementRects({
+ reference: {
+ getBoundingClientRect
+ },
+ floating: elements.floating,
+ strategy
+ });
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
+ return {
+ reset: {
+ rects: resetRects
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+const originSides = /*#__PURE__*/new Set(['left', 'top']);
+
+// For type backwards-compatibility, the `OffsetOptions` type was also
+// Derivable.
+
+async function convertValueToCoords(state, options) {
+ const {
+ placement,
+ platform,
+ elements
+ } = state;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isVertical = getSideAxis(placement) === 'y';
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
+ const rawValue = evaluate(options, state);
+
+ // eslint-disable-next-line prefer-const
+ let {
+ mainAxis,
+ crossAxis,
+ alignmentAxis
+ } = typeof rawValue === 'number' ? {
+ mainAxis: rawValue,
+ crossAxis: 0,
+ alignmentAxis: null
+ } : {
+ mainAxis: rawValue.mainAxis || 0,
+ crossAxis: rawValue.crossAxis || 0,
+ alignmentAxis: rawValue.alignmentAxis
+ };
+ if (alignment && typeof alignmentAxis === 'number') {
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
+ }
+ return isVertical ? {
+ x: crossAxis * crossAxisMulti,
+ y: mainAxis * mainAxisMulti
+ } : {
+ x: mainAxis * mainAxisMulti,
+ y: crossAxis * crossAxisMulti
+ };
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+const offset = function (options) {
+ if (options === void 0) {
+ options = 0;
+ }
+ return {
+ name: 'offset',
+ options,
+ async fn(state) {
+ var _middlewareData$offse, _middlewareData$arrow;
+ const {
+ x,
+ y,
+ placement,
+ middlewareData
+ } = state;
+ const diffCoords = await convertValueToCoords(state, options);
+
+ // If the placement is the same and the arrow caused an alignment offset
+ // then we don't need to change the positioning coordinates.
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ return {
+ x: x + diffCoords.x,
+ y: y + diffCoords.y,
+ data: {
+ ...diffCoords,
+ placement
+ }
+ };
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+const shift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'shift',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ platform
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = false,
+ limiter = {
+ fn: _ref => {
+ let {
+ x,
+ y
+ } = _ref;
+ return {
+ x,
+ y
+ };
+ }
+ },
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const crossAxis = getSideAxis(getSide(placement));
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ if (checkMainAxis) {
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
+ const min = mainAxisCoord + overflow[minSide];
+ const max = mainAxisCoord - overflow[maxSide];
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
+ }
+ if (checkCrossAxis) {
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
+ const min = crossAxisCoord + overflow[minSide];
+ const max = crossAxisCoord - overflow[maxSide];
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
+ }
+ const limitedCoords = limiter.fn({
+ ...state,
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ });
+ return {
+ ...limitedCoords,
+ data: {
+ x: limitedCoords.x - x,
+ y: limitedCoords.y - y,
+ enabled: {
+ [mainAxis]: checkMainAxis,
+ [crossAxis]: checkCrossAxis
+ }
+ }
+ };
+ }
+ };
+};
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+const limitShift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ options,
+ fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ middlewareData
+ } = state;
+ const {
+ offset = 0,
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const crossAxis = getSideAxis(placement);
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ const rawOffset = evaluate(offset, state);
+ const computedOffset = typeof rawOffset === 'number' ? {
+ mainAxis: rawOffset,
+ crossAxis: 0
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ ...rawOffset
+ };
+ if (checkMainAxis) {
+ const len = mainAxis === 'y' ? 'height' : 'width';
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
+ if (mainAxisCoord < limitMin) {
+ mainAxisCoord = limitMin;
+ } else if (mainAxisCoord > limitMax) {
+ mainAxisCoord = limitMax;
+ }
+ }
+ if (checkCrossAxis) {
+ var _middlewareData$offse, _middlewareData$offse2;
+ const len = mainAxis === 'y' ? 'width' : 'height';
+ const isOriginSide = originSides.has(getSide(placement));
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
+ if (crossAxisCoord < limitMin) {
+ crossAxisCoord = limitMin;
+ } else if (crossAxisCoord > limitMax) {
+ crossAxisCoord = limitMax;
+ }
+ }
+ return {
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ };
+ }
+ };
+};
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+const size = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'size',
+ options,
+ async fn(state) {
+ var _state$middlewareData, _state$middlewareData2;
+ const {
+ placement,
+ rects,
+ platform,
+ elements
+ } = state;
+ const {
+ apply = () => {},
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isYAxis = getSideAxis(placement) === 'y';
+ const {
+ width,
+ height
+ } = rects.floating;
+ let heightSide;
+ let widthSide;
+ if (side === 'top' || side === 'bottom') {
+ heightSide = side;
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
+ } else {
+ widthSide = side;
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
+ }
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
+ const maximumClippingWidth = width - overflow.left - overflow.right;
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
+ const noShift = !state.middlewareData.shift;
+ let availableHeight = overflowAvailableHeight;
+ let availableWidth = overflowAvailableWidth;
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ availableWidth = maximumClippingWidth;
+ }
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ availableHeight = maximumClippingHeight;
+ }
+ if (noShift && !alignment) {
+ const xMin = max(overflow.left, 0);
+ const xMax = max(overflow.right, 0);
+ const yMin = max(overflow.top, 0);
+ const yMax = max(overflow.bottom, 0);
+ if (isYAxis) {
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ } else {
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ }
+ }
+ await apply({
+ ...state,
+ availableWidth,
+ availableHeight
+ });
+ const nextDimensions = await platform.getDimensions(elements.floating);
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
+ return {
+ reset: {
+ rects: true
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+export { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, rectToClientRect, shift, size };
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts
new file mode 100644
index 0000000000000000000000000000000000000000..28aede2f780fb7b06fcf468602b37401de2fa439
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.mts
@@ -0,0 +1,531 @@
+import { AlignedPlacement } from '@floating-ui/utils';
+import { Alignment } from '@floating-ui/utils';
+import { Axis } from '@floating-ui/utils';
+import { ClientRectObject } from '@floating-ui/utils';
+import { Coords } from '@floating-ui/utils';
+import { Dimensions } from '@floating-ui/utils';
+import { ElementRects } from '@floating-ui/utils';
+import { Length } from '@floating-ui/utils';
+import { Padding } from '@floating-ui/utils';
+import { Placement } from '@floating-ui/utils';
+import { Rect } from '@floating-ui/utils';
+import { rectToClientRect } from '@floating-ui/utils';
+import { Side } from '@floating-ui/utils';
+import { SideObject } from '@floating-ui/utils';
+import { Strategy } from '@floating-ui/utils';
+import { VirtualElement } from '@floating-ui/utils';
+
+export { AlignedPlacement }
+
+export { Alignment }
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+export declare const arrow: (options: ArrowOptions | Derivable) => Middleware;
+
+export declare interface ArrowOptions {
+ /**
+ * The arrow element to be positioned.
+ * @default undefined
+ */
+ element: any;
+ /**
+ * The padding between the arrow element and the floating element edges.
+ * Useful when the floating element has rounded corners.
+ * @default 0
+ */
+ padding?: Padding;
+}
+
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+export declare const autoPlacement: (options?: AutoPlacementOptions | Derivable) => Middleware;
+
+export declare interface AutoPlacementOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether to check for most space along this axis.
+ * @default false
+ */
+ crossAxis?: boolean;
+ /**
+ * Choose placements with a particular alignment.
+ * @default undefined
+ */
+ alignment?: Alignment | null;
+ /**
+ * Whether to choose placements with the opposite alignment if the preferred
+ * alignment does not fit.
+ * @default true
+ */
+ autoAlignment?: boolean;
+ /**
+ * Which placements are allowed to be chosen. Placements must be within the
+ * `alignment` option if explicitly set.
+ * @default allPlacements (variable)
+ */
+ allowedPlacements?: Array;
+}
+
+export { Axis }
+
+export declare type Boundary = any;
+
+export { ClientRectObject }
+
+export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise;
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+export declare const computePosition: ComputePosition;
+
+export declare interface ComputePositionConfig {
+ /**
+ * Object to interface with the current platform.
+ */
+ platform: Platform;
+ /**
+ * Where to place the floating element relative to the reference element.
+ */
+ placement?: Placement;
+ /**
+ * The strategy to use when positioning the floating element.
+ */
+ strategy?: Strategy;
+ /**
+ * Array of middleware objects to modify the positioning or provide data for
+ * rendering.
+ */
+ middleware?: Array;
+}
+
+export declare interface ComputePositionReturn extends Coords {
+ /**
+ * The final chosen placement of the floating element.
+ */
+ placement: Placement;
+ /**
+ * The strategy used to position the floating element.
+ */
+ strategy: Strategy;
+ /**
+ * Object containing data returned from all middleware, keyed by their name.
+ */
+ middlewareData: MiddlewareData;
+}
+
+export { Coords }
+
+/**
+ * Function option to derive middleware options from state.
+ */
+export declare type Derivable = (state: MiddlewareState) => T;
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+export declare function detectOverflow(state: MiddlewareState, options?: DetectOverflowOptions | Derivable): Promise;
+
+export declare interface DetectOverflowOptions {
+ /**
+ * The clipping element(s) or area in which overflow will be checked.
+ * @default 'clippingAncestors'
+ */
+ boundary?: Boundary;
+ /**
+ * The root clipping area in which overflow will be checked.
+ * @default 'viewport'
+ */
+ rootBoundary?: RootBoundary;
+ /**
+ * The element in which overflow is being checked relative to a boundary.
+ * @default 'floating'
+ */
+ elementContext?: ElementContext;
+ /**
+ * Whether to check for overflow using the alternate element's boundary
+ * (`clippingAncestors` boundary only).
+ * @default false
+ */
+ altBoundary?: boolean;
+ /**
+ * Virtual padding for the resolved overflow detection offsets.
+ * @default 0
+ */
+ padding?: Padding;
+}
+
+export { Dimensions }
+
+export declare type ElementContext = 'reference' | 'floating';
+
+export { ElementRects }
+
+export declare interface Elements {
+ reference: ReferenceElement;
+ floating: FloatingElement;
+}
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+export declare const flip: (options?: FlipOptions | Derivable) => Middleware;
+
+export declare interface FlipOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the side of the floating element. Determines
+ * whether overflow along this axis is checked to perform a flip.
+ * @default true
+ */
+ mainAxis?: boolean;
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether overflow along this axis is checked to perform a flip.
+ * - `true`: Whether to check cross axis overflow for both side and alignment flipping.
+ * - `false`: Whether to disable all cross axis overflow checking.
+ * - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
+ * @default true
+ */
+ crossAxis?: boolean | 'alignment';
+ /**
+ * Placements to try sequentially if the preferred `placement` does not fit.
+ * @default [oppositePlacement] (computed)
+ */
+ fallbackPlacements?: Array;
+ /**
+ * What strategy to use when no placements fit.
+ * @default 'bestFit'
+ */
+ fallbackStrategy?: 'bestFit' | 'initialPlacement';
+ /**
+ * Whether to allow fallback to the perpendicular axis of the preferred
+ * placement, and if so, which side direction along the axis to prefer.
+ * @default 'none' (disallow fallback)
+ */
+ fallbackAxisSideDirection?: 'none' | 'start' | 'end';
+ /**
+ * Whether to flip to placements with the opposite alignment if they fit
+ * better.
+ * @default true
+ */
+ flipAlignment?: boolean;
+}
+
+export declare type FloatingElement = any;
+
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+export declare const hide: (options?: HideOptions | Derivable) => Middleware;
+
+export declare interface HideOptions extends DetectOverflowOptions {
+ /**
+ * The strategy used to determine when to hide the floating element.
+ */
+ strategy?: 'referenceHidden' | 'escaped';
+}
+
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+export declare const inline: (options?: InlineOptions | Derivable) => Middleware;
+
+export declare interface InlineOptions {
+ /**
+ * Viewport-relative `x` coordinate to choose a `ClientRect`.
+ * @default undefined
+ */
+ x?: number;
+ /**
+ * Viewport-relative `y` coordinate to choose a `ClientRect`.
+ * @default undefined
+ */
+ y?: number;
+ /**
+ * Represents the padding around a disjoined rect when choosing it.
+ * @default 2
+ */
+ padding?: Padding;
+}
+
+export { Length }
+
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+export declare const limitShift: (options?: LimitShiftOptions | Derivable) => {
+ options: any;
+ fn: (state: MiddlewareState) => Coords;
+};
+
+declare type LimitShiftOffset = number | {
+ /**
+ * Offset the limiting of the axis that runs along the alignment of the
+ * floating element.
+ */
+ mainAxis?: number;
+ /**
+ * Offset the limiting of the axis that runs along the side of the
+ * floating element.
+ */
+ crossAxis?: number;
+};
+
+export declare interface LimitShiftOptions {
+ /**
+ * Offset when limiting starts. `0` will limit when the opposite edges of the
+ * reference and floating elements are aligned.
+ * - positive = start limiting earlier
+ * - negative = start limiting later
+ */
+ offset?: LimitShiftOffset | Derivable;
+ /**
+ * Whether to limit the axis that runs along the alignment of the floating
+ * element.
+ */
+ mainAxis?: boolean;
+ /**
+ * Whether to limit the axis that runs along the side of the floating element.
+ */
+ crossAxis?: boolean;
+}
+
+export declare type Middleware = {
+ name: string;
+ options?: any;
+ fn: (state: MiddlewareState) => Promisable;
+};
+
+/**
+ * @deprecated use `MiddlewareState` instead.
+ */
+export declare type MiddlewareArguments = MiddlewareState;
+
+export declare interface MiddlewareData {
+ [key: string]: any;
+ arrow?: Partial & {
+ centerOffset: number;
+ alignmentOffset?: number;
+ };
+ autoPlacement?: {
+ index?: number;
+ overflows: Array<{
+ placement: Placement;
+ overflows: Array;
+ }>;
+ };
+ flip?: {
+ index?: number;
+ overflows: Array<{
+ placement: Placement;
+ overflows: Array;
+ }>;
+ };
+ hide?: {
+ referenceHidden?: boolean;
+ escaped?: boolean;
+ referenceHiddenOffsets?: SideObject;
+ escapedOffsets?: SideObject;
+ };
+ offset?: Coords & {
+ placement: Placement;
+ };
+ shift?: Coords & {
+ enabled: {
+ [key in Axis]: boolean;
+ };
+ };
+}
+
+export declare interface MiddlewareReturn extends Partial {
+ data?: {
+ [key: string]: any;
+ };
+ reset?: boolean | {
+ placement?: Placement;
+ rects?: boolean | ElementRects;
+ };
+}
+
+export declare interface MiddlewareState extends Coords {
+ initialPlacement: Placement;
+ placement: Placement;
+ strategy: Strategy;
+ middlewareData: MiddlewareData;
+ elements: Elements;
+ rects: ElementRects;
+ platform: {
+ detectOverflow: typeof detectOverflow;
+ } & Platform;
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+export declare const offset: (options?: OffsetOptions) => Middleware;
+
+export declare type OffsetOptions = OffsetValue | Derivable;
+
+declare type OffsetValue = number | {
+ /**
+ * The axis that runs along the side of the floating element. Represents
+ * the distance (gutter or margin) between the reference and floating
+ * element.
+ * @default 0
+ */
+ mainAxis?: number;
+ /**
+ * The axis that runs along the alignment of the floating element.
+ * Represents the skidding between the reference and floating element.
+ * @default 0
+ */
+ crossAxis?: number;
+ /**
+ * The same axis as `crossAxis` but applies only to aligned placements
+ * and inverts the `end` alignment. When set to a number, it overrides the
+ * `crossAxis` value.
+ *
+ * A positive number will move the floating element in the direction of
+ * the opposite edge to the one that is aligned, while a negative number
+ * the reverse.
+ * @default null
+ */
+ alignmentAxis?: number | null;
+};
+
+export { Padding }
+
+export { Placement }
+
+/**
+ * Platform interface methods to work with the current platform.
+ * @see https://floating-ui.com/docs/platform
+ */
+export declare interface Platform {
+ getElementRects: (args: {
+ reference: ReferenceElement;
+ floating: FloatingElement;
+ strategy: Strategy;
+ }) => Promisable;
+ getClippingRect: (args: {
+ element: any;
+ boundary: Boundary;
+ rootBoundary: RootBoundary;
+ strategy: Strategy;
+ }) => Promisable;
+ getDimensions: (element: any) => Promisable;
+ convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
+ elements?: Elements;
+ rect: Rect;
+ offsetParent: any;
+ strategy: Strategy;
+ }) => Promisable;
+ getOffsetParent?: (element: any) => Promisable;
+ isElement?: (value: any) => Promisable;
+ getDocumentElement?: (element: any) => Promisable;
+ getClientRects?: (element: any) => Promisable>;
+ isRTL?: (element: any) => Promisable;
+ getScale?: (element: any) => Promisable<{
+ x: number;
+ y: number;
+ }>;
+ detectOverflow?: typeof detectOverflow;
+}
+
+declare type Promisable = T | Promise;
+
+export { Rect }
+
+export { rectToClientRect }
+
+export declare type ReferenceElement = any;
+
+export declare type RootBoundary = 'viewport' | 'document' | Rect;
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+export declare const shift: (options?: ShiftOptions | Derivable) => Middleware;
+
+export declare interface ShiftOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether overflow along this axis is checked to perform shifting.
+ * @default true
+ */
+ mainAxis?: boolean;
+ /**
+ * The axis that runs along the side of the floating element. Determines
+ * whether overflow along this axis is checked to perform shifting.
+ * @default false
+ */
+ crossAxis?: boolean;
+ /**
+ * Accepts a function that limits the shifting done in order to prevent
+ * detachment.
+ */
+ limiter?: {
+ fn: (state: MiddlewareState) => Coords;
+ options?: any;
+ };
+}
+
+export { Side }
+
+export { SideObject }
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+export declare const size: (options?: SizeOptions | Derivable) => Middleware;
+
+export declare interface SizeOptions extends DetectOverflowOptions {
+ /**
+ * Function that is called to perform style mutations to the floating element
+ * to change its size.
+ * @default undefined
+ */
+ apply?(args: MiddlewareState & {
+ availableWidth: number;
+ availableHeight: number;
+ }): void | Promise;
+}
+
+export { Strategy }
+
+export { VirtualElement }
+
+export { }
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..28aede2f780fb7b06fcf468602b37401de2fa439
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.d.ts
@@ -0,0 +1,531 @@
+import { AlignedPlacement } from '@floating-ui/utils';
+import { Alignment } from '@floating-ui/utils';
+import { Axis } from '@floating-ui/utils';
+import { ClientRectObject } from '@floating-ui/utils';
+import { Coords } from '@floating-ui/utils';
+import { Dimensions } from '@floating-ui/utils';
+import { ElementRects } from '@floating-ui/utils';
+import { Length } from '@floating-ui/utils';
+import { Padding } from '@floating-ui/utils';
+import { Placement } from '@floating-ui/utils';
+import { Rect } from '@floating-ui/utils';
+import { rectToClientRect } from '@floating-ui/utils';
+import { Side } from '@floating-ui/utils';
+import { SideObject } from '@floating-ui/utils';
+import { Strategy } from '@floating-ui/utils';
+import { VirtualElement } from '@floating-ui/utils';
+
+export { AlignedPlacement }
+
+export { Alignment }
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+export declare const arrow: (options: ArrowOptions | Derivable) => Middleware;
+
+export declare interface ArrowOptions {
+ /**
+ * The arrow element to be positioned.
+ * @default undefined
+ */
+ element: any;
+ /**
+ * The padding between the arrow element and the floating element edges.
+ * Useful when the floating element has rounded corners.
+ * @default 0
+ */
+ padding?: Padding;
+}
+
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+export declare const autoPlacement: (options?: AutoPlacementOptions | Derivable) => Middleware;
+
+export declare interface AutoPlacementOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether to check for most space along this axis.
+ * @default false
+ */
+ crossAxis?: boolean;
+ /**
+ * Choose placements with a particular alignment.
+ * @default undefined
+ */
+ alignment?: Alignment | null;
+ /**
+ * Whether to choose placements with the opposite alignment if the preferred
+ * alignment does not fit.
+ * @default true
+ */
+ autoAlignment?: boolean;
+ /**
+ * Which placements are allowed to be chosen. Placements must be within the
+ * `alignment` option if explicitly set.
+ * @default allPlacements (variable)
+ */
+ allowedPlacements?: Array;
+}
+
+export { Axis }
+
+export declare type Boundary = any;
+
+export { ClientRectObject }
+
+export declare type ComputePosition = (reference: unknown, floating: unknown, config: ComputePositionConfig) => Promise;
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+export declare const computePosition: ComputePosition;
+
+export declare interface ComputePositionConfig {
+ /**
+ * Object to interface with the current platform.
+ */
+ platform: Platform;
+ /**
+ * Where to place the floating element relative to the reference element.
+ */
+ placement?: Placement;
+ /**
+ * The strategy to use when positioning the floating element.
+ */
+ strategy?: Strategy;
+ /**
+ * Array of middleware objects to modify the positioning or provide data for
+ * rendering.
+ */
+ middleware?: Array;
+}
+
+export declare interface ComputePositionReturn extends Coords {
+ /**
+ * The final chosen placement of the floating element.
+ */
+ placement: Placement;
+ /**
+ * The strategy used to position the floating element.
+ */
+ strategy: Strategy;
+ /**
+ * Object containing data returned from all middleware, keyed by their name.
+ */
+ middlewareData: MiddlewareData;
+}
+
+export { Coords }
+
+/**
+ * Function option to derive middleware options from state.
+ */
+export declare type Derivable = (state: MiddlewareState) => T;
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+export declare function detectOverflow(state: MiddlewareState, options?: DetectOverflowOptions | Derivable): Promise;
+
+export declare interface DetectOverflowOptions {
+ /**
+ * The clipping element(s) or area in which overflow will be checked.
+ * @default 'clippingAncestors'
+ */
+ boundary?: Boundary;
+ /**
+ * The root clipping area in which overflow will be checked.
+ * @default 'viewport'
+ */
+ rootBoundary?: RootBoundary;
+ /**
+ * The element in which overflow is being checked relative to a boundary.
+ * @default 'floating'
+ */
+ elementContext?: ElementContext;
+ /**
+ * Whether to check for overflow using the alternate element's boundary
+ * (`clippingAncestors` boundary only).
+ * @default false
+ */
+ altBoundary?: boolean;
+ /**
+ * Virtual padding for the resolved overflow detection offsets.
+ * @default 0
+ */
+ padding?: Padding;
+}
+
+export { Dimensions }
+
+export declare type ElementContext = 'reference' | 'floating';
+
+export { ElementRects }
+
+export declare interface Elements {
+ reference: ReferenceElement;
+ floating: FloatingElement;
+}
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+export declare const flip: (options?: FlipOptions | Derivable) => Middleware;
+
+export declare interface FlipOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the side of the floating element. Determines
+ * whether overflow along this axis is checked to perform a flip.
+ * @default true
+ */
+ mainAxis?: boolean;
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether overflow along this axis is checked to perform a flip.
+ * - `true`: Whether to check cross axis overflow for both side and alignment flipping.
+ * - `false`: Whether to disable all cross axis overflow checking.
+ * - `'alignment'`: Whether to check cross axis overflow for alignment flipping only.
+ * @default true
+ */
+ crossAxis?: boolean | 'alignment';
+ /**
+ * Placements to try sequentially if the preferred `placement` does not fit.
+ * @default [oppositePlacement] (computed)
+ */
+ fallbackPlacements?: Array;
+ /**
+ * What strategy to use when no placements fit.
+ * @default 'bestFit'
+ */
+ fallbackStrategy?: 'bestFit' | 'initialPlacement';
+ /**
+ * Whether to allow fallback to the perpendicular axis of the preferred
+ * placement, and if so, which side direction along the axis to prefer.
+ * @default 'none' (disallow fallback)
+ */
+ fallbackAxisSideDirection?: 'none' | 'start' | 'end';
+ /**
+ * Whether to flip to placements with the opposite alignment if they fit
+ * better.
+ * @default true
+ */
+ flipAlignment?: boolean;
+}
+
+export declare type FloatingElement = any;
+
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+export declare const hide: (options?: HideOptions | Derivable) => Middleware;
+
+export declare interface HideOptions extends DetectOverflowOptions {
+ /**
+ * The strategy used to determine when to hide the floating element.
+ */
+ strategy?: 'referenceHidden' | 'escaped';
+}
+
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+export declare const inline: (options?: InlineOptions | Derivable) => Middleware;
+
+export declare interface InlineOptions {
+ /**
+ * Viewport-relative `x` coordinate to choose a `ClientRect`.
+ * @default undefined
+ */
+ x?: number;
+ /**
+ * Viewport-relative `y` coordinate to choose a `ClientRect`.
+ * @default undefined
+ */
+ y?: number;
+ /**
+ * Represents the padding around a disjoined rect when choosing it.
+ * @default 2
+ */
+ padding?: Padding;
+}
+
+export { Length }
+
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+export declare const limitShift: (options?: LimitShiftOptions | Derivable) => {
+ options: any;
+ fn: (state: MiddlewareState) => Coords;
+};
+
+declare type LimitShiftOffset = number | {
+ /**
+ * Offset the limiting of the axis that runs along the alignment of the
+ * floating element.
+ */
+ mainAxis?: number;
+ /**
+ * Offset the limiting of the axis that runs along the side of the
+ * floating element.
+ */
+ crossAxis?: number;
+};
+
+export declare interface LimitShiftOptions {
+ /**
+ * Offset when limiting starts. `0` will limit when the opposite edges of the
+ * reference and floating elements are aligned.
+ * - positive = start limiting earlier
+ * - negative = start limiting later
+ */
+ offset?: LimitShiftOffset | Derivable;
+ /**
+ * Whether to limit the axis that runs along the alignment of the floating
+ * element.
+ */
+ mainAxis?: boolean;
+ /**
+ * Whether to limit the axis that runs along the side of the floating element.
+ */
+ crossAxis?: boolean;
+}
+
+export declare type Middleware = {
+ name: string;
+ options?: any;
+ fn: (state: MiddlewareState) => Promisable;
+};
+
+/**
+ * @deprecated use `MiddlewareState` instead.
+ */
+export declare type MiddlewareArguments = MiddlewareState;
+
+export declare interface MiddlewareData {
+ [key: string]: any;
+ arrow?: Partial & {
+ centerOffset: number;
+ alignmentOffset?: number;
+ };
+ autoPlacement?: {
+ index?: number;
+ overflows: Array<{
+ placement: Placement;
+ overflows: Array;
+ }>;
+ };
+ flip?: {
+ index?: number;
+ overflows: Array<{
+ placement: Placement;
+ overflows: Array;
+ }>;
+ };
+ hide?: {
+ referenceHidden?: boolean;
+ escaped?: boolean;
+ referenceHiddenOffsets?: SideObject;
+ escapedOffsets?: SideObject;
+ };
+ offset?: Coords & {
+ placement: Placement;
+ };
+ shift?: Coords & {
+ enabled: {
+ [key in Axis]: boolean;
+ };
+ };
+}
+
+export declare interface MiddlewareReturn extends Partial {
+ data?: {
+ [key: string]: any;
+ };
+ reset?: boolean | {
+ placement?: Placement;
+ rects?: boolean | ElementRects;
+ };
+}
+
+export declare interface MiddlewareState extends Coords {
+ initialPlacement: Placement;
+ placement: Placement;
+ strategy: Strategy;
+ middlewareData: MiddlewareData;
+ elements: Elements;
+ rects: ElementRects;
+ platform: {
+ detectOverflow: typeof detectOverflow;
+ } & Platform;
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+export declare const offset: (options?: OffsetOptions) => Middleware;
+
+export declare type OffsetOptions = OffsetValue | Derivable;
+
+declare type OffsetValue = number | {
+ /**
+ * The axis that runs along the side of the floating element. Represents
+ * the distance (gutter or margin) between the reference and floating
+ * element.
+ * @default 0
+ */
+ mainAxis?: number;
+ /**
+ * The axis that runs along the alignment of the floating element.
+ * Represents the skidding between the reference and floating element.
+ * @default 0
+ */
+ crossAxis?: number;
+ /**
+ * The same axis as `crossAxis` but applies only to aligned placements
+ * and inverts the `end` alignment. When set to a number, it overrides the
+ * `crossAxis` value.
+ *
+ * A positive number will move the floating element in the direction of
+ * the opposite edge to the one that is aligned, while a negative number
+ * the reverse.
+ * @default null
+ */
+ alignmentAxis?: number | null;
+};
+
+export { Padding }
+
+export { Placement }
+
+/**
+ * Platform interface methods to work with the current platform.
+ * @see https://floating-ui.com/docs/platform
+ */
+export declare interface Platform {
+ getElementRects: (args: {
+ reference: ReferenceElement;
+ floating: FloatingElement;
+ strategy: Strategy;
+ }) => Promisable;
+ getClippingRect: (args: {
+ element: any;
+ boundary: Boundary;
+ rootBoundary: RootBoundary;
+ strategy: Strategy;
+ }) => Promisable;
+ getDimensions: (element: any) => Promisable;
+ convertOffsetParentRelativeRectToViewportRelativeRect?: (args: {
+ elements?: Elements;
+ rect: Rect;
+ offsetParent: any;
+ strategy: Strategy;
+ }) => Promisable;
+ getOffsetParent?: (element: any) => Promisable;
+ isElement?: (value: any) => Promisable;
+ getDocumentElement?: (element: any) => Promisable;
+ getClientRects?: (element: any) => Promisable>;
+ isRTL?: (element: any) => Promisable;
+ getScale?: (element: any) => Promisable<{
+ x: number;
+ y: number;
+ }>;
+ detectOverflow?: typeof detectOverflow;
+}
+
+declare type Promisable = T | Promise;
+
+export { Rect }
+
+export { rectToClientRect }
+
+export declare type ReferenceElement = any;
+
+export declare type RootBoundary = 'viewport' | 'document' | Rect;
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+export declare const shift: (options?: ShiftOptions | Derivable) => Middleware;
+
+export declare interface ShiftOptions extends DetectOverflowOptions {
+ /**
+ * The axis that runs along the alignment of the floating element. Determines
+ * whether overflow along this axis is checked to perform shifting.
+ * @default true
+ */
+ mainAxis?: boolean;
+ /**
+ * The axis that runs along the side of the floating element. Determines
+ * whether overflow along this axis is checked to perform shifting.
+ * @default false
+ */
+ crossAxis?: boolean;
+ /**
+ * Accepts a function that limits the shifting done in order to prevent
+ * detachment.
+ */
+ limiter?: {
+ fn: (state: MiddlewareState) => Coords;
+ options?: any;
+ };
+}
+
+export { Side }
+
+export { SideObject }
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+export declare const size: (options?: SizeOptions | Derivable) => Middleware;
+
+export declare interface SizeOptions extends DetectOverflowOptions {
+ /**
+ * Function that is called to perform style mutations to the floating element
+ * to change its size.
+ * @default undefined
+ */
+ apply?(args: MiddlewareState & {
+ availableWidth: number;
+ availableHeight: number;
+ }): void | Promise;
+}
+
+export { Strategy }
+
+export { VirtualElement }
+
+export { }
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
new file mode 100644
index 0000000000000000000000000000000000000000..537eb0f56d979d40b8244c0c905d7785408e5998
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js
@@ -0,0 +1,1058 @@
+import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';
+export { rectToClientRect } from '@floating-ui/utils';
+
+function computeCoordsFromPlacement(_ref, placement, rtl) {
+ let {
+ reference,
+ floating
+ } = _ref;
+ const sideAxis = getSideAxis(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const alignLength = getAxisLength(alignmentAxis);
+ const side = getSide(placement);
+ const isVertical = sideAxis === 'y';
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
+ let coords;
+ switch (side) {
+ case 'top':
+ coords = {
+ x: commonX,
+ y: reference.y - floating.height
+ };
+ break;
+ case 'bottom':
+ coords = {
+ x: commonX,
+ y: reference.y + reference.height
+ };
+ break;
+ case 'right':
+ coords = {
+ x: reference.x + reference.width,
+ y: commonY
+ };
+ break;
+ case 'left':
+ coords = {
+ x: reference.x - floating.width,
+ y: commonY
+ };
+ break;
+ default:
+ coords = {
+ x: reference.x,
+ y: reference.y
+ };
+ }
+ switch (getAlignment(placement)) {
+ case 'start':
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ case 'end':
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ }
+ return coords;
+}
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+async function detectOverflow(state, options) {
+ var _await$platform$isEle;
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ x,
+ y,
+ platform,
+ rects,
+ elements,
+ strategy
+ } = state;
+ const {
+ boundary = 'clippingAncestors',
+ rootBoundary = 'viewport',
+ elementContext = 'floating',
+ altBoundary = false,
+ padding = 0
+ } = evaluate(options, state);
+ const paddingObject = getPaddingObject(padding);
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
+ const element = elements[altBoundary ? altContext : elementContext];
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
+ boundary,
+ rootBoundary,
+ strategy
+ }));
+ const rect = elementContext === 'floating' ? {
+ x,
+ y,
+ width: rects.floating.width,
+ height: rects.floating.height
+ } : rects.reference;
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
+ x: 1,
+ y: 1
+ } : {
+ x: 1,
+ y: 1
+ };
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
+ elements,
+ rect,
+ offsetParent,
+ strategy
+ }) : rect);
+ return {
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
+ };
+}
+
+// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
+const MAX_RESET_COUNT = 50;
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+const computePosition = async (reference, floating, config) => {
+ const {
+ placement = 'bottom',
+ strategy = 'absolute',
+ middleware = [],
+ platform
+ } = config;
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
+ ...platform,
+ detectOverflow
+ };
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
+ let rects = await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ });
+ let {
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, placement, rtl);
+ let statefulPlacement = placement;
+ let resetCount = 0;
+ const middlewareData = {};
+ for (let i = 0; i < middleware.length; i++) {
+ const currentMiddleware = middleware[i];
+ if (!currentMiddleware) {
+ continue;
+ }
+ const {
+ name,
+ fn
+ } = currentMiddleware;
+ const {
+ x: nextX,
+ y: nextY,
+ data,
+ reset
+ } = await fn({
+ x,
+ y,
+ initialPlacement: placement,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData,
+ rects,
+ platform: platformWithDetectOverflow,
+ elements: {
+ reference,
+ floating
+ }
+ });
+ x = nextX != null ? nextX : x;
+ y = nextY != null ? nextY : y;
+ middlewareData[name] = {
+ ...middlewareData[name],
+ ...data
+ };
+ if (reset && resetCount < MAX_RESET_COUNT) {
+ resetCount++;
+ if (typeof reset === 'object') {
+ if (reset.placement) {
+ statefulPlacement = reset.placement;
+ }
+ if (reset.rects) {
+ rects = reset.rects === true ? await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ }) : reset.rects;
+ }
+ ({
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
+ }
+ i = -1;
+ }
+ }
+ return {
+ x,
+ y,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData
+ };
+};
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+const arrow = options => ({
+ name: 'arrow',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ platform,
+ elements,
+ middlewareData
+ } = state;
+ // Since `element` is required, we don't Partial<> the type.
+ const {
+ element,
+ padding = 0
+ } = evaluate(options, state) || {};
+ if (element == null) {
+ return {};
+ }
+ const paddingObject = getPaddingObject(padding);
+ const coords = {
+ x,
+ y
+ };
+ const axis = getAlignmentAxis(placement);
+ const length = getAxisLength(axis);
+ const arrowDimensions = await platform.getDimensions(element);
+ const isYAxis = axis === 'y';
+ const minProp = isYAxis ? 'top' : 'left';
+ const maxProp = isYAxis ? 'bottom' : 'right';
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
+ const startDiff = coords[axis] - rects.reference[axis];
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
+
+ // DOM platform can return `window` as the `offsetParent`.
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
+ clientSize = elements.floating[clientProp] || rects.floating[length];
+ }
+ const centerToReference = endDiff / 2 - startDiff / 2;
+
+ // If the padding is large enough that it causes the arrow to no longer be
+ // centered, modify the padding so that it is centered.
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
+
+ // Make sure the arrow doesn't overflow the floating element if the center
+ // point is outside the floating element's bounds.
+ const min$1 = minPadding;
+ const max = clientSize - arrowDimensions[length] - maxPadding;
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
+ const offset = clamp(min$1, center, max);
+
+ // If the reference is small enough that the arrow's padding causes it to
+ // to point to nothing for an aligned placement, adjust the offset of the
+ // floating element itself. To ensure `shift()` continues to take action,
+ // a single reset is performed when this is true.
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
+ return {
+ [axis]: coords[axis] + alignmentOffset,
+ data: {
+ [axis]: offset,
+ centerOffset: center - offset - alignmentOffset,
+ ...(shouldAddOffset && {
+ alignmentOffset
+ })
+ },
+ reset: shouldAddOffset
+ };
+ }
+});
+
+function getPlacementList(alignment, autoAlignment, allowedPlacements) {
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
+ return allowedPlacementsSortedByAlignment.filter(placement => {
+ if (alignment) {
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
+ }
+ return true;
+ });
+}
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+const autoPlacement = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'autoPlacement',
+ options,
+ async fn(state) {
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
+ const {
+ rects,
+ middlewareData,
+ placement,
+ platform,
+ elements
+ } = state;
+ const {
+ crossAxis = false,
+ alignment,
+ allowedPlacements = placements,
+ autoAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
+ const currentPlacement = placements$1[currentIndex];
+ if (currentPlacement == null) {
+ return {};
+ }
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
+
+ // Make `computeCoords` start from the right place.
+ if (placement !== currentPlacement) {
+ return {
+ reset: {
+ placement: placements$1[0]
+ }
+ };
+ }
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
+ placement: currentPlacement,
+ overflows: currentOverflows
+ }];
+ const nextPlacement = placements$1[currentIndex + 1];
+
+ // There are more placements to check.
+ if (nextPlacement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ const placementsSortedByMostSpace = allOverflows.map(d => {
+ const alignment = getAlignment(d.placement);
+ return [d.placement, alignment && crossAxis ?
+ // Check along the mainAxis and main crossAxis side.
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
+ // Check only the mainAxis.
+ d.overflows[0], d.overflows];
+ }).sort((a, b) => a[1] - b[1]);
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
+ // Aligned placements should not check their opposite crossAxis
+ // side.
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
+ if (resetPlacement !== placement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+const flip = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'flip',
+ options,
+ async fn(state) {
+ var _middlewareData$arrow, _middlewareData$flip;
+ const {
+ placement,
+ middlewareData,
+ rects,
+ initialPlacement,
+ platform,
+ elements
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true,
+ fallbackPlacements: specifiedFallbackPlacements,
+ fallbackStrategy = 'bestFit',
+ fallbackAxisSideDirection = 'none',
+ flipAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+
+ // If a reset by the arrow was caused due to an alignment offset being
+ // added, we should skip any logic now since `flip()` has already done its
+ // work.
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ const side = getSide(placement);
+ const initialSideAxis = getSideAxis(initialPlacement);
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
+ }
+ const placements = [initialPlacement, ...fallbackPlacements];
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const overflows = [];
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
+ if (checkMainAxis) {
+ overflows.push(overflow[side]);
+ }
+ if (checkCrossAxis) {
+ const sides = getAlignmentSides(placement, rects, rtl);
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
+ }
+ overflowsData = [...overflowsData, {
+ placement,
+ overflows
+ }];
+
+ // One or more sides is overflowing.
+ if (!overflows.every(side => side <= 0)) {
+ var _middlewareData$flip2, _overflowsData$filter;
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
+ const nextPlacement = placements[nextIndex];
+ if (nextPlacement) {
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
+ if (!ignoreCrossAxisOverflow ||
+ // We leave the current main axis only if every placement on that axis
+ // overflows the main axis.
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
+ // Try next placement and re-run the lifecycle.
+ return {
+ data: {
+ index: nextIndex,
+ overflows: overflowsData
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ }
+
+ // First, find the candidates that fit on the mainAxis side of overflow,
+ // then find the placement that fits the best on the main crossAxis side.
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
+
+ // Otherwise fallback.
+ if (!resetPlacement) {
+ switch (fallbackStrategy) {
+ case 'bestFit':
+ {
+ var _overflowsData$filter2;
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
+ if (hasFallbackAxisSideDirection) {
+ const currentSideAxis = getSideAxis(d.placement);
+ return currentSideAxis === initialSideAxis ||
+ // Create a bias to the `y` side axis due to horizontal
+ // reading directions favoring greater width.
+ currentSideAxis === 'y';
+ }
+ return true;
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
+ if (placement) {
+ resetPlacement = placement;
+ }
+ break;
+ }
+ case 'initialPlacement':
+ resetPlacement = initialPlacement;
+ break;
+ }
+ }
+ if (placement !== resetPlacement) {
+ return {
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ }
+ return {};
+ }
+ };
+};
+
+function getSideOffsets(overflow, rect) {
+ return {
+ top: overflow.top - rect.height,
+ right: overflow.right - rect.width,
+ bottom: overflow.bottom - rect.height,
+ left: overflow.left - rect.width
+ };
+}
+function isAnySideFullyClipped(overflow) {
+ return sides.some(side => overflow[side] >= 0);
+}
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+const hide = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'hide',
+ options,
+ async fn(state) {
+ const {
+ rects,
+ platform
+ } = state;
+ const {
+ strategy = 'referenceHidden',
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ switch (strategy) {
+ case 'referenceHidden':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ elementContext: 'reference'
+ });
+ const offsets = getSideOffsets(overflow, rects.reference);
+ return {
+ data: {
+ referenceHiddenOffsets: offsets,
+ referenceHidden: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ case 'escaped':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ altBoundary: true
+ });
+ const offsets = getSideOffsets(overflow, rects.floating);
+ return {
+ data: {
+ escapedOffsets: offsets,
+ escaped: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ default:
+ {
+ return {};
+ }
+ }
+ }
+ };
+};
+
+function getBoundingRect(rects) {
+ const minX = min(...rects.map(rect => rect.left));
+ const minY = min(...rects.map(rect => rect.top));
+ const maxX = max(...rects.map(rect => rect.right));
+ const maxY = max(...rects.map(rect => rect.bottom));
+ return {
+ x: minX,
+ y: minY,
+ width: maxX - minX,
+ height: maxY - minY
+ };
+}
+function getRectsByLine(rects) {
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
+ const groups = [];
+ let prevRect = null;
+ for (let i = 0; i < sortedRects.length; i++) {
+ const rect = sortedRects[i];
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
+ groups.push([rect]);
+ } else {
+ groups[groups.length - 1].push(rect);
+ }
+ prevRect = rect;
+ }
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
+}
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+const inline = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'inline',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ elements,
+ rects,
+ platform,
+ strategy
+ } = state;
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
+ // ClientRect's bounds, despite the event listener being triggered. A
+ // padding of 2 seems to handle this issue.
+ const {
+ padding = 2,
+ x,
+ y
+ } = evaluate(options, state);
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
+ const clientRects = getRectsByLine(nativeClientRects);
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
+ const paddingObject = getPaddingObject(padding);
+ function getBoundingClientRect() {
+ // There are two rects and they are disjoined.
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
+ // Find the first rect in which the point is fully inside.
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
+ }
+
+ // There are 2 or more connected rects.
+ if (clientRects.length >= 2) {
+ if (getSideAxis(placement) === 'y') {
+ const firstRect = clientRects[0];
+ const lastRect = clientRects[clientRects.length - 1];
+ const isTop = getSide(placement) === 'top';
+ const top = firstRect.top;
+ const bottom = lastRect.bottom;
+ const left = isTop ? firstRect.left : lastRect.left;
+ const right = isTop ? firstRect.right : lastRect.right;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ const isLeftSide = getSide(placement) === 'left';
+ const maxRight = max(...clientRects.map(rect => rect.right));
+ const minLeft = min(...clientRects.map(rect => rect.left));
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
+ const top = measureRects[0].top;
+ const bottom = measureRects[measureRects.length - 1].bottom;
+ const left = minLeft;
+ const right = maxRight;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ return fallback;
+ }
+ const resetRects = await platform.getElementRects({
+ reference: {
+ getBoundingClientRect
+ },
+ floating: elements.floating,
+ strategy
+ });
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
+ return {
+ reset: {
+ rects: resetRects
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+const originSides = /*#__PURE__*/new Set(['left', 'top']);
+
+// For type backwards-compatibility, the `OffsetOptions` type was also
+// Derivable.
+
+async function convertValueToCoords(state, options) {
+ const {
+ placement,
+ platform,
+ elements
+ } = state;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isVertical = getSideAxis(placement) === 'y';
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
+ const rawValue = evaluate(options, state);
+
+ // eslint-disable-next-line prefer-const
+ let {
+ mainAxis,
+ crossAxis,
+ alignmentAxis
+ } = typeof rawValue === 'number' ? {
+ mainAxis: rawValue,
+ crossAxis: 0,
+ alignmentAxis: null
+ } : {
+ mainAxis: rawValue.mainAxis || 0,
+ crossAxis: rawValue.crossAxis || 0,
+ alignmentAxis: rawValue.alignmentAxis
+ };
+ if (alignment && typeof alignmentAxis === 'number') {
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
+ }
+ return isVertical ? {
+ x: crossAxis * crossAxisMulti,
+ y: mainAxis * mainAxisMulti
+ } : {
+ x: mainAxis * mainAxisMulti,
+ y: crossAxis * crossAxisMulti
+ };
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+const offset = function (options) {
+ if (options === void 0) {
+ options = 0;
+ }
+ return {
+ name: 'offset',
+ options,
+ async fn(state) {
+ var _middlewareData$offse, _middlewareData$arrow;
+ const {
+ x,
+ y,
+ placement,
+ middlewareData
+ } = state;
+ const diffCoords = await convertValueToCoords(state, options);
+
+ // If the placement is the same and the arrow caused an alignment offset
+ // then we don't need to change the positioning coordinates.
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ return {
+ x: x + diffCoords.x,
+ y: y + diffCoords.y,
+ data: {
+ ...diffCoords,
+ placement
+ }
+ };
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+const shift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'shift',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ platform
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = false,
+ limiter = {
+ fn: _ref => {
+ let {
+ x,
+ y
+ } = _ref;
+ return {
+ x,
+ y
+ };
+ }
+ },
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const crossAxis = getSideAxis(getSide(placement));
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ if (checkMainAxis) {
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
+ const min = mainAxisCoord + overflow[minSide];
+ const max = mainAxisCoord - overflow[maxSide];
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
+ }
+ if (checkCrossAxis) {
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
+ const min = crossAxisCoord + overflow[minSide];
+ const max = crossAxisCoord - overflow[maxSide];
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
+ }
+ const limitedCoords = limiter.fn({
+ ...state,
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ });
+ return {
+ ...limitedCoords,
+ data: {
+ x: limitedCoords.x - x,
+ y: limitedCoords.y - y,
+ enabled: {
+ [mainAxis]: checkMainAxis,
+ [crossAxis]: checkCrossAxis
+ }
+ }
+ };
+ }
+ };
+};
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+const limitShift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ options,
+ fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ middlewareData
+ } = state;
+ const {
+ offset = 0,
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const crossAxis = getSideAxis(placement);
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ const rawOffset = evaluate(offset, state);
+ const computedOffset = typeof rawOffset === 'number' ? {
+ mainAxis: rawOffset,
+ crossAxis: 0
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ ...rawOffset
+ };
+ if (checkMainAxis) {
+ const len = mainAxis === 'y' ? 'height' : 'width';
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
+ if (mainAxisCoord < limitMin) {
+ mainAxisCoord = limitMin;
+ } else if (mainAxisCoord > limitMax) {
+ mainAxisCoord = limitMax;
+ }
+ }
+ if (checkCrossAxis) {
+ var _middlewareData$offse, _middlewareData$offse2;
+ const len = mainAxis === 'y' ? 'width' : 'height';
+ const isOriginSide = originSides.has(getSide(placement));
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
+ if (crossAxisCoord < limitMin) {
+ crossAxisCoord = limitMin;
+ } else if (crossAxisCoord > limitMax) {
+ crossAxisCoord = limitMax;
+ }
+ }
+ return {
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ };
+ }
+ };
+};
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+const size = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'size',
+ options,
+ async fn(state) {
+ var _state$middlewareData, _state$middlewareData2;
+ const {
+ placement,
+ rects,
+ platform,
+ elements
+ } = state;
+ const {
+ apply = () => {},
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isYAxis = getSideAxis(placement) === 'y';
+ const {
+ width,
+ height
+ } = rects.floating;
+ let heightSide;
+ let widthSide;
+ if (side === 'top' || side === 'bottom') {
+ heightSide = side;
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
+ } else {
+ widthSide = side;
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
+ }
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
+ const maximumClippingWidth = width - overflow.left - overflow.right;
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
+ const noShift = !state.middlewareData.shift;
+ let availableHeight = overflowAvailableHeight;
+ let availableWidth = overflowAvailableWidth;
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ availableWidth = maximumClippingWidth;
+ }
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ availableHeight = maximumClippingHeight;
+ }
+ if (noShift && !alignment) {
+ const xMin = max(overflow.left, 0);
+ const xMax = max(overflow.right, 0);
+ const yMin = max(overflow.top, 0);
+ const yMax = max(overflow.bottom, 0);
+ if (isYAxis) {
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ } else {
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ }
+ }
+ await apply({
+ ...state,
+ availableWidth,
+ availableHeight
+ });
+ const nextDimensions = await platform.getDimensions(elements.floating);
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
+ return {
+ reset: {
+ rects: true
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+export { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.mjs b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..537eb0f56d979d40b8244c0c905d7785408e5998
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
@@ -0,0 +1,1058 @@
+import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';
+export { rectToClientRect } from '@floating-ui/utils';
+
+function computeCoordsFromPlacement(_ref, placement, rtl) {
+ let {
+ reference,
+ floating
+ } = _ref;
+ const sideAxis = getSideAxis(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const alignLength = getAxisLength(alignmentAxis);
+ const side = getSide(placement);
+ const isVertical = sideAxis === 'y';
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
+ let coords;
+ switch (side) {
+ case 'top':
+ coords = {
+ x: commonX,
+ y: reference.y - floating.height
+ };
+ break;
+ case 'bottom':
+ coords = {
+ x: commonX,
+ y: reference.y + reference.height
+ };
+ break;
+ case 'right':
+ coords = {
+ x: reference.x + reference.width,
+ y: commonY
+ };
+ break;
+ case 'left':
+ coords = {
+ x: reference.x - floating.width,
+ y: commonY
+ };
+ break;
+ default:
+ coords = {
+ x: reference.x,
+ y: reference.y
+ };
+ }
+ switch (getAlignment(placement)) {
+ case 'start':
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ case 'end':
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ }
+ return coords;
+}
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+async function detectOverflow(state, options) {
+ var _await$platform$isEle;
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ x,
+ y,
+ platform,
+ rects,
+ elements,
+ strategy
+ } = state;
+ const {
+ boundary = 'clippingAncestors',
+ rootBoundary = 'viewport',
+ elementContext = 'floating',
+ altBoundary = false,
+ padding = 0
+ } = evaluate(options, state);
+ const paddingObject = getPaddingObject(padding);
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
+ const element = elements[altBoundary ? altContext : elementContext];
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
+ boundary,
+ rootBoundary,
+ strategy
+ }));
+ const rect = elementContext === 'floating' ? {
+ x,
+ y,
+ width: rects.floating.width,
+ height: rects.floating.height
+ } : rects.reference;
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
+ x: 1,
+ y: 1
+ } : {
+ x: 1,
+ y: 1
+ };
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
+ elements,
+ rect,
+ offsetParent,
+ strategy
+ }) : rect);
+ return {
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
+ };
+}
+
+// Maximum number of resets that can occur before bailing to avoid infinite reset loops.
+const MAX_RESET_COUNT = 50;
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+const computePosition = async (reference, floating, config) => {
+ const {
+ placement = 'bottom',
+ strategy = 'absolute',
+ middleware = [],
+ platform
+ } = config;
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
+ ...platform,
+ detectOverflow
+ };
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
+ let rects = await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ });
+ let {
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, placement, rtl);
+ let statefulPlacement = placement;
+ let resetCount = 0;
+ const middlewareData = {};
+ for (let i = 0; i < middleware.length; i++) {
+ const currentMiddleware = middleware[i];
+ if (!currentMiddleware) {
+ continue;
+ }
+ const {
+ name,
+ fn
+ } = currentMiddleware;
+ const {
+ x: nextX,
+ y: nextY,
+ data,
+ reset
+ } = await fn({
+ x,
+ y,
+ initialPlacement: placement,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData,
+ rects,
+ platform: platformWithDetectOverflow,
+ elements: {
+ reference,
+ floating
+ }
+ });
+ x = nextX != null ? nextX : x;
+ y = nextY != null ? nextY : y;
+ middlewareData[name] = {
+ ...middlewareData[name],
+ ...data
+ };
+ if (reset && resetCount < MAX_RESET_COUNT) {
+ resetCount++;
+ if (typeof reset === 'object') {
+ if (reset.placement) {
+ statefulPlacement = reset.placement;
+ }
+ if (reset.rects) {
+ rects = reset.rects === true ? await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ }) : reset.rects;
+ }
+ ({
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
+ }
+ i = -1;
+ }
+ }
+ return {
+ x,
+ y,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData
+ };
+};
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+const arrow = options => ({
+ name: 'arrow',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ platform,
+ elements,
+ middlewareData
+ } = state;
+ // Since `element` is required, we don't Partial<> the type.
+ const {
+ element,
+ padding = 0
+ } = evaluate(options, state) || {};
+ if (element == null) {
+ return {};
+ }
+ const paddingObject = getPaddingObject(padding);
+ const coords = {
+ x,
+ y
+ };
+ const axis = getAlignmentAxis(placement);
+ const length = getAxisLength(axis);
+ const arrowDimensions = await platform.getDimensions(element);
+ const isYAxis = axis === 'y';
+ const minProp = isYAxis ? 'top' : 'left';
+ const maxProp = isYAxis ? 'bottom' : 'right';
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
+ const startDiff = coords[axis] - rects.reference[axis];
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
+
+ // DOM platform can return `window` as the `offsetParent`.
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
+ clientSize = elements.floating[clientProp] || rects.floating[length];
+ }
+ const centerToReference = endDiff / 2 - startDiff / 2;
+
+ // If the padding is large enough that it causes the arrow to no longer be
+ // centered, modify the padding so that it is centered.
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
+
+ // Make sure the arrow doesn't overflow the floating element if the center
+ // point is outside the floating element's bounds.
+ const min$1 = minPadding;
+ const max = clientSize - arrowDimensions[length] - maxPadding;
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
+ const offset = clamp(min$1, center, max);
+
+ // If the reference is small enough that the arrow's padding causes it to
+ // to point to nothing for an aligned placement, adjust the offset of the
+ // floating element itself. To ensure `shift()` continues to take action,
+ // a single reset is performed when this is true.
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
+ return {
+ [axis]: coords[axis] + alignmentOffset,
+ data: {
+ [axis]: offset,
+ centerOffset: center - offset - alignmentOffset,
+ ...(shouldAddOffset && {
+ alignmentOffset
+ })
+ },
+ reset: shouldAddOffset
+ };
+ }
+});
+
+function getPlacementList(alignment, autoAlignment, allowedPlacements) {
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
+ return allowedPlacementsSortedByAlignment.filter(placement => {
+ if (alignment) {
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
+ }
+ return true;
+ });
+}
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+const autoPlacement = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'autoPlacement',
+ options,
+ async fn(state) {
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
+ const {
+ rects,
+ middlewareData,
+ placement,
+ platform,
+ elements
+ } = state;
+ const {
+ crossAxis = false,
+ alignment,
+ allowedPlacements = placements,
+ autoAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
+ const currentPlacement = placements$1[currentIndex];
+ if (currentPlacement == null) {
+ return {};
+ }
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
+
+ // Make `computeCoords` start from the right place.
+ if (placement !== currentPlacement) {
+ return {
+ reset: {
+ placement: placements$1[0]
+ }
+ };
+ }
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
+ placement: currentPlacement,
+ overflows: currentOverflows
+ }];
+ const nextPlacement = placements$1[currentIndex + 1];
+
+ // There are more placements to check.
+ if (nextPlacement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ const placementsSortedByMostSpace = allOverflows.map(d => {
+ const alignment = getAlignment(d.placement);
+ return [d.placement, alignment && crossAxis ?
+ // Check along the mainAxis and main crossAxis side.
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
+ // Check only the mainAxis.
+ d.overflows[0], d.overflows];
+ }).sort((a, b) => a[1] - b[1]);
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
+ // Aligned placements should not check their opposite crossAxis
+ // side.
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
+ if (resetPlacement !== placement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+const flip = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'flip',
+ options,
+ async fn(state) {
+ var _middlewareData$arrow, _middlewareData$flip;
+ const {
+ placement,
+ middlewareData,
+ rects,
+ initialPlacement,
+ platform,
+ elements
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true,
+ fallbackPlacements: specifiedFallbackPlacements,
+ fallbackStrategy = 'bestFit',
+ fallbackAxisSideDirection = 'none',
+ flipAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+
+ // If a reset by the arrow was caused due to an alignment offset being
+ // added, we should skip any logic now since `flip()` has already done its
+ // work.
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ const side = getSide(placement);
+ const initialSideAxis = getSideAxis(initialPlacement);
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
+ }
+ const placements = [initialPlacement, ...fallbackPlacements];
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const overflows = [];
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
+ if (checkMainAxis) {
+ overflows.push(overflow[side]);
+ }
+ if (checkCrossAxis) {
+ const sides = getAlignmentSides(placement, rects, rtl);
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
+ }
+ overflowsData = [...overflowsData, {
+ placement,
+ overflows
+ }];
+
+ // One or more sides is overflowing.
+ if (!overflows.every(side => side <= 0)) {
+ var _middlewareData$flip2, _overflowsData$filter;
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
+ const nextPlacement = placements[nextIndex];
+ if (nextPlacement) {
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
+ if (!ignoreCrossAxisOverflow ||
+ // We leave the current main axis only if every placement on that axis
+ // overflows the main axis.
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
+ // Try next placement and re-run the lifecycle.
+ return {
+ data: {
+ index: nextIndex,
+ overflows: overflowsData
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ }
+
+ // First, find the candidates that fit on the mainAxis side of overflow,
+ // then find the placement that fits the best on the main crossAxis side.
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
+
+ // Otherwise fallback.
+ if (!resetPlacement) {
+ switch (fallbackStrategy) {
+ case 'bestFit':
+ {
+ var _overflowsData$filter2;
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
+ if (hasFallbackAxisSideDirection) {
+ const currentSideAxis = getSideAxis(d.placement);
+ return currentSideAxis === initialSideAxis ||
+ // Create a bias to the `y` side axis due to horizontal
+ // reading directions favoring greater width.
+ currentSideAxis === 'y';
+ }
+ return true;
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
+ if (placement) {
+ resetPlacement = placement;
+ }
+ break;
+ }
+ case 'initialPlacement':
+ resetPlacement = initialPlacement;
+ break;
+ }
+ }
+ if (placement !== resetPlacement) {
+ return {
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ }
+ return {};
+ }
+ };
+};
+
+function getSideOffsets(overflow, rect) {
+ return {
+ top: overflow.top - rect.height,
+ right: overflow.right - rect.width,
+ bottom: overflow.bottom - rect.height,
+ left: overflow.left - rect.width
+ };
+}
+function isAnySideFullyClipped(overflow) {
+ return sides.some(side => overflow[side] >= 0);
+}
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+const hide = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'hide',
+ options,
+ async fn(state) {
+ const {
+ rects,
+ platform
+ } = state;
+ const {
+ strategy = 'referenceHidden',
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ switch (strategy) {
+ case 'referenceHidden':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ elementContext: 'reference'
+ });
+ const offsets = getSideOffsets(overflow, rects.reference);
+ return {
+ data: {
+ referenceHiddenOffsets: offsets,
+ referenceHidden: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ case 'escaped':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ altBoundary: true
+ });
+ const offsets = getSideOffsets(overflow, rects.floating);
+ return {
+ data: {
+ escapedOffsets: offsets,
+ escaped: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ default:
+ {
+ return {};
+ }
+ }
+ }
+ };
+};
+
+function getBoundingRect(rects) {
+ const minX = min(...rects.map(rect => rect.left));
+ const minY = min(...rects.map(rect => rect.top));
+ const maxX = max(...rects.map(rect => rect.right));
+ const maxY = max(...rects.map(rect => rect.bottom));
+ return {
+ x: minX,
+ y: minY,
+ width: maxX - minX,
+ height: maxY - minY
+ };
+}
+function getRectsByLine(rects) {
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
+ const groups = [];
+ let prevRect = null;
+ for (let i = 0; i < sortedRects.length; i++) {
+ const rect = sortedRects[i];
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
+ groups.push([rect]);
+ } else {
+ groups[groups.length - 1].push(rect);
+ }
+ prevRect = rect;
+ }
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
+}
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+const inline = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'inline',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ elements,
+ rects,
+ platform,
+ strategy
+ } = state;
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
+ // ClientRect's bounds, despite the event listener being triggered. A
+ // padding of 2 seems to handle this issue.
+ const {
+ padding = 2,
+ x,
+ y
+ } = evaluate(options, state);
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
+ const clientRects = getRectsByLine(nativeClientRects);
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
+ const paddingObject = getPaddingObject(padding);
+ function getBoundingClientRect() {
+ // There are two rects and they are disjoined.
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
+ // Find the first rect in which the point is fully inside.
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
+ }
+
+ // There are 2 or more connected rects.
+ if (clientRects.length >= 2) {
+ if (getSideAxis(placement) === 'y') {
+ const firstRect = clientRects[0];
+ const lastRect = clientRects[clientRects.length - 1];
+ const isTop = getSide(placement) === 'top';
+ const top = firstRect.top;
+ const bottom = lastRect.bottom;
+ const left = isTop ? firstRect.left : lastRect.left;
+ const right = isTop ? firstRect.right : lastRect.right;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ const isLeftSide = getSide(placement) === 'left';
+ const maxRight = max(...clientRects.map(rect => rect.right));
+ const minLeft = min(...clientRects.map(rect => rect.left));
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
+ const top = measureRects[0].top;
+ const bottom = measureRects[measureRects.length - 1].bottom;
+ const left = minLeft;
+ const right = maxRight;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ return fallback;
+ }
+ const resetRects = await platform.getElementRects({
+ reference: {
+ getBoundingClientRect
+ },
+ floating: elements.floating,
+ strategy
+ });
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
+ return {
+ reset: {
+ rects: resetRects
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+const originSides = /*#__PURE__*/new Set(['left', 'top']);
+
+// For type backwards-compatibility, the `OffsetOptions` type was also
+// Derivable.
+
+async function convertValueToCoords(state, options) {
+ const {
+ placement,
+ platform,
+ elements
+ } = state;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isVertical = getSideAxis(placement) === 'y';
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
+ const rawValue = evaluate(options, state);
+
+ // eslint-disable-next-line prefer-const
+ let {
+ mainAxis,
+ crossAxis,
+ alignmentAxis
+ } = typeof rawValue === 'number' ? {
+ mainAxis: rawValue,
+ crossAxis: 0,
+ alignmentAxis: null
+ } : {
+ mainAxis: rawValue.mainAxis || 0,
+ crossAxis: rawValue.crossAxis || 0,
+ alignmentAxis: rawValue.alignmentAxis
+ };
+ if (alignment && typeof alignmentAxis === 'number') {
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
+ }
+ return isVertical ? {
+ x: crossAxis * crossAxisMulti,
+ y: mainAxis * mainAxisMulti
+ } : {
+ x: mainAxis * mainAxisMulti,
+ y: crossAxis * crossAxisMulti
+ };
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+const offset = function (options) {
+ if (options === void 0) {
+ options = 0;
+ }
+ return {
+ name: 'offset',
+ options,
+ async fn(state) {
+ var _middlewareData$offse, _middlewareData$arrow;
+ const {
+ x,
+ y,
+ placement,
+ middlewareData
+ } = state;
+ const diffCoords = await convertValueToCoords(state, options);
+
+ // If the placement is the same and the arrow caused an alignment offset
+ // then we don't need to change the positioning coordinates.
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ return {
+ x: x + diffCoords.x,
+ y: y + diffCoords.y,
+ data: {
+ ...diffCoords,
+ placement
+ }
+ };
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+const shift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'shift',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ platform
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = false,
+ limiter = {
+ fn: _ref => {
+ let {
+ x,
+ y
+ } = _ref;
+ return {
+ x,
+ y
+ };
+ }
+ },
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const crossAxis = getSideAxis(getSide(placement));
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ if (checkMainAxis) {
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
+ const min = mainAxisCoord + overflow[minSide];
+ const max = mainAxisCoord - overflow[maxSide];
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
+ }
+ if (checkCrossAxis) {
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
+ const min = crossAxisCoord + overflow[minSide];
+ const max = crossAxisCoord - overflow[maxSide];
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
+ }
+ const limitedCoords = limiter.fn({
+ ...state,
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ });
+ return {
+ ...limitedCoords,
+ data: {
+ x: limitedCoords.x - x,
+ y: limitedCoords.y - y,
+ enabled: {
+ [mainAxis]: checkMainAxis,
+ [crossAxis]: checkCrossAxis
+ }
+ }
+ };
+ }
+ };
+};
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+const limitShift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ options,
+ fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ middlewareData
+ } = state;
+ const {
+ offset = 0,
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const crossAxis = getSideAxis(placement);
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ const rawOffset = evaluate(offset, state);
+ const computedOffset = typeof rawOffset === 'number' ? {
+ mainAxis: rawOffset,
+ crossAxis: 0
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ ...rawOffset
+ };
+ if (checkMainAxis) {
+ const len = mainAxis === 'y' ? 'height' : 'width';
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
+ if (mainAxisCoord < limitMin) {
+ mainAxisCoord = limitMin;
+ } else if (mainAxisCoord > limitMax) {
+ mainAxisCoord = limitMax;
+ }
+ }
+ if (checkCrossAxis) {
+ var _middlewareData$offse, _middlewareData$offse2;
+ const len = mainAxis === 'y' ? 'width' : 'height';
+ const isOriginSide = originSides.has(getSide(placement));
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
+ if (crossAxisCoord < limitMin) {
+ crossAxisCoord = limitMin;
+ } else if (crossAxisCoord > limitMax) {
+ crossAxisCoord = limitMax;
+ }
+ }
+ return {
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ };
+ }
+ };
+};
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+const size = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'size',
+ options,
+ async fn(state) {
+ var _state$middlewareData, _state$middlewareData2;
+ const {
+ placement,
+ rects,
+ platform,
+ elements
+ } = state;
+ const {
+ apply = () => {},
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isYAxis = getSideAxis(placement) === 'y';
+ const {
+ width,
+ height
+ } = rects.floating;
+ let heightSide;
+ let widthSide;
+ if (side === 'top' || side === 'bottom') {
+ heightSide = side;
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
+ } else {
+ widthSide = side;
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
+ }
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
+ const maximumClippingWidth = width - overflow.left - overflow.right;
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
+ const noShift = !state.middlewareData.shift;
+ let availableHeight = overflowAvailableHeight;
+ let availableWidth = overflowAvailableWidth;
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ availableWidth = maximumClippingWidth;
+ }
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ availableHeight = maximumClippingHeight;
+ }
+ if (noShift && !alignment) {
+ const xMin = max(overflow.left, 0);
+ const xMax = max(overflow.right, 0);
+ const yMin = max(overflow.top, 0);
+ const yMax = max(overflow.bottom, 0);
+ if (isYAxis) {
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ } else {
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ }
+ }
+ await apply({
+ ...state,
+ availableWidth,
+ availableHeight
+ });
+ const nextDimensions = await platform.getDimensions(elements.floating);
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
+ return {
+ reset: {
+ rects: true
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+export { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js
new file mode 100644
index 0000000000000000000000000000000000000000..31df0442d4cf7715f335c202ba4bd5c03d6f2cdc
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.js
@@ -0,0 +1,1203 @@
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.FloatingUICore = {}));
+})(this, (function (exports) { 'use strict';
+
+ /**
+ * Custom positioning reference element.
+ * @see https://floating-ui.com/docs/virtual-elements
+ */
+
+ const sides = ['top', 'right', 'bottom', 'left'];
+ const alignments = ['start', 'end'];
+ const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
+ const min = Math.min;
+ const max = Math.max;
+ const oppositeSideMap = {
+ left: 'right',
+ right: 'left',
+ bottom: 'top',
+ top: 'bottom'
+ };
+ function clamp(start, value, end) {
+ return max(start, min(value, end));
+ }
+ function evaluate(value, param) {
+ return typeof value === 'function' ? value(param) : value;
+ }
+ function getSide(placement) {
+ return placement.split('-')[0];
+ }
+ function getAlignment(placement) {
+ return placement.split('-')[1];
+ }
+ function getOppositeAxis(axis) {
+ return axis === 'x' ? 'y' : 'x';
+ }
+ function getAxisLength(axis) {
+ return axis === 'y' ? 'height' : 'width';
+ }
+ function getSideAxis(placement) {
+ const firstChar = placement[0];
+ return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';
+ }
+ function getAlignmentAxis(placement) {
+ return getOppositeAxis(getSideAxis(placement));
+ }
+ function getAlignmentSides(placement, rects, rtl) {
+ if (rtl === void 0) {
+ rtl = false;
+ }
+ const alignment = getAlignment(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const length = getAxisLength(alignmentAxis);
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
+ if (rects.reference[length] > rects.floating[length]) {
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
+ }
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
+ }
+ function getExpandedPlacements(placement) {
+ const oppositePlacement = getOppositePlacement(placement);
+ return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
+ }
+ function getOppositeAlignmentPlacement(placement) {
+ return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');
+ }
+ const lrPlacement = ['left', 'right'];
+ const rlPlacement = ['right', 'left'];
+ const tbPlacement = ['top', 'bottom'];
+ const btPlacement = ['bottom', 'top'];
+ function getSideList(side, isStart, rtl) {
+ switch (side) {
+ case 'top':
+ case 'bottom':
+ if (rtl) return isStart ? rlPlacement : lrPlacement;
+ return isStart ? lrPlacement : rlPlacement;
+ case 'left':
+ case 'right':
+ return isStart ? tbPlacement : btPlacement;
+ default:
+ return [];
+ }
+ }
+ function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
+ const alignment = getAlignment(placement);
+ let list = getSideList(getSide(placement), direction === 'start', rtl);
+ if (alignment) {
+ list = list.map(side => side + "-" + alignment);
+ if (flipAlignment) {
+ list = list.concat(list.map(getOppositeAlignmentPlacement));
+ }
+ }
+ return list;
+ }
+ function getOppositePlacement(placement) {
+ const side = getSide(placement);
+ return oppositeSideMap[side] + placement.slice(side.length);
+ }
+ function expandPaddingObject(padding) {
+ return {
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
+ ...padding
+ };
+ }
+ function getPaddingObject(padding) {
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
+ top: padding,
+ right: padding,
+ bottom: padding,
+ left: padding
+ };
+ }
+ function rectToClientRect(rect) {
+ const {
+ x,
+ y,
+ width,
+ height
+ } = rect;
+ return {
+ width,
+ height,
+ top: y,
+ left: x,
+ right: x + width,
+ bottom: y + height,
+ x,
+ y
+ };
+ }
+
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
+ let {
+ reference,
+ floating
+ } = _ref;
+ const sideAxis = getSideAxis(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const alignLength = getAxisLength(alignmentAxis);
+ const side = getSide(placement);
+ const isVertical = sideAxis === 'y';
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
+ let coords;
+ switch (side) {
+ case 'top':
+ coords = {
+ x: commonX,
+ y: reference.y - floating.height
+ };
+ break;
+ case 'bottom':
+ coords = {
+ x: commonX,
+ y: reference.y + reference.height
+ };
+ break;
+ case 'right':
+ coords = {
+ x: reference.x + reference.width,
+ y: commonY
+ };
+ break;
+ case 'left':
+ coords = {
+ x: reference.x - floating.width,
+ y: commonY
+ };
+ break;
+ default:
+ coords = {
+ x: reference.x,
+ y: reference.y
+ };
+ }
+ switch (getAlignment(placement)) {
+ case 'start':
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ case 'end':
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ }
+ return coords;
+ }
+
+ /**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+ async function detectOverflow(state, options) {
+ var _await$platform$isEle;
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ x,
+ y,
+ platform,
+ rects,
+ elements,
+ strategy
+ } = state;
+ const {
+ boundary = 'clippingAncestors',
+ rootBoundary = 'viewport',
+ elementContext = 'floating',
+ altBoundary = false,
+ padding = 0
+ } = evaluate(options, state);
+ const paddingObject = getPaddingObject(padding);
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
+ const element = elements[altBoundary ? altContext : elementContext];
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
+ boundary,
+ rootBoundary,
+ strategy
+ }));
+ const rect = elementContext === 'floating' ? {
+ x,
+ y,
+ width: rects.floating.width,
+ height: rects.floating.height
+ } : rects.reference;
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
+ x: 1,
+ y: 1
+ } : {
+ x: 1,
+ y: 1
+ };
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
+ elements,
+ rect,
+ offsetParent,
+ strategy
+ }) : rect);
+ return {
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
+ };
+ }
+
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
+ const MAX_RESET_COUNT = 50;
+
+ /**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a given reference element.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+ const computePosition = async (reference, floating, config) => {
+ const {
+ placement = 'bottom',
+ strategy = 'absolute',
+ middleware = [],
+ platform
+ } = config;
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
+ ...platform,
+ detectOverflow
+ };
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
+ let rects = await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ });
+ let {
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, placement, rtl);
+ let statefulPlacement = placement;
+ let resetCount = 0;
+ const middlewareData = {};
+ for (let i = 0; i < middleware.length; i++) {
+ const currentMiddleware = middleware[i];
+ if (!currentMiddleware) {
+ continue;
+ }
+ const {
+ name,
+ fn
+ } = currentMiddleware;
+ const {
+ x: nextX,
+ y: nextY,
+ data,
+ reset
+ } = await fn({
+ x,
+ y,
+ initialPlacement: placement,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData,
+ rects,
+ platform: platformWithDetectOverflow,
+ elements: {
+ reference,
+ floating
+ }
+ });
+ x = nextX != null ? nextX : x;
+ y = nextY != null ? nextY : y;
+ middlewareData[name] = {
+ ...middlewareData[name],
+ ...data
+ };
+ if (reset && resetCount < MAX_RESET_COUNT) {
+ resetCount++;
+ if (typeof reset === 'object') {
+ if (reset.placement) {
+ statefulPlacement = reset.placement;
+ }
+ if (reset.rects) {
+ rects = reset.rects === true ? await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ }) : reset.rects;
+ }
+ ({
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
+ }
+ i = -1;
+ }
+ }
+ return {
+ x,
+ y,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData
+ };
+ };
+
+ /**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+ const arrow = options => ({
+ name: 'arrow',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ platform,
+ elements,
+ middlewareData
+ } = state;
+ // Since `element` is required, we don't Partial<> the type.
+ const {
+ element,
+ padding = 0
+ } = evaluate(options, state) || {};
+ if (element == null) {
+ return {};
+ }
+ const paddingObject = getPaddingObject(padding);
+ const coords = {
+ x,
+ y
+ };
+ const axis = getAlignmentAxis(placement);
+ const length = getAxisLength(axis);
+ const arrowDimensions = await platform.getDimensions(element);
+ const isYAxis = axis === 'y';
+ const minProp = isYAxis ? 'top' : 'left';
+ const maxProp = isYAxis ? 'bottom' : 'right';
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
+ const startDiff = coords[axis] - rects.reference[axis];
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
+
+ // DOM platform can return `window` as the `offsetParent`.
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
+ clientSize = elements.floating[clientProp] || rects.floating[length];
+ }
+ const centerToReference = endDiff / 2 - startDiff / 2;
+
+ // If the padding is large enough that it causes the arrow to no longer be
+ // centered, modify the padding so that it is centered.
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
+
+ // Make sure the arrow doesn't overflow the floating element if the center
+ // point is outside the floating element's bounds.
+ const min$1 = minPadding;
+ const max = clientSize - arrowDimensions[length] - maxPadding;
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
+ const offset = clamp(min$1, center, max);
+
+ // If the reference is small enough that the arrow's padding causes it to
+ // to point to nothing for an aligned placement, adjust the offset of the
+ // floating element itself. To ensure `shift()` continues to take action,
+ // a single reset is performed when this is true.
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
+ return {
+ [axis]: coords[axis] + alignmentOffset,
+ data: {
+ [axis]: offset,
+ centerOffset: center - offset - alignmentOffset,
+ ...(shouldAddOffset && {
+ alignmentOffset
+ })
+ },
+ reset: shouldAddOffset
+ };
+ }
+ });
+
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
+ return allowedPlacementsSortedByAlignment.filter(placement => {
+ if (alignment) {
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
+ }
+ return true;
+ });
+ }
+ /**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+ const autoPlacement = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'autoPlacement',
+ options,
+ async fn(state) {
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
+ const {
+ rects,
+ middlewareData,
+ placement,
+ platform,
+ elements
+ } = state;
+ const {
+ crossAxis = false,
+ alignment,
+ allowedPlacements = placements,
+ autoAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
+ const currentPlacement = placements$1[currentIndex];
+ if (currentPlacement == null) {
+ return {};
+ }
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
+
+ // Make `computeCoords` start from the right place.
+ if (placement !== currentPlacement) {
+ return {
+ reset: {
+ placement: placements$1[0]
+ }
+ };
+ }
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
+ placement: currentPlacement,
+ overflows: currentOverflows
+ }];
+ const nextPlacement = placements$1[currentIndex + 1];
+
+ // There are more placements to check.
+ if (nextPlacement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ const placementsSortedByMostSpace = allOverflows.map(d => {
+ const alignment = getAlignment(d.placement);
+ return [d.placement, alignment && crossAxis ?
+ // Check along the mainAxis and main crossAxis side.
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
+ // Check only the mainAxis.
+ d.overflows[0], d.overflows];
+ }).sort((a, b) => a[1] - b[1]);
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
+ // Aligned placements should not check their opposite crossAxis
+ // side.
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
+ if (resetPlacement !== placement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ return {};
+ }
+ };
+ };
+
+ /**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+ const flip = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'flip',
+ options,
+ async fn(state) {
+ var _middlewareData$arrow, _middlewareData$flip;
+ const {
+ placement,
+ middlewareData,
+ rects,
+ initialPlacement,
+ platform,
+ elements
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true,
+ fallbackPlacements: specifiedFallbackPlacements,
+ fallbackStrategy = 'bestFit',
+ fallbackAxisSideDirection = 'none',
+ flipAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+
+ // If a reset by the arrow was caused due to an alignment offset being
+ // added, we should skip any logic now since `flip()` has already done its
+ // work.
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ const side = getSide(placement);
+ const initialSideAxis = getSideAxis(initialPlacement);
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
+ }
+ const placements = [initialPlacement, ...fallbackPlacements];
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const overflows = [];
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
+ if (checkMainAxis) {
+ overflows.push(overflow[side]);
+ }
+ if (checkCrossAxis) {
+ const sides = getAlignmentSides(placement, rects, rtl);
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
+ }
+ overflowsData = [...overflowsData, {
+ placement,
+ overflows
+ }];
+
+ // One or more sides is overflowing.
+ if (!overflows.every(side => side <= 0)) {
+ var _middlewareData$flip2, _overflowsData$filter;
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
+ const nextPlacement = placements[nextIndex];
+ if (nextPlacement) {
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
+ if (!ignoreCrossAxisOverflow ||
+ // We leave the current main axis only if every placement on that axis
+ // overflows the main axis.
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
+ // Try next placement and re-run the lifecycle.
+ return {
+ data: {
+ index: nextIndex,
+ overflows: overflowsData
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ }
+
+ // First, find the candidates that fit on the mainAxis side of overflow,
+ // then find the placement that fits the best on the main crossAxis side.
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
+
+ // Otherwise fallback.
+ if (!resetPlacement) {
+ switch (fallbackStrategy) {
+ case 'bestFit':
+ {
+ var _overflowsData$filter2;
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
+ if (hasFallbackAxisSideDirection) {
+ const currentSideAxis = getSideAxis(d.placement);
+ return currentSideAxis === initialSideAxis ||
+ // Create a bias to the `y` side axis due to horizontal
+ // reading directions favoring greater width.
+ currentSideAxis === 'y';
+ }
+ return true;
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
+ if (placement) {
+ resetPlacement = placement;
+ }
+ break;
+ }
+ case 'initialPlacement':
+ resetPlacement = initialPlacement;
+ break;
+ }
+ }
+ if (placement !== resetPlacement) {
+ return {
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ }
+ return {};
+ }
+ };
+ };
+
+ function getSideOffsets(overflow, rect) {
+ return {
+ top: overflow.top - rect.height,
+ right: overflow.right - rect.width,
+ bottom: overflow.bottom - rect.height,
+ left: overflow.left - rect.width
+ };
+ }
+ function isAnySideFullyClipped(overflow) {
+ return sides.some(side => overflow[side] >= 0);
+ }
+ /**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+ const hide = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'hide',
+ options,
+ async fn(state) {
+ const {
+ rects,
+ platform
+ } = state;
+ const {
+ strategy = 'referenceHidden',
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ switch (strategy) {
+ case 'referenceHidden':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ elementContext: 'reference'
+ });
+ const offsets = getSideOffsets(overflow, rects.reference);
+ return {
+ data: {
+ referenceHiddenOffsets: offsets,
+ referenceHidden: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ case 'escaped':
+ {
+ const overflow = await platform.detectOverflow(state, {
+ ...detectOverflowOptions,
+ altBoundary: true
+ });
+ const offsets = getSideOffsets(overflow, rects.floating);
+ return {
+ data: {
+ escapedOffsets: offsets,
+ escaped: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ default:
+ {
+ return {};
+ }
+ }
+ }
+ };
+ };
+
+ function getBoundingRect(rects) {
+ const minX = min(...rects.map(rect => rect.left));
+ const minY = min(...rects.map(rect => rect.top));
+ const maxX = max(...rects.map(rect => rect.right));
+ const maxY = max(...rects.map(rect => rect.bottom));
+ return {
+ x: minX,
+ y: minY,
+ width: maxX - minX,
+ height: maxY - minY
+ };
+ }
+ function getRectsByLine(rects) {
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
+ const groups = [];
+ let prevRect = null;
+ for (let i = 0; i < sortedRects.length; i++) {
+ const rect = sortedRects[i];
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
+ groups.push([rect]);
+ } else {
+ groups[groups.length - 1].push(rect);
+ }
+ prevRect = rect;
+ }
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
+ }
+ /**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+ const inline = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'inline',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ elements,
+ rects,
+ platform,
+ strategy
+ } = state;
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
+ // ClientRect's bounds, despite the event listener being triggered. A
+ // padding of 2 seems to handle this issue.
+ const {
+ padding = 2,
+ x,
+ y
+ } = evaluate(options, state);
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
+ const clientRects = getRectsByLine(nativeClientRects);
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
+ const paddingObject = getPaddingObject(padding);
+ function getBoundingClientRect() {
+ // There are two rects and they are disjoined.
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
+ // Find the first rect in which the point is fully inside.
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
+ }
+
+ // There are 2 or more connected rects.
+ if (clientRects.length >= 2) {
+ if (getSideAxis(placement) === 'y') {
+ const firstRect = clientRects[0];
+ const lastRect = clientRects[clientRects.length - 1];
+ const isTop = getSide(placement) === 'top';
+ const top = firstRect.top;
+ const bottom = lastRect.bottom;
+ const left = isTop ? firstRect.left : lastRect.left;
+ const right = isTop ? firstRect.right : lastRect.right;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ const isLeftSide = getSide(placement) === 'left';
+ const maxRight = max(...clientRects.map(rect => rect.right));
+ const minLeft = min(...clientRects.map(rect => rect.left));
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
+ const top = measureRects[0].top;
+ const bottom = measureRects[measureRects.length - 1].bottom;
+ const left = minLeft;
+ const right = maxRight;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ return fallback;
+ }
+ const resetRects = await platform.getElementRects({
+ reference: {
+ getBoundingClientRect
+ },
+ floating: elements.floating,
+ strategy
+ });
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
+ return {
+ reset: {
+ rects: resetRects
+ }
+ };
+ }
+ return {};
+ }
+ };
+ };
+
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
+
+ // For type backwards-compatibility, the `OffsetOptions` type was also
+ // Derivable.
+
+ async function convertValueToCoords(state, options) {
+ const {
+ placement,
+ platform,
+ elements
+ } = state;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isVertical = getSideAxis(placement) === 'y';
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
+ const rawValue = evaluate(options, state);
+
+ // eslint-disable-next-line prefer-const
+ let {
+ mainAxis,
+ crossAxis,
+ alignmentAxis
+ } = typeof rawValue === 'number' ? {
+ mainAxis: rawValue,
+ crossAxis: 0,
+ alignmentAxis: null
+ } : {
+ mainAxis: rawValue.mainAxis || 0,
+ crossAxis: rawValue.crossAxis || 0,
+ alignmentAxis: rawValue.alignmentAxis
+ };
+ if (alignment && typeof alignmentAxis === 'number') {
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
+ }
+ return isVertical ? {
+ x: crossAxis * crossAxisMulti,
+ y: mainAxis * mainAxisMulti
+ } : {
+ x: mainAxis * mainAxisMulti,
+ y: crossAxis * crossAxisMulti
+ };
+ }
+
+ /**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+ const offset = function (options) {
+ if (options === void 0) {
+ options = 0;
+ }
+ return {
+ name: 'offset',
+ options,
+ async fn(state) {
+ var _middlewareData$offse, _middlewareData$arrow;
+ const {
+ x,
+ y,
+ placement,
+ middlewareData
+ } = state;
+ const diffCoords = await convertValueToCoords(state, options);
+
+ // If the placement is the same and the arrow caused an alignment offset
+ // then we don't need to change the positioning coordinates.
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ return {
+ x: x + diffCoords.x,
+ y: y + diffCoords.y,
+ data: {
+ ...diffCoords,
+ placement
+ }
+ };
+ }
+ };
+ };
+
+ /**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+ const shift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'shift',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ platform
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = false,
+ limiter = {
+ fn: _ref => {
+ let {
+ x,
+ y
+ } = _ref;
+ return {
+ x,
+ y
+ };
+ }
+ },
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const crossAxis = getSideAxis(getSide(placement));
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ if (checkMainAxis) {
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
+ const min = mainAxisCoord + overflow[minSide];
+ const max = mainAxisCoord - overflow[maxSide];
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
+ }
+ if (checkCrossAxis) {
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
+ const min = crossAxisCoord + overflow[minSide];
+ const max = crossAxisCoord - overflow[maxSide];
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
+ }
+ const limitedCoords = limiter.fn({
+ ...state,
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ });
+ return {
+ ...limitedCoords,
+ data: {
+ x: limitedCoords.x - x,
+ y: limitedCoords.y - y,
+ enabled: {
+ [mainAxis]: checkMainAxis,
+ [crossAxis]: checkCrossAxis
+ }
+ }
+ };
+ }
+ };
+ };
+ /**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+ const limitShift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ options,
+ fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ middlewareData
+ } = state;
+ const {
+ offset = 0,
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const crossAxis = getSideAxis(placement);
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ const rawOffset = evaluate(offset, state);
+ const computedOffset = typeof rawOffset === 'number' ? {
+ mainAxis: rawOffset,
+ crossAxis: 0
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ ...rawOffset
+ };
+ if (checkMainAxis) {
+ const len = mainAxis === 'y' ? 'height' : 'width';
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
+ if (mainAxisCoord < limitMin) {
+ mainAxisCoord = limitMin;
+ } else if (mainAxisCoord > limitMax) {
+ mainAxisCoord = limitMax;
+ }
+ }
+ if (checkCrossAxis) {
+ var _middlewareData$offse, _middlewareData$offse2;
+ const len = mainAxis === 'y' ? 'width' : 'height';
+ const isOriginSide = originSides.has(getSide(placement));
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
+ if (crossAxisCoord < limitMin) {
+ crossAxisCoord = limitMin;
+ } else if (crossAxisCoord > limitMax) {
+ crossAxisCoord = limitMax;
+ }
+ }
+ return {
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ };
+ }
+ };
+ };
+
+ /**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+ const size = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'size',
+ options,
+ async fn(state) {
+ var _state$middlewareData, _state$middlewareData2;
+ const {
+ placement,
+ rects,
+ platform,
+ elements
+ } = state;
+ const {
+ apply = () => {},
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
+ const side = getSide(placement);
+ const alignment = getAlignment(placement);
+ const isYAxis = getSideAxis(placement) === 'y';
+ const {
+ width,
+ height
+ } = rects.floating;
+ let heightSide;
+ let widthSide;
+ if (side === 'top' || side === 'bottom') {
+ heightSide = side;
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
+ } else {
+ widthSide = side;
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
+ }
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
+ const maximumClippingWidth = width - overflow.left - overflow.right;
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
+ const noShift = !state.middlewareData.shift;
+ let availableHeight = overflowAvailableHeight;
+ let availableWidth = overflowAvailableWidth;
+ if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
+ availableWidth = maximumClippingWidth;
+ }
+ if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
+ availableHeight = maximumClippingHeight;
+ }
+ if (noShift && !alignment) {
+ const xMin = max(overflow.left, 0);
+ const xMax = max(overflow.right, 0);
+ const yMin = max(overflow.top, 0);
+ const yMax = max(overflow.bottom, 0);
+ if (isYAxis) {
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
+ } else {
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
+ }
+ }
+ await apply({
+ ...state,
+ availableWidth,
+ availableHeight
+ });
+ const nextDimensions = await platform.getDimensions(elements.floating);
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
+ return {
+ reset: {
+ rects: true
+ }
+ };
+ }
+ return {};
+ }
+ };
+ };
+
+ exports.arrow = arrow;
+ exports.autoPlacement = autoPlacement;
+ exports.computePosition = computePosition;
+ exports.detectOverflow = detectOverflow;
+ exports.flip = flip;
+ exports.hide = hide;
+ exports.inline = inline;
+ exports.limitShift = limitShift;
+ exports.offset = offset;
+ exports.rectToClientRect = rectToClientRect;
+ exports.shift = shift;
+ exports.size = size;
+
+}));
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..d402812d309e367f14ea99d0862342adaa34c725
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/dist/floating-ui.core.umd.min.js
@@ -0,0 +1 @@
+!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).FloatingUICore={})}(this,(function(t){"use strict";const e=["top","right","bottom","left"],n=["start","end"],i=e.reduce(((t,e)=>t.concat(e,e+"-"+n[0],e+"-"+n[1])),[]),o=Math.min,r=Math.max,a={left:"right",right:"left",bottom:"top",top:"bottom"};function l(t,e,n){return r(t,o(e,n))}function s(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function c(t){return t.split("-")[1]}function m(t){return"x"===t?"y":"x"}function u(t){return"y"===t?"height":"width"}function d(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function g(t){return m(d(t))}function p(t,e,n){void 0===n&&(n=!1);const i=c(t),o=g(t),r=u(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=A(a)),[a,A(a)]}function h(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const y=["left","right"],w=["right","left"],x=["top","bottom"],v=["bottom","top"];function b(t,e,n,i){const o=c(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?w:y:e?y:w;case"left":case"right":return e?x:v;default:return[]}}(f(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(h)))),r}function A(t){const e=f(t);return a[e]+t.slice(e.length)}function R(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function O(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function P(t,e,n){let{reference:i,floating:o}=t;const r=d(e),a=g(e),l=u(a),s=f(e),m="y"===r,p=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;let w;switch(s){case"top":w={x:p,y:i.y-o.height};break;case"bottom":w={x:p,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:h};break;case"left":w={x:i.x-o.width,y:h};break;default:w={x:i.x,y:i.y}}switch(c(e)){case"start":w[a]-=y*(n&&m?-1:1);break;case"end":w[a]+=y*(n&&m?-1:1)}return w}async function D(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:l,strategy:f}=t,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:u="floating",altBoundary:d=!1,padding:g=0}=s(e,t),p=R(g),h=l[d?"floating"===u?"reference":"floating":u],y=O(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(h)))||n?h:h.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:m,strategy:f})),w="floating"===u?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),v=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=O(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:w,offsetParent:x,strategy:f}):w);return{top:(y.top-b.top+p.top)/v.y,bottom:(b.bottom-y.bottom+p.bottom)/v.y,left:(y.left-b.left+p.left)/v.x,right:(b.right-y.right+p.right)/v.x}}function T(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return e.some((e=>t[e]>=0))}function L(t){const e=o(...t.map((t=>t.left))),n=o(...t.map((t=>t.top)));return{x:e,y:n,width:r(...t.map((t=>t.right)))-e,height:r(...t.map((t=>t.bottom)))-n}}const k=new Set(["left","top"]);t.arrow=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:a,platform:f,elements:m,middlewareData:d}=e,{element:p,padding:h=0}=s(t,e)||{};if(null==p)return{};const y=R(h),w={x:n,y:i},x=g(r),v=u(x),b=await f.getDimensions(p),A="y"===x,O=A?"top":"left",P=A?"bottom":"right",D=A?"clientHeight":"clientWidth",T=a.reference[v]+a.reference[x]-w[x]-a.floating[v],E=w[x]-a.reference[x],L=await(null==f.getOffsetParent?void 0:f.getOffsetParent(p));let k=L?L[D]:0;k&&await(null==f.isElement?void 0:f.isElement(L))||(k=m.floating[D]||a.floating[v]);const C=T/2-E/2,H=k/2-b[v]/2-1,S=o(y[O],H),B=o(y[P],H),F=S,j=k-b[v]-B,z=k/2-b[v]/2+C,M=l(F,z,j),V=!d.arrow&&null!=c(r)&&z!==M&&a.reference[v]/2-(zc(e)===t)),...n.filter((e=>c(e)!==t))]:n.filter((t=>f(t)===t))).filter((n=>!t||c(n)===t||!!e&&h(n)!==n))}(y||null,x,w):w,A=await u.detectOverflow(e,v),R=(null==(n=l.autoPlacement)?void 0:n.index)||0,O=b[R];if(null==O)return{};const P=p(O,a,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(m!==O)return{reset:{placement:b[0]}};const D=[A[f(O)],A[P[0]],A[P[1]]],T=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:O,overflows:D}],E=b[R+1];if(E)return{data:{index:R+1,overflows:T},reset:{placement:E}};const L=T.map((t=>{const e=c(t.placement);return[t.placement,e&&g?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),k=(null==(r=L.filter((t=>t[2].slice(0,c(t[0])?2:3).every((t=>t<=0))))[0])?void 0:r[0])||L[0][0];return k!==m?{data:{index:R+1,overflows:T},reset:{placement:k}}:{}}}},t.computePosition=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:D},s=await(null==a.isRTL?void 0:a.isRTL(e));let f=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:m}=P(f,i,s),u=i,d=0;const g={};for(let n=0;nt<=0))){var B,F;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=k[t];if(e){if(!("alignment"===g&&P!==d(e))||S.every((t=>d(t.placement)!==P||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}}}let n=null==(F=S.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(w){case"bestFit":{var j;const t=null==(j=S.filter((t=>{if(L){const e=d(t.placement);return e===P||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:j[0];t&&(n=t);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}},t.hide=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:i}=e,{strategy:o="referenceHidden",...r}=s(t,e);switch(o){case"referenceHidden":{const t=T(await i.detectOverflow(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:E(t)}}}case"escaped":{const t=T(await i.detectOverflow(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:E(t)}}}default:return{}}}}},t.inline=function(t){return void 0===t&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:i,rects:a,platform:l,strategy:c}=e,{padding:m=2,x:u,y:g}=s(t,e),p=Array.from(await(null==l.getClientRects?void 0:l.getClientRects(i.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let i=null;for(let t=0;ti.height/2?n.push([o]):n[n.length-1].push(o),i=o}return n.map((t=>O(L(t))))}(p),y=O(L(p)),w=R(m);const x=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=g)return h.find((t=>u>t.left-w.left&&ut.top-w.top&&g=2){if("y"===d(n)){const t=h[0],e=h[h.length-1],i="top"===f(n),o=t.top,r=e.bottom,a=i?t.left:e.left,l=i?t.right:e.right;return{top:o,bottom:r,left:a,right:l,width:l-a,height:r-o,x:a,y:o}}const t="left"===f(n),e=r(...h.map((t=>t.right))),i=o(...h.map((t=>t.left))),a=h.filter((n=>t?n.left===i:n.right===e)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:e,width:e-i,height:s-l,x:i,y:l}}return y}},floating:i.floating,strategy:c});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},t.limitShift=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:r,middlewareData:a}=e,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=s(t,e),g={x:n,y:i},p=d(o),h=m(p);let y=g[h],w=g[p];const x=s(l,e),v="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const t="y"===h?"height":"width",e=r.reference[h]-r.floating[t]+v.mainAxis,n=r.reference[h]+r.reference[t]-v.mainAxis;yn&&(y=n)}if(u){var b,A;const t="y"===h?"width":"height",e=k.has(f(o)),n=r.reference[p]-r.floating[t]+(e&&(null==(b=a.offset)?void 0:b[p])||0)+(e?0:v.crossAxis),i=r.reference[p]+r.reference[t]+(e?0:(null==(A=a.offset)?void 0:A[p])||0)-(e?v.crossAxis:0);wi&&(w=i)}return{[h]:y,[p]:w}}}},t.offset=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:r,placement:a,middlewareData:l}=e,m=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=f(n),l=c(n),m="y"===d(n),u=k.has(a)?-1:1,g=r&&m?-1:1,p=s(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&"number"==typeof w&&(y="end"===l?-1*w:w),m?{x:y*g,y:h*u}:{x:h*u,y:y*g}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:o+m.x,y:r+m.y,data:{...m,placement:a}}}}},t.rectToClientRect=O,t.shift=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:r}=e,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...g}=s(t,e),p={x:n,y:i},h=await r.detectOverflow(e,g),y=d(f(o)),w=m(y);let x=p[w],v=p[y];if(a){const t="y"===w?"bottom":"right";x=l(x+h["y"===w?"top":"left"],x,x-h[t])}if(c){const t="y"===y?"bottom":"right";v=l(v+h["y"===y?"top":"left"],v,v-h[t])}const b=u.fn({...e,[w]:x,[y]:v});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[w]:a,[y]:c}}}}}},t.size=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:a,rects:l,platform:m,elements:u}=e,{apply:g=()=>{},...p}=s(t,e),h=await m.detectOverflow(e,p),y=f(a),w=c(a),x="y"===d(a),{width:v,height:b}=l.floating;let A,R;"top"===y||"bottom"===y?(A=y,R=w===(await(null==m.isRTL?void 0:m.isRTL(u.floating))?"start":"end")?"left":"right"):(R=y,A="end"===w?"top":"bottom");const O=b-h.top-h.bottom,P=v-h.left-h.right,D=o(b-h[A],O),T=o(v-h[R],P),E=!e.middlewareData.shift;let L=D,k=T;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(k=P),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(L=O),E&&!w){const t=r(h.left,0),e=r(h.right,0),n=r(h.top,0),i=r(h.bottom,0);x?k=v-2*(0!==t||0!==e?t+e:r(h.left,h.right)):L=b-2*(0!==n||0!==i?n+i:r(h.top,h.bottom))}await g({...e,availableWidth:k,availableHeight:L});const C=await m.getDimensions(u.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}}}));
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/package.json b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..4c370ddc7da3be7413905297253c775d771aeaf4
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/core/package.json
@@ -0,0 +1,63 @@
+{
+ "name": "@floating-ui/core",
+ "version": "1.7.5",
+ "description": "Positioning library for floating elements: tooltips, popovers, dropdowns, and more",
+ "publishConfig": {
+ "access": "public"
+ },
+ "main": "./dist/floating-ui.core.umd.js",
+ "module": "./dist/floating-ui.core.esm.js",
+ "unpkg": "./dist/floating-ui.core.umd.min.js",
+ "types": "./dist/floating-ui.core.d.ts",
+ "exports": {
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/floating-ui.core.d.mts",
+ "default": "./dist/floating-ui.core.mjs"
+ },
+ "types": "./dist/floating-ui.core.d.ts",
+ "module": "./dist/floating-ui.core.esm.js",
+ "default": "./dist/floating-ui.core.umd.js"
+ }
+ },
+ "sideEffects": false,
+ "files": [
+ "dist"
+ ],
+ "author": "atomiks",
+ "license": "MIT",
+ "bugs": "https://github.com/floating-ui/floating-ui",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/floating-ui/floating-ui.git",
+ "directory": "packages/core"
+ },
+ "homepage": "https://floating-ui.com",
+ "keywords": [
+ "tooltip",
+ "popover",
+ "dropdown",
+ "menu",
+ "popup",
+ "positioning"
+ ],
+ "dependencies": {
+ "@floating-ui/utils": "^0.2.11"
+ },
+ "devDependencies": {
+ "config": "0.0.0"
+ },
+ "scripts": {
+ "test": "vitest run",
+ "test:watch": "vitest watch",
+ "lint": "eslint .",
+ "format": "prettier --write .",
+ "clean": "rimraf dist out-tsc",
+ "dev": "rollup -c -w",
+ "build": "rollup -c",
+ "build:api": "build-api --tsc tsconfig.lib.json",
+ "publint": "publint",
+ "typecheck": "tsc -b"
+ }
+}
\ No newline at end of file
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/LICENSE b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..639cdc6c98cad0a67de011da403716f83550897f
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/LICENSE
@@ -0,0 +1,20 @@
+MIT License
+
+Copyright (c) 2021-present Floating UI contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/README.md b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..47ef9272412a3d2234e03bd59f0daa5bdf8ab5a3
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/README.md
@@ -0,0 +1,4 @@
+# @floating-ui/dom
+
+This is the library to use Floating UI on the web, wrapping `@floating-ui/core`
+with DOM interface logic.
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..70497b26631390995b939d990e84bdeec7a9faa2
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
@@ -0,0 +1 @@
+import{rectToClientRect as t,arrow as e,autoPlacement as n,detectOverflow as o,flip as i,hide as r,inline as c,limitShift as l,offset as s,shift as f,size as u,computePosition as a}from"@floating-ui/core";const h=Math.min,d=Math.max,p=Math.round,g=Math.floor,m=t=>({x:t,y:t});function y(){return"undefined"!=typeof window}function w(t){return b(t)?(t.nodeName||"").toLowerCase():"#document"}function x(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function v(t){var e;return null==(e=(b(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function b(t){return!!y()&&(t instanceof Node||t instanceof x(t).Node)}function L(t){return!!y()&&(t instanceof Element||t instanceof x(t).Element)}function R(t){return!!y()&&(t instanceof HTMLElement||t instanceof x(t).HTMLElement)}function T(t){return!(!y()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof x(t).ShadowRoot)}function C(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==i&&"contents"!==i}function S(t){return/^(table|td|th)$/.test(w(t))}function E(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const F=/transform|translate|scale|rotate|perspective|filter/,D=/paint|layout|strict|content/,W=t=>!!t&&"none"!==t;let O;function H(t){const e=L(t)?z(t):t;return W(e.transform)||W(e.translate)||W(e.scale)||W(e.rotate)||W(e.perspective)||!M()&&(W(e.backdropFilter)||W(e.filter))||F.test(e.willChange||"")||D.test(e.contain||"")}function M(){return null==O&&(O="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),O}function P(t){return/^(html|body|#document)$/.test(w(t))}function z(t){return x(t).getComputedStyle(t)}function B(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function V(t){if("html"===w(t))return t;const e=t.assignedSlot||t.parentNode||T(t)&&t.host||v(t);return T(e)?e.host:e}function A(t){const e=V(t);return P(e)?t.ownerDocument?t.ownerDocument.body:t.body:R(e)&&C(e)?e:A(e)}function N(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=A(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),c=x(i);if(r){const t=$(c);return e.concat(c,c.visualViewport||[],C(i)?i:[],t&&n?N(t):[])}return e.concat(i,N(i,[],n))}function $(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function k(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=R(t),r=i?t.offsetWidth:n,c=i?t.offsetHeight:o,l=p(n)!==r||p(o)!==c;return l&&(n=r,o=c),{width:n,height:o,$:l}}function I(t){return L(t)?t:t.contextElement}function q(t){const e=I(t);if(!R(e))return m(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=k(e);let c=(r?p(n.width):n.width)/o,l=(r?p(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),l&&Number.isFinite(l)||(l=1),{x:c,y:l}}const X=m(0);function Y(t){const e=x(t);return M()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:X}function _(e,n,o,i){void 0===n&&(n=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),c=I(e);let l=m(1);n&&(i?L(i)&&(l=q(i)):l=q(e));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==x(t))&&e}(c,o,i)?Y(c):m(0);let f=(r.left+s.x)/l.x,u=(r.top+s.y)/l.y,a=r.width/l.x,h=r.height/l.y;if(c){const t=x(c),e=i&&L(i)?x(i):i;let n=t,o=$(n);for(;o&&i&&e!==n;){const t=q(o),e=o.getBoundingClientRect(),i=z(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,c=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;f*=t.x,u*=t.y,a*=t.x,h*=t.y,f+=r,u+=c,n=x(o),o=$(n)}}return t({width:a,height:h,x:f,y:u})}function j(t,e){const n=B(t).scrollLeft;return e?e.left+n:_(v(t)).left+n}function G(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-j(t,n),y:n.top+e.scrollTop}}function J(e,n,o){let i;if("viewport"===n)i=function(t,e){const n=x(t),o=v(t),i=n.visualViewport;let r=o.clientWidth,c=o.clientHeight,l=0,s=0;if(i){r=i.width,c=i.height;const t=M();(!t||t&&"fixed"===e)&&(l=i.offsetLeft,s=i.offsetTop)}const f=j(o);if(f<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,c=Math.abs(o.clientWidth-e.clientWidth-i);c<=25&&(r-=c)}else f<=25&&(r+=f);return{width:r,height:c,x:l,y:s}}(e,o);else if("document"===n)i=function(t){const e=v(t),n=B(t),o=t.ownerDocument.body,i=d(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=d(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+j(t);const l=-n.scrollTop;return"rtl"===z(o).direction&&(c+=d(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:c,y:l}}(v(e));else if(L(n))i=function(t,e){const n=_(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=R(t)?q(t):m(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(n,o);else{const t=Y(e);i={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return t(i)}function K(t,e){const n=V(t);return!(n===e||!L(n)||P(n))&&("fixed"===z(n).position||K(n,e))}function Q(t,e,n){const o=R(e),i=v(e),r="fixed"===n,c=_(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const s=m(0);function f(){s.x=j(i)}if(o||!o&&!r)if(("body"!==w(e)||C(i))&&(l=B(e)),o){const t=_(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&f();r&&!o&&i&&f();const u=!i||o||r?m(0):G(i,l);return{x:c.left+l.scrollLeft-s.x-u.x,y:c.top+l.scrollTop-s.y-u.y,width:c.width,height:c.height}}function U(t){return"static"===z(t).position}function Z(t,e){if(!R(t)||"fixed"===z(t).position)return null;if(e)return e(t);let n=t.offsetParent;return v(t)===n&&(n=n.ownerDocument.body),n}function tt(t,e){const n=x(t);if(E(t))return n;if(!R(t)){let e=V(t);for(;e&&!P(e);){if(L(e)&&!U(e))return e;e=V(e)}return n}let o=Z(t,e);for(;o&&S(o)&&U(o);)o=Z(o,e);return o&&P(o)&&U(o)&&!H(o)?n:o||function(t){let e=V(t);for(;R(e)&&!P(e);){if(H(e))return e;if(E(e))return null;e=V(e)}return null}(t)||n}const et={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,c=v(o),l=!!e&&E(e.floating);if(o===c||l&&r)return n;let s={scrollLeft:0,scrollTop:0},f=m(1);const u=m(0),a=R(o);if((a||!a&&!r)&&(("body"!==w(o)||C(c))&&(s=B(o)),a)){const t=_(o);f=q(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!c||a||r?m(0):G(c,s);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-s.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-s.scrollTop*f.y+u.y+h.y}},getDocumentElement:v,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?E(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=N(t,[],!1).filter((t=>L(t)&&"body"!==w(t))),i=null;const r="fixed"===z(t).position;let c=r?V(t):t;for(;L(c)&&!P(c);){const e=z(c),n=H(c);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&("absolute"===i.position||"fixed"===i.position)||C(c)&&!n&&K(t,c))?o=o.filter((t=>t!==c)):i=e,c=V(c)}return e.set(t,o),o}(e,this._c):[].concat(n),o],c=J(e,r[0],i);let l=c.top,s=c.right,f=c.bottom,u=c.left;for(let t=1;t{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const a=f&&l?function(t,e){let n,o=null;const i=v(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function c(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),r();const f=t.getBoundingClientRect(),{left:u,top:a,width:p,height:m}=f;if(l||e(),!p||!m)return;const y={rootMargin:-g(a)+"px "+-g(i.clientWidth-(u+p))+"px "+-g(i.clientHeight-(a+m))+"px "+-g(u)+"px",threshold:d(0,h(1,s))||1};let w=!0;function x(e){const o=e[0].intersectionRatio;if(o!==s){if(!w)return c();o?c(!1,o):n=setTimeout((()=>{c(!1,1e-7)}),1e3)}1!==o||nt(f,t.getBoundingClientRect())||c(),w=!1}try{o=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,y)}o.observe(t)}(!0),r}(f,n):null;let p,m=-1,y=null;c&&(y=new ResizeObserver((t=>{let[o]=t;o&&o.target===f&&y&&e&&(y.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),n()})),f&&!s&&y.observe(f),e&&y.observe(e));let w=s?_(t):null;return s&&function e(){const o=_(t);w&&!nt(w,o)&&n();w=o,p=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==a||a(),null==(t=y)||t.disconnect(),y=null,s&&cancelAnimationFrame(p)}}const it=o,rt=s,ct=n,lt=f,st=i,ft=u,ut=r,at=e,ht=c,dt=l,pt=(t,e,n)=>{const o=new Map,i={platform:et,...n},r={...i.platform,_c:o};return a(t,e,{...i,platform:r})};export{at as arrow,ct as autoPlacement,ot as autoUpdate,pt as computePosition,it as detectOverflow,st as flip,N as getOverflowAncestors,ut as hide,ht as inline,dt as limitShift,rt as offset,et as platform,lt as shift,ft as size};
diff --git a/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..b8426e52566a6e4dcdf93e2d664264f6191be7a3
--- /dev/null
+++ b/loan-advisor-chatgpt-app/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.mjs
@@ -0,0 +1,956 @@
+import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';
+
+/**
+ * Custom positioning reference element.
+ * @see https://floating-ui.com/docs/virtual-elements
+ */
+
+const min = Math.min;
+const max = Math.max;
+const round = Math.round;
+const floor = Math.floor;
+const createCoords = v => ({
+ x: v,
+ y: v
+});
+
+function hasWindow() {
+ return typeof window !== 'undefined';
+}
+function getNodeName(node) {
+ if (isNode(node)) {
+ return (node.nodeName || '').toLowerCase();
+ }
+ // Mocked nodes in testing environments may not be instances of Node. By
+ // returning `#document` an infinite loop won't occur.
+ // https://github.com/floating-ui/floating-ui/issues/2317
+ return '#document';
+}
+function getWindow(node) {
+ var _node$ownerDocument;
+ return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
+}
+function getDocumentElement(node) {
+ var _ref;
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
+}
+function isNode(value) {
+ if (!hasWindow()) {
+ return false;
+ }
+ return value instanceof Node || value instanceof getWindow(value).Node;
+}
+function isElement(value) {
+ if (!hasWindow()) {
+ return false;
+ }
+ return value instanceof Element || value instanceof getWindow(value).Element;
+}
+function isHTMLElement(value) {
+ if (!hasWindow()) {
+ return false;
+ }
+ return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
+}
+function isShadowRoot(value) {
+ if (!hasWindow() || typeof ShadowRoot === 'undefined') {
+ return false;
+ }
+ return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
+}
+function isOverflowElement(element) {
+ const {
+ overflow,
+ overflowX,
+ overflowY,
+ display
+ } = getComputedStyle$1(element);
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';
+}
+function isTableElement(element) {
+ return /^(table|td|th)$/.test(getNodeName(element));
+}
+function isTopLayer(element) {
+ try {
+ if (element.matches(':popover-open')) {
+ return true;
+ }
+ } catch (_e) {
+ // no-op
+ }
+ try {
+ return element.matches(':modal');
+ } catch (_e) {
+ return false;
+ }
+}
+const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
+const containRe = /paint|layout|strict|content/;
+const isNotNone = value => !!value && value !== 'none';
+let isWebKitValue;
+function isContainingBlock(elementOrCss) {
+ const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
+
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
+ // https://drafts.csswg.org/css-transforms-2/#individual-transforms
+ return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');
+}
+function getContainingBlock(element) {
+ let currentNode = getParentNode(element);
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
+ if (isContainingBlock(currentNode)) {
+ return currentNode;
+ } else if (isTopLayer(currentNode)) {
+ return null;
+ }
+ currentNode = getParentNode(currentNode);
+ }
+ return null;
+}
+function isWebKit() {
+ if (isWebKitValue == null) {
+ isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');
+ }
+ return isWebKitValue;
+}
+function isLastTraversableNode(node) {
+ return /^(html|body|#document)$/.test(getNodeName(node));
+}
+function getComputedStyle$1(element) {
+ return getWindow(element).getComputedStyle(element);
+}
+function getNodeScroll(element) {
+ if (isElement(element)) {
+ return {
+ scrollLeft: element.scrollLeft,
+ scrollTop: element.scrollTop
+ };
+ }
+ return {
+ scrollLeft: element.scrollX,
+ scrollTop: element.scrollY
+ };
+}
+function getParentNode(node) {
+ if (getNodeName(node) === 'html') {
+ return node;
+ }
+ const result =
+ // Step into the shadow DOM of the parent of a slotted node.
+ node.assignedSlot ||
+ // DOM Element detected.
+ node.parentNode ||
+ // ShadowRoot detected.
+ isShadowRoot(node) && node.host ||
+ // Fallback.
+ getDocumentElement(node);
+ return isShadowRoot(result) ? result.host : result;
+}
+function getNearestOverflowAncestor(node) {
+ const parentNode = getParentNode(node);
+ if (isLastTraversableNode(parentNode)) {
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
+ }
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
+ return parentNode;
+ }
+ return getNearestOverflowAncestor(parentNode);
+}
+function getOverflowAncestors(node, list, traverseIframes) {
+ var _node$ownerDocument2;
+ if (list === void 0) {
+ list = [];
+ }
+ if (traverseIframes === void 0) {
+ traverseIframes = true;
+ }
+ const scrollableAncestor = getNearestOverflowAncestor(node);
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
+ const win = getWindow(scrollableAncestor);
+ if (isBody) {
+ const frameElement = getFrameElement(win);
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
+ } else {
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
+ }
+}
+function getFrameElement(win) {
+ return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
+}
+
+function getCssDimensions(element) {
+ const css = getComputedStyle$1(element);
+ // In testing environments, the `width` and `height` properties are empty
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
+ let width = parseFloat(css.width) || 0;
+ let height = parseFloat(css.height) || 0;
+ const hasOffset = isHTMLElement(element);
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
+ if (shouldFallback) {
+ width = offsetWidth;
+ height = offsetHeight;
+ }
+ return {
+ width,
+ height,
+ $: shouldFallback
+ };
+}
+
+function unwrapElement(element) {
+ return !isElement(element) ? element.contextElement : element;
+}
+
+function getScale(element) {
+ const domElement = unwrapElement(element);
+ if (!isHTMLElement(domElement)) {
+ return createCoords(1);
+ }
+ const rect = domElement.getBoundingClientRect();
+ const {
+ width,
+ height,
+ $
+ } = getCssDimensions(domElement);
+ let x = ($ ? round(rect.width) : rect.width) / width;
+ let y = ($ ? round(rect.height) : rect.height) / height;
+
+ // 0, NaN, or Infinity should always fallback to 1.
+
+ if (!x || !Number.isFinite(x)) {
+ x = 1;
+ }
+ if (!y || !Number.isFinite(y)) {
+ y = 1;
+ }
+ return {
+ x,
+ y
+ };
+}
+
+const noOffsets = /*#__PURE__*/createCoords(0);
+function getVisualOffsets(element) {
+ const win = getWindow(element);
+ if (!isWebKit() || !win.visualViewport) {
+ return noOffsets;
+ }
+ return {
+ x: win.visualViewport.offsetLeft,
+ y: win.visualViewport.offsetTop
+ };
+}
+function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
+ if (isFixed === void 0) {
+ isFixed = false;
+ }
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
+ return false;
+ }
+ return isFixed;
+}
+
+function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
+ if (includeScale === void 0) {
+ includeScale = false;
+ }
+ if (isFixedStrategy === void 0) {
+ isFixedStrategy = false;
+ }
+ const clientRect = element.getBoundingClientRect();
+ const domElement = unwrapElement(element);
+ let scale = createCoords(1);
+ if (includeScale) {
+ if (offsetParent) {
+ if (isElement(offsetParent)) {
+ scale = getScale(offsetParent);
+ }
+ } else {
+ scale = getScale(element);
+ }
+ }
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
+ let width = clientRect.width / scale.x;
+ let height = clientRect.height / scale.y;
+ if (domElement) {
+ const win = getWindow(domElement);
+ const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
+ let currentWin = win;
+ let currentIFrame = getFrameElement(currentWin);
+ while (currentIFrame && offsetParent && offsetWin !== currentWin) {
+ const iframeScale = getScale(currentIFrame);
+ const iframeRect = currentIFrame.getBoundingClientRect();
+ const css = getComputedStyle$1(currentIFrame);
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
+ x *= iframeScale.x;
+ y *= iframeScale.y;
+ width *= iframeScale.x;
+ height *= iframeScale.y;
+ x += left;
+ y += top;
+ currentWin = getWindow(currentIFrame);
+ currentIFrame = getFrameElement(currentWin);
+ }
+ }
+ return rectToClientRect({
+ width,
+ height,
+ x,
+ y
+ });
+}
+
+// If has a CSS width greater than the viewport, then this will be
+// incorrect for RTL.
+function getWindowScrollBarX(element, rect) {
+ const leftScroll = getNodeScroll(element).scrollLeft;
+ if (!rect) {
+ return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
+ }
+ return rect.left + leftScroll;
+}
+
+function getHTMLOffset(documentElement, scroll) {
+ const htmlRect = documentElement.getBoundingClientRect();
+ const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
+ const y = htmlRect.top + scroll.scrollTop;
+ return {
+ x,
+ y
+ };
+}
+
+function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
+ let {
+ elements,
+ rect,
+ offsetParent,
+ strategy
+ } = _ref;
+ const isFixed = strategy === 'fixed';
+ const documentElement = getDocumentElement(offsetParent);
+ const topLayer = elements ? isTopLayer(elements.floating) : false;
+ if (offsetParent === documentElement || topLayer && isFixed) {
+ return rect;
+ }
+ let scroll = {
+ scrollLeft: 0,
+ scrollTop: 0
+ };
+ let scale = createCoords(1);
+ const offsets = createCoords(0);
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
+ scroll = getNodeScroll(offsetParent);
+ }
+ if (isOffsetParentAnElement) {
+ const offsetRect = getBoundingClientRect(offsetParent);
+ scale = getScale(offsetParent);
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
+ offsets.y = offsetRect.y + offsetParent.clientTop;
+ }
+ }
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
+ return {
+ width: rect.width * scale.x,
+ height: rect.height * scale.y,
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
+ };
+}
+
+function getClientRects(element) {
+ return Array.from(element.getClientRects());
+}
+
+// Gets the entire size of the scrollable document area, even extending outside
+// of the `` and `` rect bounds if horizontally scrollable.
+function getDocumentRect(element) {
+ const html = getDocumentElement(element);
+ const scroll = getNodeScroll(element);
+ const body = element.ownerDocument.body;
+ const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
+ const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
+ const y = -scroll.scrollTop;
+ if (getComputedStyle$1(body).direction === 'rtl') {
+ x += max(html.clientWidth, body.clientWidth) - width;
+ }
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+
+// Safety check: ensure the scrollbar space is reasonable in case this
+// calculation is affected by unusual styles.
+// Most scrollbars leave 15-18px of space.
+const SCROLLBAR_MAX = 25;
+function getViewportRect(element, strategy) {
+ const win = getWindow(element);
+ const html = getDocumentElement(element);
+ const visualViewport = win.visualViewport;
+ let width = html.clientWidth;
+ let height = html.clientHeight;
+ let x = 0;
+ let y = 0;
+ if (visualViewport) {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ const visualViewportBased = isWebKit();
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
+ x = visualViewport.offsetLeft;
+ y = visualViewport.offsetTop;
+ }
+ }
+ const windowScrollbarX = getWindowScrollBarX(html);
+ // `overflow: hidden` + `scrollbar-gutter: stable` reduces the
+ // visual width of the but this is not considered in the size
+ // of `html.clientWidth`.
+ if (windowScrollbarX <= 0) {
+ const doc = html.ownerDocument;
+ const body = doc.body;
+ const bodyStyles = getComputedStyle(body);
+ const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
+ const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
+ if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
+ width -= clippingStableScrollbarWidth;
+ }
+ } else if (windowScrollbarX <= SCROLLBAR_MAX) {
+ // If the scrollbar is on the left, the width needs to be extended
+ // by the scrollbar amount so there isn't extra space on the right.
+ width += windowScrollbarX;
+ }
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+
+// Returns the inner client rect, subtracting scrollbars if present.
+function getInnerBoundingClientRect(element, strategy) {
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
+ const top = clientRect.top + element.clientTop;
+ const left = clientRect.left + element.clientLeft;
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const width = element.clientWidth * scale.x;
+ const height = element.clientHeight * scale.y;
+ const x = left * scale.x;
+ const y = top * scale.y;
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
+ let rect;
+ if (clippingAncestor === 'viewport') {
+ rect = getViewportRect(element, strategy);
+ } else if (clippingAncestor === 'document') {
+ rect = getDocumentRect(getDocumentElement(element));
+ } else if (isElement(clippingAncestor)) {
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
+ } else {
+ const visualOffsets = getVisualOffsets(element);
+ rect = {
+ x: clippingAncestor.x - visualOffsets.x,
+ y: clippingAncestor.y - visualOffsets.y,
+ width: clippingAncestor.width,
+ height: clippingAncestor.height
+ };
+ }
+ return rectToClientRect(rect);
+}
+function hasFixedPositionAncestor(element, stopNode) {
+ const parentNode = getParentNode(element);
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
+ return false;
+ }
+ return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
+}
+
+// A "clipping ancestor" is an `overflow` element with the characteristic of
+// clipping (or hiding) child elements. This returns all clipping ancestors
+// of the given element up the tree.
+function getClippingElementAncestors(element, cache) {
+ const cachedResult = cache.get(element);
+ if (cachedResult) {
+ return cachedResult;
+ }
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
+ let currentContainingBlockComputedStyle = null;
+ const elementIsFixed = getComputedStyle$1(element).position === 'fixed';
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
+
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
+ const computedStyle = getComputedStyle$1(currentNode);
+ const currentNodeIsContaining = isContainingBlock(currentNode);
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
+ currentContainingBlockComputedStyle = null;
+ }
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && (currentContainingBlockComputedStyle.position === 'absolute' || currentContainingBlockComputedStyle.position === 'fixed') || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ if (shouldDropCurrentNode) {
+ // Drop non-containing blocks.
+ result = result.filter(ancestor => ancestor !== currentNode);
+ } else {
+ // Record last containing block for next iteration.
+ currentContainingBlockComputedStyle = computedStyle;
+ }
+ currentNode = getParentNode(currentNode);
+ }
+ cache.set(element, result);
+ return result;
+}
+
+// Gets the maximum area that the element is visible in due to any number of
+// clipping ancestors.
+function getClippingRect(_ref) {
+ let {
+ element,
+ boundary,
+ rootBoundary,
+ strategy
+ } = _ref;
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
+ const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
+ let top = firstRect.top;
+ let right = firstRect.right;
+ let bottom = firstRect.bottom;
+ let left = firstRect.left;
+ for (let i = 1; i < clippingAncestors.length; i++) {
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
+ top = max(rect.top, top);
+ right = min(rect.right, right);
+ bottom = min(rect.bottom, bottom);
+ left = max(rect.left, left);
+ }
+ return {
+ width: right - left,
+ height: bottom - top,
+ x: left,
+ y: top
+ };
+}
+
+function getDimensions(element) {
+ const {
+ width,
+ height
+ } = getCssDimensions(element);
+ return {
+ width,
+ height
+ };
+}
+
+function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
+ const documentElement = getDocumentElement(offsetParent);
+ const isFixed = strategy === 'fixed';
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
+ let scroll = {
+ scrollLeft: 0,
+ scrollTop: 0
+ };
+ const offsets = createCoords(0);
+
+ // If the scrollbar appears on the left (e.g. RTL systems). Use
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
+ function setLeftRTLScrollbarOffset() {
+ offsets.x = getWindowScrollBarX(documentElement);
+ }
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
+ scroll = getNodeScroll(offsetParent);
+ }
+ if (isOffsetParentAnElement) {
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
+ offsets.y = offsetRect.y + offsetParent.clientTop;
+ } else if (documentElement) {
+ setLeftRTLScrollbarOffset();
+ }
+ }
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
+ setLeftRTLScrollbarOffset();
+ }
+ const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
+ const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
+ const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
+ return {
+ x,
+ y,
+ width: rect.width,
+ height: rect.height
+ };
+}
+
+function isStaticPositioned(element) {
+ return getComputedStyle$1(element).position === 'static';
+}
+
+function getTrueOffsetParent(element, polyfill) {
+ if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
+ return null;
+ }
+ if (polyfill) {
+ return polyfill(element);
+ }
+ let rawOffsetParent = element.offsetParent;
+
+ // Firefox returns the element as the offsetParent if it's non-static,
+ // while Chrome and Safari return the element. The element must
+ // be used to perform the correct calculations even if the element is
+ // non-static.
+ if (getDocumentElement(element) === rawOffsetParent) {
+ rawOffsetParent = rawOffsetParent.ownerDocument.body;
+ }
+ return rawOffsetParent;
+}
+
+// Gets the closest ancestor positioned element. Handles some edge cases,
+// such as table ancestors and cross browser bugs.
+function getOffsetParent(element, polyfill) {
+ const win = getWindow(element);
+ if (isTopLayer(element)) {
+ return win;
+ }
+ if (!isHTMLElement(element)) {
+ let svgOffsetParent = getParentNode(element);
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
+ return svgOffsetParent;
+ }
+ svgOffsetParent = getParentNode(svgOffsetParent);
+ }
+ return win;
+ }
+ let offsetParent = getTrueOffsetParent(element, polyfill);
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
+ }
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
+ return win;
+ }
+ return offsetParent || getContainingBlock(element) || win;
+}
+
+const getElementRects = async function (data) {
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
+ const getDimensionsFn = this.getDimensions;
+ const floatingDimensions = await getDimensionsFn(data.floating);
+ return {
+ reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
+ floating: {
+ x: 0,
+ y: 0,
+ width: floatingDimensions.width,
+ height: floatingDimensions.height
+ }
+ };
+};
+
+function isRTL(element) {
+ return getComputedStyle$1(element).direction === 'rtl';
+}
+
+const platform = {
+ convertOffsetParentRelativeRectToViewportRelativeRect,
+ getDocumentElement,
+ getClippingRect,
+ getOffsetParent,
+ getElementRects,
+ getClientRects,
+ getDimensions,
+ getScale,
+ isElement,
+ isRTL
+};
+
+function rectsAreEqual(a, b) {
+ return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
+}
+
+// https://samthor.au/2021/observing-dom/
+function observeMove(element, onMove) {
+ let io = null;
+ let timeoutId;
+ const root = getDocumentElement(element);
+ function cleanup() {
+ var _io;
+ clearTimeout(timeoutId);
+ (_io = io) == null || _io.disconnect();
+ io = null;
+ }
+ function refresh(skip, threshold) {
+ if (skip === void 0) {
+ skip = false;
+ }
+ if (threshold === void 0) {
+ threshold = 1;
+ }
+ cleanup();
+ const elementRectForRootMargin = element.getBoundingClientRect();
+ const {
+ left,
+ top,
+ width,
+ height
+ } = elementRectForRootMargin;
+ if (!skip) {
+ onMove();
+ }
+ if (!width || !height) {
+ return;
+ }
+ const insetTop = floor(top);
+ const insetRight = floor(root.clientWidth - (left + width));
+ const insetBottom = floor(root.clientHeight - (top + height));
+ const insetLeft = floor(left);
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
+ const options = {
+ rootMargin,
+ threshold: max(0, min(1, threshold)) || 1
+ };
+ let isFirstUpdate = true;
+ function handleObserve(entries) {
+ const ratio = entries[0].intersectionRatio;
+ if (ratio !== threshold) {
+ if (!isFirstUpdate) {
+ return refresh();
+ }
+ if (!ratio) {
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
+ // to prevent an infinite loop of updates.
+ timeoutId = setTimeout(() => {
+ refresh(false, 1e-7);
+ }, 1000);
+ } else {
+ refresh(false, ratio);
+ }
+ }
+ if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
+ // It's possible that even though the ratio is reported as 1, the
+ // element is not actually fully within the IntersectionObserver's root
+ // area anymore. This can happen under performance constraints. This may
+ // be a bug in the browser's IntersectionObserver implementation. To
+ // work around this, we compare the element's bounding rect now with
+ // what it was at the time we created the IntersectionObserver. If they
+ // are not equal then the element moved, so we refresh.
+ refresh();
+ }
+ isFirstUpdate = false;
+ }
+
+ // Older browsers don't support a `document` as the root and will throw an
+ // error.
+ try {
+ io = new IntersectionObserver(handleObserve, {
+ ...options,
+ // Handle