snaptrade-typescript-sdk 9.0.46 → 9.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Connect brokerage accounts to your app for live positions and trading
8
8
 
9
- [![npm](https://img.shields.io/badge/npm-v9.0.46-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.46)
9
+ [![npm](https://img.shields.io/badge/npm-v9.0.48-blue)](https://www.npmjs.com/package/snaptrade-typescript-sdk/v/9.0.48)
10
10
  [![More Info](https://img.shields.io/badge/More%20Info-Click%20Here-orange)](https://snaptrade.com/)
11
11
 
12
12
  </div>
@@ -1559,7 +1559,7 @@ Unique identifier for the connected brokerage account. This is the UUID used to
1559
1559
 
1560
1560
  ##### action: [`ActionStrict`](./models/action-strict.ts)<a id="action-actionstrictmodelsaction-strictts"></a>
1561
1561
 
1562
- The action describes the intent or side of a trade. This is either `BUY` or `SELL`
1562
+ The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
1563
1563
 
1564
1564
  ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1565
1565
 
@@ -1665,6 +1665,7 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
1665
1665
  account_id: "917c8734-8470-4a3e-a18f-57c3f2ee6631",
1666
1666
  action: "BUY",
1667
1667
  universal_symbol_id: "2bcd7cc3-e922-4976-bce1-9858296801c3",
1668
+ symbol: "AAPL 131124C00240000",
1668
1669
  order_type: "Market",
1669
1670
  time_in_force: "FOK",
1670
1671
  price: 31.33,
@@ -1679,13 +1680,9 @@ const placeForceOrderResponse = await snaptrade.trading.placeForceOrder({
1679
1680
 
1680
1681
  Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
1681
1682
 
1682
- ##### action: [`ActionStrict`](./models/action-strict.ts)<a id="action-actionstrictmodelsaction-strictts"></a>
1683
-
1684
- The action describes the intent or side of a trade. This is either `BUY` or `SELL`
1685
-
1686
- ##### universal_symbol_id: `string`<a id="universal_symbol_id-string"></a>
1683
+ ##### action: [`ActionStrictWithOptions`](./models/action-strict-with-options.ts)<a id="action-actionstrictwithoptionsmodelsaction-strict-with-optionsts"></a>
1687
1684
 
1688
- Unique identifier for the symbol within SnapTrade. This is the ID used to reference the symbol in SnapTrade API calls.
1685
+ The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
1689
1686
 
1690
1687
  ##### order_type: [`OrderTypeStrict`](./models/order-type-strict.ts)<a id="order_type-ordertypestrictmodelsorder-type-strictts"></a>
1691
1688
 
@@ -1699,6 +1696,14 @@ The Time in Force type for the order. This field indicates how long the order wi
1699
1696
 
1700
1697
  ##### userSecret: `string`<a id="usersecret-string"></a>
1701
1698
 
1699
+ ##### universal_symbol_id: [`string`](./models/model-string.ts)<a id="universal_symbol_id-stringmodelsmodel-stringts"></a>
1700
+
1701
+ The universal symbol ID of the security to trade. Must be \\\'null\\\' if `symbol` is provided, otherwise must be provided.
1702
+
1703
+ ##### symbol: `string`<a id="symbol-string"></a>
1704
+
1705
+ The security\\\'s trading ticker symbol. This currently only support Options symbols in the 21 character OCC format. For example \\\"AAPL 131124C00240000\\\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If \\\'symbol\\\' is provided, then \\\'universal_symbol_id\\\' must be \\\'null\\\'.
1706
+
1702
1707
  ##### price: `number`<a id="price-number"></a>
1703
1708
 
1704
1709
  The limit price for `Limit` and `StopLimit` orders.
@@ -1709,6 +1714,8 @@ The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
1709
1714
 
1710
1715
  ##### units: [`number`](./models/number.ts)<a id="units-numbermodelsnumberts"></a>
1711
1716
 
1717
+ For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
1718
+
1712
1719
  ##### notional_value: [`ManualTradeFormNotionalValue`](./models/manual-trade-form-notional-value.ts)<a id="notional_value-manualtradeformnotionalvaluemodelsmanual-trade-form-notional-valuets"></a>
1713
1720
 
1714
1721
  #### 🔄 Return<a id="🔄-return"></a>
@@ -1819,7 +1826,7 @@ Optional comma separated list of SnapTrade Connection (Brokerage Authorization)
1819
1826
 
1820
1827
  ##### type: `string`<a id="type-string"></a>
1821
1828
 
1822
- Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account.
1829
+ Optional comma separated list of transaction types to filter by. SnapTrade does a best effort to categorize brokerage transaction types into a common set of values. Here are some of the most popular values: - `BUY` - Asset bought. - `SELL` - Asset sold. - `DIVIDEND` - Dividend payout. - `CONTRIBUTION` - Cash contribution. - `WITHDRAWAL` - Cash withdrawal. - `REI` - Dividend reinvestment. - `INTEREST` - Interest deposited into the account. - `FEE` - Fee withdrawn from the account.
1823
1830
 
1824
1831
  #### 🔄 Return<a id="🔄-return"></a>
1825
1832
 
@@ -4,6 +4,7 @@ import { RequestArgs, BaseAPI } from '../base';
4
4
  import { AccountOrderRecord } from '../models';
5
5
  import { ManualTradeAndImpact } from '../models';
6
6
  import { ManualTradeForm } from '../models';
7
+ import { ManualTradeFormWithOptions } from '../models';
7
8
  import { SymbolsQuotesInner } from '../models';
8
9
  import { TradingCancelUserAccountOrderRequest } from '../models';
9
10
  import { ValidatedTradeBody } from '../models';
@@ -50,11 +51,11 @@ export declare const TradingApiAxiosParamCreator: (configuration?: Configuration
50
51
  * @summary Place order
51
52
  * @param {string} userId
52
53
  * @param {string} userSecret
53
- * @param {ManualTradeForm} manualTradeForm
54
+ * @param {ManualTradeFormWithOptions} manualTradeFormWithOptions
54
55
  * @param {*} [options] Override http request option.
55
56
  * @throws {RequiredError}
56
57
  */
57
- placeForceOrder: (userId: string, userSecret: string, manualTradeForm: ManualTradeForm, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ placeForceOrder: (userId: string, userSecret: string, manualTradeFormWithOptions: ManualTradeFormWithOptions, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
59
  /**
59
60
  * Places the previously checked order with the brokerage. The `tradeId` is obtained from the [check order impact endpoint](/reference/Trading/Trading_getOrderImpact). If you prefer to place the order without checking for impact first, you can use the [place order endpoint](/reference/Trading/Trading_placeForceOrder). It\'s recommended to trigger a manual refresh of the account after placing an order to ensure the account is up to date. You can use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint for this.
60
61
  * @summary Place checked order
@@ -258,7 +259,7 @@ export type TradingApiPlaceForceOrderRequest = {
258
259
  * @memberof TradingApiPlaceForceOrder
259
260
  */
260
261
  readonly userSecret: string;
261
- } & ManualTradeForm;
262
+ } & ManualTradeFormWithOptions;
262
263
  /**
263
264
  * Request parameters for placeOrder operation in TradingApi.
264
265
  * @export
@@ -223,17 +223,17 @@ const TradingApiAxiosParamCreator = function (configuration) {
223
223
  * @summary Place order
224
224
  * @param {string} userId
225
225
  * @param {string} userSecret
226
- * @param {ManualTradeForm} manualTradeForm
226
+ * @param {ManualTradeFormWithOptions} manualTradeFormWithOptions
227
227
  * @param {*} [options] Override http request option.
228
228
  * @throws {RequiredError}
229
229
  */
230
- placeForceOrder: (userId, userSecret, manualTradeForm, options = {}) => __awaiter(this, void 0, void 0, function* () {
230
+ placeForceOrder: (userId, userSecret, manualTradeFormWithOptions, options = {}) => __awaiter(this, void 0, void 0, function* () {
231
231
  // verify required parameter 'userId' is not null or undefined
232
232
  (0, common_1.assertParamExists)('placeForceOrder', 'userId', userId);
233
233
  // verify required parameter 'userSecret' is not null or undefined
234
234
  (0, common_1.assertParamExists)('placeForceOrder', 'userSecret', userSecret);
235
- // verify required parameter 'manualTradeForm' is not null or undefined
236
- (0, common_1.assertParamExists)('placeForceOrder', 'manualTradeForm', manualTradeForm);
235
+ // verify required parameter 'manualTradeFormWithOptions' is not null or undefined
236
+ (0, common_1.assertParamExists)('placeForceOrder', 'manualTradeFormWithOptions', manualTradeFormWithOptions);
237
237
  const localVarPath = `/trade/place`;
238
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
239
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -260,7 +260,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
260
260
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
261
261
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
262
262
  (0, requestBeforeHook_1.requestBeforeHook)({
263
- requestBody: manualTradeForm,
263
+ requestBody: manualTradeFormWithOptions,
264
264
  queryParameters: localVarQueryParameter,
265
265
  requestConfig: localVarRequestOptions,
266
266
  path: localVarPath,
@@ -268,7 +268,7 @@ const TradingApiAxiosParamCreator = function (configuration) {
268
268
  pathTemplate: '/trade/place',
269
269
  httpMethod: 'POST'
270
270
  });
271
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manualTradeForm, localVarRequestOptions, configuration);
271
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manualTradeFormWithOptions, localVarRequestOptions, configuration);
272
272
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
273
273
  return {
274
274
  url: (0, common_1.toPathString)(localVarUrlObj),
@@ -406,10 +406,11 @@ const TradingApiFp = function (configuration) {
406
406
  */
407
407
  placeForceOrder(requestParameters, options) {
408
408
  return __awaiter(this, void 0, void 0, function* () {
409
- const manualTradeForm = {
409
+ const manualTradeFormWithOptions = {
410
410
  account_id: requestParameters.account_id,
411
411
  action: requestParameters.action,
412
412
  universal_symbol_id: requestParameters.universal_symbol_id,
413
+ symbol: requestParameters.symbol,
413
414
  order_type: requestParameters.order_type,
414
415
  time_in_force: requestParameters.time_in_force,
415
416
  price: requestParameters.price,
@@ -417,7 +418,7 @@ const TradingApiFp = function (configuration) {
417
418
  units: requestParameters.units,
418
419
  notional_value: requestParameters.notional_value
419
420
  };
420
- const localVarAxiosArgs = yield localVarAxiosParamCreator.placeForceOrder(requestParameters.userId, requestParameters.userSecret, manualTradeForm, options);
421
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.placeForceOrder(requestParameters.userId, requestParameters.userSecret, manualTradeFormWithOptions, options);
421
422
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
422
423
  });
423
424
  },
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,(()=>(()=>{var e={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==s&&(p.brokerage_authorizations=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then((e=>e(this.axios,this.basePath)))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then((e=>e(this.axios,this.basePath)))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.AccountInformationApiGenerated=c},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,r)))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then((e=>e(this.axios,this.basePath)))}}t.ApiStatusApiGenerated=c},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then((e=>e(this.axios,this.basePath)))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then((e=>e(this.axios,this.basePath)))}}t.AuthenticationApiGenerated=c},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==s&&(p.sessionId=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then((e=>e(this.axios,this.basePath)))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then((e=>e(this.axios,this.basePath)))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then((e=>e(this.axios,this.basePath)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}))}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then((e=>e(this.axios,this.basePath)))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then((e=>e(this.axios,this.basePath)))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then((e=>e(this.axios,this.basePath)))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then((e=>e(this.axios,this.basePath)))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then((e=>e(this.axios,this.basePath)))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then((e=>e(this.axios,this.basePath)))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then((e=>e(this.axios,this.basePath)))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then((e=>e(this.axios,this.basePath)))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.ReferenceDataApiGenerated=c},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeForm",s);const n="/trade/place",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then((e=>e(this.axios,this.basePath)))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then((e=>e(this.axios,this.basePath)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then((e=>e(this.axios,this.basePath)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then((e=>e(this.axios,this.basePath)))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then((e=>e(this.axios,this.basePath)))}}t.TransactionsAndReportingApiGenerated=c},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(1357);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const s=r(7275),i=r(1357),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${e[t]}`))}))},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return n(this,void 0,void 0,(function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}}))},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a,u;return n(this,void 0,void 0,(function*(){let n=0,d=5e3;for(;n<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){n++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise((e=>setTimeout(e,d))),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(s=e.response)||void 0===s?void 0:s.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")}))}((()=>n(this,void 0,void 0,(function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))))}))},t.isBrowser=function(){return"undefined"!=typeof window}},4438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.46/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(2935),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(4996),t),s(r(7899),t),s(r(7351),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(s,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,(function(e,t){return e in h||(p.push(e),h[e]=null),t})),p.sort(),JSON.stringify(l,p));var l,p,h;const f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield window.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},1357:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,I=e=>!l(e)&&e!==U,w=(R="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>R&&e instanceof R);var R;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};E(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(U.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],U.addEventListener("message",(({source:e,data:t})=>{e===U&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),U.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:w,isFileList:P,forEach:E,merge:function e(){const{caseless:t}=I(this)&&this||{},r={},n=(n,s)=>{const i=t&&k(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(E(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:U,isContextDefined:I,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return E(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}J.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=$.prototype,V={};function W(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{V[e]={value:e}})),Object.defineProperties($,V),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(W)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!W(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:W});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie,s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le=(pe="undefined"!=typeof navigator&&navigator.product,de&&["ReactNative","NativeScript","NS"].indexOf(pe)<0);var pe;const he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function Ee(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ue(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(ke,$,{__CANCEL__:!0});const Ie=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),r)},we=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Re=e=>(...t)=>J.asap((()=>e(...t)));var Be=ge.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=J.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>s(Ce(e),Ce(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ue((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ie(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ie(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new ke(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",s):e.unsubscribe(s))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{i&&clearTimeout(i),i=null}]};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n,s)=>{const i=async function*(e,t,r){for await(const n of e)yield*Le(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,s);let o,a=0,c=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let s=n.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),Ve={stream:Qe&&(e=>e.body)};var We;He&&(We=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ve[e]&&(Ve[e]=J.isFunction(We[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f,[g,y]=s||i||o?De([s,i],o):[];const m=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let b;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(b=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0))(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=we(b,Ie(Re(c)));n=Ke(r.body,65536,e,t,Ge)}}J.isString(l)||(l=l?"include":"omit"),f=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:l});let s=await fetch(f);const i=Qe&&("stream"===u||"response"===u);if(Qe&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=J.toFiniteNumber(s.headers.get("content-length")),[r,n]=a&&we(t,Ie(Re(a),!0))||[];s=new Response(Ke(s.body,65536,r,(()=>{n&&n(),i&&m()}),Ge),e)}u=u||"text";let o=await Ve[J.findKey(Ve,u)||"text"](s,e);return!i&&m(),y&&y(),await new Promise(((t,r)=>{Ue(t,r,{data:o,headers:_e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(t){if(m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return Ee(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,l=0;if(!a){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=nt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new ke(e,n,s),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new dt((function(t){e=t})),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach((([e,t])=>{pt[t]=e}));var ht=pt;const ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=ke,ft.CancelToken=lt,ft.isCancel=Ee,ft.VERSION="1.7.4",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(2316)})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.client=t():e.client=t()}(self,(()=>(()=>{var e={3708:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(8598),t),s(r(459),t),s(r(7766),t),s(r(2319),t),s(r(4420),t),s(r(502),t),s(r(9819),t),s(r(9900),t)},2734:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApiGenerated=t.AccountInformationApiFactory=t.AccountInformationApiFp=t.AccountInformationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AccountInformationApiAxiosParamCreator=function(e){return{getAllUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getAllUserHoldings","userId",t),(0,i.assertParamExists)("getAllUserHoldings","userSecret",r);const n="/holdings",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),void 0!==s&&(p.brokerage_authorizations=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountBalance:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountBalance","userId",t),(0,i.assertParamExists)("getUserAccountBalance","userSecret",r),(0,i.assertParamExists)("getUserAccountBalance","accountId",s);const n="/accounts/{accountId}/balances".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/balances",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountDetails:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountDetails","userId",t),(0,i.assertParamExists)("getUserAccountDetails","userSecret",r),(0,i.assertParamExists)("getUserAccountDetails","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountOrders:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountOrders","userId",t),(0,i.assertParamExists)("getUserAccountOrders","userSecret",r),(0,i.assertParamExists)("getUserAccountOrders","accountId",s);const n="/accounts/{accountId}/orders".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==o&&(f.state=o),void 0!==c&&(f.days=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),getUserAccountPositions:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountPositions","userId",t),(0,i.assertParamExists)("getUserAccountPositions","userSecret",r),(0,i.assertParamExists)("getUserAccountPositions","accountId",s);const n="/accounts/{accountId}/positions".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/positions",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserHoldings","accountId",t),(0,i.assertParamExists)("getUserHoldings","userId",r),(0,i.assertParamExists)("getUserHoldings","userSecret",s);const n="/accounts/{accountId}/holdings".replace("{accountId}",encodeURIComponent(String(void 0!==t?t:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/holdings",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listUserAccounts:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listUserAccounts","userId",t),(0,i.assertParamExists)("listUserAccounts","userSecret",r);const n="/accounts",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/accounts",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),updateUserAccount:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("updateUserAccount","userId",t),(0,i.assertParamExists)("updateUserAccount","userSecret",r),(0,i.assertParamExists)("updateUserAccount","accountId",s);const n="/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"PUT"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}",httpMethod:"PUT"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.AccountInformationApiFp=function(e){const r=(0,t.AccountInformationApiAxiosParamCreator)(e);return{getAllUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getAllUserHoldings(t.userId,t.userSecret,t.brokerageAuthorizations,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountBalance(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountBalance(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountDetails(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountDetails(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountOrders(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountOrders(t.userId,t.userSecret,t.accountId,t.state,t.days,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserAccountPositions(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountPositions(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getUserHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserHoldings(t.accountId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listUserAccounts(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listUserAccounts(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},updateUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.updateUserAccount(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.AccountInformationApiFactory=function(e,r,n){const s=(0,t.AccountInformationApiFp)(e);return{getAllUserHoldings:(e,t)=>s.getAllUserHoldings(e,t).then((e=>e(n,r))),getUserAccountBalance:(e,t)=>s.getUserAccountBalance(e,t).then((e=>e(n,r))),getUserAccountDetails:(e,t)=>s.getUserAccountDetails(e,t).then((e=>e(n,r))),getUserAccountOrders:(e,t)=>s.getUserAccountOrders(e,t).then((e=>e(n,r))),getUserAccountPositions:(e,t)=>s.getUserAccountPositions(e,t).then((e=>e(n,r))),getUserHoldings:(e,t)=>s.getUserHoldings(e,t).then((e=>e(n,r))),listUserAccounts:(e,t)=>s.listUserAccounts(e,t).then((e=>e(n,r))),updateUserAccount:(e,t)=>s.updateUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getAllUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getAllUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountBalance(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountBalance(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountDetails(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountDetails(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountOrders(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountOrders(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountPositions(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserAccountPositions(e,r).then((e=>e(this.axios,this.basePath)))}getUserHoldings(e,r){return(0,t.AccountInformationApiFp)(this.configuration).getUserHoldings(e,r).then((e=>e(this.axios,this.basePath)))}listUserAccounts(e,r){return(0,t.AccountInformationApiFp)(this.configuration).listUserAccounts(e,r).then((e=>e(this.axios,this.basePath)))}updateUserAccount(e,r){return(0,t.AccountInformationApiFp)(this.configuration).updateUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.AccountInformationApiGenerated=c},8598:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountInformationApi=void 0;const i=r(2734);s(r(2734),t);class o extends i.AccountInformationApiGenerated{}t.AccountInformationApi=o},7971:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApiGenerated=t.ApiStatusApiFactory=t.ApiStatusApiFp=t.ApiStatusApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ApiStatusApiAxiosParamCreator=function(e){return{check:(t={})=>n(this,void 0,void 0,(function*(){const r=new URL("/",i.DUMMY_BASE_URL);let n;e&&(n=e.baseOptions);const s=Object.assign(Object.assign({method:"GET"},n),t),o=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},c={};let u=n&&n.headers?n.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},o),u),t.headers),(0,a.requestBeforeHook)({queryParameters:c,requestConfig:s,path:"/",configuration:e,pathTemplate:"/",httpMethod:"GET"}),(0,i.setSearchParams)(r,c),{url:(0,i.toPathString)(r),options:s}}))}},t.ApiStatusApiFp=function(e){const r=(0,t.ApiStatusApiAxiosParamCreator)(e);return{check(t){return n(this,void 0,void 0,(function*(){const n=yield r.check(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ApiStatusApiFactory=function(e,r,n){const s=(0,t.ApiStatusApiFp)(e);return{check:e=>s.check(e).then((e=>e(n,r)))}};class c extends o.BaseAPI{check(e){return(0,t.ApiStatusApiFp)(this.configuration).check(e).then((e=>e(this.axios,this.basePath)))}}t.ApiStatusApiGenerated=c},459:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatusApi=void 0;const i=r(7971);s(r(7971),t);class o extends i.ApiStatusApiGenerated{}t.ApiStatusApi=o},3022:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApiGenerated=t.AuthenticationApiFactory=t.AuthenticationApiFp=t.AuthenticationApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.AuthenticationApiAxiosParamCreator=function(e){return{deleteSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("deleteSnapTradeUser","userId",t);const n="/snapTrade/deleteUser",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"DELETE"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.userId=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/deleteUser",httpMethod:"DELETE"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listSnapTradeUsers:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/listUsers",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/listUsers",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),loginSnapTradeUser:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("loginSnapTradeUser","userId",t),(0,i.assertParamExists)("loginSnapTradeUser","userSecret",r);const n="/snapTrade/login",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/snapTrade/login",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),registerSnapTradeUser:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("registerSnapTradeUser","snapTradeRegisterUserRequestBody",t);const n="/snapTrade/registerUser",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/registerUser",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),resetSnapTradeUserSecret:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("resetSnapTradeUserSecret","userIDandSecret",t);const n="/snapTrade/resetUserSecret",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/snapTrade/resetUserSecret",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}}))}},t.AuthenticationApiFp=function(e){const r=(0,t.AuthenticationApiAxiosParamCreator)(e);return{deleteSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.deleteSnapTradeUser(t.userId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listSnapTradeUsers(t){return n(this,void 0,void 0,(function*(){const n=yield r.listSnapTradeUsers(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},loginSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={broker:t.broker,immediateRedirect:t.immediateRedirect,customRedirect:t.customRedirect,reconnect:t.reconnect,connectionType:t.connectionType,connectionPortalVersion:t.connectionPortalVersion},c=yield r.loginSnapTradeUser(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},registerSnapTradeUser(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId},c=yield r.registerSnapTradeUser(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},resetSnapTradeUserSecret(t,a){return n(this,void 0,void 0,(function*(){const n={userId:t.userId,userSecret:t.userSecret},c=yield r.resetSnapTradeUserSecret(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.AuthenticationApiFactory=function(e,r,n){const s=(0,t.AuthenticationApiFp)(e);return{deleteSnapTradeUser:(e,t)=>s.deleteSnapTradeUser(e,t).then((e=>e(n,r))),listSnapTradeUsers:e=>s.listSnapTradeUsers(e).then((e=>e(n,r))),loginSnapTradeUser:(e,t)=>s.loginSnapTradeUser(e,t).then((e=>e(n,r))),registerSnapTradeUser:(e,t)=>s.registerSnapTradeUser(e,t).then((e=>e(n,r))),resetSnapTradeUserSecret:(e,t)=>s.resetSnapTradeUserSecret(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{deleteSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).deleteSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}listSnapTradeUsers(e){return(0,t.AuthenticationApiFp)(this.configuration).listSnapTradeUsers(e).then((e=>e(this.axios,this.basePath)))}loginSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).loginSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}registerSnapTradeUser(e,r){return(0,t.AuthenticationApiFp)(this.configuration).registerSnapTradeUser(e,r).then((e=>e(this.axios,this.basePath)))}resetSnapTradeUserSecret(e,r){return(0,t.AuthenticationApiFp)(this.configuration).resetSnapTradeUserSecret(e,r).then((e=>e(this.axios,this.basePath)))}}t.AuthenticationApiGenerated=c},7766:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationApi=void 0;const i=r(3022);s(r(3022),t);class o extends i.AuthenticationApiGenerated{}t.AuthenticationApi=o},9239:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApiGenerated=t.ConnectionsApiFactory=t.ConnectionsApiFp=t.ConnectionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ConnectionsApiAxiosParamCreator=function(e){return{detailBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("detailBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("detailBrokerageAuthorization","userId",r),(0,i.assertParamExists)("detailBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),disableBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("disableBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("disableBrokerageAuthorization","userId",r),(0,i.assertParamExists)("disableBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/disable".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/disable",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),listBrokerageAuthorizations:(t,r,s={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listBrokerageAuthorizations","userId",t),(0,i.assertParamExists)("listBrokerageAuthorizations","userSecret",r);const n="/authorizations",o=new URL(n,i.DUMMY_BASE_URL);let c;e&&(c=e.baseOptions);const u=Object.assign(Object.assign({method:"GET"},c),s),d=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},l={};yield(0,i.setApiKeyToObject)({object:l,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(l.userId=t),void 0!==r&&(l.userSecret=r);let p=c&&c.headers?c.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},d),p),s.headers),(0,a.requestBeforeHook)({queryParameters:l,requestConfig:u,path:n,configuration:e,pathTemplate:"/authorizations",httpMethod:"GET"}),(0,i.setSearchParams)(o,l),{url:(0,i.toPathString)(o),options:u}})),refreshBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("refreshBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("refreshBrokerageAuthorization","userId",r),(0,i.assertParamExists)("refreshBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}/refresh".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}/refresh",httpMethod:"POST"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),removeBrokerageAuthorization:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("removeBrokerageAuthorization","authorizationId",t),(0,i.assertParamExists)("removeBrokerageAuthorization","userId",r),(0,i.assertParamExists)("removeBrokerageAuthorization","userSecret",s);const n="/authorizations/{authorizationId}".replace("{authorizationId}",encodeURIComponent(String(void 0!==t?t:"-authorizationId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"DELETE"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(p.userId=r),void 0!==s&&(p.userSecret=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/authorizations/{authorizationId}",httpMethod:"DELETE"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),sessionEvents:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("sessionEvents","partnerClientId",t);const n="/sessionEvents",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.PartnerClientId=t),void 0!==r&&(p.userId=r),void 0!==s&&(p.sessionId=s);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/sessionEvents",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}}))}},t.ConnectionsApiFp=function(e){const r=(0,t.ConnectionsApiAxiosParamCreator)(e);return{detailBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.detailBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},disableBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.disableBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listBrokerageAuthorizations(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listBrokerageAuthorizations(t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},refreshBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.refreshBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},removeBrokerageAuthorization(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.removeBrokerageAuthorization(t.authorizationId,t.userId,t.userSecret,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},sessionEvents(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.sessionEvents(t.partnerClientId,t.userId,t.sessionId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.ConnectionsApiFactory=function(e,r,n){const s=(0,t.ConnectionsApiFp)(e);return{detailBrokerageAuthorization:(e,t)=>s.detailBrokerageAuthorization(e,t).then((e=>e(n,r))),disableBrokerageAuthorization:(e,t)=>s.disableBrokerageAuthorization(e,t).then((e=>e(n,r))),listBrokerageAuthorizations:(e,t)=>s.listBrokerageAuthorizations(e,t).then((e=>e(n,r))),refreshBrokerageAuthorization:(e,t)=>s.refreshBrokerageAuthorization(e,t).then((e=>e(n,r))),removeBrokerageAuthorization:(e,t)=>s.removeBrokerageAuthorization(e,t).then((e=>e(n,r))),sessionEvents:(e,t)=>s.sessionEvents(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{detailBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).detailBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}disableBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).disableBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}listBrokerageAuthorizations(e,r){return(0,t.ConnectionsApiFp)(this.configuration).listBrokerageAuthorizations(e,r).then((e=>e(this.axios,this.basePath)))}refreshBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).refreshBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}removeBrokerageAuthorization(e,r){return(0,t.ConnectionsApiFp)(this.configuration).removeBrokerageAuthorization(e,r).then((e=>e(this.axios,this.basePath)))}sessionEvents(e,r){return(0,t.ConnectionsApiFp)(this.configuration).sessionEvents(e,r).then((e=>e(this.axios,this.basePath)))}}t.ConnectionsApiGenerated=c},2319:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionsApi=void 0;const i=r(9239);s(r(9239),t);class o extends i.ConnectionsApiGenerated{}t.ConnectionsApi=o},9448:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApiGenerated=t.OptionsApiFactory=t.OptionsApiFp=t.OptionsApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.OptionsApiAxiosParamCreator=function(e){return{getOptionStrategy:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionStrategy","userId",t),(0,i.assertParamExists)("getOptionStrategy","userSecret",r),(0,i.assertParamExists)("getOptionStrategy","accountId",s),(0,i.assertParamExists)("getOptionStrategy","optionsGetOptionStrategyRequest",o);const n="/accounts/{accountId}/optionStrategy".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsChain:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsChain","userId",t),(0,i.assertParamExists)("getOptionsChain","userSecret",r),(0,i.assertParamExists)("getOptionsChain","accountId",s),(0,i.assertParamExists)("getOptionsChain","symbol",o);const n="/accounts/{accountId}/optionsChain".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),void 0!==o&&(h.symbol=o);let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionsChain",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOptionsStrategyQuote:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOptionsStrategyQuote","userId",t),(0,i.assertParamExists)("getOptionsStrategyQuote","userSecret",r),(0,i.assertParamExists)("getOptionsStrategyQuote","accountId",s),(0,i.assertParamExists)("getOptionsStrategyQuote","optionStrategyId",o);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r);let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}",httpMethod:"GET"}),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),listOptionHoldings:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("listOptionHoldings","userId",t),(0,i.assertParamExists)("listOptionHoldings","userSecret",r),(0,i.assertParamExists)("listOptionHoldings","accountId",s);const n="/accounts/{accountId}/options".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"GET"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r);let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/options",httpMethod:"GET"}),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOptionStrategy:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOptionStrategy","userId",t),(0,i.assertParamExists)("placeOptionStrategy","userSecret",r),(0,i.assertParamExists)("placeOptionStrategy","accountId",s),(0,i.assertParamExists)("placeOptionStrategy","optionStrategyId",o),(0,i.assertParamExists)("placeOptionStrategy","optionsPlaceOptionStrategyRequest",c);const n="/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))).replace("{optionStrategyId}",encodeURIComponent(String(void 0!==o?o:"-optionStrategyId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"POST"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),h["Content-Type"]="application/json";let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({requestBody:c,queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/optionStrategy/{optionStrategyId}/execute",httpMethod:"POST"}),p.data=(0,i.serializeDataIfNeeded)(c,p,e),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}}))}},t.OptionsApiFp=function(e){const r=(0,t.OptionsApiAxiosParamCreator)(e);return{getOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={underlying_symbol_id:t.underlying_symbol_id,legs:t.legs,strategy_type:t.strategy_type},c=yield r.getOptionStrategy(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOptionsChain(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsChain(t.userId,t.userSecret,t.accountId,t.symbol,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getOptionsStrategyQuote(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getOptionsStrategyQuote(t.userId,t.userSecret,t.accountId,t.optionStrategyId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listOptionHoldings(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.listOptionHoldings(t.userId,t.userSecret,t.accountId,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeOptionStrategy(t,a){return n(this,void 0,void 0,(function*(){const n={order_type:t.order_type,time_in_force:t.time_in_force,price:t.price},c=yield r.placeOptionStrategy(t.userId,t.userSecret,t.accountId,t.optionStrategyId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.OptionsApiFactory=function(e,r,n){const s=(0,t.OptionsApiFp)(e);return{getOptionStrategy:(e,t)=>s.getOptionStrategy(e,t).then((e=>e(n,r))),getOptionsChain:(e,t)=>s.getOptionsChain(e,t).then((e=>e(n,r))),getOptionsStrategyQuote:(e,t)=>s.getOptionsStrategyQuote(e,t).then((e=>e(n,r))),listOptionHoldings:(e,t)=>s.listOptionHoldings(e,t).then((e=>e(n,r))),placeOptionStrategy:(e,t)=>s.placeOptionStrategy(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsChain(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsChain(e,r).then((e=>e(this.axios,this.basePath)))}getOptionsStrategyQuote(e,r){return(0,t.OptionsApiFp)(this.configuration).getOptionsStrategyQuote(e,r).then((e=>e(this.axios,this.basePath)))}listOptionHoldings(e,r){return(0,t.OptionsApiFp)(this.configuration).listOptionHoldings(e,r).then((e=>e(this.axios,this.basePath)))}placeOptionStrategy(e,r){return(0,t.OptionsApiFp)(this.configuration).placeOptionStrategy(e,r).then((e=>e(this.axios,this.basePath)))}}t.OptionsApiGenerated=c},4420:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsApi=void 0;const i=r(9448);s(r(9448),t);class o extends i.OptionsApiGenerated{}t.OptionsApi=o},7342:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApiGenerated=t.ReferenceDataApiFactory=t.ReferenceDataApiFp=t.ReferenceDataApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.ReferenceDataApiAxiosParamCreator=function(e){return{getCurrencyExchangeRatePair:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getCurrencyExchangeRatePair","currencyPair",t);const n="/currencies/rates/{currencyPair}".replace("{currencyPair}",encodeURIComponent(String(void 0!==t?t:"-currencyPair-"))),s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/currencies/rates/{currencyPair}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getPartnerInfo:(t={})=>n(this,void 0,void 0,(function*(){const r="/snapTrade/partners",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/snapTrade/partners",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSecurityTypes:(t={})=>n(this,void 0,void 0,(function*(){const r="/securityTypes",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/securityTypes",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getStockExchanges:(t={})=>n(this,void 0,void 0,(function*(){const r="/exchanges",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/exchanges",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),getSymbols:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/symbols",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"POST"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),u["Content-Type"]="application/json";let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({requestBody:t,queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/symbols",httpMethod:"POST"}),c.data=(0,i.serializeDataIfNeeded)(t,c,e),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),getSymbolsByTicker:(t,r={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getSymbolsByTicker","query",t);const n="/symbols/{query}".replace("{query}",encodeURIComponent(String(void 0!==t?t:"-query-"))),s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e});let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/symbols/{query}",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerageAuthorizationType:(t,r={})=>n(this,void 0,void 0,(function*(){const n="/brokerageAuthorizationTypes",s=new URL(n,i.DUMMY_BASE_URL);let o;e&&(o=e.baseOptions);const c=Object.assign(Object.assign({method:"GET"},o),r),u=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},d={};yield(0,i.setApiKeyToObject)({object:d,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:d,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(d.brokerage=t);let l=o&&o.headers?o.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},u),l),r.headers),(0,a.requestBeforeHook)({queryParameters:d,requestConfig:c,path:n,configuration:e,pathTemplate:"/brokerageAuthorizationTypes",httpMethod:"GET"}),(0,i.setSearchParams)(s,d),{url:(0,i.toPathString)(s),options:c}})),listAllBrokerages:(t={})=>n(this,void 0,void 0,(function*(){const r="/brokerages",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/brokerages",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrencies:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),listAllCurrenciesRates:(t={})=>n(this,void 0,void 0,(function*(){const r="/currencies/rates",n=new URL(r,i.DUMMY_BASE_URL);let s;e&&(s=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},s),t),c=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},u={};yield(0,i.setApiKeyToObject)({object:u,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:c,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:u,key:"timestamp",keyParamName:"timestamp",configuration:e});let d=s&&s.headers?s.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},c),d),t.headers),(0,a.requestBeforeHook)({queryParameters:u,requestConfig:o,path:r,configuration:e,pathTemplate:"/currencies/rates",httpMethod:"GET"}),(0,i.setSearchParams)(n,u),{url:(0,i.toPathString)(n),options:o}})),symbolSearchUserAccount:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("symbolSearchUserAccount","userId",t),(0,i.assertParamExists)("symbolSearchUserAccount","userSecret",r),(0,i.assertParamExists)("symbolSearchUserAccount","accountId",s);const n="/accounts/{accountId}/symbols".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/symbols",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}))}},t.ReferenceDataApiFp=function(e){const r=(0,t.ReferenceDataApiAxiosParamCreator)(e);return{getCurrencyExchangeRatePair(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getCurrencyExchangeRatePair(t.currencyPair,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getPartnerInfo(t){return n(this,void 0,void 0,(function*(){const n=yield r.getPartnerInfo(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSecurityTypes(t){return n(this,void 0,void 0,(function*(){const n=yield r.getSecurityTypes(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getStockExchanges(t){return n(this,void 0,void 0,(function*(){const n=yield r.getStockExchanges(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getSymbols(t={},a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.getSymbols(n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getSymbolsByTicker(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getSymbolsByTicker(t.query,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerageAuthorizationType(t={},a){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerageAuthorizationType(t.brokerage,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllBrokerages(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllBrokerages(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrencies(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrencies(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},listAllCurrenciesRates(t){return n(this,void 0,void 0,(function*(){const n=yield r.listAllCurrenciesRates(t);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},symbolSearchUserAccount(t,a){return n(this,void 0,void 0,(function*(){const n={substring:t.substring},c=yield r.symbolSearchUserAccount(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.ReferenceDataApiFactory=function(e,r,n){const s=(0,t.ReferenceDataApiFp)(e);return{getCurrencyExchangeRatePair:(e,t)=>s.getCurrencyExchangeRatePair(e,t).then((e=>e(n,r))),getPartnerInfo:e=>s.getPartnerInfo(e).then((e=>e(n,r))),getSecurityTypes:e=>s.getSecurityTypes(e).then((e=>e(n,r))),getStockExchanges:e=>s.getStockExchanges(e).then((e=>e(n,r))),getSymbols:(e={},t)=>s.getSymbols(e,t).then((e=>e(n,r))),getSymbolsByTicker:(e,t)=>s.getSymbolsByTicker(e,t).then((e=>e(n,r))),listAllBrokerageAuthorizationType:(e={},t)=>s.listAllBrokerageAuthorizationType(e,t).then((e=>e(n,r))),listAllBrokerages:e=>s.listAllBrokerages(e).then((e=>e(n,r))),listAllCurrencies:e=>s.listAllCurrencies(e).then((e=>e(n,r))),listAllCurrenciesRates:e=>s.listAllCurrenciesRates(e).then((e=>e(n,r))),symbolSearchUserAccount:(e,t)=>s.symbolSearchUserAccount(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getCurrencyExchangeRatePair(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getCurrencyExchangeRatePair(e,r).then((e=>e(this.axios,this.basePath)))}getPartnerInfo(e){return(0,t.ReferenceDataApiFp)(this.configuration).getPartnerInfo(e).then((e=>e(this.axios,this.basePath)))}getSecurityTypes(e){return(0,t.ReferenceDataApiFp)(this.configuration).getSecurityTypes(e).then((e=>e(this.axios,this.basePath)))}getStockExchanges(e){return(0,t.ReferenceDataApiFp)(this.configuration).getStockExchanges(e).then((e=>e(this.axios,this.basePath)))}getSymbols(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbols(e,r).then((e=>e(this.axios,this.basePath)))}getSymbolsByTicker(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).getSymbolsByTicker(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerageAuthorizationType(e={},r){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerageAuthorizationType(e,r).then((e=>e(this.axios,this.basePath)))}listAllBrokerages(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllBrokerages(e).then((e=>e(this.axios,this.basePath)))}listAllCurrencies(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrencies(e).then((e=>e(this.axios,this.basePath)))}listAllCurrenciesRates(e){return(0,t.ReferenceDataApiFp)(this.configuration).listAllCurrenciesRates(e).then((e=>e(this.axios,this.basePath)))}symbolSearchUserAccount(e,r){return(0,t.ReferenceDataApiFp)(this.configuration).symbolSearchUserAccount(e,r).then((e=>e(this.axios,this.basePath)))}}t.ReferenceDataApiGenerated=c},502:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ReferenceDataApi=void 0;const i=r(7342);s(r(7342),t);class o extends i.ReferenceDataApiGenerated{}t.ReferenceDataApi=o},3171:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApiGenerated=t.TradingApiFactory=t.TradingApiFp=t.TradingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TradingApiAxiosParamCreator=function(e){return{cancelUserAccountOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("cancelUserAccountOrder","userId",t),(0,i.assertParamExists)("cancelUserAccountOrder","userSecret",r),(0,i.assertParamExists)("cancelUserAccountOrder","accountId",s),(0,i.assertParamExists)("cancelUserAccountOrder","tradingCancelUserAccountOrderRequest",o);const n="/accounts/{accountId}/orders/cancel".replace("{accountId}",encodeURIComponent(String(void 0!==s?s:"-accountId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(h.userId=t),void 0!==r&&(h.userSecret=r),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/orders/cancel",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}})),getOrderImpact:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getOrderImpact","userId",t),(0,i.assertParamExists)("getOrderImpact","userSecret",r),(0,i.assertParamExists)("getOrderImpact","manualTradeForm",s);const n="/trade/impact",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/impact",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),getUserAccountQuotes:(t,r,s,o,c,u={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getUserAccountQuotes","userId",t),(0,i.assertParamExists)("getUserAccountQuotes","userSecret",r),(0,i.assertParamExists)("getUserAccountQuotes","symbols",s),(0,i.assertParamExists)("getUserAccountQuotes","accountId",o);const n="/accounts/{accountId}/quotes".replace("{accountId}",encodeURIComponent(String(void 0!==o?o:"-accountId-"))),d=new URL(n,i.DUMMY_BASE_URL);let l;e&&(l=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},l),u),h=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},f={};yield(0,i.setApiKeyToObject)({object:f,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:f,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(f.userId=t),void 0!==r&&(f.userSecret=r),void 0!==s&&(f.symbols=s),void 0!==c&&(f.use_ticker=c);let g=l&&l.headers?l.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),u.headers),(0,a.requestBeforeHook)({queryParameters:f,requestConfig:p,path:n,configuration:e,pathTemplate:"/accounts/{accountId}/quotes",httpMethod:"GET"}),(0,i.setSearchParams)(d,f),{url:(0,i.toPathString)(d),options:p}})),placeForceOrder:(t,r,s,o={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeForceOrder","userId",t),(0,i.assertParamExists)("placeForceOrder","userSecret",r),(0,i.assertParamExists)("placeForceOrder","manualTradeFormWithOptions",s);const n="/trade/place",c=new URL(n,i.DUMMY_BASE_URL);let u;e&&(u=e.baseOptions);const d=Object.assign(Object.assign({method:"POST"},u),o),l=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},p={};yield(0,i.setApiKeyToObject)({object:p,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:l,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(p.userId=t),void 0!==r&&(p.userSecret=r),l["Content-Type"]="application/json";let h=u&&u.headers?u.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},l),h),o.headers),(0,a.requestBeforeHook)({requestBody:s,queryParameters:p,requestConfig:d,path:n,configuration:e,pathTemplate:"/trade/place",httpMethod:"POST"}),d.data=(0,i.serializeDataIfNeeded)(s,d,e),(0,i.setSearchParams)(c,p),{url:(0,i.toPathString)(c),options:d}})),placeOrder:(t,r,s,o,c={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("placeOrder","tradeId",t),(0,i.assertParamExists)("placeOrder","userId",r),(0,i.assertParamExists)("placeOrder","userSecret",s);const n="/trade/{tradeId}".replace("{tradeId}",encodeURIComponent(String(void 0!==t?t:"-tradeId-"))),u=new URL(n,i.DUMMY_BASE_URL);let d;e&&(d=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},d),c),p=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},h={};yield(0,i.setApiKeyToObject)({object:h,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:p,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:h,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==r&&(h.userId=r),void 0!==s&&(h.userSecret=s),p["Content-Type"]="application/json";let f=d&&d.headers?d.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},p),f),c.headers),(0,a.requestBeforeHook)({requestBody:o,queryParameters:h,requestConfig:l,path:n,configuration:e,pathTemplate:"/trade/{tradeId}",httpMethod:"POST"}),l.data=(0,i.serializeDataIfNeeded)(o,l,e),(0,i.setSearchParams)(u,h),{url:(0,i.toPathString)(u),options:l}}))}},t.TradingApiFp=function(e){const r=(0,t.TradingApiAxiosParamCreator)(e);return{cancelUserAccountOrder(t,a){return n(this,void 0,void 0,(function*(){const n={brokerage_order_id:t.brokerage_order_id},c=yield r.cancelUserAccountOrder(t.userId,t.userSecret,t.accountId,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getOrderImpact(t,a){return n(this,void 0,void 0,(function*(){const n={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.getOrderImpact(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},getUserAccountQuotes(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getUserAccountQuotes(t.userId,t.userSecret,t.symbols,t.accountId,t.useTicker,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},placeForceOrder(t,a){return n(this,void 0,void 0,(function*(){const n={account_id:t.account_id,action:t.action,universal_symbol_id:t.universal_symbol_id,symbol:t.symbol,order_type:t.order_type,time_in_force:t.time_in_force,price:t.price,stop:t.stop,units:t.units,notional_value:t.notional_value},c=yield r.placeForceOrder(t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))},placeOrder(t,a){return n(this,void 0,void 0,(function*(){const n={wait_to_confirm:t.wait_to_confirm},c=yield r.placeOrder(t.tradeId,t.userId,t.userSecret,n,a);return(0,i.createRequestFunction)(c,s.default,o.BASE_PATH,e)}))}}},t.TradingApiFactory=function(e,r,n){const s=(0,t.TradingApiFp)(e);return{cancelUserAccountOrder:(e,t)=>s.cancelUserAccountOrder(e,t).then((e=>e(n,r))),getOrderImpact:(e,t)=>s.getOrderImpact(e,t).then((e=>e(n,r))),getUserAccountQuotes:(e,t)=>s.getUserAccountQuotes(e,t).then((e=>e(n,r))),placeForceOrder:(e,t)=>s.placeForceOrder(e,t).then((e=>e(n,r))),placeOrder:(e,t)=>s.placeOrder(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{cancelUserAccountOrder(e,r){return(0,t.TradingApiFp)(this.configuration).cancelUserAccountOrder(e,r).then((e=>e(this.axios,this.basePath)))}getOrderImpact(e,r){return(0,t.TradingApiFp)(this.configuration).getOrderImpact(e,r).then((e=>e(this.axios,this.basePath)))}getUserAccountQuotes(e,r){return(0,t.TradingApiFp)(this.configuration).getUserAccountQuotes(e,r).then((e=>e(this.axios,this.basePath)))}placeForceOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeForceOrder(e,r).then((e=>e(this.axios,this.basePath)))}placeOrder(e,r){return(0,t.TradingApiFp)(this.configuration).placeOrder(e,r).then((e=>e(this.axios,this.basePath)))}}t.TradingApiGenerated=c},9819:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TradingApi=void 0;const i=r(3171);s(r(3171),t);class o extends i.TradingApiGenerated{}t.TradingApi=o},288:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApiGenerated=t.TransactionsAndReportingApiFactory=t.TransactionsAndReportingApiFp=t.TransactionsAndReportingApiAxiosParamCreator=void 0;const s=r(1357),i=r(6479),o=r(7275),a=r(8917);t.TransactionsAndReportingApiAxiosParamCreator=function(e){return{getActivities:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getActivities","userId",t),(0,i.assertParamExists)("getActivities","userSecret",r);const n="/activities",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==s&&(y.startDate=s instanceof Date?s.toISOString().substr(0,10):s),void 0!==o&&(y.endDate=o instanceof Date?o.toISOString().substr(0,10):o),void 0!==c&&(y.accounts=c),void 0!==u&&(y.brokerageAuthorizations=u),void 0!==d&&(y.type=d),void 0!==t&&(y.userId=t),void 0!==r&&(y.userSecret=r);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/activities",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}})),getReportingCustomRange:(t,r,s,o,c,u,d,l={})=>n(this,void 0,void 0,(function*(){(0,i.assertParamExists)("getReportingCustomRange","startDate",t),(0,i.assertParamExists)("getReportingCustomRange","endDate",r),(0,i.assertParamExists)("getReportingCustomRange","userId",s),(0,i.assertParamExists)("getReportingCustomRange","userSecret",o);const n="/performance/custom",p=new URL(n,i.DUMMY_BASE_URL);let h;e&&(h=e.baseOptions);const f=Object.assign(Object.assign({method:"GET"},h),l),g=e&&!(0,i.isBrowser)()?{"User-Agent":e.userAgent}:{},y={};yield(0,i.setApiKeyToObject)({object:y,key:"clientId",keyParamName:"clientId",configuration:e}),yield(0,i.setApiKeyToObject)({object:g,key:"Signature",keyParamName:"signature",configuration:e}),yield(0,i.setApiKeyToObject)({object:y,key:"timestamp",keyParamName:"timestamp",configuration:e}),void 0!==t&&(y.startDate=t instanceof Date?t.toISOString().substr(0,10):t),void 0!==r&&(y.endDate=r instanceof Date?r.toISOString().substr(0,10):r),void 0!==c&&(y.accounts=c),void 0!==u&&(y.detailed=u),void 0!==d&&(y.frequency=d),void 0!==s&&(y.userId=s),void 0!==o&&(y.userSecret=o);let m=h&&h.headers?h.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},g),m),l.headers),(0,a.requestBeforeHook)({queryParameters:y,requestConfig:f,path:n,configuration:e,pathTemplate:"/performance/custom",httpMethod:"GET"}),(0,i.setSearchParams)(p,y),{url:(0,i.toPathString)(p),options:f}}))}},t.TransactionsAndReportingApiFp=function(e){const r=(0,t.TransactionsAndReportingApiAxiosParamCreator)(e);return{getActivities(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getActivities(t.userId,t.userSecret,t.startDate,t.endDate,t.accounts,t.brokerageAuthorizations,t.type,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))},getReportingCustomRange(t,a){return n(this,void 0,void 0,(function*(){const n=yield r.getReportingCustomRange(t.startDate,t.endDate,t.userId,t.userSecret,t.accounts,t.detailed,t.frequency,a);return(0,i.createRequestFunction)(n,s.default,o.BASE_PATH,e)}))}}},t.TransactionsAndReportingApiFactory=function(e,r,n){const s=(0,t.TransactionsAndReportingApiFp)(e);return{getActivities:(e,t)=>s.getActivities(e,t).then((e=>e(n,r))),getReportingCustomRange:(e,t)=>s.getReportingCustomRange(e,t).then((e=>e(n,r)))}};class c extends o.BaseAPI{getActivities(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getActivities(e,r).then((e=>e(this.axios,this.basePath)))}getReportingCustomRange(e,r){return(0,t.TransactionsAndReportingApiFp)(this.configuration).getReportingCustomRange(e,r).then((e=>e(this.axios,this.basePath)))}}t.TransactionsAndReportingApiGenerated=c},9900:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionsAndReportingApi=void 0;const i=r(288);s(r(288),t);class o extends i.TransactionsAndReportingApiGenerated{}t.TransactionsAndReportingApi=o},7275:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredError=t.BaseAPI=t.COLLECTION_FORMATS=t.BASE_PATH=void 0;const n=r(1357);t.BASE_PATH="https://api.snaptrade.com/api/v1".replace(/\/+$/,""),t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"},t.BaseAPI=class{constructor(e,r=t.BASE_PATH,s=n.default){this.basePath=r,this.axios=s,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}};class s extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}t.RequiredError=s},4085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnaptradeCustom=void 0,t.SnaptradeCustom=class{constructor(e){}}},9009:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Snaptrade=void 0;const n=r(3708),s=r(4438),i=r(4085);class o extends i.SnaptradeCustom{constructor(e={}){super(e);const t=new s.Configuration(e);this.accountInformation=new n.AccountInformationApi(t),this.apiStatus=new n.ApiStatusApi(t),this.authentication=new n.AuthenticationApi(t),this.connections=new n.ConnectionsApi(t),this.options=new n.OptionsApi(t),this.referenceData=new n.ReferenceDataApi(t),this.trading=new n.TradingApi(t),this.transactionsAndReporting=new n.TransactionsAndReportingApi(t)}}t.Snaptrade=o},6479:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.createRequestFunction=t.removeTrailingSlash=t.toPathString=t.serializeDataIfNeeded=t.setSearchParams=t.setBearerAuthToObject=t.setBasicAuthToObject=t.setApiKeyToObject=t.assertParamExists=t.DUMMY_BASE_URL=void 0;const s=r(7275),i=r(1357),o=r(4700),a=r(6642),c=r(7270);function u(e,t,r=""){"object"==typeof t?Array.isArray(t)?t.forEach((t=>u(e,t,r))):Object.keys(t).forEach((n=>u(e,t[n],`${r}${""!==r?".":""}${n}`))):e.has(r)?e.append(r,t):e.set(r,t)}t.DUMMY_BASE_URL="https://example.com",t.assertParamExists=function(e,t,r){if(null==r)throw new s.RequiredError(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},t.setApiKeyToObject=function({object:e,key:t,type:r,keyParamName:s,configuration:i,prefix:o}){return n(this,void 0,void 0,(function*(){t=t||s;let n=null;if(i&&i.apiKey)if("function"==typeof i.apiKey)n=yield i.apiKey(s);else if("string"==typeof i.apiKey)n=i.apiKey;else{if("object"!=typeof i.apiKey)throw Error(`Unexpected type ${typeof i.apiKey} for Configuration.apiKey`);s in i.apiKey&&(n=i.apiKey[s])}n&&(e[t]=void 0!==o?`${o}${n}`:n,"Cookie"===r&&(e[t]=`${s}=${e[t]}`))}))},t.setBasicAuthToObject=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},t.setBearerAuthToObject=function(e,t){return n(this,void 0,void 0,(function*(){if(t&&t.accessToken){const r="function"==typeof t.accessToken?yield t.accessToken():yield t.accessToken;e.Authorization="Bearer "+r}}))},t.setSearchParams=function(e,...t){const r=new URLSearchParams(e.search);u(r,t),e.search=r.toString()},t.serializeDataIfNeeded=function(e,t,r){const n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},t.toPathString=function(e){return(0,t.removeTrailingSlash)(e.pathname)+e.search+e.hash},t.removeTrailingSlash=function(e){return e.replace(/\/$/,"")},t.createRequestFunction=function(e,t,r,s){return(u=t,d=r)=>n(this,void 0,void 0,(function*(){(0,a.requestBeforeUrlHook)({axiosArgs:e,basePath:d,configuration:s});const t=((null==s?void 0:s.basePath)||d)+e.url;return yield(0,o.requestAfterHook)({axiosArgs:e,basePath:d,url:t,configuration:s}),function(e){var t,r,s,o,a,u;return n(this,void 0,void 0,(function*(){let n=0,d=5e3;for(;n<3;)try{return yield e()}catch(e){if(e instanceof i.AxiosError&&e.isAxiosError){if(429==(null===(t=e.response)||void 0===t?void 0:t.status)){n++,console.log(`429 error encountered, retrying in ${d/1e3} seconds...`),yield new Promise((e=>setTimeout(e,d))),d*=2;continue}try{const t=(null===(r=e.response)||void 0===r?void 0:r.data)instanceof ReadableStream?yield(0,c.readableStreamToString)(e.response.data):null===(s=e.response)||void 0===s?void 0:s.data;throw new c.SnaptradeError(e,(0,c.parseIfJson)(t),null===(o=e.response)||void 0===o?void 0:o.headers)}catch(t){if(t instanceof ReferenceError)throw new c.SnaptradeError(e,null===(a=e.response)||void 0===a?void 0:a.data,null===(u=e.response)||void 0===u?void 0:u.headers);if(t instanceof c.SnaptradeError)throw t;throw e}}throw e}throw new Error("Request failed after 3 retries due to 429 (rate limit) errors.")}))}((()=>n(this,void 0,void 0,(function*(){return yield u.request(Object.assign(Object.assign({},e.options),{url:t}))}))))}))},t.isBrowser=function(){return"undefined"!=typeof window}},4438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0,t.Configuration=class{constructor(e={}){var t;this.consumerKey=e.consumerKey,this.apiKey=e.apiKey,void 0===this.apiKey&&(this.apiKey={},void 0!==e.clientId&&(this.apiKey.clientId=e.clientId),void 0!==e.signature&&(this.apiKey.signature=e.signature),void 0!==e.timestamp&&(this.apiKey.timestamp=e.timestamp)),this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=null!==(t=e.baseOptions)&&void 0!==t?t:{},this.userAgent=void 0===e.userAgent?"Konfig/9.0.48/typescript":e.userAgent,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}},7270:function(e,t){"use strict";var r=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.parseIfJson=t.readableStreamToString=t.SnaptradeError=void 0;class n extends Error{constructor(e,t,r){var n,s,i,o,a;super(e.message+"\nRESPONSE HEADERS:\n"+JSON.stringify(r,null,2)),this.name="SnaptradeError",this.code=e.code,this.method=null===(s=null===(n=e.config)||void 0===n?void 0:n.method)||void 0===s?void 0:s.toUpperCase(),this.url=null===(i=e.config)||void 0===i?void 0:i.url,this.status=null===(o=e.response)||void 0===o?void 0:o.status,this.statusText=null===(a=e.response)||void 0===a?void 0:a.statusText,this.responseBody=t}toJSON(){return{name:this.name,message:this.message,method:this.method,url:this.url,code:this.code,status:this.status,statusText:this.statusText,responseBody:this.responseBody}}}t.SnaptradeError=n,t.readableStreamToString=function(e){return r(this,void 0,void 0,(function*(){const t=new TextDecoder,r=e.getReader();let n="";try{for(;;){const{done:e,value:s}=yield r.read();if(e)break;n+=t.decode(s,{stream:!0})}}finally{r.releaseLock()}return n}))},t.parseIfJson=function(e){if("string"!=typeof e)return e;try{const t=JSON.parse(e);return"object"==typeof t&&null!==t?t:e}catch(t){return e}}},2316:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3708),t),s(r(4438),t),s(r(8659),t),s(r(9009),t),s(r(7270),t)},8358:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9409:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1289:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3376:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6183:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6420:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},680:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},457:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3045:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8142:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8659:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(3376),t),s(r(9409),t),s(r(8358),t),s(r(3477),t),s(r(423),t),s(r(2867),t),s(r(8898),t),s(r(8262),t),s(r(6392),t),s(r(9847),t),s(r(1289),t),s(r(2935),t),s(r(6183),t),s(r(3433),t),s(r(8083),t),s(r(7055),t),s(r(1763),t),s(r(967),t),s(r(8552),t),s(r(8827),t),s(r(7704),t),s(r(3421),t),s(r(6420),t),s(r(414),t),s(r(9188),t),s(r(680),t),s(r(457),t),s(r(3403),t),s(r(3045),t),s(r(8142),t),s(r(2113),t),s(r(5542),t),s(r(8234),t),s(r(6760),t),s(r(3146),t),s(r(5577),t),s(r(9143),t),s(r(7565),t),s(r(2158),t),s(r(4653),t),s(r(993),t),s(r(9123),t),s(r(3826),t),s(r(2633),t),s(r(8752),t),s(r(9571),t),s(r(6195),t),s(r(1720),t),s(r(7742),t),s(r(831),t),s(r(7871),t),s(r(7446),t),s(r(5718),t),s(r(8707),t),s(r(4948),t),s(r(8159),t),s(r(3647),t),s(r(4189),t),s(r(8407),t),s(r(7170),t),s(r(3015),t),s(r(9416),t),s(r(1811),t),s(r(765),t),s(r(4609),t),s(r(2270),t),s(r(7120),t),s(r(1942),t),s(r(5583),t),s(r(7109),t),s(r(4984),t),s(r(2353),t),s(r(510),t),s(r(9494),t),s(r(9935),t),s(r(9098),t),s(r(5535),t),s(r(3115),t),s(r(6121),t),s(r(8793),t),s(r(8082),t),s(r(2015),t),s(r(8365),t),s(r(5959),t),s(r(3371),t),s(r(9637),t),s(r(2619),t),s(r(6342),t),s(r(8467),t),s(r(1918),t),s(r(3050),t),s(r(6261),t),s(r(54),t),s(r(1553),t),s(r(6903),t),s(r(8086),t),s(r(8646),t),s(r(4996),t),s(r(7899),t),s(r(7351),t),s(r(5867),t),s(r(4264),t),s(r(2659),t)},6760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5577:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4653:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},993:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3826:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9571:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1720:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7742:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},831:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8707:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3647:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8159:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8407:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9416:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4609:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7120:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1942:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2353:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8793:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3371:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3050:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1553:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4996:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7899:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7351:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5867:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4700:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.requestAfterHook=void 0,t.requestAfterHook=function(e){return n(this,void 0,void 0,(function*(){const{configuration:t,basePath:s,axiosArgs:i,url:o}=e;if(void 0===(null==t?void 0:t.consumerKey))throw Error("Consumer key is required");const a=encodeURI(t.consumerKey),c=void 0===i.options.data||"{}"===i.options.data?null:JSON.parse(i.options.data),u=-1===i.url.indexOf("?")?`${i.url}`:`${i.url.split("?")[0]}`,d=(l={content:c,path:`/api/v1${u}`,query:o.replace(s,"").replace(u,"").replace("?","")},p=[],h={},JSON.stringify(l,(function(e,t){return e in h||(p.push(e),h[e]=null),t})),p.sort(),JSON.stringify(l,p));var l,p,h;const f=yield function(e,t){return n(this,void 0,void 0,(function*(){if("undefined"!=typeof process&&process.versions&&process.versions.node){const n=r(2349).createHmac("sha256",t);return n.update(e),n.digest("base64")}{const r=new TextEncoder,n=r.encode(t),s=r.encode(e),i=yield window.crypto.subtle.importKey("raw",n,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),o=yield window.crypto.subtle.sign("HMAC",i,s),a=Array.from(new Uint8Array(o));return btoa(String.fromCharCode.apply(null,a))}}))}(d,a);i.options.headers&&(i.options.headers.Signature=f)}))}},8917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeHook=void 0,t.requestBeforeHook=function(e){const{queryParameters:t}=e;t.timestamp=Math.round((new Date).getTime()/1e3).toString()}},6642:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requestBeforeUrlHook=void 0,t.requestBeforeUrlHook=function(e){}},2349:()=>{},1357:(e,t,r)=>{"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:s}=Object.prototype,{getPrototypeOf:i}=Object,o=(a=Object.create(null),e=>{const t=s.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>o(t)===e),u=e=>t=>typeof t===e,{isArray:d}=Array,l=u("undefined"),p=c("ArrayBuffer"),h=u("string"),f=u("function"),g=u("number"),y=e=>null!==e&&"object"==typeof e,m=e=>{if("object"!==o(e))return!1;const t=i(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},b=c("Date"),A=c("File"),O=c("Blob"),P=c("FileList"),j=c("URLSearchParams"),[v,S,_,T]=["ReadableStream","Request","Response","Headers"].map(c);function E(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,s;if("object"!=typeof e&&(e=[e]),d(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(n=0;n<i;n++)o=s[n],t.call(null,e[o],o,e)}}function k(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,s=r.length;for(;s-- >0;)if(n=r[s],t===n.toLowerCase())return n;return null}const U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,I=e=>!l(e)&&e!==U,w=(R="undefined"!=typeof Uint8Array&&i(Uint8Array),e=>R&&e instanceof R);var R;const B=c("HTMLFormElement"),x=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=c("RegExp"),C=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};E(r,((r,s)=>{let i;!1!==(i=t(r,s,e))&&(n[s]=i||r)})),Object.defineProperties(e,n)},q="abcdefghijklmnopqrstuvwxyz",N="0123456789",F={DIGIT:N,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+N},D=c("AsyncFunction"),L=(K="function"==typeof setImmediate,H=f(U.postMessage),K?setImmediate:H?(z=`axios@${Math.random()}`,G=[],U.addEventListener("message",(({source:e,data:t})=>{e===U&&t===z&&G.length&&G.shift()()}),!1),e=>{G.push(e),U.postMessage(z,"*")}):e=>setTimeout(e));var K,H,z,G;const Y="undefined"!=typeof queueMicrotask?queueMicrotask.bind(U):"undefined"!=typeof process&&process.nextTick||L;var J={isArray:d,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&f(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||f(e.append)&&("formdata"===(t=o(e))||"object"===t&&f(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:m,isReadableStream:v,isRequest:S,isResponse:_,isHeaders:T,isUndefined:l,isDate:b,isFile:A,isBlob:O,isRegExp:M,isFunction:f,isStream:e=>y(e)&&f(e.pipe),isURLSearchParams:j,isTypedArray:w,isFileList:P,forEach:E,merge:function e(){const{caseless:t}=I(this)&&this||{},r={},n=(n,s)=>{const i=t&&k(r,s)||s;m(r[i])&&m(n)?r[i]=e(r[i],n):m(n)?r[i]=e({},n):d(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&E(arguments[e],n);return r},extend:(e,t,r,{allOwnKeys:s}={})=>(E(t,((t,s)=>{r&&f(t)?e[s]=n(t,r):e[s]=t}),{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let s,o,a;const c={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)a=s[o],n&&!n(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==r&&i(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(d(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:B,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:C,freezeMethods:e=>{C(e,((t,r)=>{if(f(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];f(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return d(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:U,isContextDefined:I,ALPHABET:F,generateString:(e=16,t=F.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&f(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const s=d(e)?[]:{};return E(e,((e,t)=>{const i=r(e,n+1);!l(i)&&(s[t]=i)})),t[n]=void 0,s}}return e};return r(e,0)},isAsyncFn:D,isThenable:e=>e&&(y(e)||f(e))&&f(e.then)&&f(e.catch),setImmediate:L,asap:Y};function $(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}J.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=$.prototype,W={};function V(e){return J.isPlainObject(e)||J.isArray(e)}function X(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Z(e,t,r){return e?e.concat(t).map((function(e,t){return e=X(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{W[e]={value:e}})),Object.defineProperties($,W),Object.defineProperty(Q,"isAxiosError",{value:!0}),$.from=(e,t,r,n,s,i)=>{const o=Object.create(Q);return J.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(o,e.message,t,r,n,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const ee=J.toFlatObject(J,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!J.isUndefined(t[e])}))).metaTokens,s=r.visitor||u,i=r.dots,o=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(J.isDate(e))return e.toISOString();if(!a&&J.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(e)||J.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,s){let a=e;if(e&&!s&&"object"==typeof e)if(J.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(J.isArray(e)&&function(e){return J.isArray(e)&&!e.some(V)}(e)||(J.isFileList(e)||J.endsWith(r,"[]"))&&(a=J.toArray(e)))return r=X(r),a.forEach((function(e,n){!J.isUndefined(e)&&null!==e&&t.append(!0===o?Z([r],n,i):null===o?r:r+"[]",c(e))})),!1;return!!V(e)||(t.append(Z(s,r,i),c(e)),!1)}const d=[],l=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:V});if(!J.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!J.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),J.forEach(r,(function(r,i){!0===(!(J.isUndefined(r)||null===r)&&s.call(t,r,J.isString(i)?i.trim():i,n,l))&&e(r,n?n.concat(i):[i])})),d.pop()}}(e),t}function re(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ne(e,t){this._pairs=[],e&&te(e,this,t)}const se=ne.prototype;function ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oe(e,t,r){if(!t)return e;const n=r&&r.encode||ie,s=r&&r.serialize;let i;if(i=s?s(t,r):J.isURLSearchParams(t)?t.toString():new ne(t,r).toString(n),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){const t=e?function(t){return e.call(this,t,re)}:re;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){J.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const de="undefined"!=typeof window&&"undefined"!=typeof document,le=(pe="undefined"!=typeof navigator&&navigator.product,de&&["ReactNative","NativeScript","NS"].indexOf(pe)<0);var pe;const he="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,fe=de&&window.location.href||"http://localhost";var ge={...Object.freeze({__proto__:null,hasBrowserEnv:de,hasStandardBrowserWebWorkerEnv:he,hasStandardBrowserEnv:le,origin:fe}),...ue};function ye(e){function t(e,r,n,s){let i=e[s++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&J.isArray(n)?n.length:i,a?(J.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!o):(n[i]&&J.isObject(n[i])||(n[i]=[]),t(e,r,n[i],s)&&J.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}(n[i])),!o)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,((e,n)=>{t(function(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const me={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,s=J.isObject(e);if(s&&J.isHTMLForm(e)&&(e=new FormData(e)),J.isFormData(e))return n?JSON.stringify(ye(e)):e;if(J.isArrayBuffer(e)||J.isBuffer(e)||J.isStream(e)||J.isFile(e)||J.isBlob(e)||J.isReadableStream(e))return e;if(J.isArrayBufferView(e))return e.buffer;if(J.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ge.isNode&&J.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=J.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e){if(J.isString(e))try{return(0,JSON.parse)(e),J.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(J.isResponse(e)||J.isReadableStream(e))return e;if(e&&J.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(r){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var be=me;const Ae=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Pe(e){return e&&String(e).trim().toLowerCase()}function je(e){return!1===e||null==e?e:J.isArray(e)?e.map(je):String(e)}function ve(e,t,r,n,s){return J.isFunction(n)?n.call(this,t,r):(s&&(t=r),J.isString(t)?J.isString(n)?-1!==t.indexOf(n):J.isRegExp(n)?n.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function s(e,t,r){const s=Pe(t);if(!s)throw new Error("header name must be a non-empty string");const i=J.findKey(n,s);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=je(e))}const i=(e,t)=>J.forEach(e,((e,r)=>s(e,r,t)));if(J.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(J.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let r,n,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),n=e.substring(s+1).trim(),!r||t[r]&&Ae[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(J.isHeaders(e))for(const[t,n]of e.entries())s(n,t,r);else null!=e&&s(t,e,r);return this}get(e,t){if(e=Pe(e)){const r=J.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(J.isFunction(t))return t.call(this,e,r);if(J.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pe(e)){const r=J.findKey(this,e);return!(!r||void 0===this[r]||t&&!ve(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function s(e){if(e=Pe(e)){const s=J.findKey(r,e);!s||t&&!ve(0,r[s],s,t)||(delete r[s],n=!0)}}return J.isArray(e)?e.forEach(s):s(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const s=t[r];e&&!ve(0,this[s],s,e,!0)||(delete this[s],n=!0)}return n}normalize(e){const t=this,r={};return J.forEach(this,((n,s)=>{const i=J.findKey(r,s);if(i)return t[i]=je(n),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(s):String(s).trim();o!==s&&delete t[s],t[o]=je(n),r[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return J.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&J.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Pe(e);t[n]||(function(e,t){const r=J.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,s){return this[n].call(this,t,e,r,s)},configurable:!0})}))}(r,e),t[n]=!0)}return J.isArray(e)?e.forEach(n):n(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(Se.prototype,(({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}})),J.freezeMethods(Se);var _e=Se;function Te(e,t){const r=this||be,n=t||r,s=_e.from(n.headers);let i=n.data;return J.forEach(e,(function(e){i=e.call(r,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function Ee(e){return!(!e||!e.__CANCEL__)}function ke(e,t,r){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,r),this.name="CanceledError"}function Ue(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $("Request failed with status code "+r.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}J.inherits(ke,$,{__CANCEL__:!0});const Ie=(e,t,r=3)=>{let n=0;const s=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[o];s||(s=c),r[i]=a,n[i]=c;let d=o,l=0;for(;d!==i;)l+=r[d++],d%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(1e3*l/p):void 0}}(50,250);return function(e,t){let r,n,s=0,i=1e3/t;const o=(t,i=Date.now())=>{s=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-s;a>=i?o(e,t):(r=e,n||(n=setTimeout((()=>{n=null,o(r)}),i-a)))},()=>r&&o(r)]}((r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,c=s(a);n=i,e({loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),r)},we=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Re=e=>(...t)=>J.asap((()=>e(...t)));var Be=ge.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=J.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},xe=ge.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const o=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),J.isString(n)&&o.push("path="+n),J.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Me(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ce=e=>e instanceof _e?{...e}:e;function qe(e,t){t=t||{};const r={};function n(e,t,r){return J.isPlainObject(e)&&J.isPlainObject(t)?J.merge.call({caseless:r},e,t):J.isPlainObject(t)?J.merge({},t):J.isArray(t)?t.slice():t}function s(e,t,r){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!J.isUndefined(t))return n(void 0,t)}function o(e,t){return J.isUndefined(t)?J.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,s,i){return i in t?n(r,s):i in e?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>s(Ce(e),Ce(t),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),(function(n){const i=c[n]||s,o=i(e[n],t[n],n);J.isUndefined(o)&&i!==a||(r[n]=o)})),r}var Ne=e=>{const t=qe({},e);let r,{data:n,withXSRFToken:s,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:c}=t;if(t.headers=a=_e.from(a),t.url=oe(Me(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),J.isFormData(n))if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(ge.hasStandardBrowserEnv&&(s&&J.isFunction(s)&&(s=s(t)),s||!1!==s&&Be(t.url))){const e=i&&o&&xe.read(o);e&&a.set(i,e)}return t},Fe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Ne(e);let s=n.data;const i=_e.from(n.headers).normalize();let o,a,c,u,d,{responseType:l,onUploadProgress:p,onDownloadProgress:h}=n;function f(){u&&u(),d&&d(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function y(){if(!g)return;const n=_e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ue((function(e){t(e),f()}),(function(e){r(e),f()}),{data:l&&"text"!==l&&"json"!==l?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:n,config:e,request:g}),g=null}g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout,"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(y)},g.onabort=function(){g&&(r(new $("Request aborted",$.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new $("Network Error",$.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const s=n.transitional||ce;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $(t,s.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,g)),g=null},void 0===s&&i.setContentType(null),"setRequestHeader"in g&&J.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),J.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),l&&"json"!==l&&(g.responseType=n.responseType),h&&([c,d]=Ie(h,!0),g.addEventListener("progress",c)),p&&g.upload&&([a,u]=Ie(p),g.upload.addEventListener("progress",a),g.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(o=t=>{g&&(r(!t||t.type?new ke(null,e,g):t),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);m&&-1===ge.protocols.indexOf(m)?r(new $("Unsupported protocol "+m+":",$.ERR_BAD_REQUEST,e)):g.send(s||null)}))},De=(e,t)=>{let r,n=new AbortController;const s=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{s(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",s):e.unsubscribe(s))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",s)));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{i&&clearTimeout(i),i=null}]};const Le=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,s=0;for(;s<r;)n=s+t,yield e.slice(s,n),s=n},Ke=(e,t,r,n,s)=>{const i=async function*(e,t,r){for await(const n of e)yield*Le(ArrayBuffer.isView(n)?n:await r(String(n)),t)}(e,t,s);let o,a=0,c=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return c(),void e.close();let s=n.byteLength;if(r){let e=a+=s;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ze=He&&"function"==typeof ReadableStream,Ge=He&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const Je=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=ze&&Je((()=>{let e=!1;const t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Qe=ze&&Je((()=>J.isReadableStream(new Response("").body))),We={stream:Qe&&(e=>e.body)};var Ve;He&&(Ve=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!We[e]&&(We[e]=J.isFunction(Ve[e])?t=>t[e]():(t,r)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,r)})})));const Xe={http:null,xhr:Fe,fetch:He&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:l="same-origin",fetchOptions:p}=Ne(e);u=u?(u+"").toLowerCase():"text";let h,f,[g,y]=s||i||o?De([s,i],o):[];const m=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let b;try{if(c&&$e&&"get"!==r&&"head"!==r&&0!==(b=await(async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return null==r?(async e=>null==e?0:J.isBlob(e)?e.size:J.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:J.isArrayBufferView(e)||J.isArrayBuffer(e)?e.byteLength:(J.isURLSearchParams(e)&&(e+=""),J.isString(e)?(await Ge(e)).byteLength:void 0))(t):r})(d,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(J.isFormData(n)&&(e=r.headers.get("content-type"))&&d.setContentType(e),r.body){const[e,t]=we(b,Ie(Re(c)));n=Ke(r.body,65536,e,t,Ge)}}J.isString(l)||(l=l?"include":"omit"),f=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:l});let s=await fetch(f);const i=Qe&&("stream"===u||"response"===u);if(Qe&&(a||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=J.toFiniteNumber(s.headers.get("content-length")),[r,n]=a&&we(t,Ie(Re(a),!0))||[];s=new Response(Ke(s.body,65536,r,(()=>{n&&n(),i&&m()}),Ge),e)}u=u||"text";let o=await We[J.findKey(We,u)||"text"](s,e);return!i&&m(),y&&y(),await new Promise(((t,r)=>{Ue(t,r,{data:o,headers:_e.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(t){if(m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,f),{cause:t.cause||t});throw $.from(t,t&&t.code,e,f)}})};J.forEach(Xe,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ze=e=>`- ${e}`,et=e=>J.isFunction(e)||null===e||!1===e;var tt=e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i<t;i++){let t;if(r=e[i],n=r,!et(r)&&(n=Xe[(t=String(r)).toLowerCase()],void 0===n))throw new $(`Unknown adapter '${t}'`);if(n)break;s[t||"#"+i]=n}if(!n){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ze).join("\n"):" "+Ze(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function nt(e){return rt(e),e.headers=_e.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||be.adapter)(e).then((function(t){return rt(e),t.data=Te.call(e,e.transformResponse,t),t.headers=_e.from(t.headers),t}),(function(t){return Ee(t)||(rt(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=_e.from(t.response.headers))),Promise.reject(t)}))}const st={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{st[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const it={};st.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,s,i)=>{if(!1===e)throw new $(n(s," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!it[s]&&(it[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,s,i)}};var ot={assertOptions:function(e,t,r){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],o=t[i];if(o){const t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new $("option "+i+" must be "+r,$.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new $("Unknown option "+i,$.ERR_BAD_OPTION)}},validators:st};const at=ot.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=qe(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:s}=t;void 0!==r&&ot.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=n&&(J.isFunction(n)?t.paramsSerializer={serialize:n}:ot.assertOptions(n,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&J.merge(s.common,s[t.method]);s&&J.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=_e.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let d,l=0;if(!a){const e=[nt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),d=e.length,u=Promise.resolve(t);l<d;)u=u.then(e[l++],e[l++]);return u}d=o.length;let p=t;for(l=0;l<d;){const e=o[l++],t=o[l++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=nt.call(this,p)}catch(e){return Promise.reject(e)}for(l=0,d=c.length;l<d;)u=u.then(c[l++],c[l++]);return u}getUri(e){return oe(Me((e=qe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}J.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,r){return this.request(qe(r||{},{method:e,url:t,data:(r||{}).data}))}})),J.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,s){return this.request(qe(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class dt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,s){r.reason||(r.reason=new ke(e,n,s),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new dt((function(t){e=t})),cancel:e}}}var lt=dt;const pt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pt).forEach((([e,t])=>{pt[t]=e}));var ht=pt;const ft=function e(t){const r=new ut(t),s=n(ut.prototype.request,r);return J.extend(s,ut.prototype,r,{allOwnKeys:!0}),J.extend(s,r,null,{allOwnKeys:!0}),s.create=function(r){return e(qe(t,r))},s}(be);ft.Axios=ut,ft.CanceledError=ke,ft.CancelToken=lt,ft.isCancel=Ee,ft.VERSION="1.7.4",ft.toFormData=te,ft.AxiosError=$,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return J.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=qe,ft.AxiosHeaders=_e,ft.formToJSON=e=>ye(J.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=tt,ft.HttpStatusCode=ht,ft.default=ft,e.exports=ft}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r(2316)})()));
@@ -32,7 +32,7 @@ class Configuration {
32
32
  this.accessToken = param.accessToken;
33
33
  this.basePath = param.basePath;
34
34
  this.baseOptions = (_a = param.baseOptions) !== null && _a !== void 0 ? _a : {};
35
- this.userAgent = param.userAgent === undefined ? "Konfig/9.0.46/typescript" : param.userAgent;
35
+ this.userAgent = param.userAgent === undefined ? "Konfig/9.0.48/typescript" : param.userAgent;
36
36
  this.formDataCtor = param.formDataCtor;
37
37
  }
38
38
  /**
@@ -12,44 +12,49 @@ export interface Account {
12
12
  * @type {string}
13
13
  * @memberof Account
14
14
  */
15
- 'id'?: string;
15
+ 'id': string;
16
16
  /**
17
17
  * Unique identifier for the connection. This is the UUID used to reference the connection in SnapTrade.
18
18
  * @type {string}
19
19
  * @memberof Account
20
20
  */
21
- 'brokerage_authorization'?: string;
22
- /**
23
- * Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.
24
- * @type {string}
25
- * @memberof Account
26
- * @deprecated
27
- */
28
- 'portfolio_group'?: string;
21
+ 'brokerage_authorization': string;
29
22
  /**
30
23
  * A display name for the account. Either assigned by the user or by the brokerage itself. For certain brokerages, SnapTrade appends the brokerage name to the account name for clarity.
31
24
  * @type {string}
32
25
  * @memberof Account
33
26
  */
34
- 'name'?: string | null;
27
+ 'name': string | null;
35
28
  /**
36
29
  * The account number assigned by the brokerage. For some brokerages, this field may be masked for security reasons.
37
30
  * @type {string}
38
31
  * @memberof Account
39
32
  */
40
- 'number'?: string;
33
+ 'number': string;
41
34
  /**
42
35
  * The name of the brokerage that holds the account.
43
36
  * @type {string}
44
37
  * @memberof Account
45
38
  */
46
- 'institution_name'?: string;
39
+ 'institution_name': string;
47
40
  /**
48
41
  * Timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format indicating when the account was created in SnapTrade. This is _not_ the account opening date at the brokerage.
49
42
  * @type {string}
50
43
  * @memberof Account
51
44
  */
52
- 'created_date'?: string;
45
+ 'created_date': string;
46
+ /**
47
+ *
48
+ * @type {AccountSyncStatus}
49
+ * @memberof Account
50
+ */
51
+ 'sync_status': AccountSyncStatus;
52
+ /**
53
+ *
54
+ * @type {AccountBalance}
55
+ * @memberof Account
56
+ */
57
+ 'balance': AccountBalance;
53
58
  /**
54
59
  * Additional information about the account, such as account type, status, etc. This information is specific to the brokerage and there\'s no standard format for this data. This field is deprecated and subject to removal in a future version.
55
60
  * @type {{ [key: string]: any; }}
@@ -60,22 +65,17 @@ export interface Account {
60
65
  [key: string]: any;
61
66
  };
62
67
  /**
63
- * This field is deprecated.
64
- * @type {Array<string>}
68
+ * Portfolio Group ID. Portfolio Groups have been deprecated. Please contact support if you have a usecase for it.
69
+ * @type {string}
65
70
  * @memberof Account
66
71
  * @deprecated
67
72
  */
68
- 'cash_restrictions'?: Array<string>;
69
- /**
70
- *
71
- * @type {AccountSyncStatus}
72
- * @memberof Account
73
- */
74
- 'sync_status'?: AccountSyncStatus;
73
+ 'portfolio_group'?: string;
75
74
  /**
76
- *
77
- * @type {AccountBalance}
75
+ * This field is deprecated.
76
+ * @type {Array<string>}
78
77
  * @memberof Account
78
+ * @deprecated
79
79
  */
80
- 'balance'?: AccountBalance;
80
+ 'cash_restrictions'?: Array<string>;
81
81
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
3
+ * @export
4
+ * @enum {string}
5
+ */
6
+ export type ActionStrictWithOptions = 'BUY' | 'SELL' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The action describes the intent or side of a trade. This is either `BUY` or `SELL`
2
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
3
3
  * @export
4
4
  * @enum {string}
5
5
  */
@@ -15,5 +15,5 @@ export interface HoldingsStatus {
15
15
  * @type {string}
16
16
  * @memberof HoldingsStatus
17
17
  */
18
- 'last_successful_sync'?: string;
18
+ 'last_successful_sync'?: string | null;
19
19
  }
@@ -10,6 +10,7 @@ export * from './account-order-record-universal-symbol';
10
10
  export * from './account-simple';
11
11
  export * from './account-sync-status';
12
12
  export * from './action-strict';
13
+ export * from './action-strict-with-options';
13
14
  export * from './authentication-login-snap-trade-user200-response';
14
15
  export * from './balance';
15
16
  export * from './balance-currency';
@@ -36,6 +37,7 @@ export * from './manual-trade-and-impact';
36
37
  export * from './manual-trade-balance';
37
38
  export * from './manual-trade-form';
38
39
  export * from './manual-trade-form-notional-value';
40
+ export * from './manual-trade-form-with-options';
39
41
  export * from './manual-trade-impact';
40
42
  export * from './manual-trade-symbol';
41
43
  export * from './model400-failed-request-response';
@@ -26,6 +26,7 @@ __exportStar(require("./account-order-record-universal-symbol"), exports);
26
26
  __exportStar(require("./account-simple"), exports);
27
27
  __exportStar(require("./account-sync-status"), exports);
28
28
  __exportStar(require("./action-strict"), exports);
29
+ __exportStar(require("./action-strict-with-options"), exports);
29
30
  __exportStar(require("./authentication-login-snap-trade-user200-response"), exports);
30
31
  __exportStar(require("./balance"), exports);
31
32
  __exportStar(require("./balance-currency"), exports);
@@ -52,6 +53,7 @@ __exportStar(require("./manual-trade-and-impact"), exports);
52
53
  __exportStar(require("./manual-trade-balance"), exports);
53
54
  __exportStar(require("./manual-trade-form"), exports);
54
55
  __exportStar(require("./manual-trade-form-notional-value"), exports);
56
+ __exportStar(require("./manual-trade-form-with-options"), exports);
55
57
  __exportStar(require("./manual-trade-impact"), exports);
56
58
  __exportStar(require("./manual-trade-symbol"), exports);
57
59
  __exportStar(require("./model400-failed-request-response"), exports);
@@ -0,0 +1,71 @@
1
+ import { ActionStrictWithOptions } from './action-strict-with-options';
2
+ import { ManualTradeFormNotionalValue } from './manual-trade-form-notional-value';
3
+ import { OrderTypeStrict } from './order-type-strict';
4
+ import { TimeInForceStrict } from './time-in-force-strict';
5
+ /**
6
+ * Inputs for placing an order with the brokerage.
7
+ * @export
8
+ * @interface ManualTradeFormWithOptions
9
+ */
10
+ export interface ManualTradeFormWithOptions {
11
+ /**
12
+ * Unique identifier for the connected brokerage account. This is the UUID used to reference the account in SnapTrade.
13
+ * @type {string}
14
+ * @memberof ManualTradeFormWithOptions
15
+ */
16
+ 'account_id': string;
17
+ /**
18
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL` for Equity symbols or `BUY_TO_OPEN`, `BUY_TO_CLOSE`, `SELL_TO_OPEN` or `SELL_TO_CLOSE` for Options.
19
+ * @type {ActionStrictWithOptions}
20
+ * @memberof ManualTradeFormWithOptions
21
+ */
22
+ 'action': ActionStrictWithOptions;
23
+ /**
24
+ * The universal symbol ID of the security to trade. Must be \'null\' if `symbol` is provided, otherwise must be provided.
25
+ * @type {string}
26
+ * @memberof ManualTradeFormWithOptions
27
+ */
28
+ 'universal_symbol_id'?: string | null;
29
+ /**
30
+ * The security\'s trading ticker symbol. This currently only support Options symbols in the 21 character OCC format. For example \"AAPL 131124C00240000\" represents a call option on AAPL expiring on 2024-11-13 with a strike price of $240. For more information on the OCC format, see [here](https://en.wikipedia.org/wiki/Option_symbol#OCC_format). If \'symbol\' is provided, then \'universal_symbol_id\' must be \'null\'.
31
+ * @type {string}
32
+ * @memberof ManualTradeFormWithOptions
33
+ */
34
+ 'symbol'?: string | null;
35
+ /**
36
+ * The type of order to place. - For `Limit` and `StopLimit` orders, the `price` field is required. - For `Stop` and `StopLimit` orders, the `stop` field is required.
37
+ * @type {OrderTypeStrict}
38
+ * @memberof ManualTradeFormWithOptions
39
+ */
40
+ 'order_type': OrderTypeStrict;
41
+ /**
42
+ * The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. Here are the supported values: - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely.
43
+ * @type {TimeInForceStrict}
44
+ * @memberof ManualTradeFormWithOptions
45
+ */
46
+ 'time_in_force': TimeInForceStrict;
47
+ /**
48
+ * The limit price for `Limit` and `StopLimit` orders.
49
+ * @type {number}
50
+ * @memberof ManualTradeFormWithOptions
51
+ */
52
+ 'price'?: number | null;
53
+ /**
54
+ * The price at which a stop order is triggered for `Stop` and `StopLimit` orders.
55
+ * @type {number}
56
+ * @memberof ManualTradeFormWithOptions
57
+ */
58
+ 'stop'?: number | null;
59
+ /**
60
+ * For Equity orders, this represents the number of shares for the order. This can be a decimal for fractional orders. Must be `null` if `notional_value` is provided. If placing an Option order, this field represents the number of contracts to buy or sell. (e.g., 1 contract = 100 shares).
61
+ * @type {number}
62
+ * @memberof ManualTradeFormWithOptions
63
+ */
64
+ 'units'?: number | null;
65
+ /**
66
+ *
67
+ * @type {ManualTradeFormNotionalValue}
68
+ * @memberof ManualTradeFormWithOptions
69
+ */
70
+ 'notional_value'?: ManualTradeFormNotionalValue | null;
71
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,7 +15,7 @@ export interface ManualTradeForm {
15
15
  */
16
16
  'account_id': string;
17
17
  /**
18
- * The action describes the intent or side of a trade. This is either `BUY` or `SELL`
18
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
19
19
  * @type {ActionStrict}
20
20
  * @memberof ManualTradeForm
21
21
  */
@@ -40,7 +40,7 @@ export interface ManualTrade {
40
40
  */
41
41
  'symbol'?: ManualTradeSymbol;
42
42
  /**
43
- * The action describes the intent or side of a trade. This is either `BUY` or `SELL`
43
+ * The action describes the intent or side of a trade. This is either `BUY` or `SELL`.
44
44
  * @type {ActionStrict}
45
45
  * @memberof ManualTrade
46
46
  */
@@ -15,7 +15,7 @@ export interface TransactionsStatus {
15
15
  * @type {string}
16
16
  * @memberof TransactionsStatus
17
17
  */
18
- 'last_successful_sync'?: string;
18
+ 'last_successful_sync'?: string | null;
19
19
  /**
20
20
  * The date of the first transaction in the account known to SnapTrade. It\'s possible that the account has transactions before this date, but they are not known to SnapTrade.
21
21
  * @type {string}
@@ -476,9 +476,6 @@ exports.operationParameterMap = {
476
476
  {
477
477
  name: 'action'
478
478
  },
479
- {
480
- name: 'universal_symbol_id'
481
- },
482
479
  {
483
480
  name: 'order_type'
484
481
  },
@@ -491,6 +488,12 @@ exports.operationParameterMap = {
491
488
  {
492
489
  name: 'userSecret'
493
490
  },
491
+ {
492
+ name: 'universal_symbol_id'
493
+ },
494
+ {
495
+ name: 'symbol'
496
+ },
494
497
  {
495
498
  name: 'price'
496
499
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "snaptrade-typescript-sdk",
3
- "version": "9.0.46",
3
+ "version": "9.0.48",
4
4
  "description": "Client for SnapTrade",
5
5
  "author": "Konfig",
6
6
  "engines": {