@brokerize/elements 1.0.1

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.
@@ -0,0 +1,350 @@
1
+ (function(ln,rr){typeof exports=="object"&&typeof module<"u"?rr(exports):typeof define=="function"&&define.amd?define(["exports"],rr):(ln=typeof globalThis<"u"?globalThis:ln||self,rr(ln.Brokerize={}))})(this,function(ln){"use strict";var WF=Object.defineProperty;var YF=(ln,rr,Vr)=>rr in ln?WF(ln,rr,{enumerable:!0,configurable:!0,writable:!0,value:Vr}):ln[rr]=Vr;var Kt=(ln,rr,Vr)=>(YF(ln,typeof rr!="symbol"?rr+"":rr,Vr),Vr);if(typeof self!="object")var self=Function("return this;")();const rr="https://api-preview.brokerize.com".replace(/\/+$/,"");class Vr{constructor(e={}){this.configuration=e}set config(e){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:rr}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||cu}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}const l1=new Vr;class dr{constructor(e=l1){this.configuration=e,this.fetchApi=async(n,r)=>{let i={url:n,init:r};for(const l of this.middleware)l.pre&&(i=await l.pre(Object.assign({fetch:this.fetchApi},i))||i);let o=await(this.configuration.fetchApi||fetch)(i.url,i.init);for(const l of this.middleware)l.post&&(o=await l.post({fetch:this.fetchApi,url:i.url,init:i.init,response:o.clone()})||o);return o},this.middleware=e.middleware}withMiddleware(...e){const n=this.clone();return n.middleware=n.middleware.concat(...e),n}withPreMiddleware(...e){const n=e.map(r=>({pre:r}));return this.withMiddleware(...n)}withPostMiddleware(...e){const n=e.map(r=>({post:r}));return this.withMiddleware(...n)}async request(e,n){const{url:r,init:i}=await this.createFetchParams(e,n),o=await this.fetchApi(r,i);if(o.status>=200&&o.status<300)return o;throw new u1(o,"Response returned an error code")}async createFetchParams(e,n){let r=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(r+="?"+this.configuration.queryParamsStringify(e.query));const i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(u=>i[u]===void 0?delete i[u]:{});const o=typeof n=="function"?n:async()=>n,l={method:e.method,headers:i,body:e.body,credentials:this.configuration.credentials},a=Object.assign(Object.assign({},l),await o({init:l,context:e})),s=Object.assign(Object.assign({},a),{body:s1(a.body)||a.body instanceof URLSearchParams||a1(a.body)?a.body:JSON.stringify(a.body)});return{url:r,init:s}}clone(){const e=this.constructor,n=new e(this.configuration);return n.middleware=this.middleware.slice(),n}}function a1(t){return typeof Blob<"u"&&t instanceof Blob}function s1(t){return typeof FormData<"u"&&t instanceof FormData}class u1 extends Error{constructor(e,n){super(n),this.response=e,this.name="ResponseError"}}class rt extends Error{constructor(e,n){super(n),this.field=e,this.name="RequiredError"}}function Z(t,e){const n=t[e];return n!=null}function cu(t,e=""){return Object.keys(t).map(n=>fu(n,t[n],e)).filter(n=>n.length>0).join("&")}function fu(t,e,n=""){const r=n+(n.length?`[${t}]`:t);if(e instanceof Array){const i=e.map(o=>encodeURIComponent(String(o))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${i}`}if(e instanceof Set){const i=Array.from(e);return fu(t,i,n)}return e instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(e.toISOString())}`:e instanceof Object?cu(e,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(e))}`}function sa(t,e){return Object.keys(t).reduce((n,r)=>Object.assign(Object.assign({},n),{[r]:e(t[r])}),{})}function c1(t){for(const e of t)if(e.contentType==="multipart/form-data")return!0;return!1}class zt{constructor(e,n=r=>r){this.raw=e,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Fn{constructor(e){this.raw=e}async value(){}}class du{constructor(e){this.raw=e}async value(){return await this.raw.text()}}function f1(t){return d1(t)}function d1(t,e){return t==null?t:{expiresAt:new Date(t.expiresAt),id:t.id,name:t.name,permissions:t.permissions}}function h1(t){return m1(t)}function m1(t,e){return t==null?t:{id:t.id,token:t.token}}function g1(t,e=!1){if(t!==void 0)return t===null?null:{url:t.url}}function hu(t){return g1(t,!1)}function p1(t,e=!1){if(t!==void 0)return t===null?null:{origin:t.origin}}function mu(t){return p1(t,!1)}function b1(t,e=!1){if(t!==void 0)return t===null?null:{challengeId:t.challengeId,challengeResponse:t.challengeResponse}}function v1(t){return b1(t,!1)}function _1(t,e=!1){if(t!==void 0)return t===null?null:{brokerName:t.brokerName,env:t.env,password:t.password,username:t.username}}function y1(t){return _1(t,!1)}function en(t){return k1(t)}function k1(t,e){return t==null?t:{currency:Z(t,"currency")?t.currency:void 0,date:Z(t,"date")?t.date:void 0,isRealtime:Z(t,"isRealtime")?t.isRealtime:void 0,maxDecimals:Z(t,"maxDecimals")?t.maxDecimals:void 0,minDecimals:Z(t,"minDecimals")?t.minDecimals:void 0,timestamp:Z(t,"timestamp")?t.timestamp:void 0,value:Z(t,"value")?t.value:void 0}}function w1(t,e=!1){if(t!==void 0)return t===null?null:{currency:t.currency,date:t.date,isRealtime:t.isRealtime,maxDecimals:t.maxDecimals,minDecimals:t.minDecimals,timestamp:t.timestamp,value:t.value}}function S1(t){return w1(t,!1)}function T1(t,e){return t==null?t:{flow:t.flow,challengeLabel:Z(t,"challengeLabel")?t.challengeLabel:void 0,challengeResponseIsOnlyConfirmation:Z(t,"challengeResponseIsOnlyConfirmation")?t.challengeResponseIsOnlyConfirmation:void 0,getChallengeLabel:t.getChallengeLabel,hideOnPhones:Z(t,"hideOnPhones")?t.hideOnPhones:void 0,id:t.id,isDefaultMethod:Z(t,"isDefaultMethod")?t.isDefaultMethod:void 0,label:t.label,tanFieldLabel:t.tanFieldLabel}}function z1(t,e){return t==null?t:{flow:t.flow,hideOnPhones:Z(t,"hideOnPhones")?t.hideOnPhones:void 0,id:t.id,isDefaultMethod:Z(t,"isDefaultMethod")?t.isDefaultMethod:void 0,label:t.label}}function C1(t,e){return t==null?t:{flow:t.flow,hideOnPhones:Z(t,"hideOnPhones")?t.hideOnPhones:void 0,id:t.id,isDefaultMethod:Z(t,"isDefaultMethod")?t.isDefaultMethod:void 0,label:t.label,tanFieldLabel:t.tanFieldLabel}}function O1(t){return I1(t)}function I1(t,e){if(t==null)return t;switch(t.flow){case"CHALLENGE_RESPONSE":return Object.assign(Object.assign({},T1(t)),{flow:"CHALLENGE_RESPONSE"});case"DECOUPLED":return Object.assign(Object.assign({},z1(t)),{flow:"DECOUPLED"});case"TAN":return Object.assign(Object.assign({},C1(t)),{flow:"TAN"});default:throw new Error(`No variant of AuthMethod exists with 'flow=${t.flow}'`)}}function gu(t){return A1(t)}function A1(t,e){return t==null?t:{allOperationsRequireSessionTan:Z(t,"allOperationsRequireSessionTan")?t.allOperationsRequireSessionTan:void 0,authMethods:t.authMethods.map(O1),sessionTanActive:Z(t,"sessionTanActive")?t.sessionTanActive:void 0,sessionTanCanBeEnded:t.sessionTanCanBeEnded,sessionTanSupported:Z(t,"sessionTanSupported")?t.sessionTanSupported:void 0}}const D1={Tan:"TAN",Decoupled:"DECOUPLED",ChallengeResponse:"CHALLENGE_RESPONSE"};function pu(t){return M1(t)}function M1(t,e){return t==null?t:{children:Z(t,"children")?t.children.map(pu):void 0,description:t.description,permission:t.permission}}function E1(t,e=!1){if(t!==void 0)return t===null?null:{clientIdProduction:t.clientIdProduction,clientIdStaging:t.clientIdStaging}}function L1(t){return E1(t,!1)}function N1(t,e=!1){if(t!==void 0)return t===null?null:{bitpanda:L1(t.bitpanda)}}function P1(t){return N1(t,!1)}const $1={None:"NONE",AllAvailable:"ALL_AVAILABLE",TestingOnly:"TESTING_ONLY",ProductionOnly:"PRODUCTION_ONLY"};function R1(t){return F1(t)}function F1(t,e){return t}function x1(t){return t}function U1(t){return B1(t)}function B1(t,e){return t==null?t:{id:t.id,isTestingEnvironment:t.isTestingEnvironment,label:t.label}}function bu(t){return q1(t)}function q1(t,e){return t==null?t:{label:t.label,type:t.type}}function V1(t){return J1(t)}function J1(t,e){return t==null?t:{passwordField:bu(t.passwordField),usernameField:bu(t.usernameField)}}const H1={Open:"open",Canceled:"canceled",Executed:"executed",OpenExecuted:"open_executed",CanceledExecuted:"canceled_executed"};function vu(t){return W1(t)}function W1(t,e){return t}function Y1(t){return G1(t)}function G1(t,e){return t==null?t:{orderExchangeNames:Z(t,"orderExchangeNames")?t.orderExchangeNames:void 0,positionProfitLossAbsPrevClose:Z(t,"positionProfitLossAbsPrevClose")?t.positionProfitLossAbsPrevClose:void 0,positionProfitLossRel:Z(t,"positionProfitLossRel")?t.positionProfitLossRel:void 0,positionProfitLossRelPrevClose:Z(t,"positionProfitLossRelPrevClose")?t.positionProfitLossRelPrevClose:void 0,supportedOrderStatuses:t.supportedOrderStatuses.map(vu)}}function K1(t){return Q1(t)}function Q1(t,e){return t==null?t:{dark:t.dark,darkSquare:t.darkSquare,light:t.light,lightSquare:t.lightSquare}}function j1(t){return X1(t)}function X1(t,e){return t==null?t:{brokerName:t.brokerName,displayName:t.displayName,envLabel:t.envLabel,envs:t.envs.map(U1),features:Y1(t.features),images:K1(t.images),loginForm:Z(t,"loginForm")?V1(t.loginForm):void 0,supportsOAuthLogin:Z(t,"supportsOAuthLogin")?t.supportsOAuthLogin:void 0}}function Z1(t,e=!1){if(t!==void 0)return t===null?null:{authMethod:t.authMethod}}function ev(t){return Z1(t,!1)}function tv(t,e=!1){if(t!==void 0)return t===null?null:{mode:t.mode,authMethod:t.authMethod,challengeId:t.challengeId,challengeResponse:t.challengeResponse}}function nv(t){return tv(t,!1)}function rv(t,e=!1){if(t!==void 0)return t===null?null:{mode:t.mode}}function iv(t){return rv(t,!1)}function ov(t){if(t!==void 0){if(t===null)return null;switch(t.mode){case"challengeResponse":return nv(t);case"sessionTan":return iv(t);default:throw new Error(`No variant of CancelOrderParams exists with 'mode=${t.mode}'`)}}}const lv={SessionTan:"sessionTan",ChallengeResponse:"challengeResponse"};function av(t){return sv(t)}function sv(t,e){return t==null?t:{currency:t.currency,displayName:t.displayName,id:t.id,isHiddenDefaultAccount:t.isHiddenDefaultAccount}}function uv(t){return cv(t)}function cv(t,e){return t==null?t:{balance:Z(t,"balance")?en(t.balance):void 0,buyingPower:Z(t,"buyingPower")?en(t.buyingPower):void 0,hideInOverviews:Z(t,"hideInOverviews")?t.hideInOverviews:void 0}}const fv={O:"O",K:"K",C:"C"};function dv(t){return hv(t)}function hv(t,e){return t}function GF(t){return t}function to(t){return mv(t)}function mv(t,e){return t==null?t:{challengeExplanation:Z(t,"challengeExplanation")?t.challengeExplanation:void 0,challengeId:t.challengeId,challengePrompt:t.challengePrompt,challengePromptType:t.challengePromptType}}const gv={Quote:"quote",Fraction:"fraction",SavingsPlan:"savingsPlan",Market:"market",Limit:"limit",StopMarket:"stopMarket",StopLimit:"stopLimit",TrailingStopMarket:"trailingStopMarket",TrailingStopLimit:"trailingStopLimit",OcoStopMarket:"ocoStopMarket",OcoStopLimit:"ocoStopLimit",Unknown:"unknown"};function Ti(t){return pv(t)}function pv(t,e){return t}function KF(t){return t}const bv={Auto:"AUTO",Gfd:"GFD",Gtc:"GTC",Gtu:"GTU",Gtd:"GTD",Gtdt:"GTDT",Ioc:"IOC"};function Gn(t){return vv(t)}function vv(t,e){return t}function QF(t){return t}function Kn(t){return _v(t)}function _v(t,e){return t==null?t:{date:Z(t,"date")?t.date:void 0,eom:Z(t,"eom")?t.eom:void 0,type:Gn(t.type)}}function yv(t,e=!1){if(t!==void 0)return t===null?null:{date:t.date,eom:t.eom,type:t.type}}function ua(t){return yv(t,!1)}const kv={Abs:"abs",Rel:"rel"};function wv(t){return Sv(t)}function Sv(t,e){return t==null?t:{mode:t.mode,value:t.value}}function Tv(t,e=!1){if(t!==void 0)return t===null?null:{mode:t.mode,value:t.value}}function _u(t){return Tv(t,!1)}function zv(t,e=!1){if(t!==void 0)return t===null?null:{limit:t.limit,orderModel:t.orderModel,size:t.size,stop:t.stop,stopLimit:t.stopLimit,stopLoss:t.stopLoss,takeProfit:t.takeProfit,trailingDistance:_u(t.trailingDistance),trailingLimitTolerance:t.trailingLimitTolerance,validity:ua(t.validity)}}function ca(t){return zv(t,!1)}function Cv(t,e=!1){if(t!==void 0)return t===null?null:{authMethod:t.authMethod,changes:ca(t.changes)}}function Ov(t){return Cv(t,!1)}function Iv(t,e=!1){if(t!==void 0)return t===null?null:{authMethod:t.authMethod,challengeId:t.challengeId,challengeResponse:t.challengeResponse,changes:ca(t.changes)}}function Av(t){return Iv(t,!1)}function Dv(t){return Mv(t)}function Mv(t,e){return t==null?t:{expectedEnd:Z(t,"expectedEnd")?new Date(t.expectedEnd):void 0,msg:t.msg}}function Ev(t,e=!1){if(t!==void 0)return t===null?null:{expectedEnd:t.expectedEnd===void 0?void 0:t.expectedEnd.toISOString(),msg:t.msg}}function Lv(t){return Ev(t,!1)}function Nv(t){return Pv(t)}function Pv(t,e){return t}function jF(t){return t}function $v(t){return Rv(t)}function Rv(t,e){return t==null?t:{appName:Z(t,"appName")?t.appName:void 0,logoUrlDark:Z(t,"logoUrlDark")?t.logoUrlDark:void 0,logoUrlLight:Z(t,"logoUrlLight")?t.logoUrlLight:void 0,redirectStyle:Z(t,"redirectStyle")?t.redirectStyle:void 0,redirectStyleBitpanda:Z(t,"redirectStyleBitpanda")?t.redirectStyleBitpanda:void 0}}function Fv(t){return xv(t)}function xv(t,e){return t==null?t:{allowRequestsWithoutOrigin:t.allowRequestsWithoutOrigin,allowedOrigins:t.allowedOrigins,allowedOriginsRegularExpressions:Z(t,"allowedOriginsRegularExpressions")?t.allowedOriginsRegularExpressions:void 0,brokerEnvFilter:sa(t.brokerEnvFilter,R1),cognitoClientIds:t.cognitoClientIds,enabled:t.enabled,guestUserInactivityTimeoutSeconds:Z(t,"guestUserInactivityTimeoutSeconds")?t.guestUserInactivityTimeoutSeconds:void 0,guestUserLifetime:Z(t,"guestUserLifetime")?Nv(t.guestUserLifetime):void 0,legalEntityName:t.legalEntityName,maintenanceStatus:Z(t,"maintenanceStatus")?Dv(t.maintenanceStatus):void 0,name:t.name,oAuthLoginForm:Z(t,"oAuthLoginForm")?$v(t.oAuthLoginForm):void 0,oAuthReturnToRegularExpressions:t.oAuthReturnToRegularExpressions,oAuthReturnToUrls:t.oAuthReturnToUrls,page:t.page}}function Uv(t,e=!1){if(t!==void 0)return t===null?null:{appName:t.appName,logoUrlDark:t.logoUrlDark,logoUrlLight:t.logoUrlLight,redirectStyle:t.redirectStyle,redirectStyleBitpanda:t.redirectStyleBitpanda}}function Bv(t){return Uv(t,!1)}function qv(t,e=!1){if(t!==void 0)return t===null?null:{logoUrlDark:t.logoUrlDark,logoUrlLight:t.logoUrlLight,themeDark:t.themeDark,themeLight:t.themeLight,title:t.title}}function Vv(t){return qv(t,!1)}function Jv(t,e=!1){if(t!==void 0)return t===null?null:{guestUser:t.guestUser,refreshToken:t.refreshToken}}function Hv(t){return Jv(t,!1)}function Wv(t,e=!1){if(t!==void 0)return t===null?null:{allowRequestsWithoutOrigin:t.allowRequestsWithoutOrigin,allowedOrigins:t.allowedOrigins,allowedOriginsRegularExpressions:t.allowedOriginsRegularExpressions,brokerClientIds:P1(t.brokerClientIds),brokerEnvFilter:t.brokerEnvFilter===void 0?void 0:sa(t.brokerEnvFilter,x1),clientSecrets:t.clientSecrets,cognitoClientIds:t.cognitoClientIds,enabled:t.enabled,guestUserInactivityTimeoutSeconds:t.guestUserInactivityTimeoutSeconds,guestUserLifetime:t.guestUserLifetime,legalEntityName:t.legalEntityName,maintenanceStatus:Lv(t.maintenanceStatus),managingUserIds:t.managingUserIds,name:t.name,oAuthLoginForm:Bv(t.oAuthLoginForm),oAuthReturnToRegularExpressions:t.oAuthReturnToRegularExpressions,oAuthReturnToUrls:t.oAuthReturnToUrls,optionalClientSecrets:t.optionalClientSecrets,page:Vv(t.page),rateLimitPointsToConsume:Hv(t.rateLimitPointsToConsume)}}function Yv(t){return Wv(t,!1)}function Gv(t){return Kv(t)}function Kv(t,e){return t==null?t:{clientId:t.clientId,config:Fv(t.config),lastUsedAt:t.lastUsedAt===null?null:new Date(t.lastUsedAt)}}function Qv(t,e=!1){if(t!==void 0)return t===null?null:{code:t.code,ticketId:t.ticketId}}function jv(t){return Qv(t,!1)}function Xv(t){return Zv(t)}function Zv(t,e){return t==null?t:{sessionId:t.sessionId}}function yu(t){return e0(t)}function e0(t,e){return t==null?t:{footerText:Z(t,"footerText")?t.footerText:void 0,linkTitle:Z(t,"linkTitle")?t.linkTitle:void 0,url:Z(t,"url")?t.url:void 0}}function t0(t,e=!1){if(t!==void 0)return t===null?null:{footerText:t.footerText,linkTitle:t.linkTitle,url:t.url}}function n0(t){return t0(t,!1)}function r0(t,e=!1){if(t!==void 0)return t===null?null:{expiresInDays:t.expiresInDays,name:t.name,permissions:t.permissions}}function i0(t){return r0(t,!1)}function o0(t){return l0(t)}function l0(t,e){return t==null?t:{id:t.id,name:t.name}}function a0(t){return s0(t)}function s0(t,e){return t==null?t:{accessToken:t.access_token,expiresIn:Z(t,"expires_in")?t.expires_in:void 0,idToken:t.idToken,refreshToken:Z(t,"refresh_token")?t.refresh_token:void 0,refreshTokenExpiresIn:Z(t,"refresh_token_expires_in")?t.refresh_token_expires_in:void 0,tokenType:t.token_type}}const u0={Buy:"buy",Sell:"sell"};function zi(t){return c0(t)}function c0(t,e){return t}function XF(t){return t}const f0={Fok:"FOK",Ioc:"IOC",Aon:"AON",Pea:"PEA"};function ku(t){return d0(t)}function d0(t,e){return t}function ZF(t){return t}function h0(t,e=!1){if(t!==void 0)return t===null?null:{brokerExchangeId:t.brokerExchangeId,brokerSecurityId:t.brokerSecurityId,cashAccountId:t.cashAccountId,cashQuotation:t.cashQuotation,direction:t.direction,ifDoneLimit:t.ifDoneLimit,intent:t.intent,isin:t.isin,limit:t.limit,limitCurrencyIso:t.limitCurrencyIso,orderExtension:t.orderExtension,orderModel:t.orderModel,portfolioId:t.portfolioId,quoteId:t.quoteId,quoteLimit:t.quoteLimit,sellPositionId:t.sellPositionId,size:t.size,sizeUnit:t.sizeUnit,stop:t.stop,stopLimit:t.stopLimit,stopLoss:t.stopLoss,takeProfit:t.takeProfit,trailingDistance:_u(t.trailingDistance),trailingLimitTolerance:t.trailingLimitTolerance,usTicker:t.usTicker,validity:ua(t.validity)}}function fa(t){return h0(t,!1)}function m0(t,e=!1){if(t!==void 0)return t===null?null:{acceptHintId:t.acceptHintId,authMethod:t.authMethod,order:fa(t.order)}}function g0(t){return m0(t,!1)}function p0(t,e=!1){if(t!==void 0)return t===null?null:{acceptHintId:t.acceptHintId,authMethod:t.authMethod,challengeId:t.challengeId,challengeResponse:t.challengeResponse,order:fa(t.order)}}function b0(t){return p0(t,!1)}function v0(t,e=!1){if(t!==void 0)return t===null?null:{authMethod:t.authMethod}}function _0(t){return v0(t,!1)}function y0(t){return k0(t)}function k0(t,e){return t==null?t:{id:t.id}}function w0(t){return S0(t)}function S0(t,e){return t==null?t:{orderId:Z(t,"orderId")?t.orderId:void 0}}function T0(t){return z0(t)}function z0(t,e){return t==null?t:{accountName:t.accountName,id:t.id}}const C0={Aborted:"AUTHORIZATION_ABORTED",Initial:"AUTHORIZATION_INITIAL",UserAccepted:"AUTHORIZATION_USER_ACCEPTED",UserCanceled:"AUTHORIZATION_USER_CANCELED"};function O0(t){return I0(t)}function I0(t,e){return t}function A0(t){return D0(t)}function D0(t,e){return t==null?t:{state:O0(t.state),text:Z(t,"text")?t.text:void 0}}function M0(t){return E0(t)}function E0(t,e){return t==null?t:{fraction:Z(t,"fraction")?Kn(t.fraction):void 0,limit:Z(t,"limit")?Kn(t.limit):void 0,market:Z(t,"market")?Kn(t.market):void 0,ocoStopLimit:Z(t,"ocoStopLimit")?Kn(t.ocoStopLimit):void 0,ocoStopMarket:Z(t,"ocoStopMarket")?Kn(t.ocoStopMarket):void 0,quote:Z(t,"quote")?Kn(t.quote):void 0,savingsPlan:Z(t,"savingsPlan")?Kn(t.savingsPlan):void 0,stopLimit:Z(t,"stopLimit")?Kn(t.stopLimit):void 0,stopMarket:Z(t,"stopMarket")?Kn(t.stopMarket):void 0,trailingStopLimit:Z(t,"trailingStopLimit")?Kn(t.trailingStopLimit):void 0,trailingStopMarket:Z(t,"trailingStopMarket")?Kn(t.trailingStopMarket):void 0,unknown:Z(t,"unknown")?Kn(t.unknown):void 0}}function L0(t){return N0(t)}function N0(t,e){return t==null?t:{isSinglePortfolio:Z(t,"isSinglePortfolio")?t.isSinglePortfolio:void 0,lazyAuthMethods:Z(t,"lazyAuthMethods")?t.lazyAuthMethods:void 0,seedOrders:Z(t,"seedOrders")?t.seedOrders:void 0,sessionTanCannotBeEnded:Z(t,"sessionTanCannotBeEnded")?t.sessionTanCannotBeEnded:void 0}}function P0(t,e=!1){if(t!==void 0)return t===null?null:{isSinglePortfolio:t.isSinglePortfolio,lazyAuthMethods:t.lazyAuthMethods,seedOrders:t.seedOrders,sessionTanCannotBeEnded:t.sessionTanCannotBeEnded}}function $0(t){return P0(t,!1)}function R0(t){return F0(t)}function F0(t,e){return t==null?t:{accountId:t.accountId,accountName:t.accountName,settings:L0(t.settings)}}function x0(t){return U0(t)}function U0(t,e){return t==null?t:{accounts:t.accounts.map(R0)}}function B0(t,e=!1){if(t!==void 0)return t===null?null:{kind:t.kind,authMethod:t.authMethod,challengeId:t.challengeId,challengeResponse:t.challengeResponse}}function q0(t){return B0(t,!1)}function V0(t,e=!1){if(t!==void 0)return t===null?null:{kind:t.kind,authMethod:t.authMethod}}function J0(t){return V0(t,!1)}function H0(t,e=!1){if(t!==void 0)return t===null?null:{kind:t.kind,authMethod:t.authMethod,tan:t.tan}}function W0(t){return H0(t,!1)}function Y0(t){if(t!==void 0){if(t===null)return null;switch(t.kind){case"challengeResponse":return q0(t);case"decoupled":return J0(t);case"tan":return W0(t);default:throw new Error(`No variant of EnableSessionTanParams exists with 'kind=${t.kind}'`)}}}const G0={ChallengeResponse:"challengeResponse",Decoupled:"decoupled",Tan:"tan"};function K0(t){return Q0(t)}function Q0(t,e){return t==null?t:{decoupledOperationId:Z(t,"decoupledOperationId")?t.decoupledOperationId:void 0,msg:t.msg}}function j0(t){return X0(t)}function X0(t,e){return t==null?t:{message:Z(t,"message")?t.message:void 0}}function Z0(t,e=!1){if(t!==void 0)return t===null?null:{changes:ca(t.changes)}}function e_(t){return Z0(t,!1)}function t_(t){return n_(t)}function n_(t,e){return t==null?t:{fraction:Z(t,"fraction")?t.fraction.map(Gn):void 0,limit:Z(t,"limit")?t.limit.map(Gn):void 0,market:Z(t,"market")?t.market.map(Gn):void 0,ocoStopLimit:Z(t,"ocoStopLimit")?t.ocoStopLimit.map(Gn):void 0,ocoStopMarket:Z(t,"ocoStopMarket")?t.ocoStopMarket.map(Gn):void 0,quote:Z(t,"quote")?t.quote.map(Gn):void 0,savingsPlan:Z(t,"savingsPlan")?t.savingsPlan.map(Gn):void 0,stopLimit:Z(t,"stopLimit")?t.stopLimit.map(Gn):void 0,stopMarket:Z(t,"stopMarket")?t.stopMarket.map(Gn):void 0,trailingStopLimit:Z(t,"trailingStopLimit")?t.trailingStopLimit.map(Gn):void 0,trailingStopMarket:Z(t,"trailingStopMarket")?t.trailingStopMarket.map(Gn):void 0,unknown:Z(t,"unknown")?t.unknown.map(Gn):void 0}}function r_(t){return i_(t)}function i_(t,e){return t==null?t:{fraction:Z(t,"fraction")?t.fraction:void 0,limit:Z(t,"limit")?t.limit:void 0,market:Z(t,"market")?t.market:void 0,ocoStopLimit:Z(t,"ocoStopLimit")?t.ocoStopLimit:void 0,ocoStopMarket:Z(t,"ocoStopMarket")?t.ocoStopMarket:void 0,quote:Z(t,"quote")?t.quote:void 0,savingsPlan:Z(t,"savingsPlan")?t.savingsPlan:void 0,stopLimit:Z(t,"stopLimit")?t.stopLimit:void 0,stopMarket:Z(t,"stopMarket")?t.stopMarket:void 0,trailingStopLimit:Z(t,"trailingStopLimit")?t.trailingStopLimit:void 0,trailingStopMarket:Z(t,"trailingStopMarket")?t.trailingStopMarket:void 0,unknown:Z(t,"unknown")?t.unknown:void 0}}function wu(t){return o_(t)}function o_(t,e){return t==null?t:{directions:t.directions.map(zi),orderModels:t.orderModels.map(Ti)}}function l_(t){return a_(t)}function a_(t,e){return t==null?t:{exclusive:t.exclusive,stopLoss:wu(t.stopLoss),takeProfit:wu(t.takeProfit)}}function s_(t){return u_(t)}function u_(t,e){return t==null?t:{allowsIfDoneLimit:Z(t,"allowsIfDoneLimit")?t.allowsIfDoneLimit:void 0,allowsQuoteModeLimit:Z(t,"allowsQuoteModeLimit")?t.allowsQuoteModeLimit:void 0,brokerizeExchangeId:Z(t,"brokerizeExchangeId")?t.brokerizeExchangeId:void 0,cashAccountIds:Z(t,"cashAccountIds")?t.cashAccountIds:void 0,currencyIso:t.currencyIso,defaultValidityByOrderModel:Z(t,"defaultValidityByOrderModel")?M0(t.defaultValidityByOrderModel):void 0,hideOrderModel:Z(t,"hideOrderModel")?t.hideOrderModel:void 0,id:t.id,label:t.label,legalMessagesToConfirmByOrderModel:Z(t,"legalMessagesToConfirmByOrderModel")?r_(t.legalMessagesToConfirmByOrderModel):void 0,orderModelsBuy:t.orderModelsBuy.map(Ti),orderModelsSell:t.orderModelsSell.map(Ti),securityQuotesToken:Z(t,"securityQuotesToken")?t.securityQuotesToken:void 0,takeProfitStopLoss:Z(t,"takeProfitStopLoss")?l_(t.takeProfitStopLoss):void 0,validityTypesByOrderModel:t_(t.validityTypesByOrderModel)}}function c_(t){return f_(t)}function f_(t,e){return t==null?t:{id:t.id,name:t.name}}function d_(t){return h_(t)}function h_(t,e){return t==null?t:{exchanges:t.exchanges.map(c_)}}function m_(t,e){return t==null?t:{type:t.type,value:en(t.value)}}function g_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,value:S1(t.value)}}function p_(t){return g_(t,!1)}function b_(t,e){return t==null?t:{type:t.type,value:t.value}}function v_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,value:t.value}}function __(t){return v_(t,!1)}function y_(t,e){return t==null?t:{type:t.type,portfolioId:t.portfolioId,text:t.text}}function k_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,portfolioId:t.portfolioId,text:t.text}}function w_(t){return k_(t,!1)}function S_(t,e){return t==null?t:{type:t.type,text:t.text,url:t.url}}function T_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,text:t.text,url:t.url}}function z_(t){return T_(t,!1)}function C_(t){return O_(t)}function O_(t,e){if(t==null)return t;switch(t.type){case"portfolio":return Object.assign(Object.assign({},y_(t)),{type:"portfolio"});case"url":return Object.assign(Object.assign({},S_(t)),{type:"url"});default:throw new Error(`No variant of GenericTableRowValueLinkValue exists with 'type=${t.type}'`)}}function I_(t){if(t!==void 0){if(t===null)return null;switch(t.type){case"portfolio":return w_(t);case"url":return z_(t);default:throw new Error(`No variant of GenericTableRowValueLinkValue exists with 'type=${t.type}'`)}}}function A_(t,e){return t==null?t:{type:t.type,value:C_(t.value)}}function D_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,value:I_(t.value)}}function M_(t){return D_(t,!1)}function E_(t,e){return t==null?t:{type:t.type,value:t.value}}function L_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,value:t.value}}function N_(t){return L_(t,!1)}function P_(t){return $_(t)}function $_(t,e){if(t==null)return t;switch(t.type){case"amount":return Object.assign(Object.assign({},m_(t)),{type:"amount"});case"datetime":return Object.assign(Object.assign({},b_(t)),{type:"datetime"});case"link":return Object.assign(Object.assign({},A_(t)),{type:"link"});case"text":return Object.assign(Object.assign({},E_(t)),{type:"text"});default:throw new Error(`No variant of GenericTableRowValue exists with 'type=${t.type}'`)}}function R_(t){if(t!==void 0){if(t===null)return null;switch(t.type){case"amount":return p_(t);case"datetime":return __(t);case"link":return M_(t);case"text":return N_(t);default:throw new Error(`No variant of GenericTableRowValue exists with 'type=${t.type}'`)}}}function F_(t,e){return t==null?t:{type:t.type,caption:t.caption,id:Z(t,"id")?t.id:void 0,isImportant:Z(t,"isImportant")?t.isImportant:void 0,value:Z(t,"value")?P_(t.value):void 0}}function x_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,caption:t.caption,id:t.id,isImportant:t.isImportant,value:R_(t.value)}}function U_(t){return x_(t,!1)}function B_(t,e){return t==null?t:{type:t.type,subheading:t.subheading}}function q_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,subheading:t.subheading}}function V_(t){return q_(t,!1)}function J_(t,e){return t==null?t:{type:t.type,text:t.text}}function H_(t,e=!1){if(t!==void 0)return t===null?null:{type:t.type,text:t.text}}function W_(t){return H_(t,!1)}function Y_(t){return G_(t)}function G_(t,e){if(t==null)return t;switch(t.type){case"entry":return Object.assign(Object.assign({},F_(t)),{type:"entry"});case"subheading":return Object.assign(Object.assign({},B_(t)),{type:"subheading"});case"text":return Object.assign(Object.assign({},J_(t)),{type:"text"});default:throw new Error(`No variant of GenericTableRow exists with 'type=${t.type}'`)}}function K_(t){if(t!==void 0){if(t===null)return null;switch(t.type){case"entry":return U_(t);case"subheading":return V_(t);case"text":return W_(t);default:throw new Error(`No variant of GenericTableRow exists with 'type=${t.type}'`)}}}function Su(t){return Q_(t)}function Q_(t,e){return t==null?t:{detailsLink:Z(t,"detailsLink")?yu(t.detailsLink):void 0,footerHtml:Z(t,"footerHtml")?t.footerHtml:void 0,rows:Z(t,"rows")?t.rows.map(Y_):void 0}}function j_(t,e=!1){if(t!==void 0)return t===null?null:{detailsLink:n0(t.detailsLink),footerHtml:t.footerHtml,rows:t.rows===void 0?void 0:t.rows.map(K_)}}function X_(t){return j_(t,!1)}const Z_={Subheading:"subheading",Text:"text",Entry:"entry"},ey={Portfolio:"portfolio",Url:"url"},ty={Text:"text",Amount:"amount",Datetime:"datetime",Link:"link"};function ny(t){return ry(t)}function ry(t,e){return t==null?t:{tokens:t.tokens.map(f1)}}function iy(t){return oy(t)}function oy(t,e){return t==null?t:{availablePermissions:t.availablePermissions.map(pu)}}function ly(t){return ay(t)}function ay(t,e){return t==null?t:{cryptoCode:Z(t,"cryptoCode")?t.cryptoCode:void 0,cryptoPair:Z(t,"cryptoPair")?t.cryptoPair:void 0,isin:Z(t,"isin")?t.isin:void 0,sinoTicker:Z(t,"sinoTicker")?t.sinoTicker:void 0,usTicker:Z(t,"usTicker")?t.usTicker:void 0,wkn:Z(t,"wkn")?t.wkn:void 0}}function sy(t,e=!1){if(t!==void 0)return t===null?null:{cryptoCode:t.cryptoCode,cryptoPair:t.cryptoPair,isin:t.isin,sinoTicker:t.sinoTicker,usTicker:t.usTicker,wkn:t.wkn}}function uy(t){return sy(t,!1)}function Ho(t){return cy(t)}function cy(t,e){return t==null?t:{cryptoCode:Z(t,"cryptoCode")?t.cryptoCode:void 0,isin:Z(t,"isin")?t.isin:void 0,name:Z(t,"name")?t.name:void 0,priceFactor:Z(t,"priceFactor")?t.priceFactor:void 0,selector:ly(t.selector),sinoTicker:Z(t,"sinoTicker")?t.sinoTicker:void 0,sizeKind:Z(t,"sizeKind")?t.sizeKind:void 0,symbol:Z(t,"symbol")?t.symbol:void 0,usTicker:Z(t,"usTicker")?t.usTicker:void 0,wkn:Z(t,"wkn")?t.wkn:void 0}}function fy(t,e=!1){if(t!==void 0)return t===null?null:{cryptoCode:t.cryptoCode,isin:t.isin,name:t.name,priceFactor:t.priceFactor,selector:uy(t.selector),sinoTicker:t.sinoTicker,sizeKind:t.sizeKind,symbol:t.symbol,usTicker:t.usTicker,wkn:t.wkn}}function dy(t){return fy(t,!1)}function hy(t){return my(t)}function my(t,e){return t==null?t:{cashAccountId:Z(t,"cashAccountId")?t.cashAccountId:void 0,direction:zi(t.direction),exchangeId:Z(t,"exchangeId")?t.exchangeId:void 0,limit:Z(t,"limit")?t.limit:void 0,limitCurrencyIso:Z(t,"limitCurrencyIso")?t.limitCurrencyIso:void 0,orderExtension:Z(t,"orderExtension")?ku(t.orderExtension):void 0,orderModel:Ti(t.orderModel),portfolioId:t.portfolioId,quoteLimit:Z(t,"quoteLimit")?t.quoteLimit:void 0,security:Ho(t.security),size:t.size,sizeUnit:Z(t,"sizeUnit")?t.sizeUnit:void 0,stop:Z(t,"stop")?t.stop:void 0,stopLimit:Z(t,"stopLimit")?t.stopLimit:void 0,validity:Z(t,"validity")?Kn(t.validity):void 0}}function gy(t,e=!1){if(t!==void 0)return t===null?null:{cashAccountId:t.cashAccountId,direction:t.direction,exchangeId:t.exchangeId,limit:t.limit,limitCurrencyIso:t.limitCurrencyIso,orderExtension:t.orderExtension,orderModel:t.orderModel,portfolioId:t.portfolioId,quoteLimit:t.quoteLimit,security:dy(t.security),size:t.size,sizeUnit:t.sizeUnit,stop:t.stop,stopLimit:t.stopLimit,validity:ua(t.validity)}}function py(t){return gy(t,!1)}function by(t){return vy(t)}function vy(t,e){return t==null?t:{createdAt:new Date(t.createdAt),description:t.description,id:t.id,inactive:t.inactive,orderData:hy(t.orderData),orderId:t.orderId,userId:t.userId}}function _y(t){return yy(t)}function yy(t,e){return t==null?t:{totalCount:t.totalCount,tradeDrafts:t.tradeDrafts.map(by)}}function ky(t){return wy(t)}function wy(t,e){return t==null?t:{authInfo:gu(t.authInfo)}}function Sy(t){return Ty(t)}function Ty(t,e){return t==null?t:{brokers:t.brokers.map(j1)}}function zy(t,e=!1){if(t!==void 0)return t===null?null:{order:fa(t.order)}}function Cy(t){return zy(t,!1)}function Oy(t){return Iy(t)}function Iy(t,e){return t==null?t:{amount:Z(t,"amount")?en(t.amount):void 0,crossRate:Z(t,"crossRate")?t.crossRate:void 0,executedDateTime:Z(t,"executedDateTime")?new Date(t.executedDateTime):void 0,executionStatusText:Z(t,"executionStatusText")?t.executionStatusText:void 0,id:Z(t,"id")?t.id:void 0,quote:Z(t,"quote")?en(t.quote):void 0,size:en(t.size),tax:Z(t,"tax")?en(t.tax):void 0,totalAmount:Z(t,"totalAmount")?en(t.totalAmount):void 0,transactionTax:Z(t,"transactionTax")?en(t.transactionTax):void 0}}function Tu(t){return Ay(t)}function Ay(t,e){return t==null?t:{allowsCancel:t.allowsCancel,allowsChangeLimit:Z(t,"allowsChangeLimit")?t.allowsChangeLimit:void 0,allowsChangeOrderModels:Z(t,"allowsChangeOrderModels")?t.allowsChangeOrderModels.map(Ti):void 0,allowsChangeSize:t.allowsChangeSize,allowsChangeStop:Z(t,"allowsChangeStop")?t.allowsChangeStop:void 0,allowsChangeStopLimit:Z(t,"allowsChangeStopLimit")?t.allowsChangeStopLimit:void 0,allowsChangeStopLoss:Z(t,"allowsChangeStopLoss")?t.allowsChangeStopLoss:void 0,allowsChangeTakeProfit:Z(t,"allowsChangeTakeProfit")?t.allowsChangeTakeProfit:void 0,allowsChangeTrailingDistance:Z(t,"allowsChangeTrailingDistance")?t.allowsChangeTrailingDistance:void 0,allowsChangeValidityTypes:Z(t,"allowsChangeValidityTypes")?t.allowsChangeValidityTypes.map(Gn):void 0,bondCurrencyIso:Z(t,"bondCurrencyIso")?t.bondCurrencyIso:void 0,brokerExchangeId:t.brokerExchangeId,brokerSecurityId:Z(t,"brokerSecurityId")?t.brokerSecurityId:void 0,cancellationDateTime:Z(t,"cancellationDateTime")?new Date(t.cancellationDateTime):void 0,cancelledSize:Z(t,"cancelledSize")?t.cancelledSize:void 0,cashQuotation:Z(t,"cashQuotation")?dv(t.cashQuotation):void 0,changesHaveCostEstimations:Z(t,"changesHaveCostEstimations")?t.changesHaveCostEstimations:void 0,createdAt:new Date(t.createdAt),currentStop:Z(t,"currentStop")?en(t.currentStop):void 0,direction:zi(t.direction),displayNo:Z(t,"displayNo")?t.displayNo:void 0,exchangeId:Z(t,"exchangeId")?t.exchangeId:void 0,exchangeName:Z(t,"exchangeName")?t.exchangeName:void 0,executedAt:Z(t,"executedAt")?new Date(t.executedAt):void 0,executedSize:Z(t,"executedSize")?t.executedSize:void 0,executions:Z(t,"executions")?t.executions.map(Oy):void 0,hasNoOrderReceipt:Z(t,"hasNoOrderReceipt")?t.hasNoOrderReceipt:void 0,id:t.id,ifDoneLimit:Z(t,"ifDoneLimit")?t.ifDoneLimit:void 0,intent:Z(t,"intent")?t.intent:void 0,isin:t.isin,limit:Z(t,"limit")?t.limit:void 0,limitCurrencyIso:Z(t,"limitCurrencyIso")?t.limitCurrencyIso:void 0,mayObserveCurrentStop:Z(t,"mayObserveCurrentStop")?t.mayObserveCurrentStop:void 0,openSize:Z(t,"openSize")?t.openSize:void 0,orderExtension:Z(t,"orderExtension")?ku(t.orderExtension):void 0,orderModel:Ti(t.orderModel),orderStatusIsAwaitingParentOrder:Z(t,"orderStatusIsAwaitingParentOrder")?t.orderStatusIsAwaitingParentOrder:void 0,portfolioId:t.portfolioId,profitLossAbs:Z(t,"profitLossAbs")?en(t.profitLossAbs):void 0,profitLossRel:Z(t,"profitLossRel")?t.profitLossRel:void 0,quoteDecimals:Z(t,"quoteDecimals")?t.quoteDecimals:void 0,quoteLimit:Z(t,"quoteLimit")?t.quoteLimit:void 0,security:Ho(t.security),showAsDisabled:Z(t,"showAsDisabled")?t.showAsDisabled:void 0,size:t.size,sizeDecimals:Z(t,"sizeDecimals")?t.sizeDecimals:void 0,sizeUnit:Z(t,"sizeUnit")?t.sizeUnit:void 0,sourceData:Z(t,"sourceData")?t.sourceData:void 0,status:vu(t.status),statusText:Z(t,"statusText")?t.statusText:void 0,stop:Z(t,"stop")?t.stop:void 0,stopLimit:Z(t,"stopLimit")?t.stopLimit:void 0,stopLoss:Z(t,"stopLoss")?t.stopLoss:void 0,takeProfit:Z(t,"takeProfit")?t.takeProfit:void 0,trailingDistance:Z(t,"trailingDistance")?wv(t.trailingDistance):void 0,trailingLimitTolerance:Z(t,"trailingLimitTolerance")?t.trailingLimitTolerance:void 0,usTicker:Z(t,"usTicker")?t.usTicker:void 0,validity:Z(t,"validity")?Kn(t.validity):void 0}}function Dy(t){return My(t)}function My(t,e){return t==null?t:{order:Tu(t.order)}}function Ey(t){return Ly(t)}function Ly(t,e){return t==null?t:{orders:t.orders.map(Tu),totalCount:t.totalCount}}function da(t){return Ny(t)}function Ny(t,e){return t==null?t:{crossRate:Z(t,"crossRate")?t.crossRate:void 0,isDelayed:Z(t,"isDelayed")?t.isDelayed:void 0,positionValue:Z(t,"positionValue")?en(t.positionValue):void 0,quotation:Z(t,"quotation")?en(t.quotation):void 0}}function Py(t){return $y(t)}function $y(t,e){return t==null?t:{availableSize:t.availableSize,brokerExchangeId:Z(t,"brokerExchangeId")?t.brokerExchangeId:void 0,comment:Z(t,"comment")?t.comment:void 0,commentIsEditable:Z(t,"commentIsEditable")?t.commentIsEditable:void 0,currentValuation:Z(t,"currentValuation")?da(t.currentValuation):void 0,direction:Z(t,"direction")?zi(t.direction):void 0,exchangeId:Z(t,"exchangeId")?t.exchangeId:void 0,exchangeName:Z(t,"exchangeName")?t.exchangeName:void 0,id:t.id,prevCloseValuation:Z(t,"prevCloseValuation")?da(t.prevCloseValuation):void 0,profitLossAbs:Z(t,"profitLossAbs")?en(t.profitLossAbs):void 0,profitLossAbsPrevClose:Z(t,"profitLossAbsPrevClose")?en(t.profitLossAbsPrevClose):void 0,profitLossAbsWithDividends:Z(t,"profitLossAbsWithDividends")?en(t.profitLossAbsWithDividends):void 0,profitLossRel:Z(t,"profitLossRel")?t.profitLossRel:void 0,profitLossRelPrevClose:Z(t,"profitLossRelPrevClose")?t.profitLossRelPrevClose:void 0,profitLossRelWithDividends:Z(t,"profitLossRelWithDividends")?t.profitLossRelWithDividends:void 0,purchaseDate:Z(t,"purchaseDate")?t.purchaseDate:void 0,purchaseDateTime:Z(t,"purchaseDateTime")?new Date(t.purchaseDateTime):void 0,purchaseValuation:Z(t,"purchaseValuation")?da(t.purchaseValuation):void 0,security:Ho(t.security),size:t.size,sizeDecimals:Z(t,"sizeDecimals")?t.sizeDecimals:void 0,sizeUnit:t.sizeUnit,sourceData:Z(t,"sourceData")?t.sourceData:void 0,stakingSize:Z(t,"stakingSize")?t.stakingSize:void 0}}function Ry(t){return Fy(t)}function Fy(t,e){return t==null?t:{positions:t.positions.map(Py)}}function xy(t){return Uy(t)}function Uy(t,e){return t==null?t:{availableCash:Z(t,"availableCash")?en(t.availableCash):void 0,cashAccountBalance:Z(t,"cashAccountBalance")?en(t.cashAccountBalance):void 0,positionValue:Z(t,"positionValue")?en(t.positionValue):void 0,profitLossAbs:Z(t,"profitLossAbs")?en(t.profitLossAbs):void 0,profitLossAbsPrevClose:Z(t,"profitLossAbsPrevClose")?en(t.profitLossAbsPrevClose):void 0,profitLossRel:Z(t,"profitLossRel")?t.profitLossRel:void 0,profitLossRelPrevClose:Z(t,"profitLossRelPrevClose")?t.profitLossRelPrevClose:void 0,totalValue:Z(t,"totalValue")?en(t.totalValue):void 0}}function By(t){return qy(t)}function qy(t,e){return t==null?t:{cashAccounts:Z(t,"cashAccounts")?sa(t.cashAccounts,uv):void 0,lastSync:Z(t,"lastSync")?new Date(t.lastSync):void 0,quotes:Z(t,"quotes")?xy(t.quotes):void 0}}function Vy(t,e=!1){if(t!==void 0)return t===null?null:{brokerExchangeId:t.brokerExchangeId,brokerSecurityId:t.brokerSecurityId,cashAccountId:t.cashAccountId,direction:t.direction,isin:t.isin,size:t.size,sizeUnit:t.sizeUnit}}function Jy(t){return Vy(t,!1)}function ha(t){return Hy(t)}function Hy(t,e){return t==null?t:{costAcceptancePrompt:Z(t,"costAcceptancePrompt")?t.costAcceptancePrompt:void 0,costDetailsLink:Z(t,"costDetailsLink")?yu(t.costDetailsLink):void 0,detailedTable:Z(t,"detailedTable")?Su(t.detailedTable):void 0,entryCosts:Z(t,"entryCosts")?en(t.entryCosts):void 0,expectedCounterValue:Z(t,"expectedCounterValue")?en(t.expectedCounterValue):void 0,orderFees:Z(t,"orderFees")?en(t.orderFees):void 0,orderFeesExplanation:Z(t,"orderFeesExplanation")?t.orderFeesExplanation:void 0,totalCosts:Z(t,"totalCosts")?en(t.totalCosts):void 0,transactionTax:Z(t,"transactionTax")?en(t.transactionTax):void 0}}function Wy(t){return Yy(t)}function Yy(t,e){return t==null?t:{expires:new Date(t.expires),milliseconds:t.milliseconds,started:new Date(t.started)}}function Gy(t){return Ky(t)}function Ky(t,e){return t==null?t:{costEstimation:Z(t,"costEstimation")?ha(t.costEstimation):void 0,costEstimationToken:Z(t,"costEstimationToken")?t.costEstimationToken:void 0,direction:zi(t.direction),expiration:Z(t,"expiration")?Wy(t.expiration):void 0,isin:t.isin,quotation:en(t.quotation),quoteId:t.quoteId,size:Z(t,"size")?t.size:void 0,sourceName:Z(t,"sourceName")?t.sourceName:void 0,totalAmount:Z(t,"totalAmount")?en(t.totalAmount):void 0}}function Qy(t){return jy(t)}function jy(t,e){return t==null?t:{userId:t.userId}}function Xy(t){return Zy(t)}function Zy(t,e){return t==null?t:{html:t.html,id:t.id}}function ek(t){return tk(t)}function tk(t,e){return t==null?t:{checkboxesHtml:t.checkboxesHtml,confirmItems:t.confirmItems.map(Xy),disclaimerHtml:t.disclaimerHtml}}function nk(t,e){return t==null?t:{state:t.state,challenge:to(t.challenge)}}function rk(t){return zu(t)}function zu(t,e){return t==null?t:{state:t.state,sessionId:t.sessionId}}function ik(t){return ok(t)}function ok(t,e){if(t==null)return t;switch(t.state){case"challenge":return Object.assign(Object.assign({},nk(t)),{state:"challenge"});case"ready":return Object.assign(Object.assign({},zu(t)),{state:"ready"});default:throw new Error(`No variant of LoginResponse exists with 'state=${t.state}'`)}}const lk={Ready:"ready",Challenge:"challenge"};function no(t){return ak(t)}function ak(t,e){return t==null?t:{msg:t.msg}}const sk={Open:"open",Close:"close"};function Cu(t){return uk(t)}function uk(t,e){return t}function Ou(t){return ck(t)}function ck(t,e){return t==null?t:{buy:t.buy.map(Cu),sell:t.sell.map(Cu)}}function fk(t){return dk(t)}function dk(t,e){return t==null?t:{clientId:t.clientId,page:t.page}}function hk(t,e){return t==null?t:{status:t.status,lastSync:new Date(t.lastSync)}}function ma(t){return mk(t)}function mk(t,e){return t==null?t:{date:new Date(t.date),message:t.message}}function gk(t,e){return t==null?t:{status:t.status,error:ma(t.error)}}function pk(t,e){return t==null?t:{status:t.status,lastSync:new Date(t.lastSync)}}function bk(t,e){return t==null?t:{status:t.status}}function vk(t){return _k(t)}function _k(t,e){if(t==null)return t;switch(t.status){case"COMPLETE":return Object.assign(Object.assign({},hk(t)),{status:"COMPLETE"});case"ERROR":return Object.assign(Object.assign({},gk(t)),{status:"ERROR"});case"INCOMPLETE":return Object.assign(Object.assign({},pk(t)),{status:"INCOMPLETE"});case"PENDING":return Object.assign(Object.assign({},bk(t)),{status:"PENDING"});default:throw new Error(`No variant of PortfolioSyncInfo exists with 'status=${t.status}'`)}}function yk(t){return kk(t)}function kk(t,e){return t==null?t:{brokerName:t.brokerName,cashAccountIds:t.cashAccountIds,currency:t.currency,id:t.id,idHash:t.idHash,portfolioName:t.portfolioName,portfolioNameOriginal:t.portfolioNameOriginal,sessionIds:t.sessionIds,syncInfo:vk(t.syncInfo)}}const wk={Pending:"PENDING",Incomplete:"INCOMPLETE",Complete:"COMPLETE",Error:"ERROR"};function Sk(t){return Tk(t)}function Tk(t,e){return t==null?t:{cashAccounts:t.cashAccounts.map(av),portfolios:t.portfolios.map(yk)}}function zk(t,e=!1){if(t!==void 0)return t===null?null:{brokerName:t.brokerName,env:t.env,returnToUrl:t.returnToUrl}}function Ck(t){return zk(t,!1)}function Ok(t){return Ik(t)}function Ik(t,e){return t==null?t:{redirectTo:t.redirectTo}}function Ak(t){return Dk(t)}function Dk(t,e){return t==null?t:{legalHint:Z(t,"legalHint")?t.legalHint:void 0,msg:Z(t,"msg")?t.msg:void 0,onlySellAllowed:Z(t,"onlySellAllowed")?t.onlySellAllowed:void 0}}function Mk(t){return Ek(t)}function Ek(t,e){return t==null?t:{label:t.label,token:t.token}}function Lk(t){return Nk(t)}function Nk(t,e){return t==null?t:{id:t.id,label:t.label}}function Pk(t){return $k(t)}function $k(t,e){return t==null?t:{cashAccountIds:Z(t,"cashAccountIds")?t.cashAccountIds:void 0,directions:Z(t,"directions")?t.directions.map(zi):void 0,orderModels:Z(t,"orderModels")?t.orderModels:void 0,sizeUnits:t.sizeUnits}}function Rk(t){return Fk(t)}function Fk(t,e){return t==null?t:{availableOrderIntents:Z(t,"availableOrderIntents")?Ou(t.availableOrderIntents):void 0,availableOrderIntentsToken:Z(t,"availableOrderIntentsToken")?t.availableOrderIntentsToken:void 0,brokerSecurityId:t.brokerSecurityId,costEstimationIsNotAvailable:t.costEstimationIsNotAvailable,costEstimationIsOnlyDetailedTable:Z(t,"costEstimationIsOnlyDetailedTable")?t.costEstimationIsOnlyDetailedTable:void 0,costEstimationMustBeShown:t.costEstimationMustBeShown,exchanges:t.exchanges.map(s_),noExchangeDefault:Z(t,"noExchangeDefault")?t.noExchangeDefault:void 0,riskClassInfo:Z(t,"riskClassInfo")?Ak(t.riskClassInfo):void 0,security:Ho(t.security),securityDetailedInfo:Z(t,"securityDetailedInfo")?Mk(t.securityDetailedInfo):void 0,sellPositions:Z(t,"sellPositions")?t.sellPositions.map(Lk):void 0,sizeMaxDecimalsBySizeUnit:Z(t,"sizeMaxDecimalsBySizeUnit")?t.sizeMaxDecimalsBySizeUnit:void 0,sizeUnit:t.sizeUnit,sizeUnitConstraints:Z(t,"sizeUnitConstraints")?t.sizeUnitConstraints.map(Pk):void 0,sizeUnitsByCashAccountId:Z(t,"sizeUnitsByCashAccountId")?t.sizeUnitsByCashAccountId:void 0,strikingHint:Z(t,"strikingHint")?t.strikingHint:void 0}}function xk(t){return Uk(t)}function Uk(t,e){return t==null?t:{preparedTrade:Rk(t.preparedTrade)}}function Bk(t,e=!1){if(t!==void 0)return t===null?null:{newPortfolioName:t.newPortfolioName}}function qk(t){return Bk(t,!1)}function Vk(t,e=!1){if(t!==void 0)return t===null?null:{table:X_(t.table)}}function Jk(t){return Vk(t,!1)}function Iu(t){return Hk(t)}function Hk(t,e){return t==null?t:{timestamp:Z(t,"timestamp")?t.timestamp:void 0,value:t.value}}function Wk(t){return Yk(t)}function Yk(t,e){return t==null?t:{ask:Z(t,"ask")?Iu(t.ask):void 0,bid:Z(t,"bid")?Iu(t.bid):void 0}}function Gk(t){return Kk(t)}function Kk(t,e){return t==null?t:{currency:t.currency,decimals:t.decimals,quoteSourceName:t.quoteSourceName}}function Qk(t){return jk(t)}function jk(t,e){return t==null?t:{quotes:Wk(t.quotes)}}function Xk(t,e){return t==null?t:{status:t.status,error:ma(t.error)}}function Zk(t,e){return t==null?t:{status:t.status}}function ew(t,e){return t==null?t:{status:t.status,lastSync:new Date(t.lastSync)}}function tw(t){return nw(t)}function nw(t,e){if(t==null)return t;switch(t.status){case"ERROR":return Object.assign(Object.assign({},Xk(t)),{status:"ERROR"});case"PENDING":return Object.assign(Object.assign({},Zk(t)),{status:"PENDING"});case"SYNCED":return Object.assign(Object.assign({},ew(t)),{status:"SYNCED"});default:throw new Error(`No variant of SessionSyncInfo exists with 'status=${t.status}'`)}}function rw(t){return iw(t)}function iw(t,e){return t==null?t:{authInfo:Z(t,"authInfo")?gu(t.authInfo):void 0,brokerName:t.brokerName,env:t.env,id:t.id,lastSuccessfulSync:Z(t,"lastSuccessfulSync")?new Date(t.lastSuccessfulSync):void 0,syncError:Z(t,"syncError")?ma(t.syncError):void 0,syncInfo:tw(t.syncInfo)}}function ow(t){return lw(t)}function lw(t,e){return t==null?t:{sessions:t.sessions.map(rw)}}const aw={Pending:"PENDING",Synced:"SYNCED",Error:"ERROR"};function sw(t,e=!1){if(t!==void 0)return t===null?null:{config:Yv(t.config)}}function uw(t){return sw(t,!1)}function cw(t,e=!1){if(t!==void 0)return t===null?null:{description:t.description,orderData:py(t.orderData)}}function fw(t){return cw(t,!1)}function dw(t,e=!1){return t}function hw(t){return dw(t,!1)}function mw(t,e=!1){if(t!==void 0)return t===null?null:{description:t.description,inactive:t.inactive,orderId:hw(t.orderId)}}function gw(t){return mw(t,!1)}class pw extends dr{async addOAuthReturnToUrlRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling addOAuthReturnToUrl.");if(e.addOAuthReturnToUrlRequest===null||e.addOAuthReturnToUrlRequest===void 0)throw new rt("addOAuthReturnToUrlRequest","Required parameter requestParameters.addOAuthReturnToUrlRequest was null or undefined when calling addOAuthReturnToUrl.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/clients/{clientId}/oauthReturnTo".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"POST",headers:i,query:r,body:hu(e.addOAuthReturnToUrlRequest)},n);return new Fn(o)}async addOAuthReturnToUrl(e,n){await this.addOAuthReturnToUrlRaw(e,n)}async addOriginRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling addOrigin.");if(e.addOriginRequest===null||e.addOriginRequest===void 0)throw new rt("addOriginRequest","Required parameter requestParameters.addOriginRequest was null or undefined when calling addOrigin.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/clients/{clientId}/origin".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"POST",headers:i,query:r,body:mu(e.addOriginRequest)},n);return new Fn(o)}async addOrigin(e,n){await this.addOriginRaw(e,n)}async createClientRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/admin/client",method:"POST",headers:r,query:n},e);return new zt(i,o=>o0(o))}async createClient(e){return await(await this.createClientRaw(e)).value()}async deleteClientRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling deleteClient.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/client/{clientId}".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"DELETE",headers:i,query:r},n);return new Fn(o)}async deleteClient(e,n){await this.deleteClientRaw(e,n)}async getMyClientsRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/admin/clients",method:"GET",headers:r,query:n},e);return new zt(i,o=>o.map(Gv))}async getMyClients(e){return await(await this.getMyClientsRaw(e)).value()}async getOrderReportRaw(e,n){if(e.from===null||e.from===void 0)throw new rt("from","Required parameter requestParameters.from was null or undefined when calling getOrderReport.");if(e.to===null||e.to===void 0)throw new rt("to","Required parameter requestParameters.to was null or undefined when calling getOrderReport.");const r={};e.from!==void 0&&(r.from=e.from),e.to!==void 0&&(r.to=e.to),e.clientIds!==void 0&&(r.clientIds=e.clientIds),e.format!==void 0&&(r.format=e.format),e.onlyExecutedOrders!==void 0&&(r.onlyExecutedOrders=e.onlyExecutedOrders),e.noDownload!==void 0&&(r.noDownload=e.noDownload);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/orderReport",method:"GET",headers:i,query:r},n);return new du(o)}async getOrderReport(e,n){return await(await this.getOrderReportRaw(e,n)).value()}async removeOAuthReturnToUrlRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling removeOAuthReturnToUrl.");if(e.addOAuthReturnToUrlRequest===null||e.addOAuthReturnToUrlRequest===void 0)throw new rt("addOAuthReturnToUrlRequest","Required parameter requestParameters.addOAuthReturnToUrlRequest was null or undefined when calling removeOAuthReturnToUrl.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/clients/{clientId}/removeOAuthReturnTo".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"POST",headers:i,query:r,body:hu(e.addOAuthReturnToUrlRequest)},n);return new Fn(o)}async removeOAuthReturnToUrl(e,n){await this.removeOAuthReturnToUrlRaw(e,n)}async removeOriginRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling removeOrigin.");if(e.addOriginRequest===null||e.addOriginRequest===void 0)throw new rt("addOriginRequest","Required parameter requestParameters.addOriginRequest was null or undefined when calling removeOrigin.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/clients/{clientId}/removeOrigin".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"POST",headers:i,query:r,body:mu(e.addOriginRequest)},n);return new Fn(o)}async removeOrigin(e,n){await this.removeOriginRaw(e,n)}async setClientConfigRaw(e,n){if(e.clientId===null||e.clientId===void 0)throw new rt("clientId","Required parameter requestParameters.clientId was null or undefined when calling setClientConfig.");if(e.setClientConfigRequest===null||e.setClientConfigRequest===void 0)throw new rt("setClientConfigRequest","Required parameter requestParameters.setClientConfigRequest was null or undefined when calling setClientConfig.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/admin/clients/{clientId}/config".replace("{clientId}",encodeURIComponent(String(e.clientId))),method:"POST",headers:i,query:r,body:uw(e.setClientConfigRequest)},n);return new Fn(o)}async setClientConfig(e,n){await this.setClientConfigRaw(e,n)}}class bw extends dr{async addSessionRaw(e,n){if(e.addSessionParams===null||e.addSessionParams===void 0)throw new rt("addSessionParams","Required parameter requestParameters.addSessionParams was null or undefined when calling addSession.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions",method:"POST",headers:i,query:r,body:y1(e.addSessionParams)},n);return new zt(o,l=>ik(l))}async addSession(e,n){return await(await this.addSessionRaw(e,n)).value()}async addSessionCompleteChallengeRaw(e,n){if(e.addSessionCompleteChallengeParams===null||e.addSessionCompleteChallengeParams===void 0)throw new rt("addSessionCompleteChallengeParams","Required parameter requestParameters.addSessionCompleteChallengeParams was null or undefined when calling addSessionCompleteChallenge.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/completeLogin",method:"POST",headers:i,query:r,body:v1(e.addSessionCompleteChallengeParams)},n);return new zt(o,l=>rk(l))}async addSessionCompleteChallenge(e,n){return await(await this.addSessionCompleteChallengeRaw(e,n)).value()}async confirmOAuthRaw(e,n){if(e.confirmOAuthParams===null||e.confirmOAuthParams===void 0)throw new rt("confirmOAuthParams","Required parameter requestParameters.confirmOAuthParams was null or undefined when calling confirmOAuth.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/confirmOAuth",method:"POST",headers:i,query:r,body:jv(e.confirmOAuthParams)},n);return new zt(o,l=>Xv(l))}async confirmOAuth(e,n){return await(await this.confirmOAuthRaw(e,n)).value()}async prepareOAuthRedirectRaw(e,n){if(e.prepareOAuthRedirectParams===null||e.prepareOAuthRedirectParams===void 0)throw new rt("prepareOAuthRedirectParams","Required parameter requestParameters.prepareOAuthRedirectParams was null or undefined when calling prepareOAuthRedirect.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/prepareOAuthRedirect",method:"POST",headers:i,query:r,body:Ck(e.prepareOAuthRedirectParams)},n);return new zt(o,l=>Ok(l))}async prepareOAuthRedirect(e,n){return await(await this.prepareOAuthRedirectRaw(e,n)).value()}}class vw extends dr{async cancelOrderRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling cancelOrder.");if(e.cancelOrderParams===null||e.cancelOrderParams===void 0)throw new rt("cancelOrderParams","Required parameter requestParameters.cancelOrderParams was null or undefined when calling cancelOrder.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}/cancel".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r,body:ov(e.cancelOrderParams)},n);return new Fn(o)}async cancelOrder(e,n){await this.cancelOrderRaw(e,n)}async createCancelOrderChallengeRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling createCancelOrderChallenge.");if(e.cancelOrderChallengeParams===null||e.cancelOrderChallengeParams===void 0)throw new rt("cancelOrderChallengeParams","Required parameter requestParameters.cancelOrderChallengeParams was null or undefined when calling createCancelOrderChallenge.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}/cancelChallenge".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r,body:ev(e.cancelOrderChallengeParams)},n);return new zt(o,l=>to(l))}async createCancelOrderChallenge(e,n){return await(await this.createCancelOrderChallengeRaw(e,n)).value()}}class _w extends dr{async changeOrderRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling changeOrder.");if(e.changeOrderParams===null||e.changeOrderParams===void 0)throw new rt("changeOrderParams","Required parameter requestParameters.changeOrderParams was null or undefined when calling changeOrder.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}/change".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r,body:Av(e.changeOrderParams)},n);return new Fn(o)}async changeOrder(e,n){await this.changeOrderRaw(e,n)}async createChangeOrderChallengeRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling createChangeOrderChallenge.");if(e.changeOrderChallengeParams===null||e.changeOrderChallengeParams===void 0)throw new rt("changeOrderChallengeParams","Required parameter requestParameters.changeOrderChallengeParams was null or undefined when calling createChangeOrderChallenge.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}/changeChallenge".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r,body:Ov(e.changeOrderChallengeParams)},n);return new zt(o,l=>to(l))}async createChangeOrderChallenge(e,n){return await(await this.createChangeOrderChallengeRaw(e,n)).value()}async getChangeOrderCostEstimationRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling getChangeOrderCostEstimation.");if(e.estimateChangeOrderCostsParams===null||e.estimateChangeOrderCostsParams===void 0)throw new rt("estimateChangeOrderCostsParams","Required parameter requestParameters.estimateChangeOrderCostsParams was null or undefined when calling getChangeOrderCostEstimation.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}/changeCostEstimation".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r,body:e_(e.estimateChangeOrderCostsParams)},n);return new zt(o,l=>ha(l))}async getChangeOrderCostEstimation(e,n){return await(await this.getChangeOrderCostEstimationRaw(e,n)).value()}}class Au extends dr{async cancelDecoupledOperationRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling cancelDecoupledOperation.");if(e.decoupledOperationId===null||e.decoupledOperationId===void 0)throw new rt("decoupledOperationId","Required parameter requestParameters.decoupledOperationId was null or undefined when calling cancelDecoupledOperation.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/decoupledOperation/{decoupledOperationId}".replace("{sessionId}",encodeURIComponent(String(e.sessionId))).replace("{decoupledOperationId}",encodeURIComponent(String(e.decoupledOperationId))),method:"DELETE",headers:i,query:r},n);return new Fn(o)}async cancelDecoupledOperation(e,n){await this.cancelDecoupledOperationRaw(e,n)}async createGuestUserRaw(e){const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id"));const i=await this.request({path:"/user/guest",method:"POST",headers:r,query:n},e);return new zt(i,o=>a0(o))}async createGuestUser(e){return await(await this.createGuestUserRaw(e)).value()}async createSessionTanChallengeRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling createSessionTanChallenge.");if(e.createTanChallengeParams===null||e.createTanChallengeParams===void 0)throw new rt("createTanChallengeParams","Required parameter requestParameters.createTanChallengeParams was null or undefined when calling createSessionTanChallenge.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/sessiontanchallenge".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"POST",headers:i,query:r,body:_0(e.createTanChallengeParams)},n);return new zt(o,l=>to(l))}async createSessionTanChallenge(e,n){return await(await this.createSessionTanChallengeRaw(e,n)).value()}async deleteGuestUserRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/user",method:"DELETE",headers:r,query:n},e);return new Fn(i)}async deleteGuestUser(e){await this.deleteGuestUserRaw(e)}async deletePortfolioRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling deletePortfolio.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"DELETE",headers:i,query:r},n);return new zt(o,l=>no(l))}async deletePortfolio(e,n){return await(await this.deletePortfolioRaw(e,n)).value()}async enableSessionTanRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling enableSessionTan.");if(e.enableSessionTanParams===null||e.enableSessionTanParams===void 0)throw new rt("enableSessionTanParams","Required parameter requestParameters.enableSessionTanParams was null or undefined when calling enableSessionTan.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/sessiontan".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"POST",headers:i,query:r,body:Y0(e.enableSessionTanParams)},n);return new zt(o,l=>K0(l))}async enableSessionTan(e,n){return await(await this.enableSessionTanRaw(e,n)).value()}async endSessionTanRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling endSessionTan.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/sessiontan".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"DELETE",headers:i,query:r},n);return new zt(o,l=>j0(l))}async endSessionTan(e,n){return await(await this.endSessionTanRaw(e,n)).value()}async getAuthInfoRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling getAuthInfo.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}/authinfo".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"GET",headers:i,query:r},n);return new zt(o,l=>ky(l))}async getAuthInfo(e,n){return await(await this.getAuthInfoRaw(e,n)).value()}async getDecoupledOperationStatusRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling getDecoupledOperationStatus.");if(e.decoupledOperationId===null||e.decoupledOperationId===void 0)throw new rt("decoupledOperationId","Required parameter requestParameters.decoupledOperationId was null or undefined when calling getDecoupledOperationStatus.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/decoupledOperation/{decoupledOperationId}".replace("{sessionId}",encodeURIComponent(String(e.sessionId))).replace("{decoupledOperationId}",encodeURIComponent(String(e.decoupledOperationId))),method:"GET",headers:i,query:r},n);return new zt(o,l=>A0(l))}async getDecoupledOperationStatus(e,n){return await(await this.getDecoupledOperationStatusRaw(e,n)).value()}async getOrderRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling getOrder.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/order/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:i,query:r},n);return new zt(o,l=>Dy(l))}async getOrder(e,n){return await(await this.getOrderRaw(e,n)).value()}async getPortfolioOrdersRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling getPortfolioOrders.");const r={};e.take!==void 0&&(r.take=e.take),e.skip!==void 0&&(r.skip=e.skip),e.search!==void 0&&(r.search=e.search),e.statuses!==void 0&&(r.statuses=e.statuses),e.orderBy!==void 0&&(r.orderBy=e.orderBy),e.isin!==void 0&&(r.isin=e.isin),e.wkn!==void 0&&(r.wkn=e.wkn),e.sinoTicker!==void 0&&(r.sinoTicker=e.sinoTicker),e.usTicker!==void 0&&(r.usTicker=e.usTicker),e.cryptoCode!==void 0&&(r.cryptoCode=e.cryptoCode);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}/orders".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"GET",headers:i,query:r},n);return new zt(o,l=>Ey(l))}async getPortfolioOrders(e,n){return await(await this.getPortfolioOrdersRaw(e,n)).value()}async getPortfolioPositionsRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling getPortfolioPositions.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}/positions".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"GET",headers:i,query:r},n);return new zt(o,l=>Ry(l))}async getPortfolioPositions(e,n){return await(await this.getPortfolioPositionsRaw(e,n)).value()}async getPortfolioQuotesRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling getPortfolioQuotes.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}/quotes".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"GET",headers:i,query:r},n);return new zt(o,l=>By(l))}async getPortfolioQuotes(e,n){return await(await this.getPortfolioQuotesRaw(e,n)).value()}async getPortfoliosRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/portfolios",method:"GET",headers:r,query:n},e);return new zt(i,o=>Sk(o))}async getPortfolios(e){return await(await this.getPortfoliosRaw(e)).value()}async getSessionsRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/sessions",method:"GET",headers:r,query:n},e);return new zt(i,o=>ow(o))}async getSessions(e){return await(await this.getSessionsRaw(e)).value()}async getUserRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/user",method:"GET",headers:r,query:n},e);return new zt(i,o=>Qy(o))}async getUser(e){return await(await this.getUserRaw(e)).value()}async logoutSessionRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling logoutSession.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"DELETE",headers:i,query:r},n);return new zt(o,l=>no(l))}async logoutSession(e,n){return await(await this.logoutSessionRaw(e,n)).value()}async obtainTokenRaw(e,n){throw e.grantType===null||e.grantType===void 0?new rt("grantType","Required parameter requestParameters.grantType was null or undefined when calling obtainToken."):e.refreshToken===null||e.refreshToken===void 0?new rt("refreshToken","Required parameter requestParameters.refreshToken was null or undefined when calling obtainToken."):(this.configuration&&this.configuration.apiKey&&this.configuration.apiKey("x-brkrz-client-id"),c1([{contentType:"application/x-www-form-urlencoded"}]),new Error("URLSearchParams support has been dopped due to compatibility problems in mobile apps."))}async obtainToken(e,n){return await(await this.obtainTokenRaw(e,n)).value()}async renamePortfolioRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling renamePortfolio.");if(e.renamePortfolioRequest===null||e.renamePortfolioRequest===void 0)throw new rt("renamePortfolioRequest","Required parameter requestParameters.renamePortfolioRequest was null or undefined when calling renamePortfolio.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/portfolios/{portfolioId}/rename".replace("{portfolioId}",encodeURIComponent(String(e.portfolioId))),method:"POST",headers:i,query:r,body:qk(e.renamePortfolioRequest)},n);return new Fn(o)}async renamePortfolio(e,n){await this.renamePortfolioRaw(e,n)}async triggerSessionSyncRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling triggerSessionSync.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/sync".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"POST",headers:i,query:r},n);return new zt(o,l=>no(l))}async triggerSessionSync(e,n){return await(await this.triggerSessionSyncRaw(e,n)).value()}async websocketRaw(e){const n={},r={},i=await this.request({path:"/websocket",method:"GET",headers:r,query:n},e);return new Fn(i)}async websocket(e){await this.websocketRaw(e)}}class yw extends dr{async createDemoAccountRaw(e,n){const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/demo/accounts",method:"POST",headers:i,query:r,body:$0(e.demoAccountSettings)},n);return new zt(o,l=>T0(l))}async createDemoAccount(e={},n){return await(await this.createDemoAccountRaw(e,n)).value()}async deleteDemoAccountRaw(e,n){if(e.accountId===null||e.accountId===void 0)throw new rt("accountId","Required parameter requestParameters.accountId was null or undefined when calling deleteDemoAccount.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/demo/accounts/{accountId}".replace("{accountId}",encodeURIComponent(String(e.accountId))),method:"DELETE",headers:i,query:r},n);return new zt(o,l=>no(l))}async deleteDemoAccount(e,n){return await(await this.deleteDemoAccountRaw(e,n)).value()}async getDemoAccountsRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/demo/accounts",method:"GET",headers:r,query:n},e);return new zt(i,o=>x0(o))}async getDemoAccounts(e){return await(await this.getDemoAccountsRaw(e)).value()}async triggerDemoSessionSyncErrorRaw(e,n){if(e.sessionId===null||e.sessionId===void 0)throw new rt("sessionId","Required parameter requestParameters.sessionId was null or undefined when calling triggerDemoSessionSyncError.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/sessions/{sessionId}/triggerSyncError".replace("{sessionId}",encodeURIComponent(String(e.sessionId))),method:"POST",headers:i,query:r},n);return new zt(o,l=>no(l))}async triggerDemoSessionSyncError(e,n){return await(await this.triggerDemoSessionSyncErrorRaw(e,n)).value()}}class kw extends dr{async renderGenericTableRaw(e,n){if(e.renderGenericTableParams===null||e.renderGenericTableParams===void 0)throw new rt("renderGenericTableParams","Required parameter requestParameters.renderGenericTableParams was null or undefined when calling renderGenericTable.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/export/renderGenericTable",method:"POST",headers:i,query:r,body:Jk(e.renderGenericTableParams)},n);return new du(o)}async renderGenericTable(e,n){return await(await this.renderGenericTableRaw(e,n)).value()}}class ww extends dr{async getBrokersRaw(e){const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id"));const i=await this.request({path:"/brokers",method:"GET",headers:r,query:n},e);return new zt(i,o=>Sy(o))}async getBrokers(e){return await(await this.getBrokersRaw(e)).value()}async getExchangesRaw(e){const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id"));const i=await this.request({path:"/exchanges",method:"GET",headers:r,query:n},e);return new zt(i,o=>d_(o))}async getExchanges(e){return await(await this.getExchangesRaw(e)).value()}async getLegalTermsRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/legalTerms",method:"GET",headers:r,query:n},e);return new zt(i,o=>ek(o))}async getLegalTerms(e){return await(await this.getLegalTermsRaw(e)).value()}async getPagesConfigurationRaw(e,n){const r={};e.clientId!==void 0&&(r.clientId=e.clientId),e.clientName!==void 0&&(r.clientName=e.clientName);const i={},o=await this.request({path:"/pages",method:"GET",headers:i,query:r},n);return new zt(o,l=>fk(l))}async getPagesConfiguration(e={},n){return await(await this.getPagesConfigurationRaw(e,n)).value()}}class Sw extends dr{async getSecurityQuotesRaw(e,n){if(e.securityQuotesToken===null||e.securityQuotesToken===void 0)throw new rt("securityQuotesToken","Required parameter requestParameters.securityQuotesToken was null or undefined when calling getSecurityQuotes.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/securities/quotes/{securityQuotesToken}".replace("{securityQuotesToken}",encodeURIComponent(String(e.securityQuotesToken))),method:"GET",headers:i,query:r},n);return new zt(o,l=>Qk(l))}async getSecurityQuotes(e,n){return await(await this.getSecurityQuotesRaw(e,n)).value()}async getSecurityQuotesMetaRaw(e,n){if(e.securityQuotesToken===null||e.securityQuotesToken===void 0)throw new rt("securityQuotesToken","Required parameter requestParameters.securityQuotesToken was null or undefined when calling getSecurityQuotesMeta.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/securities/quotes/{securityQuotesToken}/meta".replace("{securityQuotesToken}",encodeURIComponent(String(e.securityQuotesToken))),method:"GET",headers:i,query:r},n);return new zt(o,l=>Gk(l))}async getSecurityQuotesMeta(e,n){return await(await this.getSecurityQuotesMetaRaw(e,n)).value()}}class Tw extends dr{async createTradeRaw(e,n){if(e.createOrderParams===null||e.createOrderParams===void 0)throw new rt("createOrderParams","Required parameter requestParameters.createOrderParams was null or undefined when calling createTrade.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/create",method:"POST",headers:i,query:r,body:b0(e.createOrderParams)},n);return new zt(o,l=>w0(l))}async createTrade(e,n){return await(await this.createTradeRaw(e,n)).value()}async createTradeChallengeRaw(e,n){if(e.createOrderChallengeParams===null||e.createOrderChallengeParams===void 0)throw new rt("createOrderChallengeParams","Required parameter requestParameters.createOrderChallengeParams was null or undefined when calling createTradeChallenge.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/challenge",method:"POST",headers:i,query:r,body:g0(e.createOrderChallengeParams)},n);return new zt(o,l=>to(l))}async createTradeChallenge(e,n){return await(await this.createTradeChallengeRaw(e,n)).value()}async getAvailableOrderIntentsRaw(e,n){if(e.token===null||e.token===void 0)throw new rt("token","Required parameter requestParameters.token was null or undefined when calling getAvailableOrderIntents.");const r={};e.token!==void 0&&(r.token=e.token);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/availableOrderIntents",method:"GET",headers:i,query:r},n);return new zt(o,l=>Ou(l))}async getAvailableOrderIntents(e,n){return await(await this.getAvailableOrderIntentsRaw(e,n)).value()}async getCostEstimationRaw(e,n){if(e.getCostEstimationParams===null||e.getCostEstimationParams===void 0)throw new rt("getCostEstimationParams","Required parameter requestParameters.getCostEstimationParams was null or undefined when calling getCostEstimation.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/costEstimation",method:"POST",headers:i,query:r,body:Cy(e.getCostEstimationParams)},n);return new zt(o,l=>ha(l))}async getCostEstimation(e,n){return await(await this.getCostEstimationRaw(e,n)).value()}async getQuoteRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling getQuote.");if(e.getQuoteParams===null||e.getQuoteParams===void 0)throw new rt("getQuoteParams","Required parameter requestParameters.getQuoteParams was null or undefined when calling getQuote.");const r={};e.portfolioId!==void 0&&(r.portfolioId=e.portfolioId);const i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/quote",method:"POST",headers:i,query:r,body:Jy(e.getQuoteParams)},n);return new zt(o,l=>Gy(l))}async getQuote(e,n){return await(await this.getQuoteRaw(e,n)).value()}async getSecurityDetailedInfoRaw(e,n){if(e.token===null||e.token===void 0)throw new rt("token","Required parameter requestParameters.token was null or undefined when calling getSecurityDetailedInfo.");const r={};e.token!==void 0&&(r.token=e.token);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/securityDetails",method:"GET",headers:i,query:r},n);return new zt(o,l=>Su(l))}async getSecurityDetailedInfo(e,n){return await(await this.getSecurityDetailedInfoRaw(e,n)).value()}async prepareTradeRaw(e,n){if(e.portfolioId===null||e.portfolioId===void 0)throw new rt("portfolioId","Required parameter requestParameters.portfolioId was null or undefined when calling prepareTrade.");if(e.isin===null||e.isin===void 0)throw new rt("isin","Required parameter requestParameters.isin was null or undefined when calling prepareTrade.");const r={};e.portfolioId!==void 0&&(r.portfolioId=e.portfolioId),e.isin!==void 0&&(r.isin=e.isin),e.usTicker!==void 0&&(r.usTicker=e.usTicker),e.cryptoCode!==void 0&&(r.cryptoCode=e.cryptoCode),e.cryptoPair!==void 0&&(r.cryptoPair=e.cryptoPair),e.brokerSecurityId!==void 0&&(r.brokerSecurityId=e.brokerSecurityId);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/trade/prepare",method:"GET",headers:i,query:r},n);return new zt(o,l=>xk(l))}async prepareTrade(e,n){return await(await this.prepareTradeRaw(e,n)).value()}}class zw extends dr{async createTradeDraftsRaw(e,n){if(e.tradeDraftCreateParams===null||e.tradeDraftCreateParams===void 0)throw new rt("tradeDraftCreateParams","Required parameter requestParameters.tradeDraftCreateParams was null or undefined when calling createTradeDrafts.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/tradeDrafts",method:"POST",headers:i,query:r,body:fw(e.tradeDraftCreateParams)},n);return new zt(o,l=>y0(l))}async createTradeDrafts(e,n){return await(await this.createTradeDraftsRaw(e,n)).value()}async deactivateTradeDraftRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling deactivateTradeDraft.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/tradeDrafts/{id}/deactivate".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:i,query:r},n);return new Fn(o)}async deactivateTradeDraft(e,n){await this.deactivateTradeDraftRaw(e,n)}async deleteTradeDraftRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling deleteTradeDraft.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/tradeDrafts/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:i,query:r},n);return new Fn(o)}async deleteTradeDraft(e,n){await this.deleteTradeDraftRaw(e,n)}async getTradeDraftsRaw(e,n){const r={};e.take!==void 0&&(r.take=e.take),e.skip!==void 0&&(r.skip=e.skip);const i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/tradeDrafts",method:"GET",headers:i,query:r},n);return new zt(o,l=>_y(l))}async getTradeDrafts(e={},n){return await(await this.getTradeDraftsRaw(e,n)).value()}async updateTradeDraftRaw(e,n){if(e.id===null||e.id===void 0)throw new rt("id","Required parameter requestParameters.id was null or undefined when calling updateTradeDraft.");if(e.tradeDraftUpdateParams===null||e.tradeDraftUpdateParams===void 0)throw new rt("tradeDraftUpdateParams","Required parameter requestParameters.tradeDraftUpdateParams was null or undefined when calling updateTradeDraft.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/tradeDrafts/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:i,query:r,body:gw(e.tradeDraftUpdateParams)},n);return new Fn(o)}async updateTradeDraft(e,n){await this.updateTradeDraftRaw(e,n)}}class Cw extends dr{async createAccessTokenRaw(e,n){if(e.createAccessTokenParams===null||e.createAccessTokenParams===void 0)throw new rt("createAccessTokenParams","Required parameter requestParameters.createAccessTokenParams was null or undefined when calling createAccessToken.");const r={},i={};if(i["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/user/accessTokens",method:"POST",headers:i,query:r,body:i0(e.createAccessTokenParams)},n);return new zt(o,l=>h1(l))}async createAccessToken(e,n){return await(await this.createAccessTokenRaw(e,n)).value()}async getAccessTokensRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/user/accessTokens",method:"GET",headers:r,query:n},e);return new zt(i,o=>ny(o))}async getAccessTokens(e){return await(await this.getAccessTokensRaw(e)).value()}async getAcessTokenAvailablePermissionsRaw(e){const n={},r={};if(this.configuration&&this.configuration.apiKey&&(r["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const o=this.configuration.accessToken,l=await o("idToken",[]);l&&(r.Authorization=`Bearer ${l}`)}const i=await this.request({path:"/user/accessTokenAvailablePermissions",method:"GET",headers:r,query:n},e);return new zt(i,o=>iy(o))}async getAcessTokenAvailablePermissions(e){return await(await this.getAcessTokenAvailablePermissionsRaw(e)).value()}async revokeAccessTokenRaw(e,n){if(e.accessTokenId===null||e.accessTokenId===void 0)throw new rt("accessTokenId","Required parameter requestParameters.accessTokenId was null or undefined when calling revokeAccessToken.");const r={},i={};if(this.configuration&&this.configuration.apiKey&&(i["x-brkrz-client-id"]=this.configuration.apiKey("x-brkrz-client-id")),this.configuration&&this.configuration.accessToken){const l=this.configuration.accessToken,a=await l("idToken",[]);a&&(i.Authorization=`Bearer ${a}`)}const o=await this.request({path:"/user/accessTokens/{accessTokenId}".replace("{accessTokenId}",encodeURIComponent(String(e.accessTokenId))),method:"DELETE",headers:i,query:r},n);return new Fn(o)}async revokeAccessToken(e,n){await this.revokeAccessTokenRaw(e,n)}}function Du(t){if(!t.clientId)throw new Error("You must configure a clientId to use the brokerize API.");return new Vr({fetchApi:t.fetch,basePath:t.basePath})}function Ow({authCfg:t,cfg:e,options:n,tokenRefreshCallback:r}){var i;if(t.type=="guest"){const o=JSON.parse(JSON.stringify(t));return{async getToken(){if(o.tokens){const l=o.tokens.updatedAt+o.tokens.response.expiresIn*1e3-1e4;if(Date.now()>l&&o.tokens.response.refreshToken){if(!e.fetch)throw new Error("Invalid cfg: fetch is required for refreshing tokens.");const s=await fetch(e.basePath+"/user/token",{method:"POST",headers:{"x-brkrz-client-id":e.clientId,"Content-Type":"application/x-www-form-urlencoded"},body:`grant_type=refresh_token&refresh_token=${encodeURIComponent(o.tokens.response.refreshToken)}`});if(!s.ok)throw new za(401,{msg:"The token could not be refreshed. Please log in again.",code:"AUTH"});const u=await s.json();return o.idToken=u.access_token,o.tokens={updatedAt:Date.now(),response:{accessToken:u.access_token,refreshToken:u.refresh_token,expiresIn:u.expires_in,tokenType:u.token_type,refreshTokenExpiresIn:u.refresh_token_expires_in,idToken:u.access_token}},r&&r(o),{idToken:u.access_token}}}return{idToken:o.idToken}}}}else if(t.type=="registered"){if(!e.cognito)throw new Error("Trying to initialize createAuth for cognito, but no cognito config present in BrokerizeConfig.");if(!(n!=null&&n.cognitoFacade))throw new Error("Trying to initialize createAuth for cognito, but access to the cognito library was not provided in the options.");const o=n.cognitoFacade.createSession((i=e.cognito)===null||i===void 0?void 0:i.poolConfig,t);return{async getToken(){return o.getToken()}}}else throw new Error("Unsupported auth config.")}var ga=function(t,e){return ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ga(t,e)};function ro(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ga(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function pa(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ba(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){l={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function va(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;function Tr(t){return typeof t=="function"}function Mu(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var _a=Mu(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
2
+ `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function ya(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Ci=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,o;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var a=pa(l),s=a.next();!s.done;s=a.next()){var u=s.value;u.remove(this)}}catch(p){e={error:p}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}else l.remove(this);var c=this.initialTeardown;if(Tr(c))try{c()}catch(p){o=p instanceof _a?p.errors:[p]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=pa(f),m=d.next();!m.done;m=d.next()){var h=m.value;try{Nu(h)}catch(p){o=o??[],p instanceof _a?o=va(va([],ba(o)),ba(p.errors)):o.push(p)}}}catch(p){r={error:p}}finally{try{m&&!m.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new _a(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Nu(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&ya(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&ya(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Eu=Ci.EMPTY;function Lu(t){return t instanceof Ci||t&&"closed"in t&&Tr(t.remove)&&Tr(t.add)&&Tr(t.unsubscribe)}function Nu(t){Tr(t)?t():t.unsubscribe()}var Pu={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},$u={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,va([t,e],ba(n)))},clearTimeout:function(t){var e=$u.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Iw(t){$u.setTimeout(function(){throw t})}function Ru(){}function Wo(t){t()}var ka=function(t){ro(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Lu(n)&&n.add(r)):r.destination=Ew,r}return e.create=function(n,r,i){return new Sa(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Ci),Aw=Function.prototype.bind;function wa(t,e){return Aw.call(t,e)}var Dw=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){Yo(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){Yo(r)}else Yo(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){Yo(n)}},t}(),Sa=function(t){ro(e,t);function e(n,r,i){var o=t.call(this)||this,l;if(Tr(n)||!n)l={next:n??void 0,error:r??void 0,complete:i??void 0};else{var a;o&&Pu.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},l={next:n.next&&wa(n.next,a),error:n.error&&wa(n.error,a),complete:n.complete&&wa(n.complete,a)}):l=n}return o.destination=new Dw(l),o}return e}(ka);function Yo(t){Iw(t)}function Mw(t){throw t}var Ew={closed:!0,next:Ru,error:Mw,complete:Ru},Lw=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Fu(t){return t}function Nw(t){return t.length===0?Fu:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var ni=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=$w(e)?e:new Sa(e,n,r);return Wo(function(){var l=i,a=l.operator,s=l.source;o.add(a?a.call(o,s):s?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=xu(n),new n(function(i,o){var l=new Sa({next:function(a){try{e(a)}catch(s){o(s),l.unsubscribe()}},error:o,complete:i});r.subscribe(l)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[Lw]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Nw(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=xu(e),new e(function(r,i){var o;n.subscribe(function(l){return o=l},function(l){return i(l)},function(){return r(o)})})},t.create=function(e){return new t(e)},t}();function xu(t){var e;return(e=t??Pu.Promise)!==null&&e!==void 0?e:Promise}function Pw(t){return t&&Tr(t.next)&&Tr(t.error)&&Tr(t.complete)}function $w(t){return t&&t instanceof ka||Pw(t)&&Lu(t)}function Rw(t){return Tr(t==null?void 0:t.lift)}function Fw(t){return function(e){if(Rw(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function xw(t,e,n,r,i){return new Uw(t,e,n,r,i)}var Uw=function(t){ro(e,t);function e(n,r,i,o,l,a){var s=t.call(this,n)||this;return s.onFinalize=l,s.shouldUnsubscribe=a,s._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:t.prototype._next,s._error=o?function(u){try{o(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,s}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e}(ka),Bw=Mu(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ta=function(t){ro(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new Uu(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Bw},e.prototype.next=function(n){var r=this;Wo(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var l=pa(r.currentObservers),a=l.next();!a.done;a=l.next()){var s=a.value;s.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;Wo(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;Wo(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,l=i.isStopped,a=i.observers;return o||l?Eu:(this.currentObservers=null,a.push(n),new Ci(function(){r.currentObservers=null,ya(a,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,l=r.isStopped;i?n.error(o):l&&n.complete()},e.prototype.asObservable=function(){var n=new ni;return n.source=this,n},e.create=function(n,r){return new Uu(n,r)},e}(ni),Uu=function(t){ro(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Eu},e}(Ta);function qw(t,e){return e===void 0&&(e=Fu),t=t??Vw,Fw(function(n,r){var i,o=!0;n.subscribe(xw(r,function(l){var a=e(l);(o||!t(i,a))&&(o=!1,i=a,r.next(l))}))})}function Vw(t,e){return t===e}class za extends Error{constructor(e,n){super(n.msg),this.httpStatusCode=e,this.name="BrokerizeError",this.msg=n.msg,this.code=n.code,this.validationDetails=n.validationDetails,this.hint=n.hint,this.msgBrokerName=n.msgBrokerName}}function Bu(t,e,n){let r=null,i=!1;function o(a,s){if(!i){try{n(a,s)}catch(u){console.error("brokerize pollingSubscription: the user callback threw an error unexpectedly: ",u)}a&&(i=!0)}}function l(){i||t().then(a=>{o(void 0,a),i||(r=setTimeout(l,e))},a=>o(a))}return l(),{unsubscribe(){r&&(clearTimeout(r),r=null),i=!0}}}const Go="[brokerize WebSocketClient] ";class Jw{constructor(e,n,r){this._map={},this._authenticatedCallback=null,this._disconnectTimeout=null,this._isOpen=!1,this._fatalError=null,this._lastNonFatalError=null,this._errorCount=0,this._url=e,this._id=0,this._socket=null,this._pingIntvl=null,this._updateReconnectInterval(),this._auth=n,this._createWebsocket=r}_updateReconnectInterval(){this._reconnectIntvl&&clearInterval(this._reconnectIntvl),!this._fatalError&&(this._reconnectIntvl=setInterval(()=>{!this._socket&&this._shouldConnect()&&(this._errorCount>0&&console.warn(Go+"reconnecting. current error count is "+this._errorCount+". the last error was: ",this._lastNonFatalError),this._connect())},this._computeReconnectIntervalInMilliseconds(this._errorCount)))}_computeReconnectIntervalInMilliseconds(e){return e==0?100:e<10?1e3:1e4}_shouldConnect(){var e;if(this._fatalError)return!1;for(const n in this._map)if(((e=this._map[n].callbacks)===null||e===void 0?void 0:e.length)>0)return!0;return!1}subscribe(e,n){if(this._fatalError)return n(this._fatalError,null),{unsubscribe:()=>{}};const r=JSON.stringify(e),i=(l,a)=>n(l,a);this._map[r]?this._map[r].callbacks.push(i):this._map[r]={callbacks:[i],idOnSocket:null},this._map[r].callbacks.length==1&&this._startSubscription(r),this._startOrStopDisconnectTimeout();let o=!1;return{unsubscribe:()=>{o||(o=!0,this._map[r].callbacks=this._map[r].callbacks.filter(l=>l!=i),this._map[r].callbacks.length==0&&this._endSubscription(r),this._startOrStopDisconnectTimeout())}}}subscribeInvalidate(e,n){const r=Object.assign({cmd:"subscribe",type:"invalidate",subscriptionId:null},e);return this.subscribe(r,n)}subscribeDecoupledOperation(e,n){const r=Object.assign({cmd:"subscribe",type:"decoupledOperationStatus",subscriptionId:null},e);return this.subscribe(r,n)}_startSubscription(e){var n;if(this._fatalError){this._notifySubscribersAboutFatalError(e);return}if(((n=this._socket)===null||n===void 0?void 0:n.readyState)==1&&this._isOpen){this._id++,this._map[e].idOnSocket=this._id;const r=JSON.parse(e);r.subscriptionId=this._id,this._sendWs(r,!0)}else this._socket||this._connect()}_endSubscription(e){this._map[e].idOnSocket!=null&&(this._sendWs({cmd:"unsubscribe",subscriptionId:this._map[e].idOnSocket},!0),this._map[e].idOnSocket=null)}_startOrStopDisconnectTimeout(){this._shouldConnect()?this._disconnectTimeout&&(clearTimeout(this._disconnectTimeout),this._disconnectTimeout=null):this._disconnectTimeout||(this._disconnectTimeout=setTimeout(()=>{var e;this._shouldConnect()||((e=this._socket)===null||e===void 0||e.close(),this._socket=null,this._disconnectTimeout=null)},3e3))}_sendWs(e,n=!1){var r,i;!this._socket&&n&&this._connect(),((r=this._socket)===null||r===void 0?void 0:r.readyState)==1?(i=this._socket)===null||i===void 0||i.send(JSON.stringify(e)):console.log(Go+"socket not ready, not sending message.",this._lastNonFatalError,this._fatalError)}_connect(){this._socket&&(this._isOpen=!1,this._socket.close()),!this._fatalError&&(this._authenticatedCallback=null,this._socket=this._createWebsocket(this._url),this._socket.onmessage=e=>{var n;const r=JSON.parse(e.data);if(r.subscriptionId){if(r.cmd=="invalidate"){const i=this._findSubscriptionEntry(r.subscriptionId);i==null||i.entry.callbacks.forEach(o=>o(null,r))}else if(r.cmd=="updateDecoupledOperationStatus"){const i=this._findSubscriptionEntry(r.subscriptionId);i==null||i.entry.callbacks.forEach(o=>o(null,r))}else if(r.error){const i=this._findSubscriptionEntry(r.subscriptionId);i==null||i.entry.callbacks.forEach(o=>o(r,null))}}else if(r.cmd=="authenticated")this._authenticatedCallback&&this._authenticatedCallback(),this._authenticatedCallback=null;else if(r.cmd!="ping"){if(r){const i=r;((n=i.error)===null||n===void 0?void 0:n.message)=="authentication failed"?this._handleFatalError(i):this._handleNonFatalError(i)}}},this._socket.onopen=()=>{Promise.resolve(this._auth.getToken()).then(e=>{const n=()=>{this._isOpen=!0,this._resetErrorState();for(const r in this._map)this._startSubscription(r)};e?(this._sendWs({cmd:"authorize",idToken:e.idToken},!0),this._authenticatedCallback=n):n()},e=>{console.error(Go+" connection failed",e)})},this._socket.onclose=()=>{this._socket=null;for(const e in this._map)this._endSubscription(e)},this._pingIntvl&&clearInterval(this._pingIntvl),this._pingIntvl=setInterval(()=>{var e,n,r;if(((e=this._socket)===null||e===void 0?void 0:e.readyState)==2||((n=this._socket)===null||n===void 0?void 0:n.readyState)==3&&this._shouldConnect()){this._connect();return}((r=this._socket)===null||r===void 0?void 0:r.readyState)==1&&this._sendWs({cmd:"ping"})},3e4))}_handleNonFatalError(e){this._errorCount++,this._lastNonFatalError=e,this._updateReconnectInterval()}_handleFatalError(e){this._fatalError=e,this._updateReconnectInterval(),this._pingIntvl&&clearInterval(this._pingIntvl);for(const n in this._map)this._notifySubscribersAboutFatalError(n)}_notifySubscribersAboutFatalError(e){this._map[e].callbacks.forEach(n=>{try{n(this._fatalError,null)}catch(r){console.warn(Go+"error in callback",r)}})}_resetErrorState(){this._lastNonFatalError=null,this._errorCount=0,this._updateReconnectInterval()}_findSubscriptionEntry(e){for(const n in this._map)if(this._map[n].idOnSocket==e)return{key:n,entry:this._map[n]};return null}}class Ko{constructor(e,n,r){this._isDestroyed=!1,this._cfg=e,this._auth=n,this._childContexts=[];const i=Du(e);this._logoutSubject=new Ta;const o=async l=>{const a=l.response.status;if(a>=400){const s=await l.response.json(),u=new za(a,s);throw a==401&&this._logoutSubject.error(u),u}};if(this._defaultApi=new Au(i).withPostMiddleware(o),this._demoBrokerApi=new yw(i).withPostMiddleware(o),this._tradeApi=new Tw(i).withPostMiddleware(o),this._metaApi=new ww(i).withPostMiddleware(o),this._brokerLoginApi=new bw(i).withPostMiddleware(o),this._tradeDraftApi=new zw(i).withPostMiddleware(o),this._cancelOrderApi=new vw(i).withPostMiddleware(o),this._changeOrderApi=new _w(i).withPostMiddleware(o),this._exportApi=new kw(i).withPostMiddleware(o),this._adminApi=new pw(i).withPostMiddleware(o),this._securitiesApi=new Sw(i).withPostMiddleware(o),this._userApi=new Cw(i).withPostMiddleware(o),!e.createAbortController)throw new Error("createAbortController not provided. This should not happen as there should be a default implementation.");this._abortController=e.createAbortController(),this._wsClient=r||this._initInternalWebSocketClient(),this._cache={}}createChildContext(){const e=new Ko(this._cfg,this._auth,this._wsClient);this._childContexts.push(e);const r=e.destroy;return e.destroy=()=>{r.call(e),this._childContexts=this._childContexts.filter(i=>i!=e)},e}async _initRequestInit(){if(this._isDestroyed)throw new Error("AuthorizedApiContext is destroyed");const e=await this._auth.getToken();return{signal:this._abortController.signal,headers:{"x-brkrz-client-id":this._cfg.clientId,Authorization:"Bearer "+e.idToken,"Content-Type":"application/json"}}}async getBrokers(){return this._cache.getBrokers||(this._cache.getBrokers=this._metaApi.getBrokers(await this._initRequestInit()).catch(e=>{throw delete this._cache.getBrokers,e})),this._cache.getBrokers}async getTradeDrafts(e){return this._tradeDraftApi.getTradeDrafts(e,await this._initRequestInit())}async createTradeDraft(e){return this._tradeDraftApi.createTradeDrafts(e,await this._initRequestInit())}async updateTradeDraft(e){return this._tradeDraftApi.updateTradeDraft(e,await this._initRequestInit())}async deactivateTradeDraft(e){return this._tradeDraftApi.deactivateTradeDraft(e,await this._initRequestInit())}async deleteTradeDraft(e){return this._tradeDraftApi.deleteTradeDraft(e,await this._initRequestInit())}async getLegalTerms(){return this._metaApi.getLegalTerms(await this._initRequestInit())}async getExchanges(){return this._metaApi.getExchanges(await this._initRequestInit())}async addSession(e){return this._brokerLoginApi.addSession({addSessionParams:e},await this._initRequestInit())}async getSessions(){return this._defaultApi.getSessions(await this._initRequestInit())}async createDemoAccount(e){return this._demoBrokerApi.createDemoAccount({demoAccountSettings:e},await this._initRequestInit())}async getAccessTokens(){return this._userApi.getAccessTokens(await this._initRequestInit())}async createAccessToken(e){return this._userApi.createAccessToken({createAccessTokenParams:e},await this._initRequestInit())}async revokeAccessToken(e){return this._userApi.revokeAccessToken({accessTokenId:e},await this._initRequestInit())}async getAcessTokenAvailablePermissions(){return this._userApi.getAcessTokenAvailablePermissions(await this._initRequestInit())}async getDemoAccounts(){return this._demoBrokerApi.getDemoAccounts(await this._initRequestInit())}async deleteDemoAccount(e){return this._demoBrokerApi.deleteDemoAccount(e,await this._initRequestInit())}async getOrder(e){return this._defaultApi.getOrder({id:e},await this._initRequestInit())}async createCancelOrderChallenge(e){return this._cancelOrderApi.createCancelOrderChallenge(e,await this._initRequestInit())}async cancelOrder(e){return this._cancelOrderApi.cancelOrder(e,await this._initRequestInit())}async createChangeOrderChallenge(e){return this._changeOrderApi.createChangeOrderChallenge(e,await this._initRequestInit())}async changeOrder(e){return this._changeOrderApi.changeOrder(e,await this._initRequestInit())}async getPortfolios(){return this._defaultApi.getPortfolios(await this._initRequestInit())}async renamePortfolio(e,n){return this._defaultApi.renamePortfolio({portfolioId:e,renamePortfolioRequest:{newPortfolioName:n}},await this._initRequestInit())}async deletePortfolio(e){return this._defaultApi.deletePortfolio({portfolioId:e},await this._initRequestInit())}async getPortfolioQuotes(e){return this._defaultApi.getPortfolioQuotes({portfolioId:e},await this._initRequestInit())}async getPortfolioPositions(e){return this._defaultApi.getPortfolioPositions({portfolioId:e},await this._initRequestInit())}async getPortfolioOrders(e){return this._defaultApi.getPortfolioOrders(e,await this._initRequestInit())}async getAuthInfo(e){return this._defaultApi.getAuthInfo({portfolioId:e},await this._initRequestInit())}async addSessionCompleteChallenge(e){return this._brokerLoginApi.addSessionCompleteChallenge(e,await this._initRequestInit())}async createSessionTanChallenge(e){return this._defaultApi.createSessionTanChallenge(e,await this._initRequestInit())}async enableSessionTan(e){return this._defaultApi.enableSessionTan(e,await this._initRequestInit())}async endSessionTan(e){return this._defaultApi.endSessionTan({sessionId:e},await this._initRequestInit())}async getDecoupledOperationStatus(e){return this._defaultApi.getDecoupledOperationStatus(e,await this._initRequestInit())}async cancelDecoupledOperation(e){return this._defaultApi.cancelDecoupledOperation(e,await this._initRequestInit())}async triggerSessionSync(e){return this._defaultApi.triggerSessionSync({sessionId:e},await this._initRequestInit())}async triggerDemoSessionSyncError(e){return this._demoBrokerApi.triggerDemoSessionSyncError({sessionId:e},await this._initRequestInit())}async logoutSession(e){return this._defaultApi.logoutSession({sessionId:e},await this._initRequestInit())}async getUser(){return this._defaultApi.getUser(await this._initRequestInit())}async deleteGuestUser(){return this._defaultApi.deleteGuestUser(await this._initRequestInit())}async prepareTrade(e){return this._tradeApi.prepareTrade(e,await this._initRequestInit())}async createTrade(e){return this._tradeApi.createTrade(e,await this._initRequestInit())}async createTradeChallenge(e){return this._tradeApi.createTradeChallenge(e,await this._initRequestInit())}async getCostEstimation(e){return this._tradeApi.getCostEstimation({getCostEstimationParams:e},await this._initRequestInit())}async getChangeOrderCostEstimation(e,n){return this._changeOrderApi.getChangeOrderCostEstimation({estimateChangeOrderCostsParams:{changes:n},id:e},await this._initRequestInit())}async getQuote(e){return this._tradeApi.getQuote(e,await this._initRequestInit())}async prepareOAuthRedirect(e){return this._brokerLoginApi.prepareOAuthRedirect({prepareOAuthRedirectParams:e},await this._initRequestInit())}async confirmOAuth(e){return this._brokerLoginApi.confirmOAuth({confirmOAuthParams:e},await this._initRequestInit())}async getSecurityDetailedInfo(e){return this._tradeApi.getSecurityDetailedInfo({token:e},await this._initRequestInit())}async renderGenericTablePdf(e){return(await this._exportApi.renderGenericTableRaw({renderGenericTableParams:{table:e}},await this._initRequestInit())).raw.blob()}async getMyClients(){return this._adminApi.getMyClients(await this._initRequestInit())}async createClient(){return this._adminApi.createClient(await this._initRequestInit())}async deleteClient(e){return this._adminApi.deleteClient({clientId:e},await this._initRequestInit())}async addClientOrigin(e,n){return this._adminApi.addOrigin({clientId:e,addOriginRequest:{origin:n}},await this._initRequestInit())}async removeClientOrigin(e,n){return this._adminApi.removeOrigin({clientId:e,addOriginRequest:{origin:n}},await this._initRequestInit())}async addClientOAuthReturnToUrl(e,n){return this._adminApi.addOAuthReturnToUrl({clientId:e,addOAuthReturnToUrlRequest:{url:n}},await this._initRequestInit())}async removeClientOAuthReturnToUrl(e,n){return this._adminApi.removeOAuthReturnToUrl({clientId:e,addOAuthReturnToUrlRequest:{url:n}},await this._initRequestInit())}async setClientConfig(e,n){return this._adminApi.setClientConfig({clientId:e,setClientConfigRequest:{config:n}},await this._initRequestInit())}async getOrderReport(e){var n;const r=await this._adminApi.getOrderReportRaw({from:e.from,to:e.to,clientIds:!((n=e.clientIds)===null||n===void 0)&&n.length?e.clientIds.join(","):void 0,format:e.format,onlyExecutedOrders:e.onlyExecutedOrders},await this._initRequestInit()),i=r.raw.headers.get("x-brkrz-filename"),o=r.raw.headers.get("content-type");return{filename:i,data:r.raw.blob(),contentType:o}}async getSecurityQuotes(e){return this._securitiesApi.getSecurityQuotes({securityQuotesToken:e.securityQuotesToken},await this._initRequestInit())}async getSecurityQuotesMeta(e){return this._securitiesApi.getSecurityQuotesMeta({securityQuotesToken:e},await this._initRequestInit())}subscribeQuotes(e,n){return Bu(()=>this.getSecurityQuotes({securityQuotesToken:e}),2500,n)}subscribeAvailableOrderIntents(e,n){let r=!0;if(e.availableOrderIntents&&(n(null,e.availableOrderIntents),r=!1),e.availableOrderIntentsToken){const i=e.availableOrderIntentsToken;return Bu(async()=>await this._tradeApi.getAvailableOrderIntents({token:i},await this._initRequestInit()),5e3,n)}return r&&n(null,{buy:["open"],sell:["close"]}),{unsubscribe(){}}}_initInternalWebSocketClient(){const e=this._cfg.basePath||"https://api-preview.brokerize.com",n=(e.startsWith("https")?"wss://"+e.substring(8):"ws://"+e.substring(7))+"/websocket";if(!this._cfg.createWebSocket)throw new Error("createWebSocket not provided. This should not happen as there should be a default implementation.");return new Jw(n,this._auth,this._cfg.createWebSocket)}createWebSocketClient(){return{subscribeDecoupledOperation:this._wsClient.subscribeDecoupledOperation.bind(this._wsClient),subscribeInvalidate:this._wsClient.subscribeInvalidate.bind(this._wsClient)}}destroy(){this._isDestroyed=!0,this._abortController.abort()}subscribeLogout(e){const n=this._logoutSubject.subscribe({error(r){e(r,null)}});return{unsubscribe(){n.unsubscribe()}}}}const Hw=Object.freeze(Object.defineProperty({__proto__:null,AuthMethodFlow:D1,BrokerEnvFilterType:$1,CancelOrderParamsMode:lv,CashQuotation:fv,DecoupledOperationState:C0,Direction:u0,EnableSessionTanParamsKind:G0,GenericTableRowType:Z_,GenericTableRowValueLinkValueType:ey,GenericTableRowValueType:ty,LoginResponseState:lk,OrderExtension:f0,OrderIntent:sk,OrderModel:gv,OrderStatus:H1,OrderValidityType:bv,PortfolioSyncInfoStatus:wk,SessionSyncInfoStatus:aw,TrailingDistanceModeEnum:kv},Symbol.toStringTag,{value:"Module"})),Ww=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function qu(t,e,n,r){for(const i of t.sizeUnitConstraints||[])if((!i.orderModels||i.orderModels.includes(e))&&(!i.directions||i.directions.includes(n))&&(!i.cashAccountIds||i.cashAccountIds.includes(r)))return i.sizeUnits;return t.sizeUnit?[t.sizeUnit]:[]}const Yw=Object.freeze(Object.defineProperty({__proto__:null,getSizeUnitsFromConstraints:qu},Symbol.toStringTag,{value:"Module"}));class Gw{constructor(e){if(!e.fetch){const n=Ca();if(!n.fetch)throw new Error("fetch is not provided and no global fetch function is available");e.fetch=n.fetch.bind(n)}if(!e.createAbortController){const n=Ca();if(!n.AbortController)throw new Error("createAbortController not provided and no global AbortController is available");e.createAbortController=()=>new n.AbortController}if(!e.createWebSocket){const n=Ca();if(!n.WebSocket)throw new Error("WebSocket implementation not available. Please provide one in BrokerizeConfig.");e.createWebSocket=(r,i)=>new n.WebSocket(r,i)}this._cfg=e,this._defaultApi=new Au(Du(e))}async createGuestUser(){const e=Date.now(),n=await this._defaultApi.createGuestUser({headers:{"x-brkrz-client-id":this._cfg.clientId,"Content-Type":"application/json"}});return{type:"guest",idToken:n.idToken,tokens:{updatedAt:e,response:n}}}createAuthorizedContext(e,n){return new Ko(this._cfg,this.createAuth(e,n))}getCognitoConfig(){var e;return(e=this._cfg.cognito)===null||e===void 0?void 0:e.poolConfig}createAuth(e,n){var r;return Ow({authCfg:e,cfg:this._cfg,tokenRefreshCallback:n,options:{cognitoFacade:(r=this._cfg.cognito)===null||r===void 0?void 0:r.cognitoFacade}})}}function Ca(){let t;try{t=Function("return this")()}catch{t=window}return t}const Kw=Object.freeze(Object.defineProperty({__proto__:null,AuthorizedApiContext:Ko,Brokerize:Gw,BrokerizeError:za,Models:Hw,Utils:Yw,WebSocketTypes:Ww},Symbol.toStringTag,{value:"Module"}));function ze(){}const ri=t=>t;function ve(t,e){for(const n in e)t[n]=e[n];return t}function Vu(t){return t()}function Ju(){return Object.create(null)}function pn(t){t.forEach(Vu)}function Vn(t){return typeof t=="function"}function Ae(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Qo;function Qn(t,e){return t===e?!0:(Qo||(Qo=document.createElement("a")),Qo.href=e,t===Qo.href)}function Qw(t){return Object.keys(t).length===0}function Oa(t,...e){if(t==null){for(const r of e)r(void 0);return ze}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function jo(t){let e;return Oa(t,n=>e=n)(),e}function Ia(t,e,n){t.$$.on_destroy.push(Oa(e,n))}function ht(t,e,n,r){if(t){const i=Hu(t,e,n,r);return t[0](i)}}function Hu(t,e,n,r){return t[1]&&r?ve(n.ctx.slice(),t[1](r(e))):n.ctx}function mt(t,e,n,r){if(t[2]&&r){const i=t[2](r(n));if(e.dirty===void 0)return i;if(typeof i=="object"){const o=[],l=Math.max(e.dirty.length,i.length);for(let a=0;a<l;a+=1)o[a]=e.dirty[a]|i[a];return o}return e.dirty|i}return e.dirty}function gt(t,e,n,r,i,o){if(i){const l=Hu(e,n,r,o);t.p(l,i)}}function pt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r<n;r++)e[r]=-1;return e}return-1}function je(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Dn(t,e){const n={};e=new Set(e);for(const r in t)!e.has(r)&&r[0]!=="$"&&(n[r]=t[r]);return n}function Xo(t){const e={};for(const n in t)e[n]=!0;return e}function vn(t){return t??""}function zr(t){return t&&Vn(t.destroy)?t.destroy:ze}function Wu(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}const Yu=typeof window<"u";let io=Yu?()=>window.performance.now():()=>Date.now(),Aa=Yu?t=>requestAnimationFrame(t):ze;const Oi=new Set;function Gu(t){Oi.forEach(e=>{e.c(t)||(Oi.delete(e),e.f())}),Oi.size!==0&&Aa(Gu)}function oo(t){let e;return Oi.size===0&&Aa(Gu),{promise:new Promise(n=>{Oi.add(e={c:t,f:n})}),abort(){Oi.delete(e)}}}function V(t,e){t.appendChild(e)}function yt(t,e,n){const r=Da(t);if(!r.getElementById(e)){const i=W("style");i.id=e,i.textContent=n,Ku(r,i)}}function Da(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function jw(t){const e=W("style");return e.textContent="/* empty */",Ku(Da(t),e),e.sheet}function Ku(t,e){return V(t.head||t,e),e.sheet}function L(t,e,n){t.insertBefore(e,n||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function Mn(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function W(t){return document.createElement(t)}function lo(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ie(t){return document.createTextNode(t)}function j(){return Ie(" ")}function Xe(){return Ie("")}function tt(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function Ii(t){return function(e){return e.preventDefault(),t.call(this,e)}}function x(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}const Xw=["width","height"];function En(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const r in e)e[r]==null?t.removeAttribute(r):r==="style"?t.style.cssText=e[r]:r==="__value"?t.value=t[r]=e[r]:n[r]&&n[r].set&&Xw.indexOf(r)===-1?t[r]=e[r]:x(t,r,e[r])}function Zo(t,e){for(const n in e)x(t,n,e[n])}function ii(t,e,n){const r=e.toLowerCase();r in t?t[r]=typeof t[r]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:x(t,e,n)}function Qu(t){let e;return{p(...n){e=n,e.forEach(r=>t.push(r))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function Zw(t){return Array.from(t.childNodes)}function Ke(t,e){e=""+e,t.data!==e&&(t.data=e)}function oi(t,e){t.value=e??""}function _n(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Jr(t,e,n){for(let r=0;r<t.options.length;r+=1){const i=t.options[r];if(i.__value===e){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function el(t,e){for(let n=0;n<t.options.length;n+=1){const r=t.options[n];r.selected=~e.indexOf(r.__value)}}function ju(t){const e=t.querySelector(":checked");return e&&e.__value}function ke(t,e,n){t.classList.toggle(e,!!n)}function Xu(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}class hr{constructor(e=!1){Kt(this,"is_svg",!1);Kt(this,"e");Kt(this,"n");Kt(this,"t");Kt(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,r=null){this.e||(this.is_svg?this.e=lo(n.nodeName):this.e=W(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)L(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(E)}}function e2(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function fn(t,e){return new t(e)}const tl=new Map;let nl=0;function t2(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function n2(t,e){const n={stylesheet:jw(e),rules:{}};return tl.set(t,n),n}function ao(t,e,n,r,i,o,l,a=0){const s=16.666/r;let u=`{
4
+ `;for(let v=0;v<=1;v+=s){const w=e+(n-e)*o(v);u+=v*100+`%{${l(w,1-w)}}
5
+ `}const c=u+`100% {${l(n,1-n)}}
6
+ }`,f=`__svelte_${t2(c)}_${a}`,d=Da(t),{stylesheet:m,rules:h}=tl.get(d)||n2(d,t);h[f]||(h[f]=!0,m.insertRule(`@keyframes ${f} ${c}`,m.cssRules.length));const p=t.style.animation||"";return t.style.animation=`${p?`${p}, `:""}${f} ${r}ms linear ${i}ms 1 both`,nl+=1,f}function so(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),i=n.length-r.length;i&&(t.style.animation=r.join(", "),nl-=i,nl||r2())}function r2(){Aa(()=>{nl||(tl.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&E(e)}),tl.clear())})}function i2(t,e,n,r){if(!e)return ze;const i=t.getBoundingClientRect();if(e.left===i.left&&e.right===i.right&&e.top===i.top&&e.bottom===i.bottom)return ze;const{delay:o=0,duration:l=300,easing:a=ri,start:s=io()+o,end:u=s+l,tick:c=ze,css:f}=n(t,{from:e,to:i},r);let d=!0,m=!1,h;function p(){f&&(h=ao(t,0,1,l,o,a,f)),o||(m=!0)}function v(){f&&so(t,h),d=!1}return oo(w=>{if(!m&&w>=s&&(m=!0),m&&w>=u&&(c(1,0),v()),!d)return!1;if(m){const S=w-s,y=0+1*a(S/l);c(y,1-y)}return!0}),p(),c(0,1),v}function o2(t){const e=getComputedStyle(t);if(e.position!=="absolute"&&e.position!=="fixed"){const{width:n,height:r}=e,i=t.getBoundingClientRect();t.style.position="absolute",t.style.width=n,t.style.height=r,Zu(t,i)}}function Zu(t,e){const n=t.getBoundingClientRect();if(e.left!==n.left||e.top!==n.top){const r=getComputedStyle(t),i=r.transform==="none"?"":r.transform;t.style.transform=`${i} translate(${e.left-n.left}px, ${e.top-n.top}px)`}}let uo;function co(t){uo=t}function Ai(){if(!uo)throw new Error("Function called outside component initialization");return uo}function l2(t){Ai().$$.before_update.push(t)}function ir(t){Ai().$$.on_mount.push(t)}function mr(t){Ai().$$.on_destroy.push(t)}function Bt(){const t=Ai();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const o=Xu(e,n,{cancelable:r});return i.slice().forEach(l=>{l.call(t,o)}),!o.defaultPrevented}return!0}}function Di(t,e){return Ai().$$.context.set(t,e),e}function tn(t){return Ai().$$.context.get(t)}function qe(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const Mi=[],xe=[];let Ei=[];const Ma=[],ec=Promise.resolve();let Ea=!1;function tc(){Ea||(Ea=!0,ec.then(C))}function rl(){return tc(),ec}function gr(t){Ei.push(t)}function Ve(t){Ma.push(t)}const La=new Set;let Li=0;function C(){if(Li!==0)return;const t=uo;do{try{for(;Li<Mi.length;){const e=Mi[Li];Li++,co(e),a2(e.$$)}}catch(e){throw Mi.length=0,Li=0,e}for(co(null),Mi.length=0,Li=0;xe.length;)xe.pop()();for(let e=0;e<Ei.length;e+=1){const n=Ei[e];La.has(n)||(La.add(n),n())}Ei.length=0}while(Mi.length);for(;Ma.length;)Ma.pop()();Ea=!1,La.clear(),co(t)}function a2(t){if(t.fragment!==null){t.update(),pn(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(gr)}}function s2(t){const e=[],n=[];Ei.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),Ei=e}let fo;function Na(){return fo||(fo=Promise.resolve(),fo.then(()=>{fo=null})),fo}function li(t,e,n){t.dispatchEvent(Xu(`${e?"intro":"outro"}${n}`))}const il=new Set;let Cr;function ne(){Cr={r:0,c:[],p:Cr}}function re(){Cr.r||pn(Cr.c),Cr=Cr.p}function g(t,e){t&&t.i&&(il.delete(t),t.i(e))}function b(t,e,n,r){if(t&&t.o){if(il.has(t))return;il.add(t),Cr.c.push(()=>{il.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const Pa={duration:0};function nc(t,e,n){const r={direction:"in"};let i=e(t,n,r),o=!1,l,a,s=0;function u(){l&&so(t,l)}function c(){const{delay:d=0,duration:m=300,easing:h=ri,tick:p=ze,css:v}=i||Pa;v&&(l=ao(t,0,1,m,d,h,v,s++)),p(0,1);const w=io()+d,S=w+m;a&&a.abort(),o=!0,gr(()=>li(t,!0,"start")),a=oo(y=>{if(o){if(y>=S)return p(1,0),li(t,!0,"end"),u(),o=!1;if(y>=w){const z=h((y-w)/m);p(z,1-z)}}return o})}let f=!1;return{start(){f||(f=!0,so(t),Vn(i)?(i=i(r),Na().then(c)):c())},invalidate(){f=!1},end(){o&&(u(),o=!1)}}}function rc(t,e,n){const r={direction:"out"};let i=e(t,n,r),o=!0,l;const a=Cr;a.r+=1;let s;function u(){const{delay:c=0,duration:f=300,easing:d=ri,tick:m=ze,css:h}=i||Pa;h&&(l=ao(t,1,0,f,c,d,h));const p=io()+c,v=p+f;gr(()=>li(t,!1,"start")),"inert"in t&&(s=t.inert,t.inert=!0),oo(w=>{if(o){if(w>=v)return m(0,1),li(t,!1,"end"),--a.r||pn(a.c),!1;if(w>=p){const S=d((w-p)/f);m(1-S,S)}}return o})}return Vn(i)?Na().then(()=>{i=i(r),u()}):u(),{end(c){c&&"inert"in t&&(t.inert=s),c&&i.tick&&i.tick(1,0),o&&(l&&so(t,l),o=!1)}}}function ol(t,e,n,r){let o=e(t,n,{direction:"both"}),l=r?0:1,a=null,s=null,u=null,c;function f(){u&&so(t,u)}function d(h,p){const v=h.b-l;return p*=Math.abs(v),{a:l,b:h.b,d:v,duration:p,start:h.start,end:h.start+p,group:h.group}}function m(h){const{delay:p=0,duration:v=300,easing:w=ri,tick:S=ze,css:y}=o||Pa,z={start:io()+p,b:h};h||(z.group=Cr,Cr.r+=1),"inert"in t&&(h?c!==void 0&&(t.inert=c):(c=t.inert,t.inert=!0)),a||s?s=z:(y&&(f(),u=ao(t,l,h,v,p,w,y)),h&&S(0,1),a=d(z,v),gr(()=>li(t,h,"start")),oo(O=>{if(s&&O>s.start&&(a=d(s,v),s=null,li(t,a.b,"start"),y&&(f(),u=ao(t,l,a.b,a.duration,0,w,o.css))),a){if(O>=a.end)S(l=a.b,1-l),li(t,a.b,"end"),s||(a.b?f():--a.group.r||pn(a.group.c)),a=null;else if(O>=a.start){const N=O-a.start;l=a.a+a.d*w(N/a.duration),S(l,1-l)}}return!!(a||s)}))}return{run(h){Vn(o)?Na().then(()=>{o=o({direction:h?"in":"out"}),m(h)}):m(h)},end(){f(),a=s=null}}}function At(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ic(t,e){t.d(1),e.delete(t.key)}function oc(t,e){b(t,1,1,()=>{e.delete(t.key)})}function u2(t,e){t.f(),oc(t,e)}function ll(t,e,n,r,i,o,l,a,s,u,c,f){let d=t.length,m=o.length,h=d;const p={};for(;h--;)p[t[h].key]=h;const v=[],w=new Map,S=new Map,y=[];for(h=m;h--;){const U=f(i,o,h),A=n(U);let P=l.get(A);P?y.push(()=>P.p(U,e)):(P=u(A,U),P.c()),w.set(A,v[h]=P),A in p&&S.set(A,Math.abs(h-p[A]))}const z=new Set,O=new Set;function N(U){g(U,1),U.m(a,c),l.set(U.key,U),c=U.first,m--}for(;d&&m;){const U=v[m-1],A=t[d-1],P=U.key,Y=A.key;U===A?(c=U.first,d--,m--):w.has(Y)?!l.has(P)||z.has(P)?N(U):O.has(Y)?d--:S.get(P)>S.get(Y)?(O.add(P),N(U)):(z.add(Y),d--):(s(A,l),d--)}for(;d--;){const U=t[d];w.has(U.key)||s(U,l)}for(;m;)N(v[m-1]);return pn(y),v}function ut(t,e){const n={},r={},i={$$scope:1};let o=t.length;for(;o--;){const l=t[o],a=e[o];if(a){for(const s in l)s in a||(r[s]=1);for(const s in a)i[s]||(n[s]=a[s],i[s]=1);t[o]=a}else for(const s in l)i[s]=1}for(const l in r)l in n||(n[l]=void 0);return n}function kt(t){return typeof t=="object"&&t!==null?t:{}}function Je(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function F(t){t&&t.c()}function $(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),gr(()=>{const o=t.$$.on_mount.map(Vu).filter(Vn);t.$$.on_destroy?t.$$.on_destroy.push(...o):pn(o),t.$$.on_mount=[]}),i.forEach(gr)}function R(t,e){const n=t.$$;n.fragment!==null&&(s2(n.after_update),pn(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function c2(t,e){t.$$.dirty[0]===-1&&(Mi.push(t),tc(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ee(t,e,n,r,i,o,l=null,a=[-1]){const s=uo;co(t);const u=t.$$={fragment:null,ctx:[],props:o,update:ze,not_equal:i,bound:Ju(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(s?s.$$.context:[])),callbacks:Ju(),dirty:a,skip_bound:!1,root:e.target||s.$$.root};l&&l(u.root);let c=!1;if(u.ctx=n?n(t,e.props||{},(f,d,...m)=>{const h=m.length?m[0]:d;return u.ctx&&i(u.ctx[f],u.ctx[f]=h)&&(!u.skip_bound&&u.bound[f]&&u.bound[f](h),c&&c2(t,f)),d}):[],u.update(),c=!0,pn(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){const f=Zw(e.target);u.fragment&&u.fragment.l(f),f.forEach(E)}else u.fragment&&u.fragment.c();e.intro&&g(t.$$.fragment),$(t,e.target,e.anchor),C()}co(s)}let lc;typeof HTMLElement=="function"&&(lc=class extends HTMLElement{constructor(e,n,r){super();Kt(this,"$$ctor");Kt(this,"$$s");Kt(this,"$$c");Kt(this,"$$cn",!1);Kt(this,"$$d",{});Kt(this,"$$r",!1);Kt(this,"$$p_d",{});Kt(this,"$$l",{});Kt(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let l;return{c:function(){l=W("slot"),o!=="default"&&x(l,"name",o)},m:function(u,c){L(u,l,c)},d:function(u){u&&E(l)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=e2(this);for(const o of this.$$s)o in r&&(n[o]=[e(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=al(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const i=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=al(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const o in this.$$l)for(const l of this.$$l[o]){const a=this.$$c.$on(o,l);this.$$l_u.set(l,a)}this.$$l={}}}attributeChangedCallback(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=al(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function al(t,e,n,r){var o;const i=(o=n[t])==null?void 0:o.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Le(t,e,n,r,i,o){let l=class extends lc{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(a=>(e[a].attribute||a).toLowerCase())}};return Object.keys(e).forEach(a=>{Object.defineProperty(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){var u;s=al(a,s,e),this.$$d[a]=s,(u=this.$$c)==null||u.$set({[a]:s})}})}),r.forEach(a=>{Object.defineProperty(l.prototype,a,{get(){var s;return(s=this.$$c)==null?void 0:s[a]}})}),t.element=l,l}class Ne{constructor(){Kt(this,"$$");Kt(this,"$$set")}$destroy(){R(this,1),this.$destroy=ze}$on(e,n){if(!Vn(n))return ze;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!Qw(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const f2="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(f2);function ac(t,e,n){const r=t.slice();return r[7]=e[n],r}function d2(t){let e,n,r,i=At(t[1]),o=[];for(let l=0;l<i.length;l+=1)o[l]=sc(ac(t,i,l));return{c(){e=W("div"),e.textContent="Invalid configuration",n=j(),r=W("ul");for(let l=0;l<o.length;l+=1)o[l].c()},m(l,a){L(l,e,a),L(l,n,a),L(l,r,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(r,null)},p(l,a){if(a&2){i=At(l[1]);let s;for(s=0;s<i.length;s+=1){const u=ac(l,i,s);o[s]?o[s].p(u,a):(o[s]=sc(u),o[s].c(),o[s].m(r,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=i.length}},i:ze,o:ze,d(l){l&&(E(e),E(n),E(r)),Mn(o,l)}}}function h2(t){let e;const n=t[5].default,r=ht(n,t,t[4],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&16)&&gt(r,n,i,i[4],e?mt(n,i[4],o,null):pt(i[4]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function sc(t){let e,n,r=t[7]+"",i;return{c(){e=W("li"),n=Ie("Missing "),i=Ie(r)},m(o,l){L(o,e,l),V(e,n),V(e,i)},p(o,l){l&2&&r!==(r=o[7]+"")&&Ke(i,r)},d(o){o&&E(e)}}}function m2(t){let e,n,r,i;const o=[h2,d2],l=[];function a(s,u){return s[0]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,[u]){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function g2(t,e,n){let{$$slots:r={},$$scope:i}=e,{openExternalLink:o=null}=e,{requiredProps:l=[]}=e,a=l.every(u=>!!e[u]),s=l.filter(u=>!e[u]);return l2(()=>{n(0,a=l.every(u=>!!e[u])),n(1,s=l.filter(u=>!e[u]))}),t.$$set=u=>{n(6,e=ve(ve({},e),je(u))),"openExternalLink"in u&&n(2,o=u.openExternalLink),"requiredProps"in u&&n(3,l=u.requiredProps),"$$scope"in u&&n(4,i=u.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&o&&Di("router",o)},e=je(e),[a,s,o,l,i,r]}class xn extends Ne{constructor(e){super(),Ee(this,e,g2,m2,Ae,{openExternalLink:2,requiredProps:3})}get openExternalLink(){return this.$$.ctx[2]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}get requiredProps(){return this.$$.ctx[3]}set requiredProps(e){this.$$set({requiredProps:e}),C()}}Le(xn,{openExternalLink:{},requiredProps:{}},["default"],[],!0);const p2={"zl-default-base-rem":"1rem","zl-app-background-color":"#ffffff","zl-app-frame-border-color":"var(--zl-color-gray-light)","zl-app-frame-border-radius":"var(--zl-default-border-radius)","zl-app-frame-border-style":"solid","zl-app-frame-border-width":"1px","zl-app-frame-box-shadow":"var(--zl-box-shadow-xl)","zl-app-frame-padding":"var(--zl-spacing-2xl)","zl-app-min-height":"0","zl-app-padding":"0","zl-default-border-color":"var(--zl-color-gray-light)","zl-default-border-radius":"var(--zl-border-radius-md)","zl-default-border-width":"1px","zl-default-box-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","zl-default-font-size":"var(--zl-font-size-xs)","zl-default-link-color":"var(--zl-default-text-color)","zl-default-padding-x":"var(--zl-spacing-lg)","zl-default-padding-y":"var(--zl-spacing-md)","zl-default-text-color":"var(--zl-color-gray-darkest)","zl-loader-color":"#3870db","zl-loader-contrast-color":"#15191d","zl-overlay-backdrop-opacity":"0.5","zl-popup-background-color":"var(--zl-app-background-color)","zl-popup-color":"var(--zl-default-text-color)","zl-modal-padding":"var(--zl-spacing-2xl)","zl-color-white":"#ffffff","zl-color-black":"#000000","zl-color-light":"#ededed","zl-color-dark":"#151515","zl-color-gray-base":"#d3d5db","zl-color-gray-lightest":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) + 15%))","zl-color-gray-lighter":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) + 10%))","zl-color-gray-light":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) + 5%))","zl-color-gray-dark":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) - 20%))","zl-color-gray-darker":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) - 40%))","zl-color-gray-darkest":"hsl(var(--zl-color-gray-hsl-h),var(--zl-color-gray-hsl-s),calc(var(--zl-color-gray-hsl-l) - 60%))","zl-color-primary-base":"#3870db","zl-color-primary-decent":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) + 35%))","zl-color-primary-light":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) + 5%))","zl-color-primary-dark":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) - 5%))","zl-color-primary-text":"var(--zl-color-white)","zl-color-success-base":"#94ca42","zl-color-success-decent":"hsl(var(--zl-color-success-hsl-h),var(--zl-color-success-hsl-s),calc(var(--zl-color-success-hsl-l) + 35%))","zl-color-success-light":"hsl(var(--zl-color-success-hsl-h),var(--zl-color-success-hsl-s),calc(var(--zl-color-success-hsl-l) + 5%))","zl-color-success-dark":"hsl(var(--zl-color-success-hsl-h),var(--zl-color-success-hsl-s),calc(var(--zl-color-success-hsl-l) - 10%))","zl-color-success-text":"var(--zl-color-light)","zl-color-warning-base":"#e87b35","zl-color-warning-decent":"hsl(var(--zl-color-warning-hsl-h),var(--zl-color-warning-hsl-s),calc(var(--zl-color-warning-hsl-l) + 35%))","zl-color-warning-light":"hsl(var(--zl-color-warning-hsl-h),var(--zl-color-warning-hsl-s),calc(var(--zl-color-warning-hsl-l) + 5%))","zl-color-warning-dark":"hsl(var(--zl-color-warning-hsl-h),var(--zl-color-warning-hsl-s),calc(var(--zl-color-warning-hsl-l) - 10%))","zl-color-warning-text":"var(--zl-color-light)","zl-color-error-base":"#dd524c","zl-color-error-decent":"hsl(var(--zl-color-error-hsl-h),var(--zl-color-error-hsl-s),calc(var(--zl-color-error-hsl-l) + 35%))","zl-color-error-light":"hsl(var(--zl-color-error-hsl-h),var(--zl-color-error-hsl-s),calc(var(--zl-color-error-hsl-l) + 5%))","zl-color-error-dark":"hsl(var(--zl-color-error-hsl-h),var(--zl-color-error-hsl-s),calc(var(--zl-color-error-hsl-l) - 10%))","zl-color-error-text":"var(--zl-color-light)","zl-color-buy-base":"#94ca42","zl-color-sell-base":"#dd524c","zl-input-placeholder-color":"var(--zl-color-gray-darker)","zl-color-outline":"var(--zl-color-primary-light)","zl-font-family":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji","zl-font-size-base":"var(--zl-default-base-rem)","zl-font-size-2xs":"calc(var(--zl-font-size-base) * 0.65)","zl-font-size-xs":"calc(var(--zl-font-size-base) * 0.75)","zl-font-size-sm":"calc(var(--zl-font-size-base) * 0.85)","zl-font-size-md":"calc(var(--zl-font-size-base) * 1)","zl-font-size-lg":"calc(var(--zl-font-size-base) * 1.25)","zl-font-size-xl":"calc(var(--zl-font-size-base) * 1.5)","zl-font-size-2xl":"calc(var(--zl-font-size-base) * 1.75)","zl-font-size-3xl":"calc(var(--zl-font-size-base) * 2)","zl-font-size-4xl":"calc(var(--zl-font-size-base) * 2.25)","zl-font-size-5xl":"calc(var(--zl-font-size-base) * 2.5)","zl-font-size-6xl":"calc(var(--zl-font-size-base) * 2.75)","zl-font-weight-light":"300","zl-font-weight-normal":"400","zl-font-weight-medium":"500","zl-font-weight-semibold":"600","zl-font-weight-bold":"700","zl-font-weight-extrabold":"800","zl-link-underline-offset":"3px","zl-size-xs":"320px","zl-size-sm":"480px","zl-size-md":"768px","zl-size-lg":"1024px","zl-size-xl":"1280px","zl-size-2xl":"1680px","zl-size-3xl":"1920px","zl-spacing-base":"var(--zl-default-base-rem)","zl-spacing-xs":"calc(var(--zl-spacing-base) * 0.125)","zl-spacing-sm":"calc(var(--zl-spacing-base) * 0.25)","zl-spacing-md":"calc(var(--zl-spacing-base) * 0.5)","zl-spacing-lg":"calc(var(--zl-spacing-base) * 0.75)","zl-spacing-xl":"calc(var(--zl-spacing-base) * 1)","zl-spacing-2xl":"calc(var(--zl-spacing-base) * 1.5)","zl-spacing-3xl":"calc(var(--zl-spacing-base) * 2.5)","zl-spacing-4xl":"calc(var(--zl-spacing-base) * 3.5)","zl-gap-base":"var(--zl-default-base-rem)","zl-gap-xs":"calc(var(--zl-gap-base) * 0.125)","zl-gap-sm":"calc(var(--zl-gap-base) * 0.25)","zl-gap-md":"calc(var(--zl-gap-base) * 0.5)","zl-gap-lg":"calc(var(--zl-gap-base) * 0.75)","zl-gap-xl":"calc(var(--zl-gap-base) * 1)","zl-gap-2xl":"calc(var(--zl-gap-base) * 1.5)","zl-gap-3xl":"calc(var(--zl-gap-base) * 2.5)","zl-gap-4xl":"calc(var(--zl-gap-base) * 3.5)","zl-btn-background-image":"none","zl-btn-hover-background-image":"none","zl-gap-form":"var(--zl-gap-base)","zl-form-item-margin":"0","zl-form-item-padding-x":"0","zl-form-item-padding-y":"0","zl-form-item-border":"var(--zl-default-border-radius)","zl-form-item-border-radius":"0","zl-form-item-focus-within-outline-position":"","zl-form-item-focus-within-outline-color":"var(--zl-color-outline)","zl-form-item-focus-within-outline-width":"0","zl-order-shortview-background-gradient-start":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) + 10%))","zl-order-shortview-background-gradient-stop":"var(--zl-color-primary-base)","zl-order-shortview-background-gradient-end":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) - 10%))","zl-order-shortview-background-image":"linear-gradient(to bottom right, var(--zl-order-shortview-background-gradient-start), var(--zl-order-shortview-background-gradient-stop), var(--zl-order-shortview-background-gradient-end))","zl-order-shortview-tile-background-color":"hsl(var(--zl-color-primary-hsl-h),var(--zl-color-primary-hsl-s),calc(var(--zl-color-primary-hsl-l) + 15%))","zl-order-shortview-color-prio-one":"var(--zl-color-white)","zl-order-shortview-color-prio-two":"var(--zl-color-gray-lighter)","zl-order-toggle-buy-background-color":"var(--zl-color-gray-lighter)","zl-order-toggle-buy-color":"var(--zl-color-dark)","zl-order-toggle-buy-selected-background-color":"var(--zl-color-buy-base)","zl-order-toggle-buy-selected-color":"var(--zl-color-white)","zl-order-toggle-sell-background-color":"var(--zl-color-gray-lighter)","zl-order-toggle-sell-color":"var(--zl-color-dark)","zl-order-toggle-sell-selected-background-color":"var(--zl-color-sell-base)","zl-order-toggle-sell-selected-color":"var(--zl-color-white)","zl-label-color":"var(--zl-default-text-color)","zl-label-font-size":"var(--zl-font-size-xs)","zl-label-font-weight":"var(--zl-font-weight-normal)","zl-input-background-color":"var(--zl-color-gray-lightest)","zl-input-border-color":"var(--zl-default-border-color)","zl-input-border-radius":"var(--zl-default-border-radius)","zl-input-border-style":"solid","zl-input-border-width":"var(--zl-default-border-width)","zl-input-color":"var(--zl-default-text-color)","zl-input-focus-border-color":"","zl-input-focus-error-border-color":"var(--zl-color-error-base)","zl-input-font-size":"var(--zl-font-size-xs)","zl-input-padding-x":"var(--zl-spacing-lg)","zl-input-padding-y":"var(--zl-spacing-md)","zl-input-font-size-mobile":"16px","zl-input-with-dropdown-background-color":"var(--zl-color-gray-light)","zl-input-with-dropdown-border-top-left-radius":"0","zl-input-with-dropdown-border-bottom-left-radius":"0","zl-input-with-dropdown-border-top-right-radius":"var(--zl-default-border-radius)","zl-input-with-dropdown-border-bottom-right-radius":"var(--zl-default-border-radius)","zl-select-background-color":"var(--zl-color-gray-lightest)","zl-select-border-style":"solid","zl-select-padding-x":"var(--zl-default-padding-x)","zl-select-font-size":"var(--zl-input-font-size)","zl-border-radius-none":"0","zl-border-radius-sm":"0.125rem","zl-border-radius-md":"0.375rem","zl-border-radius-lg":"0.5rem","zl-border-radius-xl":"0.75rem","zl-border-radius-2xl":"1rem","zl-border-radius-3xl":"1.5rem","zl-border-radius-full":"9999px","zl-table-padding-x":"var(--zl-spacing-md)","zl-table-padding-y":"var(--zl-spacing-sm)","zl-table-th-background-color":"var(--zl-color-gray-lighter)","zl-table-th-color":"var(--zl-default-text-color)","zl-table-color":"var(--zl-default-text-color)","zl-table-empty-icon-color":"var(--zl-color-gray-light)","zl-table-box-shadow":"none","zl-table-border":"none","zl-table-scroll-overflow-color-solid-base":"var(--zl-app-background-color)","zl-table-scroll-overflow-color-fade-base":"#000000","zl-box-shadow-sm":"0 1px 2px 0 rgb(0 0 0 / 0.05)","zl-box-shadow-md":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","zl-box-shadow-lg":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","zl-box-shadow-xl":"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","zl-box-shadow-2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)"},bn={layout:"columns",logoStyle:"light",tokens:{}};function uc(t){const e=t-1;return e*e*e+1}function ai(t,{delay:e=0,duration:n=400,easing:r=ri}={}){const i=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:r,css:o=>`opacity: ${o*i}`}}function b2(t,{delay:e=0,duration:n=400,easing:r=uc,x:i=0,y:o=0,opacity:l=0}={}){const a=getComputedStyle(t),s=+a.opacity,u=a.transform==="none"?"":a.transform,c=s*(1-l),[f,d]=Wu(i),[m,h]=Wu(o);return{delay:e,duration:n,easing:r,css:(p,v)=>`
7
+ transform: ${u} translate(${(1-p)*f}${d}, ${(1-p)*m}${h});
8
+ opacity: ${s-c*v}`}}/**
9
+ * @license lucide-svelte v0.379.0 - ISC
10
+ *
11
+ * This source code is licensed under the ISC license.
12
+ * See the LICENSE file in the root directory of this source tree.
13
+ */const cc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function fc(t,e,n){const r=t.slice();return r[11]=e[n][0],r[12]=e[n][1],r}function $a(t){let e,n=[t[12]],r={};for(let i=0;i<n.length;i+=1)r=ve(r,n[i]);return{c(){e=lo(t[11]),Zo(e,r)},m(i,o){L(i,e,o)},p(i,o){Zo(e,r=ut(n,[o&32&&i[12]]))},d(i){i&&E(e)}}}function dc(t){let e=t[11],n,r=t[11]&&$a(t);return{c(){r&&r.c(),n=Xe()},m(i,o){r&&r.m(i,o),L(i,n,o)},p(i,o){i[11]?e?Ae(e,i[11])?(r.d(1),r=$a(i),e=i[11],r.c(),r.m(n.parentNode,n)):r.p(i,o):(r=$a(i),e=i[11],r.c(),r.m(n.parentNode,n)):e&&(r.d(1),r=null,e=i[11])},d(i){i&&E(n),r&&r.d(i)}}}function v2(t){let e,n,r,i,o,l=At(t[5]),a=[];for(let d=0;d<l.length;d+=1)a[d]=dc(fc(t,l,d));const s=t[10].default,u=ht(s,t,t[9],null);let c=[cc,t[7],{width:t[2]},{height:t[2]},{stroke:t[1]},{"stroke-width":r=t[4]?Number(t[3])*24/Number(t[2]):t[3]},{class:i=t[6]("lucide-icon","lucide",t[0]?`lucide-${t[0]}`:"",t[8].class)}],f={};for(let d=0;d<c.length;d+=1)f=ve(f,c[d]);return{c(){e=lo("svg");for(let d=0;d<a.length;d+=1)a[d].c();n=Xe(),u&&u.c(),Zo(e,f)},m(d,m){L(d,e,m);for(let h=0;h<a.length;h+=1)a[h]&&a[h].m(e,null);V(e,n),u&&u.m(e,null),o=!0},p(d,[m]){if(m&32){l=At(d[5]);let h;for(h=0;h<l.length;h+=1){const p=fc(d,l,h);a[h]?a[h].p(p,m):(a[h]=dc(p),a[h].c(),a[h].m(e,n))}for(;h<a.length;h+=1)a[h].d(1);a.length=l.length}u&&u.p&&(!o||m&512)&&gt(u,s,d,d[9],o?mt(s,d[9],m,null):pt(d[9]),null),Zo(e,f=ut(c,[cc,m&128&&d[7],(!o||m&4)&&{width:d[2]},(!o||m&4)&&{height:d[2]},(!o||m&2)&&{stroke:d[1]},(!o||m&28&&r!==(r=d[4]?Number(d[3])*24/Number(d[2]):d[3]))&&{"stroke-width":r},(!o||m&257&&i!==(i=d[6]("lucide-icon","lucide",d[0]?`lucide-${d[0]}`:"",d[8].class)))&&{class:i}]))},i(d){o||(g(u,d),o=!0)},o(d){b(u,d),o=!1},d(d){d&&E(e),Mn(a,d),u&&u.d(d)}}}function _2(t,e,n){const r=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let i=Dn(e,r),{$$slots:o={},$$scope:l}=e,{name:a=void 0}=e,{color:s="currentColor"}=e,{size:u=24}=e,{strokeWidth:c=2}=e,{absoluteStrokeWidth:f=!1}=e,{iconNode:d}=e;const m=(...h)=>h.filter((p,v,w)=>!!p&&w.indexOf(p)===v).join(" ");return t.$$set=h=>{n(8,e=ve(ve({},e),je(h))),n(7,i=Dn(e,r)),"name"in h&&n(0,a=h.name),"color"in h&&n(1,s=h.color),"size"in h&&n(2,u=h.size),"strokeWidth"in h&&n(3,c=h.strokeWidth),"absoluteStrokeWidth"in h&&n(4,f=h.absoluteStrokeWidth),"iconNode"in h&&n(5,d=h.iconNode),"$$scope"in h&&n(9,l=h.$$scope)},e=je(e),[a,s,u,c,f,d,m,i,e,l,o]}class Ln extends Ne{constructor(e){super(),Ee(this,e,_2,v2,Ae,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}get name(){return this.$$.ctx[0]}set name(e){this.$$set({name:e}),C()}get color(){return this.$$.ctx[1]}set color(e){this.$$set({color:e}),C()}get size(){return this.$$.ctx[2]}set size(e){this.$$set({size:e}),C()}get strokeWidth(){return this.$$.ctx[3]}set strokeWidth(e){this.$$set({strokeWidth:e}),C()}get absoluteStrokeWidth(){return this.$$.ctx[4]}set absoluteStrokeWidth(e){this.$$set({absoluteStrokeWidth:e}),C()}get iconNode(){return this.$$.ctx[5]}set iconNode(e){this.$$set({iconNode:e}),C()}}Le(Ln,{name:{},color:{},size:{},strokeWidth:{},absoluteStrokeWidth:{type:"Boolean"},iconNode:{}},["default"],[],!0);function y2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function k2(t){let e,n;const r=[{name:"octagon-x"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[y2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function w2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class hc extends Ne{constructor(e){super(),Ee(this,e,w2,k2,Ae,{})}}Le(hc,{},["default"],[],!0);function S2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function T2(t){let e,n;const r=[{name:"circle-check"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[S2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function z2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class mc extends Ne{constructor(e){super(),Ee(this,e,z2,T2,Ae,{})}}Le(mc,{},["default"],[],!0);function C2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function O2(t){let e,n;const r=[{name:"triangle-alert"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[C2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function I2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class gc extends Ne{constructor(e){super(),Ee(this,e,I2,O2,Ae,{})}}Le(gc,{},["default"],[],!0);function A2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function D2(t){let e,n;const r=[{name:"list"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[A2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function M2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["line",{x1:"8",x2:"21",y1:"6",y2:"6"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class pc extends Ne{constructor(e){super(),Ee(this,e,M2,D2,Ae,{})}}Le(pc,{},["default"],[],!0);function E2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function L2(t){let e,n;const r=[{name:"table"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[E2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function N2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"M12 3v18"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class bc extends Ne{constructor(e){super(),Ee(this,e,N2,L2,Ae,{})}}Le(bc,{},["default"],[],!0);function P2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function $2(t){let e,n;const r=[{name:"check"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[P2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function R2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"M20 6 9 17l-5-5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class vc extends Ne{constructor(e){super(),Ee(this,e,R2,$2,Ae,{})}}Le(vc,{},["default"],[],!0);function F2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function x2(t){let e,n;const r=[{name:"x"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[F2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function U2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class _c extends Ne{constructor(e){super(),Ee(this,e,U2,x2,Ae,{})}}Le(_c,{},["default"],[],!0);function B2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function q2(t){let e,n;const r=[{name:"rotate-cw"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[B2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function V2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class yc extends Ne{constructor(e){super(),Ee(this,e,V2,q2,Ae,{})}}Le(yc,{},["default"],[],!0);function J2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function H2(t){let e,n;const r=[{name:"plus"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[J2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function W2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class kc extends Ne{constructor(e){super(),Ee(this,e,W2,H2,Ae,{})}}Le(kc,{},["default"],[],!0);function Y2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function G2(t){let e,n;const r=[{name:"ellipsis-vertical"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[Y2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function K2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class wc extends Ne{constructor(e){super(),Ee(this,e,K2,G2,Ae,{})}}Le(wc,{},["default"],[],!0);function Q2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function j2(t){let e,n;const r=[{name:"info"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[Q2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function X2(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Sc extends Ne{constructor(e){super(),Ee(this,e,X2,j2,Ae,{})}}Le(Sc,{},["default"],[],!0);function Z2(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function eS(t){let e,n;const r=[{name:"chevrons-up-down"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[Z2]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function tS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m7 15 5 5 5-5"}],["path",{d:"m7 9 5-5 5 5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Tc extends Ne{constructor(e){super(),Ee(this,e,tS,eS,Ae,{})}}Le(Tc,{},["default"],[],!0);function nS(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function rS(t){let e,n;const r=[{name:"chevrons-up"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[nS]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function iS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m17 11-5-5-5 5"}],["path",{d:"m17 18-5-5-5 5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class zc extends Ne{constructor(e){super(),Ee(this,e,iS,rS,Ae,{})}}Le(zc,{},["default"],[],!0);function oS(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function lS(t){let e,n;const r=[{name:"chevrons-down"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[oS]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function aS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m7 6 5 5 5-5"}],["path",{d:"m7 13 5 5 5-5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Cc extends Ne{constructor(e){super(),Ee(this,e,aS,lS,Ae,{})}}Le(Cc,{},["default"],[],!0);function sS(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function uS(t){let e,n;const r=[{name:"chevron-right"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[sS]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function cS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m9 18 6-6-6-6"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Oc extends Ne{constructor(e){super(),Ee(this,e,cS,uS,Ae,{})}}Le(Oc,{},["default"],[],!0);function fS(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function dS(t){let e,n;const r=[{name:"chevron-left"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[fS]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function hS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m15 18-6-6 6-6"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Ic extends Ne{constructor(e){super(),Ee(this,e,hS,dS,Ae,{})}}Le(Ic,{},["default"],[],!0);function mS(t){let e;const n=t[2].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function gS(t){let e,n;const r=[{name:"arrow-left"},t[1],{iconNode:t[0]}];let i={$$slots:{default:[mS]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ln({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&3?ut(r,[r[0],l&2&&kt(o[1]),l&1&&{iconNode:o[0]}]):{};l&8&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function pS(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]];return t.$$set=l=>{n(1,e=ve(ve({},e),je(l))),"$$scope"in l&&n(3,i=l.$$scope)},e=je(e),[o,e,r,i]}class Ac extends Ne{constructor(e){super(),Ee(this,e,pS,gS,Ae,{})}}Le(Ac,{},["default"],[],!0);const an={ArrowLeft:Ac,ChevronLeft:Ic,ChevronRight:Oc,ChevronsDown:Cc,ChevronsUp:zc,ChevronsUpDown:Tc,Info:Sc,MoreVertical:wc,Plus:kc,RotateCw:yc,X:_c,Check:vc,Table:bc,List:pc,AlertTriangle:gc,CheckCircle:mc,XOctagon:hc};class bS extends Ne{constructor(e){super(),Ee(this,e,null,null,Ae,{})}}Le(bS,{},[],[],!0);function vS(t){yt(t,"svelte-1cvabaw",`.zl-btn.svelte-1cvabaw.svelte-1cvabaw{align-items:center;border-color:var(--zl-btn-border-color, var(--zl-color-primary-base));border-radius:var(--zl-btn-border-radius, var(--zl-default-border-radius));border-width:var(--zl-btn-border-width, 1px);display:inline-flex;flex-direction:column;flex-shrink:0;font-family:var(--zl-font-family), sans-serif;gap:var(--zl-spacing-sm);inline-size:fit-content;justify-content:center;max-inline-size:100%;text-align:center}.zl-btn.svelte-1cvabaw.svelte-1cvabaw:not(.zl-btn-outlined){border-style:var(--zl-btn-border-style, solid)}.zl-btn.svelte-1cvabaw>*{color:inherit;flex-shrink:1;min-width:0}.zl-btn.zl-btn-progress.svelte-1cvabaw.svelte-1cvabaw::after{content:'';display:block;height:var(--zl-btn-progessbar-height);position:absolute;z-index:var(--zl-z-index-content);width:100%;left:0;bottom:0;right:0;transform-origin:0 0;background-color:var(--zl-btn-countdown-bar-color, var(--zl-color-primary-text));animation:svelte-1cvabaw-progress calc(var(--zl-countdown-duration-static) * 1s) linear forwards}.zl-btn[aria-disabled='true'].svelte-1cvabaw.svelte-1cvabaw,.zl-btn[disabled].svelte-1cvabaw.svelte-1cvabaw{opacity:51%}.zl-btn[aria-disabled='true'].svelte-1cvabaw.svelte-1cvabaw:active,.zl-btn[disabled].svelte-1cvabaw.svelte-1cvabaw:active{pointer-events:none}.zl-btn[aria-disabled='true'].svelte-1cvabaw.svelte-1cvabaw:hover,.zl-btn[disabled].svelte-1cvabaw.svelte-1cvabaw:hover{cursor:not-allowed;-webkit-user-select:none;user-select:none}.zl-btn[aria-disabled='true'].svelte-1cvabaw.svelte-1cvabaw:active{pointer-events:all}.zl-btn.zl-btn-active.svelte-1cvabaw.svelte-1cvabaw{font-weight:bold}.zl-btn.svelte-1cvabaw .zl-btn-inner.svelte-1cvabaw{color:inherit;flex:0 1 100%;display:flex;gap:var(--zl-spacing-sm);justify-content:center;align-items:center}.zl-btn.svelte-1cvabaw .zlc-icon{stroke-width:2px}.zl-btn.zl-no-padding.svelte-1cvabaw.svelte-1cvabaw{padding:0 !important}.zl-btn-default.svelte-1cvabaw.svelte-1cvabaw{background-color:var(--zl-btn-background-color, var(--zl-color-primary-base));background-image:var(--zl-btn-background-image, none);color:var(--zl-btn-default-color, var(--zl-color-primary-text))}.zl-btn-default.svelte-1cvabaw.svelte-1cvabaw:focus-visible{background-color:var(--zl-btn-focus-color, var(--zl-color-primary-dark));background-image:var(--zl-btn-focus-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));outline:solid var(--zl-color-primary-light) 1px}.zl-btn-default.svelte-1cvabaw.svelte-1cvabaw:hover{background-color:var(--zl-btn-hover-background-color, var(--zl-color-primary-light));background-image:var(--zl-btn-hover-background-image, var(--zl-btn-background-image));box-shadow:var(--zl-btn-hover-box-shadow, var(--zl-box-shadow-md));color:var(--zl-btn-hover-color, var(--zl-color-primary-text))}.zl-btn-default.svelte-1cvabaw.svelte-1cvabaw:active{background-color:var(--zl-btn-active-background-color, var(--zl-color-primary-dark));background-image:var(--zl-btn-active-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));box-shadow:none}.zl-btn-outlined.svelte-1cvabaw.svelte-1cvabaw{border-style:solid;color:var(--zl-btn-outlined-color, var(--zl-color-primary-base))}.zl-btn-outlined.svelte-1cvabaw.svelte-1cvabaw:focus-visible{background-color:var(--zl-btn-background-color, var(--zl-color-primary-base));background-image:var(--zl-btn-focus-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));outline:solid var(--zl-color-primary-light) 1px}.zl-btn-outlined.svelte-1cvabaw.svelte-1cvabaw:hover{background-color:var(--zl-btn-background-color, var(--zl-color-primary-light));background-image:var(--zl-btn-hover-background-image, var(--zl-btn-background-image));box-shadow:var(--zl-btn-hover-box-shadow, var(--zl-box-shadow-md));color:var(--zl-btn-hover-color, var(--zl-color-primary-text))}.zl-btn-outlined.svelte-1cvabaw.svelte-1cvabaw:active{background-color:var(--zl-btn-active-background-color, var(--zl-color-primary-dark));background-image:var(--zl-btn-active-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));box-shadow:none}.zl-btn-muted.svelte-1cvabaw.svelte-1cvabaw{color:var(--zl-btn-muted-color, var(--zl-default-text-color))}.zl-btn-muted.svelte-1cvabaw.svelte-1cvabaw:not(:hover):not(:active){border-color:transparent}.zl-btn-muted.svelte-1cvabaw.svelte-1cvabaw:focus-visible{background-color:var(--zl-btn-focus-color, var(--zl-color-primary-dark));background-image:var(--zl-btn-focus-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));outline:solid var(--zl-color-primary-light) 1px}.zl-btn-muted.svelte-1cvabaw.svelte-1cvabaw:hover{background-color:var(--zl-btn-hover-background-color, var(--zl-color-primary-light));background-image:var(--zl-btn-hover-background-image, var(--zl-btn-background-image));box-shadow:var(--zl-btn-hover-box-shadow, var(--zl-box-shadow-md));color:var(--zl-btn-hover-color, var(--zl-color-primary-text))}.zl-btn-muted.svelte-1cvabaw.svelte-1cvabaw:active{background-color:var(--zl-btn-active-background-color, var(--zl-color-primary-dark));background-image:var(--zl-btn-active-background-image, var(--zl-btn-background-image));color:var(--zl-btn-hover-color, var(--zl-color-primary-text));box-shadow:none}.zl-btn-unrecognizable.svelte-1cvabaw.svelte-1cvabaw{border-color:transparent}.zl-btn-width-full.svelte-1cvabaw.svelte-1cvabaw{width:100%}.zl-btn-height-full.svelte-1cvabaw.svelte-1cvabaw{height:100%}.zl-btn-sm.svelte-1cvabaw.svelte-1cvabaw{font-size:var(--zl-btn-sm-font-size, var(--zl-font-size-xs));padding-inline:var(--zl-btn-sm-padding-x, var(--zl-spacing-lg));padding-block:var(--zl-btn-sm-padding-y, var(--zl-spacing-md))}.zl-btn-md.svelte-1cvabaw.svelte-1cvabaw{font-size:var(--zl-btn-md-font-size, var(--zl-font-size-sm));padding-inline:var(--zl-btn-md-padding-x, var(--zl-spacing-xl));padding-block:var(--zl-btn-md-padding-y, var(--zl-spacing-md))}.zl-btn-md.svelte-1cvabaw .zl-btn-inner.svelte-1cvabaw{min-height:16px}@media(max-width: 768px){.zl-btn-md.svelte-1cvabaw.svelte-1cvabaw{font-size:var(--zl-btn-lg-font-size, var(--zl-font-size-base));padding-inline:var(--zl-btn-lg-padding-x, var(--zl-spacing-2xl));padding-block:var(--zl-btn-lg-padding-y, var(--zl-spacing-lg))
14
+ }}.zl-btn-lg.svelte-1cvabaw.svelte-1cvabaw{font-size:var(--zl-btn-lg-font-size, var(--zl-font-size-base));padding-inline:var(--zl-btn-lg-padding-x, var(--zl-spacing-2xl));padding-block:var(--zl-btn-lg-padding-y, var(--zl-spacing-lg))}.zl-btn-subtext.svelte-1cvabaw.svelte-1cvabaw{font-size:var(--zl-font-size-2xs)}.zl-btn-text.svelte-1cvabaw.svelte-1cvabaw{line-height:1.1425}.zlc-invisible.svelte-1cvabaw.svelte-1cvabaw{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.zl-btn-countdown.svelte-1cvabaw.svelte-1cvabaw{color:inherit;display:inline-flex;line-height:1em;overflow:hidden}.zl-btn-countdown.svelte-1cvabaw>.svelte-1cvabaw{color:inherit;height:1em;display:inline-block;overflow-y:hidden}.zl-btn-countdown.svelte-1cvabaw>.svelte-1cvabaw:before{color:#fff;position:relative;content:'00\\A 01\\A 02\\A 03\\A 04\\A 05\\A 06\\A 07\\A 08\\A 09\\A 10\\A 11\\A 12\\A 13\\A 14\\A 15\\A 16\\A 17\\A 18\\A 19\\A 20\\A 21\\A 22\\A 23\\A 24\\A 25\\A 26\\A 27\\A 28\\A 29\\A 30\\A 31\\A 32\\A 33\\A 34\\A 35\\A 36\\A 37\\A 38\\A 39\\A 40\\A 41\\A 42\\A 43\\A 44\\A 45\\A 46\\A 47\\A 48\\A 49\\A 50\\A 51\\A 52\\A 53\\A 54\\A 55\\A 56\\A 57\\A 58\\A 59\\A 60\\A 61\\A 62\\A 63\\A 64\\A 65\\A 66\\A 67\\A 68\\A 69\\A 70\\A 71\\A 72\\A 73\\A 74\\A 75\\A 76\\A 77\\A 78\\A 79\\A 80\\A 81\\A 82\\A 83\\A 84\\A 85\\A 86\\A 87\\A 88\\A 89\\A 90\\A 91\\A 92\\A 93\\A 94\\A 95\\A 96\\A 97\\A 98\\A 99\\A';white-space:pre;top:calc(var(--zl-countdown-duration) * -1em);text-align:center;transition:all 1s cubic-bezier(1, 0, 0, 1)}.zl-btn-condensed.svelte-1cvabaw.svelte-1cvabaw{padding-inline:var(--zl-spacing-lg)}.zl-btn-icon-only.svelte-1cvabaw.svelte-1cvabaw{aspect-ratio:1;padding:var(--zl-spacing-md)}.zl-btn-icon-only.zl-btn-xs.svelte-1cvabaw.svelte-1cvabaw{padding:0}.zl-btn-icon-only.zl-btn-sm.svelte-1cvabaw.svelte-1cvabaw{padding:var(--zl-spacing-md)}.zl-btn-icon-only.zl-btn-lg.svelte-1cvabaw.svelte-1cvabaw{padding:var(--zl-spacing-lg)}@keyframes svelte-1cvabaw-progress{to{transform:scaleX(0)}}`)}function Dc(t){let e,n,r;var i=an[t[4]];function o(l,a){return{props:{class:"zlc-icon",size:l[1]==="sm"?12:16,"stroke-width":l[1]==="sm"?2:1.5}}}return i&&(e=fn(i,o(t))),{c(){e&&F(e.$$.fragment),n=Xe()},m(l,a){e&&$(e,l,a),L(l,n,a),r=!0},p(l,a){if(a&16&&i!==(i=an[l[4]])){if(e){ne();const s=e;b(s.$$.fragment,1,0,()=>{R(s,1)}),re()}i?(e=fn(i,o(l)),F(e.$$.fragment),g(e.$$.fragment,1),$(e,n.parentNode,n)):e=null}else if(i){const s={};a&2&&(s.size=l[1]==="sm"?12:16),a&2&&(s["stroke-width"]=l[1]==="sm"?2:1.5),e.$set(s)}},i(l){r||(e&&g(e.$$.fragment,l),r=!0)},o(l){e&&b(e.$$.fragment,l),r=!1},d(l){l&&E(n),e&&R(e,l)}}}function Mc(t){let e,n,r,i=t[12]&&Ec(t);return{c(){e=W("span"),n=Ie(t[5]),r=j(),i&&i.c(),x(e,"class","zl-btn-text svelte-1cvabaw")},m(o,l){L(o,e,l),V(e,n),V(e,r),i&&i.m(e,null)},p(o,l){l&32&&Ke(n,o[5]),o[12]?i?i.p(o,l):(i=Ec(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&E(e),i&&i.d()}}}function Ec(t){let e,n,r,i;return{c(){e=W("span"),n=Ie(`(
15
+ `),r=W("span"),i=Ie("s)"),x(r,"class","svelte-1cvabaw"),x(e,"role","timer"),x(e,"aria-live","off"),x(e,"class","zl-btn-countdown svelte-1cvabaw"),_n(e,"--zl-countdown-duration",t[12])},m(o,l){L(o,e,l),V(e,n),V(e,r),V(e,i)},p(o,l){l&4096&&_n(e,"--zl-countdown-duration",o[12])},d(o){o&&E(e)}}}function Lc(t){let e,n;return{c(){e=W("span"),n=Ie(t[6]),x(e,"class","zl-btn-subtext svelte-1cvabaw")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&64&&Ke(n,r[6])},d(r){r&&E(e)}}}function _S(t){let e,n,r,i,o,l,a,s,u,c,f,d=t[4]&&an[t[4]]&&Dc(t);const m=t[21].default,h=ht(m,t,t[20],null);let p=t[5]&&Mc(t),v=t[6]&&Lc(t),w=[{class:"zl-btn"},t[16],{disabled:l=t[7]||t[8]},{type:a=t[16].button||(t[0]=="default"?"submit":"button")},{style:s=t[13]?`--zl-countdown-duration-static:${t[13]};`:null}],S={};for(let y=0;y<w.length;y+=1)S=ve(S,w[y]);return{c(){e=W("button"),n=W("span"),d&&d.c(),r=j(),h&&h.c(),i=j(),p&&p.c(),o=j(),v&&v.c(),x(n,"class","zl-btn-inner svelte-1cvabaw"),En(e,S),ke(e,"zl-btn-default",t[0]==="default"),ke(e,"zl-btn-outlined",t[0]==="outlined"),ke(e,"zl-btn-muted",t[0]==="muted"),ke(e,"zl-btn-unrecognizable",t[0]==="unrecognizable"),ke(e,"zl-btn-xs",t[1]==="xs"),ke(e,"zl-btn-sm",t[1]==="sm"),ke(e,"zl-btn-md",t[1]==="md"),ke(e,"zl-btn-lg",t[1]==="lg"),ke(e,"zl-no-padding",t[11]),ke(e,"zl-btn-width-full",t[2]==="full"),ke(e,"zl-btn-height-full",t[3]==="full"),ke(e,"zl-btn-condensed",t[10]),ke(e,"zl-btn-icon-only",t[4]&&!t[5]&&!t[10]),ke(e,"zl-btn-active",t[9]),ke(e,"zl-btn-busy",t[7]),ke(e,"zl-btn-progress",!t[14]&&t[12]),ke(e,"svelte-1cvabaw",!0)},m(y,z){L(y,e,z),V(e,n),d&&d.m(n,null),V(n,r),h&&h.m(n,null),V(n,i),p&&p.m(n,null),V(e,o),v&&v.m(e,null),e.autofocus&&e.focus(),u=!0,c||(f=tt(e,"click",t[15]),c=!0)},p(y,[z]){y[4]&&an[y[4]]?d?(d.p(y,z),z&16&&g(d,1)):(d=Dc(y),d.c(),g(d,1),d.m(n,r)):d&&(ne(),b(d,1,1,()=>{d=null}),re()),h&&h.p&&(!u||z&1048576)&&gt(h,m,y,y[20],u?mt(m,y[20],z,null):pt(y[20]),null),y[5]?p?p.p(y,z):(p=Mc(y),p.c(),p.m(n,null)):p&&(p.d(1),p=null),y[6]?v?v.p(y,z):(v=Lc(y),v.c(),v.m(e,null)):v&&(v.d(1),v=null),En(e,S=ut(w,[{class:"zl-btn"},z&65536&&y[16],(!u||z&384&&l!==(l=y[7]||y[8]))&&{disabled:l},(!u||z&65537&&a!==(a=y[16].button||(y[0]=="default"?"submit":"button")))&&{type:a},(!u||z&8192&&s!==(s=y[13]?`--zl-countdown-duration-static:${y[13]};`:null))&&{style:s}])),ke(e,"zl-btn-default",y[0]==="default"),ke(e,"zl-btn-outlined",y[0]==="outlined"),ke(e,"zl-btn-muted",y[0]==="muted"),ke(e,"zl-btn-unrecognizable",y[0]==="unrecognizable"),ke(e,"zl-btn-xs",y[1]==="xs"),ke(e,"zl-btn-sm",y[1]==="sm"),ke(e,"zl-btn-md",y[1]==="md"),ke(e,"zl-btn-lg",y[1]==="lg"),ke(e,"zl-no-padding",y[11]),ke(e,"zl-btn-width-full",y[2]==="full"),ke(e,"zl-btn-height-full",y[3]==="full"),ke(e,"zl-btn-condensed",y[10]),ke(e,"zl-btn-icon-only",y[4]&&!y[5]&&!y[10]),ke(e,"zl-btn-active",y[9]),ke(e,"zl-btn-busy",y[7]),ke(e,"zl-btn-progress",!y[14]&&y[12]),ke(e,"svelte-1cvabaw",!0)},i(y){u||(g(d),g(h,y),u=!0)},o(y){b(d),b(h,y),u=!1},d(y){y&&E(e),d&&d.d(),h&&h.d(y),p&&p.d(),v&&v.d(),c=!1,f()}}}function yS(t,e,n){const r=["variant","size","width","height","icon","text","subtext","expiration","busy","disabled","active","condensed","noPadding"];let i=Dn(e,r),{$$slots:o={},$$scope:l}=e,{variant:a=null}=e,{size:s="md"}=e,{width:u="auto"}=e,{height:c="auto"}=e,{icon:f=void 0}=e,{text:d=""}=e,{subtext:m=""}=e,h,p=h,{expiration:v=void 0}=e,w=0,S=!1,{busy:y=!1}=e,{disabled:z=!1}=e,{active:O=!1}=e,{condensed:N=!1}=e,{noPadding:U=!1}=e;const A=Bt();function P(J){A("click",J)}let Y;function B(){Y&&clearInterval(Y),requestAnimationFrame(()=>{n(14,S=!1)}),n(19,Y=setInterval(()=>{n(12,h-=1)},1e3))}return t.$$set=J=>{e=ve(ve({},e),je(J)),n(16,i=Dn(e,r)),"variant"in J&&n(0,a=J.variant),"size"in J&&n(1,s=J.size),"width"in J&&n(2,u=J.width),"height"in J&&n(3,c=J.height),"icon"in J&&n(4,f=J.icon),"text"in J&&n(5,d=J.text),"subtext"in J&&n(6,m=J.subtext),"expiration"in J&&n(17,v=J.expiration),"busy"in J&&n(7,y=J.busy),"disabled"in J&&n(8,z=J.disabled),"active"in J&&n(9,O=J.active),"condensed"in J&&n(10,N=J.condensed),"noPadding"in J&&n(11,U=J.noPadding),"$$scope"in J&&n(20,l=J.$$scope)},t.$$.update=()=>{t.$$.dirty&393216&&(v?(n(18,w++,w),n(14,S=!0),n(13,p=Math.round((v.expiresTimestamp-v.startedTimestamp)/1e3)),n(12,h=Math.round((v.expiresTimestamp-Date.now())/1e3))):(n(13,p=0),n(12,h=0))),t.$$.dirty&528384&&h<=0&&Y&&(clearInterval(Y),n(19,Y=null),n(12,h=0)),t.$$.dirty&262144&&w>0&&B()},[a,s,u,c,f,d,m,y,z,O,N,U,h,p,S,P,i,v,w,Y,l,o]}class nt extends Ne{constructor(e){super(),Ee(this,e,yS,_S,Ae,{variant:0,size:1,width:2,height:3,icon:4,text:5,subtext:6,expiration:17,busy:7,disabled:8,active:9,condensed:10,noPadding:11},vS)}get variant(){return this.$$.ctx[0]}set variant(e){this.$$set({variant:e}),C()}get size(){return this.$$.ctx[1]}set size(e){this.$$set({size:e}),C()}get width(){return this.$$.ctx[2]}set width(e){this.$$set({width:e}),C()}get height(){return this.$$.ctx[3]}set height(e){this.$$set({height:e}),C()}get icon(){return this.$$.ctx[4]}set icon(e){this.$$set({icon:e}),C()}get text(){return this.$$.ctx[5]}set text(e){this.$$set({text:e}),C()}get subtext(){return this.$$.ctx[6]}set subtext(e){this.$$set({subtext:e}),C()}get expiration(){return this.$$.ctx[17]}set expiration(e){this.$$set({expiration:e}),C()}get busy(){return this.$$.ctx[7]}set busy(e){this.$$set({busy:e}),C()}get disabled(){return this.$$.ctx[8]}set disabled(e){this.$$set({disabled:e}),C()}get active(){return this.$$.ctx[9]}set active(e){this.$$set({active:e}),C()}get condensed(){return this.$$.ctx[10]}set condensed(e){this.$$set({condensed:e}),C()}get noPadding(){return this.$$.ctx[11]}set noPadding(e){this.$$set({noPadding:e}),C()}}Le(nt,{variant:{},size:{},width:{},height:{},icon:{},text:{},subtext:{},expiration:{},busy:{type:"Boolean"},disabled:{type:"Boolean"},active:{type:"Boolean"},condensed:{type:"Boolean"},noPadding:{type:"Boolean"}},["default"],[],!0);const kS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Ni=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=kS[n[t]&63];return e};function wS(t){yt(t,"svelte-9sy94v",`zl-form-item.svelte-9sy94v.svelte-9sy94v:not(.no-inherit-style){border:var(--zl-form-item-border, none);display:block;margin:var(--zl-form-item-margin, 0);padding-block:var(--zl-form-item-padding-y, 0);padding-inline:var(--zl-form-item-padding-x, 0);border-radius:var(--zl-form-item-border-radius, 0);background:var(--zl-form-item-background-color, transparent)}zl-form-item.svelte-9sy94v.svelte-9sy94v:not(.no-inherit-style):first-of-type{border-top-left-radius:var(--zl-form-item-first-border-radius, var(--zl-form-item-border-radius, 0));border-top-right-radius:var(--zl-form-item-first-border-radius, var(--zl-form-item-border-radius, 0))}zl-form-item.svelte-9sy94v.svelte-9sy94v:not(.no-inherit-style):last-of-type{border-bottom-left-radius:var(--zl-form-item-last-border-radius, var(--zl-form-item-border-radius, 0));border-bottom-right-radius:var(
16
+ --zl-form-item-last-border-radius,
17
+ var(--zl-form-item-border-radius, 0)
18
+ )}zl-form-item.svelte-9sy94v [part='label']{color:var(--zl-label-color);font-size:var(--zl-label-font-size);font-weight:var(--zl-label-font-weight);margin:var(--zl-form-label-margin, 0);overflow-wrap:break-word}.block.svelte-9sy94v.svelte-9sy94v{display:flex !important;flex-direction:column;gap:var(--zl-form-item-gap-y, var(--zl-spacing-sm))}.block.svelte-9sy94v>label{display:block}.columns.svelte-9sy94v.svelte-9sy94v{display:flex !important;flex-wrap:wrap;gap:var(--zl-form-item-gap-x, var(--zl-spacing-md))}.columns.svelte-9sy94v>label{margin-top:var(--zl-input-padding-y);margin-bottom:0;display:block}.columns.svelte-9sy94v>*{flex:1 1 0}[part='input-wrap'].svelte-9sy94v.svelte-9sy94v{align-items:flex-start;display:flex;flex-direction:column;row-gap:var(--zl-spacing-md);position:relative}[part='input-wrap'].svelte-9sy94v .zlc-icon--error{background-color:var(--zl-input-background-color);box-sizing:content-box;color:var(--zl-color-error-base);pointer-events:none;position:absolute;right:var(--zl-default-padding-x);top:var(--zl-default-padding-y)}.messages.svelte-9sy94v.svelte-9sy94v{font-size:var(--zl-font-size-xs)}.item--error.svelte-9sy94v .messages.svelte-9sy94v{color:var(--zl-color-error-base)}.input-group.svelte-9sy94v.svelte-9sy94v{display:grid;grid-template-columns:1fr auto}.input-group.svelte-9sy94v>input{border-top-right-radius:0;border-bottom-right-radius:0}.item--focus.svelte-9sy94v.svelte-9sy94v:focus-within{box-shadow:var(--zl-form-item-focus-within-outline-position) 0 0
19
+ var(--zl-form-item-focus-within-outline-blur, 0) var(--zl-form-item-focus-within-outline-width, 0)
20
+ var(--zl-form-item-focus-within-outline-color, var(--zl-color-outline))}.item--focus.item--error.svelte-9sy94v.svelte-9sy94v:focus-within{box-shadow:var(--zl-form-item-focus-within-outline-position) 0 0
21
+ var(--zl-form-item-focus-within-outline-blur, 0) var(--zl-form-item-focus-within-outline-width, 0)
22
+ var(--zl-color-error-base)}`)}const SS=t=>({}),Nc=t=>({}),TS=t=>({}),Pc=t=>({});function $c(t){let e,n;const r=t[9].error,i=ht(r,t,t[8],Nc),o=i||zS(t);return{c(){e=W("div"),o&&o.c(),x(e,"class","messages svelte-9sy94v")},m(l,a){L(l,e,a),o&&o.m(e,null),n=!0},p(l,a){i?i.p&&(!n||a&256)&&gt(i,r,l,l[8],n?mt(r,l[8],a,SS):pt(l[8]),Nc):o&&o.p&&(!n||a&16)&&o.p(l,n?a:-1)},i(l){n||(g(o,l),n=!0)},o(l){b(o,l),n=!1},d(l){l&&E(e),o&&o.d(l)}}}function zS(t){let e,n,r,i,o,l;var a=an.AlertTriangle;function s(u,c){return{props:{size:16,"stroke-width":2,class:"zlc-icon zlc-icon--error"}}}return a&&(i=fn(a,s())),{c(){e=W("span"),n=Ie(t[4]),r=j(),i&&F(i.$$.fragment),o=Xe()},m(u,c){L(u,e,c),V(e,n),L(u,r,c),i&&$(i,u,c),L(u,o,c),l=!0},p(u,c){if((!l||c&16)&&Ke(n,u[4]),a!==(a=an.AlertTriangle)){if(i){ne();const f=i;b(f.$$.fragment,1,0,()=>{R(f,1)}),re()}a?(i=fn(a,s()),F(i.$$.fragment),g(i.$$.fragment,1),$(i,o.parentNode,o)):i=null}},i(u){l||(i&&g(i.$$.fragment,u),l=!0)},o(u){i&&b(i.$$.fragment,u),l=!1},d(u){u&&(E(e),E(r),E(o)),i&&R(i,u)}}}function CS(t){let e,n,r,i,o,l;const a=t[9].label,s=ht(a,t,t[8],Pc),u=t[9].default,c=ht(u,t,t[8],null);let f=t[1]&&$c(t);return{c(){e=W("zl-form-item"),s&&s.c(),n=j(),r=W("div"),c&&c.c(),i=j(),f&&f.c(),x(r,"part","input-wrap"),x(r,"class","svelte-9sy94v"),ke(r,"input-group",t[3]),ii(e,"class",o=vn(`${t[5]||t[6]}`)+" svelte-9sy94v"),ke(e,"readonly",t[0]),ke(e,"no-inherit-style",t[2]),ke(e,"item--error",t[1]&&!t[2]),ke(e,"item--focus",!t[2])},m(d,m){L(d,e,m),s&&s.m(e,null),V(e,n),V(e,r),c&&c.m(r,null),V(r,i),f&&f.m(r,null),l=!0},p(d,[m]){s&&s.p&&(!l||m&256)&&gt(s,a,d,d[8],l?mt(a,d[8],m,TS):pt(d[8]),Pc),c&&c.p&&(!l||m&256)&&gt(c,u,d,d[8],l?mt(u,d[8],m,null):pt(d[8]),null),d[1]?f?(f.p(d,m),m&2&&g(f,1)):(f=$c(d),f.c(),g(f,1),f.m(r,null)):f&&(ne(),b(f,1,1,()=>{f=null}),re()),(!l||m&8)&&ke(r,"input-group",d[3]),(!l||m&96&&o!==(o=vn(`${d[5]||d[6]}`)+" svelte-9sy94v"))&&ii(e,"class",o),(!l||m&97)&&ke(e,"readonly",d[0]),(!l||m&100)&&ke(e,"no-inherit-style",d[2]),(!l||m&102)&&ke(e,"item--error",d[1]&&!d[2]),(!l||m&100)&&ke(e,"item--focus",!d[2])},i(d){l||(g(s,d),g(c,d),g(f),l=!0)},o(d){b(s,d),b(c,d),b(f),l=!1},d(d){d&&E(e),s&&s.d(d),c&&c.d(d),f&&f.d()}}}function OS(t,e,n){let r,{$$slots:i={},$$scope:o}=e;const l=tn("themeConfig");let{readonly:a=!1}=e,{hasError:s=!1}=e,{hasNoInheritStyles:u=!1}=e,{dropdownCombo:c=!1}=e,{errorText:f=""}=e,d;l.subscribe(h=>n(7,d=h));let{layout:m=null}=e;return t.$$set=h=>{"readonly"in h&&n(0,a=h.readonly),"hasError"in h&&n(1,s=h.hasError),"hasNoInheritStyles"in h&&n(2,u=h.hasNoInheritStyles),"dropdownCombo"in h&&n(3,c=h.dropdownCombo),"errorText"in h&&n(4,f=h.errorText),"layout"in h&&n(5,m=h.layout),"$$scope"in h&&n(8,o=h.$$scope)},t.$$.update=()=>{t.$$.dirty&128&&n(6,r=d==null?void 0:d.layout)},[a,s,u,c,f,m,r,d,o,i]}class si extends Ne{constructor(e){super(),Ee(this,e,OS,CS,Ae,{readonly:0,hasError:1,hasNoInheritStyles:2,dropdownCombo:3,errorText:4,layout:5},wS)}get readonly(){return this.$$.ctx[0]}set readonly(e){this.$$set({readonly:e}),C()}get hasError(){return this.$$.ctx[1]}set hasError(e){this.$$set({hasError:e}),C()}get hasNoInheritStyles(){return this.$$.ctx[2]}set hasNoInheritStyles(e){this.$$set({hasNoInheritStyles:e}),C()}get dropdownCombo(){return this.$$.ctx[3]}set dropdownCombo(e){this.$$set({dropdownCombo:e}),C()}get errorText(){return this.$$.ctx[4]}set errorText(e){this.$$set({errorText:e}),C()}get layout(){return this.$$.ctx[5]}set layout(e){this.$$set({layout:e}),C()}}Le(si,{readonly:{type:"Boolean"},hasError:{type:"Boolean"},hasNoInheritStyles:{type:"Boolean"},dropdownCombo:{type:"Boolean"},errorText:{},layout:{}},["label","default","error"],[],!0);function IS(t){yt(t,"svelte-mia7mj",`label.svelte-mia7mj.svelte-mia7mj{color:var(--zl-checkbox-label-color, var(--zl-label-color));cursor:pointer;display:inline-block;font-size:var(--zl-checkbox-label-font-size, var(--zl-font-size-xs));padding-block:calc(var(--zl-checkbox-label-font-size, var(--zl-font-size-xs)) * 0.4)
23
+ var(--zl-checkbox-label-font-size, var(--zl-font-size-xs));padding-inline:calc(var(--zl-checkbox-check-size, var(--zl-spacing-2xl)) + var(--zl-spacing-md)) 0;position:relative}input.svelte-mia7mj.svelte-mia7mj{min-width:0}input:checked+label.svelte-mia7mj .check.svelte-mia7mj{background-color:var(--zl-checkbox-color, var(--zl-color-primary-base));border-color:var(--zl-checkbox-color, var(--zl-color-primary-base));color:var(--zl-checkbox-contrast-color, var(--zl-color-primary-text))}@media(hover: hover) and (pointer: fine){input:checked:hover+label.svelte-mia7mj .check.svelte-mia7mj{color:var(--zl-checkbox-contrast-color, var(--zl-color-primary-text))}input:checked:hover+label.svelte-mia7mj .check.svelte-mia7mj>svg{opacity:1}input:hover+label.svelte-mia7mj .check.svelte-mia7mj{color:var(--zl-checkbox-color, var(--zl-color-primary-base));border-color:var(--zl-checkbox-color, var(--zl-color-primary-base))}input:hover+label.svelte-mia7mj .check.svelte-mia7mj>svg{opacity:1}}.check.svelte-mia7mj.svelte-mia7mj{align-items:center;border-color:var(--zl-checkbox-color, var(--zl-color-primary-base));border-radius:var(--zl-checkbox-border-radius, var(--zl-border-radius-md));border-style:solid;border-width:var(--zl-checkbox-border-width, 2px);color:transparent;display:flex;height:var(--zl-checkbox-check-size, var(--zl-spacing-2xl));justify-content:center;left:0;top:0;position:absolute;transition:all 100ms ease-in;width:var(--zl-checkbox-check-size, var(--zl-spacing-2xl))}.check.svelte-mia7mj>svg{transform:scale(0.75)}.check.input--error.svelte-mia7mj.svelte-mia7mj{border-color:var(--zl-color-error-base)}.error.svelte-mia7mj.svelte-mia7mj{color:var(--zl-color-error-base)}`)}const AS=t=>({}),Rc=t=>({});function DS(t){let e;return{c(){e=Ie(t[6])},m(n,r){L(n,e,r)},p(n,r){r&64&&Ke(e,n[6])},d(n){n&&E(e)}}}function MS(t){let e;return{c(){e=Ie(t[9])},m(n,r){L(n,e,r)},p(n,r){r&512&&Ke(e,n[9])},d(n){n&&E(e)}}}function ES(t){let e;return{c(){e=W("span"),e.textContent=`${$S}`,x(e,"aria-hidden","true")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function LS(t){let e,n,r,i,o,l,a,s,u,c,f=[{part:"input"},{class:"zlc-invisible"},{type:"checkbox"},{id:t[4]},{name:t[5]},{disabled:t[3]},{required:t[8]},{readOnly:t[10]},{value:t[2]},{checked:t[0]},t[13]],d={};for(let O=0;O<f.length;O+=1)d=ve(d,f[O]);var m=an.Check;function h(O,N){return{props:{class:"zlc-icon",width:16,height:16,"stroke-width":2}}}m&&(o=fn(m,h()));const p=t[15].label,v=ht(p,t,t[20],Rc),w=v||DS(t);function S(O,N){return O[8]?ES:MS}let y=S(t),z=y(t);return{c(){e=W("input"),n=j(),r=W("label"),i=W("span"),o&&F(o.$$.fragment),l=j(),w&&w.c(),a=j(),z.c(),En(e,d),ke(e,"svelte-mia7mj",!0),x(i,"class","check svelte-mia7mj"),x(i,"id",t[1]),ke(i,"input--error",t[11]),x(r,"for",t[4]),x(r,"part","label"),x(r,"class","svelte-mia7mj"),ke(r,"disabled",t[3]),ke(r,"zlc-invisible",t[7]),ke(r,"error",t[11])},m(O,N){L(O,e,N),e.autofocus&&e.focus(),L(O,n,N),L(O,r,N),V(r,i),o&&$(o,i,null),V(r,l),w&&w.m(r,null),V(r,a),z.m(r,null),s=!0,u||(c=[tt(e,"change",t[19]),tt(e,"focus",t[16]),tt(e,"blur",t[17]),tt(e,"change",t[18])],u=!0)},p(O,N){if(En(e,d=ut(f,[{part:"input"},{class:"zlc-invisible"},{type:"checkbox"},(!s||N&16)&&{id:O[4]},(!s||N&32)&&{name:O[5]},(!s||N&8)&&{disabled:O[3]},(!s||N&256)&&{required:O[8]},(!s||N&1024)&&{readOnly:O[10]},(!s||N&4)&&{value:O[2]},(!s||N&1)&&{checked:O[0]},N&8192&&O[13]])),ke(e,"svelte-mia7mj",!0),m!==(m=an.Check)){if(o){ne();const U=o;b(U.$$.fragment,1,0,()=>{R(U,1)}),re()}m?(o=fn(m,h()),F(o.$$.fragment),g(o.$$.fragment,1),$(o,i,null)):o=null}(!s||N&2)&&x(i,"id",O[1]),(!s||N&2048)&&ke(i,"input--error",O[11]),v?v.p&&(!s||N&1048576)&&gt(v,p,O,O[20],s?mt(p,O[20],N,AS):pt(O[20]),Rc):w&&w.p&&(!s||N&64)&&w.p(O,s?N:-1),y===(y=S(O))&&z?z.p(O,N):(z.d(1),z=y(O),z&&(z.c(),z.m(r,null))),(!s||N&16)&&x(r,"for",O[4]),(!s||N&8)&&ke(r,"disabled",O[3]),(!s||N&128)&&ke(r,"zlc-invisible",O[7]),(!s||N&2048)&&ke(r,"error",O[11])},i(O){s||(o&&g(o.$$.fragment,O),g(w,O),s=!0)},o(O){o&&b(o.$$.fragment,O),b(w,O),s=!1},d(O){O&&(E(e),E(n),E(r)),o&&R(o),w&&w.d(O),z.d(),u=!1,pn(c)}}}function NS(t){let e;return{c(){e=Ie(t[12])},m(n,r){L(n,e,r)},p(n,r){r&4096&&Ke(e,n[12])},d(n){n&&E(e)}}}function PS(t){let e,n;return e=new si({props:{hasError:t[11],layout:"block",errorText:t[12],hasNoInheritStyles:!0,$$slots:{error:[NS],default:[LS]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&2048&&(o.hasError=r[11]),i&4096&&(o.errorText=r[12]),i&1064959&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}let $S="*";function RS(t,e,n){const r=["e2e_id","value","checked","disabled","indeterminate","id","name","label","hideLabel","required","optionalText","readonly","hasError","errorText"];let i=Dn(e,r),{$$slots:o={},$$scope:l}=e,{e2e_id:a=void 0}=e,{value:s=null}=e,{checked:u=!1}=e,{disabled:c=!1}=e,{indeterminate:f=!1}=e,{id:d="zl-"+Ni(10)}=e,{name:m=void 0}=e,{label:h=""}=e,{hideLabel:p=!1}=e,{required:v=!1}=e,{optionalText:w=""}=e,{readonly:S=!1}=e,{hasError:y=!1}=e,{errorText:z=""}=e;function O(P){qe.call(this,t,P)}function N(P){qe.call(this,t,P)}function U(P){qe.call(this,t,P)}const A=()=>{n(0,u=!u)};return t.$$set=P=>{e=ve(ve({},e),je(P)),n(13,i=Dn(e,r)),"e2e_id"in P&&n(1,a=P.e2e_id),"value"in P&&n(2,s=P.value),"checked"in P&&n(0,u=P.checked),"disabled"in P&&n(3,c=P.disabled),"indeterminate"in P&&n(14,f=P.indeterminate),"id"in P&&n(4,d=P.id),"name"in P&&n(5,m=P.name),"label"in P&&n(6,h=P.label),"hideLabel"in P&&n(7,p=P.hideLabel),"required"in P&&n(8,v=P.required),"optionalText"in P&&n(9,w=P.optionalText),"readonly"in P&&n(10,S=P.readonly),"hasError"in P&&n(11,y=P.hasError),"errorText"in P&&n(12,z=P.errorText),"$$scope"in P&&n(20,l=P.$$scope)},[u,a,s,c,d,m,h,p,v,w,S,y,z,i,f,o,O,N,U,A,l]}class Fc extends Ne{constructor(e){super(),Ee(this,e,RS,PS,Ae,{e2e_id:1,value:2,checked:0,disabled:3,indeterminate:14,id:4,name:5,label:6,hideLabel:7,required:8,optionalText:9,readonly:10,hasError:11,errorText:12},IS)}get e2e_id(){return this.$$.ctx[1]}set e2e_id(e){this.$$set({e2e_id:e}),C()}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),C()}get checked(){return this.$$.ctx[0]}set checked(e){this.$$set({checked:e}),C()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),C()}get indeterminate(){return this.$$.ctx[14]}set indeterminate(e){this.$$set({indeterminate:e}),C()}get id(){return this.$$.ctx[4]}set id(e){this.$$set({id:e}),C()}get name(){return this.$$.ctx[5]}set name(e){this.$$set({name:e}),C()}get label(){return this.$$.ctx[6]}set label(e){this.$$set({label:e}),C()}get hideLabel(){return this.$$.ctx[7]}set hideLabel(e){this.$$set({hideLabel:e}),C()}get required(){return this.$$.ctx[8]}set required(e){this.$$set({required:e}),C()}get optionalText(){return this.$$.ctx[9]}set optionalText(e){this.$$set({optionalText:e}),C()}get readonly(){return this.$$.ctx[10]}set readonly(e){this.$$set({readonly:e}),C()}get hasError(){return this.$$.ctx[11]}set hasError(e){this.$$set({hasError:e}),C()}get errorText(){return this.$$.ctx[12]}set errorText(e){this.$$set({errorText:e}),C()}}Le(Fc,{e2e_id:{},value:{},checked:{type:"Boolean"},disabled:{type:"Boolean"},indeterminate:{type:"Boolean"},id:{},name:{},label:{},hideLabel:{type:"Boolean"},required:{type:"Boolean"},optionalText:{},readonly:{type:"Boolean"},hasError:{type:"Boolean"},errorText:{}},["label"],[],!0);function FS(t){yt(t,"svelte-o1yxeb","a.svelte-o1yxeb{text-decoration:underline}")}function xS(t){let e,n,r,i,o;const l=t[6].default,a=ht(l,t,t[5],null);return{c(){e=W("a"),a&&a.c(),x(e,"class",n=vn(t[0])+" svelte-o1yxeb")},m(s,u){L(s,e,u),a&&a.m(e,null),r=!0,i||(o=tt(e,"click",t[1]),i=!0)},p(s,[u]){a&&a.p&&(!r||u&32)&&gt(a,l,s,s[5],r?mt(l,s[5],u,null):pt(s[5]),null),(!r||u&1&&n!==(n=vn(s[0])+" svelte-o1yxeb"))&&x(e,"class",n)},i(s){r||(g(a,s),r=!0)},o(s){b(a,s),r=!1},d(s){s&&E(e),a&&a.d(s),i=!1,o()}}}function US(t,e,n){let{$$slots:r={},$$scope:i}=e,{href:o}=e,{target:l=""}=e,{rel:a=""}=e,{a_class:s=""}=e;const u=tn("router"),c=f=>{u?(u(o,l,a),f.preventDefault()):window.open(o,l,a)};return t.$$set=f=>{"href"in f&&n(2,o=f.href),"target"in f&&n(3,l=f.target),"rel"in f&&n(4,a=f.rel),"a_class"in f&&n(0,s=f.a_class),"$$scope"in f&&n(5,i=f.$$scope)},[s,c,o,l,a,i,r]}class Hr extends Ne{constructor(e){super(),Ee(this,e,US,xS,Ae,{href:2,target:3,rel:4,a_class:0},FS)}get href(){return this.$$.ctx[2]}set href(e){this.$$set({href:e}),C()}get target(){return this.$$.ctx[3]}set target(e){this.$$set({target:e}),C()}get rel(){return this.$$.ctx[4]}set rel(e){this.$$set({rel:e}),C()}get a_class(){return this.$$.ctx[0]}set a_class(e){this.$$set({a_class:e}),C()}}Le(Hr,{href:{},target:{},rel:{},a_class:{}},["default"],[],!0);function BS(t){yt(t,"svelte-l6ag3u","zl-card.svelte-l6ag3u.svelte-l6ag3u{position:relative}.logo-wrap.svelte-l6ag3u.svelte-l6ag3u{border-color:var(--zl-card-border-color, var(--zl-default-border-color));border-radius:var(--zl-card-border-radius, var(--zl-default-border-radius));border-style:var(--zl-card-border-style, solid);border-width:var(--zl-card-border-width, var(--zl-default-border-width));background-color:var(--zl-card-background-color, var(--zl-color-gray-lighter));cursor:pointer;display:flex;min-height:var(--zl-card-min-height, 100px);position:relative}.logo.svelte-l6ag3u.svelte-l6ag3u{max-width:var(--zl-card-logo-max-width, 60%);max-height:var(--zl-card-logo-size, 30px);margin:auto}.close-btn.svelte-l6ag3u.svelte-l6ag3u{position:absolute;right:0;top:0;z-index:var(--zl-z-index-content)}.zlc-richtext.svelte-l6ag3u.svelte-l6ag3u{font-size:var(--zl-font-size-xs)}.list-items.svelte-l6ag3u.svelte-l6ag3u{font-size:var(--zl-default-font-size);padding-left:var(--zl-spacing-xl)}.list-items.svelte-l6ag3u li.svelte-l6ag3u{list-style-type:disc;list-style-type:'✓ ';padding-block:var(--zl-spacing-sm)}.list-items.svelte-l6ag3u li.svelte-l6ag3u::marker{color:var(--zl-color-success-base)}.register.svelte-l6ag3u.svelte-l6ag3u{text-align:center;margin:0 var(--zl-spacing-md);font-size:var(--zl-font-size-xs)}.checkboxHtml a{text-decoration:underline}")}function xc(t,e,n){const r=t.slice();return r[18]=e[n],r[19]=e,r[20]=n,r}const qS=t=>({}),Uc=t=>({});function Bc(t,e,n){const r=t.slice();return r[21]=e[n],r}const VS=t=>({}),qc=t=>({});function Vc(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v;r=new nt({props:{variant:"unrecognizable",icon:"X"}}),r.$on("click",t[14]);let w=t[0]&&Jc(t);const S=t[12].content,y=ht(S,t,t[17],Uc);let z=At(t[5]),O=[];for(let A=0;A<z.length;A+=1)O[A]=Wc(xc(t,z,A));const N=A=>b(O[A],1,1,()=>{O[A]=null});d=new nt({props:{id:"btn_login_"+t[2],variant:"default",width:"full",text:`Login bei ${t[2]}`,"aria-disabled":!t[6],disabled:!t[6]}}),d.$on("click",t[9]);let U=t[4]&&Yc(t);return{c(){e=W("div"),n=W("div"),F(r.$$.fragment),i=j(),o=W("div"),l=W("div"),w&&w.c(),a=j(),y&&y.c(),s=j(),u=W("div"),c=W("div");for(let A=0;A<O.length;A+=1)O[A].c();f=j(),F(d.$$.fragment),m=j(),U&&U.c(),x(n,"class","close-btn svelte-l6ag3u"),x(l,"class","zlc-richtext svelte-l6ag3u"),x(u,"class","zlc-gap-y"),x(o,"class","zlc-gap-y")},m(A,P){L(A,e,P),V(e,n),$(r,n,null),V(e,i),V(e,o),V(o,l),w&&w.m(l,null),V(l,a),y&&y.m(l,null),V(o,s),V(o,u),V(u,c);for(let Y=0;Y<O.length;Y+=1)O[Y]&&O[Y].m(c,null);V(u,f),$(d,u,null),V(u,m),U&&U.m(u,null),v=!0},p(A,P){if(A[0]?w?(w.p(A,P),P&1&&g(w,1)):(w=Jc(A),w.c(),g(w,1),w.m(l,a)):w&&(ne(),b(w,1,1,()=>{w=null}),re()),y&&y.p&&(!v||P&131072)&&gt(y,S,A,A[17],v?mt(S,A[17],P,qS):pt(A[17]),Uc),P&288){z=At(A[5]);let B;for(B=0;B<z.length;B+=1){const J=xc(A,z,B);O[B]?(O[B].p(J,P),g(O[B],1)):(O[B]=Wc(J),O[B].c(),g(O[B],1),O[B].m(c,null))}for(ne(),B=z.length;B<O.length;B+=1)N(B);re()}const Y={};P&4&&(Y.id="btn_login_"+A[2]),P&4&&(Y.text=`Login bei ${A[2]}`),P&64&&(Y["aria-disabled"]=!A[6]),P&64&&(Y.disabled=!A[6]),d.$set(Y),A[4]?U?(U.p(A,P),P&16&&g(U,1)):(U=Yc(A),U.c(),g(U,1),U.m(u,null)):U&&(ne(),b(U,1,1,()=>{U=null}),re())},i(A){if(!v){g(r.$$.fragment,A),g(w),g(y,A);for(let P=0;P<z.length;P+=1)g(O[P]);g(d.$$.fragment,A),g(U),gr(()=>{v&&(p&&p.end(1),h=nc(o,ai,{}),h.start())}),v=!0}},o(A){b(r.$$.fragment,A),b(w),b(y,A),O=O.filter(Boolean);for(let P=0;P<O.length;P+=1)b(O[P]);b(d.$$.fragment,A),b(U),h&&h.invalidate(),p=rc(o,ai,{duration:0}),v=!1},d(A){A&&E(e),R(r),w&&w.d(),y&&y.d(A),Mn(O,A),R(d),U&&U.d(),A&&p&&p.end()}}}function Jc(t){let e;const n=t[12].usp,r=ht(n,t,t[17],qc),i=r||JS(t);return{c(){i&&i.c()},m(o,l){i&&i.m(o,l),e=!0},p(o,l){r?r.p&&(!e||l&131072)&&gt(r,n,o,o[17],e?mt(n,o[17],l,VS):pt(o[17]),qc):i&&i.p&&(!e||l&1)&&i.p(o,e?l:-1)},i(o){e||(g(i,o),e=!0)},o(o){b(i,o),e=!1},d(o){i&&i.d(o)}}}function Hc(t){let e,n=t[21]+"",r;return{c(){e=W("li"),r=Ie(n),x(e,"class","svelte-l6ag3u")},m(i,o){L(i,e,o),V(e,r)},p(i,o){o&1&&n!==(n=i[21]+"")&&Ke(r,n)},d(i){i&&E(e)}}}function JS(t){let e,n=At(t[0]),r=[];for(let i=0;i<n.length;i+=1)r[i]=Hc(Bc(t,n,i));return{c(){e=W("ul");for(let i=0;i<r.length;i+=1)r[i].c();x(e,"class","list-items svelte-l6ag3u")},m(i,o){L(i,e,o);for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(e,null)},p(i,o){if(o&1){n=At(i[0]);let l;for(l=0;l<n.length;l+=1){const a=Bc(i,n,l);r[l]?r[l].p(a,o):(r[l]=Hc(a),r[l].c(),r[l].m(e,null))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(i){i&&E(e),Mn(r,i)}}}function HS(t){let e,n=t[18].html+"",r;return{c(){e=W("span"),r=j(),x(e,"class","checkboxHtml")},m(i,o){L(i,e,o),e.innerHTML=n,L(i,r,o)},p(i,o){o&32&&n!==(n=i[18].html+"")&&(e.innerHTML=n)},d(i){i&&(E(e),E(r))}}}function Wc(t){let e,n,r;function i(a){t[15](a,t[18])}function o(){return t[16](t[18])}let l={e2e_id:"agbcheck_"+t[18].id,hasError:t[18].validationError,errorText:t[18].validationError?"Fehler: Sie müssen diesen Hinweis akzeptieren.":null,$$slots:{label:[HS]},$$scope:{ctx:t}};return t[18].checked!==void 0&&(l.checked=t[18].checked),e=new Fc({props:l}),xe.push(()=>Je(e,"checked",i)),e.$on("change",o),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){t=a;const u={};s&32&&(u.e2e_id="agbcheck_"+t[18].id),s&32&&(u.hasError=t[18].validationError),s&32&&(u.errorText=t[18].validationError?"Fehler: Sie müssen diesen Hinweis akzeptieren.":null),s&131104&&(u.$$scope={dirty:s,ctx:t}),!n&&s&32&&(n=!0,u.checked=t[18].checked,Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function Yc(t){let e,n,r,i;return r=new Hr({props:{href:t[4],target:"_blank",rel:"noopener noreferrer",$$slots:{default:[WS]},$$scope:{ctx:t}}}),{c(){e=W("p"),n=Ie(`Kein Konto? Jetzt
24
+ `),F(r.$$.fragment),x(e,"class","register svelte-l6ag3u")},m(o,l){L(o,e,l),V(e,n),$(r,e,null),i=!0},p(o,l){const a={};l&16&&(a.href=o[4]),l&131072&&(a.$$scope={dirty:l,ctx:o}),r.$set(a)},i(o){i||(g(r.$$.fragment,o),i=!0)},o(o){b(r.$$.fragment,o),i=!1},d(o){o&&E(e),R(r)}}}function WS(t){let e;return{c(){e=Ie("Registrieren")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function YS(t){let e,n,r,i,o,l,a,s,u=t[3]&&Vc(t);return{c(){e=W("zl-card"),n=W("div"),r=W("img"),o=j(),u&&u.c(),Qn(r.src,i=t[1])||x(r,"src",i),x(r,"alt",t[2]),x(r,"class","logo svelte-l6ag3u"),x(n,"id",t[2]),x(n,"class","logo-wrap svelte-l6ag3u"),ii(e,"class","zlc-gap-y svelte-l6ag3u"),ke(e,"details",t[3])},m(c,f){L(c,e,f),V(e,n),V(n,r),V(e,o),u&&u.m(e,null),l=!0,a||(s=tt(n,"click",t[13]),a=!0)},p(c,[f]){(!l||f&2&&!Qn(r.src,i=c[1]))&&x(r,"src",i),(!l||f&4)&&x(r,"alt",c[2]),(!l||f&4)&&x(n,"id",c[2]),c[3]?u?(u.p(c,f),f&8&&g(u,1)):(u=Vc(c),u.c(),g(u,1),u.m(e,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),(!l||f&8)&&ke(e,"details",c[3])},i(c){l||(g(u),l=!0)},o(c){b(u),l=!1},d(c){c&&E(e),u&&u.d(),a=!1,s()}}}function GS(t,e,n){let{$$slots:r={},$$scope:i}=e,{usp:o=void 0}=e,{logo:l=void 0}=e,{broker:a=void 0}=e,{details:s=!1}=e,{createAccountUrl:u=null}=e,{confirmationStorage:c=null}=e,{checkboxes:f=[]}=e;const d=f.map(O=>{const N=c==null?void 0:c.getTermsAccepted(O.id);return{checked:(N==null?void 0:N.acceptedAt)>0,validationError:!1,html:O.html,id:O.id}});let m=!1;const h=Bt();function p(O){c==null||c.setTermsAccepted(O.id,O.checked?{acceptedAt:Date.now()}:null)}function v(){m&&h("login")}const w=()=>{s||h("showDetails")},S=()=>{h("hideDetails")};function y(O,N){t.$$.not_equal(N.checked,O)&&(N.checked=O,n(5,d))}const z=O=>p(O);return t.$$set=O=>{"usp"in O&&n(0,o=O.usp),"logo"in O&&n(1,l=O.logo),"broker"in O&&n(2,a=O.broker),"details"in O&&n(3,s=O.details),"createAccountUrl"in O&&n(4,u=O.createAccountUrl),"confirmationStorage"in O&&n(10,c=O.confirmationStorage),"checkboxes"in O&&n(11,f=O.checkboxes),"$$scope"in O&&n(17,i=O.$$scope)},t.$$.update=()=>{t.$$.dirty&32&&n(6,m=d.every(O=>O.checked))},[o,l,a,s,u,d,m,h,p,v,c,f,r,w,S,y,z,i]}class Ra extends Ne{constructor(e){super(),Ee(this,e,GS,YS,Ae,{usp:0,logo:1,broker:2,details:3,createAccountUrl:4,confirmationStorage:10,checkboxes:11},BS)}get usp(){return this.$$.ctx[0]}set usp(e){this.$$set({usp:e}),C()}get logo(){return this.$$.ctx[1]}set logo(e){this.$$set({logo:e}),C()}get broker(){return this.$$.ctx[2]}set broker(e){this.$$set({broker:e}),C()}get details(){return this.$$.ctx[3]}set details(e){this.$$set({details:e}),C()}get createAccountUrl(){return this.$$.ctx[4]}set createAccountUrl(e){this.$$set({createAccountUrl:e}),C()}get confirmationStorage(){return this.$$.ctx[10]}set confirmationStorage(e){this.$$set({confirmationStorage:e}),C()}get checkboxes(){return this.$$.ctx[11]}set checkboxes(e){this.$$set({checkboxes:e}),C()}}Le(Ra,{usp:{},logo:{},broker:{},details:{type:"Boolean"},createAccountUrl:{},confirmationStorage:{},checkboxes:{}},["usp","content"],[],!0);function KS(t){const e={market:t("OrderModel.Buy.Market"),limit:t("OrderModel.Buy.Limit"),fraction:t("OrderModel.Buy.Fraction"),quote:t("OrderModel.Buy.Quote"),stopMarket:t("OrderModel.Buy.StopMarket"),stopLimit:t("OrderModel.Buy.StopLimit"),ocoStopLimit:t("OrderModel.Buy.OcoStopLimit"),ocoStopMarket:t("OrderModel.Buy.OcoStopMarket"),savingsPlan:t("OrderModel.Buy.SavingsPlan"),trailingStopMarket:t("OrderModel.Buy.TrailingStopMarket"),trailingStopLimit:t("OrderModel.Buy.TrailingStopLimit"),unknown:t("OrderModel.Sell.Unknown")},n={market:t("OrderModel.Sell.Market"),limit:t("OrderModel.Sell.Limit"),fraction:t("OrderModel.Sell.Fraction"),quote:t("OrderModel.Sell.Quote"),stopMarket:t("OrderModel.Sell.StopMarket"),stopLimit:t("OrderModel.Sell.StopLimit"),ocoStopLimit:t("OrderModel.Sell.OcoStopLimit"),ocoStopMarket:t("OrderModel.Sell.OcoStopMarket"),savingsPlan:t("OrderModel.Sell.SavingsPlan"),trailingStopMarket:t("OrderModel.Sell.TrailingStopMarket"),trailingStopLimit:t("OrderModel.Sell.TrailingStopLimit"),unknown:t("OrderModel.Sell.Unknown")},r={market:t("OrderModel.BuyWithDirection.Market"),limit:t("OrderModel.BuyWithDirection.Limit"),fraction:t("OrderModel.BuyWithDirection.Fraction"),quote:t("OrderModel.BuyWithDirection.Quote"),stopMarket:t("OrderModel.BuyWithDirection.StopMarket"),stopLimit:t("OrderModel.BuyWithDirection.StopLimit"),ocoStopLimit:t("OrderModel.BuyWithDirection.OcoStopLimit"),ocoStopMarket:t("OrderModel.BuyWithDirection.OcoStopMarket"),savingsPlan:t("OrderModel.BuyWithDirection.SavingsPlan"),trailingStopMarket:t("OrderModel.BuyWithDirection.TrailingStopMarket"),trailingStopLimit:t("OrderModel.BuyWithDirection.TrailingStopLimit"),unknown:t("OrderModel.BuyWithDirection.Unknown")},i={market:t("OrderModel.SellWithDirection.Market"),limit:t("OrderModel.SellWithDirection.Limit"),fraction:t("OrderModel.SellWithDirection.Fraction"),quote:t("OrderModel.SellWithDirection.Quote"),stopMarket:t("OrderModel.SellWithDirection.StopMarket"),stopLimit:t("OrderModel.SellWithDirection.StopLimit"),ocoStopLimit:t("OrderModel.SellWithDirection.OcoStopLimit"),ocoStopMarket:t("OrderModel.SellWithDirection.OcoStopMarket"),savingsPlan:t("OrderModel.SellWithDirection.SavingsPlan"),trailingStopMarket:t("OrderModel.SellWithDirection.TrailingStopMarket"),trailingStopLimit:t("OrderModel.SellWithDirection.TrailingStopLimit"),unknown:t("OrderModel.SellWithDirection.Unknown")};function o(s,u){return s=="buy"?u?r:e:s=="sell"?u?i:n:null}function l(s,u,c,f){if(f==="open"&&u==="stopMarket"&&c==="sell")return t("OrderModel.Sell.StopSell");if(f==="open"&&u==="stopLimit"&&c==="sell")return t("OrderModel.Sell.StopSellLimit");if(c=="buy"&&f=="close"&&u==="stopMarket")return t("OrderModel.Buy.StopLoss");if(c=="buy"&&f=="close"&&u==="stopLimit")return t("OrderModel.Buy.StopLossLimit");const d=o(c,s);return d&&d[u]?d[u]:u}return{orderModel:(s,u,c)=>l(!1,s,u,c),orderModelAndDirection:(s,u,c)=>l(!0,s,u,c),orderModelBuy:e,orderModelSell:n,direction:{buy:t("Direction.Buy"),sell:t("Direction.Sell")},validityType:{AUTO:t("ValidityType.AUTO"),GFD:t("ValidityType.GFD"),GTD:t("ValidityType.GTD"),GTDT:t("ValidityType.GTDT"),GTU:t("ValidityType.GTU"),GTC:t("ValidityType.GTC"),IOC:t("ValidityType.IOC")},orderStatus:{canceled:t("OrderStatus.Canceled"),canceled_executed:t("OrderStatus.CanceledExecuted"),executed:t("OrderStatus.Executed"),open:t("OrderStatus.Open"),open_executed:t("OrderStatus.OpenExecuted")}}}const QS=["XXX","PRM","XXP"],ho=" ";function jS(t){function e(l){var a;return l.currency=="PRC"?{style:"percent",minimumFractionDigits:l.minDecimals,maximumFractionDigits:l.maxDecimals}:((a=l.currency)==null?void 0:a.length)!=3||QS.includes(l.currency)?{minimumFractionDigits:l.minDecimals,maximumFractionDigits:l.maxDecimals||16}:{style:"currency",currency:l.currency,currencyDisplay:"code",minimumFractionDigits:l.minDecimals,maximumFractionDigits:l.maxDecimals||16}}const n={};function r(l){try{return new Intl.NumberFormat([].concat(t),l)}catch{return null}}function i(l){const a=e(l),s=JSON.stringify(a);return n[s]===void 0&&(n[s]=r(a)),n[s]}function o(l,a){var c;if(!l||l.value==null)return"";const s=i(l);if(!s)return JSON.stringify(l);const u=s.format(l.currency=="PRC"?l.value/100:l.value);return l.currency=="XXX"?a!=null&&a.full?u+ho+"Stück":u:l.currency=="PRM"?u+ho+"‰":l.currency=="GRAMS"?u+ho+" Gramm":((c=l.currency)==null?void 0:c.length)!=3?u+ho+l.currency:l.currency=="XXP"?u+ho+"Pkt.":u}return o}const Pi=[];function Or(t,e=ze){let n;const r=new Set;function i(a){if(Ae(t,a)&&(t=a,n)){const s=!Pi.length;for(const u of r)u[1](),Pi.push(u,t);if(s){for(let u=0;u<Pi.length;u+=2)Pi[u][0](Pi[u+1]);Pi.length=0}}}function o(a){i(a(t))}function l(a,s=ze){const u=[a,s];return r.add(u),r.size===1&&(n=e(i,o)||ze),a(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:i,update:o,subscribe:l}}const XS={"Commons.AuthMethod":"Authentifizierungsmethode","Commons.ChangeOrder":"Order ändern","Commons.Direction":"Orderrichtung","Commons.EnableSessionTanNow":"Session-TAN jetzt aktivieren","Commons.Order.Limit":"Limit","Commons.Order.Stop":"Stop","Commons.Order.StopLimit":"Limit nach Stop","Commons.Order.StopLoss":"Stop Loss","Commons.Order.TakeProfit":"Take Profit","Commons.Order.ValidityDate":"Gültigkeit","Commons.Order.ValidityType":"Gültigkeit","Commons.OrderActions.Cancel":"Order streichen","Commons.OrderActions.Change":"Order ändern","Commons.OrderActions.ShowReceipt":"Orderbeleg","Commons.OrderDisplayNo":"Ordernummer","Commons.OrderForm.SessionTanRequiredForThisOperation":"Für diese Aktion ist Session-TAN erforderlich.","Commons.OrderModel":"Ausführungsart","Commons.PleaseChooseAuthMethod":"Bitte Authentifizierungsmethode wählen.","Commons.Portfolio":"Depot","Commons.Security":"Instrument","Commons.Size":"Stück/Nominale","CostEstimation.EntryCosts":"Einstiegskosten","CostEstimation.ExpectedCounterValue":"vorl. Gegenwert","CostEstimation.OrderFees":"Orderkosten","CostEstimation.ShowDetailedCostEstimation":"Erweiterten Kostenausweis anzeigen","CostEstimation.TotalCosts":"Gesamtbetrag","CostEstimation.TransactionTax":"Finanztransaktionssteuer","Direction.Buy":"Kauf","Direction.Sell":"Verkauf","Order.CreatedAt":"Orderdatum","Order.Placed":"Order platziert","Order.ProfitLossAbs":"+/- abs.","Order.ProfitLossRel":"+/- %",OrderExecution:"Ausführung","OrderExecution.Amount":"Betrag ohne Gebühren","OrderExecution.Tax":"Abgeltungssteuer","OrderExecution.TotalAmount":"Betrag inkl. Gebühren und Steuern","OrderExecution.TransactionTax":"Finanztransaktionssteuer","OrderModel.Buy.Fraction":"Bruchstücke","OrderModel.Buy.Limit":"Limit","OrderModel.Buy.Market":"Market","OrderModel.Buy.OcoStopLimit":"OCO Stop Buy Limit","OrderModel.Buy.OcoStopMarket":"OCO Stop Buy Market","OrderModel.Buy.Quote":"Kursanfrage","OrderModel.Buy.SavingsPlan":"Sparplan","OrderModel.Buy.StopLimit":"Stop Buy Limit","OrderModel.Buy.StopLoss":"Stop Loss","OrderModel.Buy.StopLossLimit":"Stop Loss Limit","OrderModel.Buy.StopMarket":"Stop Buy","OrderModel.Buy.TrailingStopLimit":"Trailing Stop Buy Limit","OrderModel.Buy.TrailingStopMarket":"Trailing Stop Buy Market","OrderModel.BuyWithDirection.Fraction":"Kauf Bruchstücke","OrderModel.BuyWithDirection.Limit":"Limit Kauf","OrderModel.BuyWithDirection.Market":"Market Kauf","OrderModel.BuyWithDirection.OcoStopLimit":"OCO Stop Buy Limit","OrderModel.BuyWithDirection.OcoStopMarket":"OCO Stop Buy Market","OrderModel.BuyWithDirection.Quote":"Kursanfrage Kauf","OrderModel.BuyWithDirection.SavingsPlan":"Sparplan Kauf","OrderModel.BuyWithDirection.StopLimit":"Stop Buy Limit","OrderModel.BuyWithDirection.StopMarket":"Stop Buy","OrderModel.BuyWithDirection.TrailingStopLimit":"Trailing Stop Buy Limit","OrderModel.BuyWithDirection.TrailingStopMarket":"Trailing Stop Buy Market","OrderModel.BuyWithDirection.Unknown":"Unbekannt","OrderModel.Sell.Fraction":"Bruchstücke","OrderModel.Sell.Limit":"Limit","OrderModel.Sell.Market":"Market","OrderModel.Sell.OcoStopLimit":"OCO Stop Loss Limit","OrderModel.Sell.OcoStopMarket":"OCO Stop Loss Market","OrderModel.Sell.Quote":"Kursanfrage","OrderModel.Sell.SavingsPlan":"Sparplan","OrderModel.Sell.StopLimit":"Stop Loss Limit","OrderModel.Sell.StopMarket":"Stop Loss","OrderModel.Sell.StopSell":"Stop Sell","OrderModel.Sell.StopSellLimit":"Stop Sell Limit","OrderModel.Sell.TrailingStopLimit":"Trailing Stop Loss Limit","OrderModel.Sell.TrailingStopMarket":"Trailing Stop Loss Market","OrderModel.Sell.Unknown":"Unbekannt","OrderModel.SellWithDirection.Fraction":"Verkauf Bruchstücke","OrderModel.SellWithDirection.Limit":"Limit Verkauf","OrderModel.SellWithDirection.Market":"Market Verkauf","OrderModel.SellWithDirection.OcoStopLimit":"OCO Stop Loss Limit","OrderModel.SellWithDirection.OcoStopMarket":"OCO Stop Loss Market","OrderModel.SellWithDirection.Quote":"Kursanfrage Verkauf","OrderModel.SellWithDirection.SavingsPlan":"Sparplan Verkauf","OrderModel.SellWithDirection.StopLimit":"Stop Loss Limit","OrderModel.SellWithDirection.StopMarket":"Stop Loss","OrderModel.SellWithDirection.TrailingStopLimit":"Trailing Stop Loss Market","OrderModel.SellWithDirection.TrailingStopMarket":"Trailing Stop Loss Market","OrderModel.SellWithDirection.Unknown":"Unbekannt","OrderStatus.Canceled":"Gestrichen","OrderStatus.CanceledExecuted":"Teilausgeführt/gestrichen","OrderStatus.Executed":"Ausgeführt","OrderStatus.Open":"Offen","OrderStatus.OpenExecuted":"Offen/teilausgeführt","OrderTable.CurrentStop":"Aktueller Stop","OrderTable.ExchangeName":"Handelsplatz","OrderTable.ExecutedAt":"Datum/Uhrzeit","OrderTable.ExecutedDateTime":"Ausführungszeitpunkt","OrderTable.ExecutedQuote":"Kurs","OrderTable.ExecutionStatusText":"Status","OrderTable.Filter.All":"Alle Aufträge","OrderTable.Filter.Canceled":"Gestrichene Aufträge","OrderTable.Filter.Executed":"Ausgeführte Aufträge","OrderTable.Filter.Open":"Offene Aufträge","OrderTable.FilterSearchPlaceholder":"Name/ISIN","OrderTable.Limit":"Limit","OrderTable.Name":"Name","OrderTable.OrderModelAndDirection":"Ausführungsart","OrderTable.Size":"Stück/Nominale","OrderTable.Status":"Status","OrderTable.Stop":"Stop","OrderTable.StopLimit":"Limit nach Stop","OrderTable.StopLoss":"Stop Loss","OrderTable.TakeProfit":"Take Profit","OrderTable.TrailingDistance":"Trailing-Abstand","OrderTable.TrailingLimitTolerance":"Limit-Abstand","OrderTable.Validity":"Gültigkeit","PositionsTable.Actions":" ","PositionsTable.Actions.Buy":"Kaufen","PositionsTable.Actions.Sell":"Verkaufen","PositionsTable.CurrentValuation.PositionValue":"Wert","PositionsTable.CurrentValuationQuotation":"Kurs","PositionsTable.Isin":"ISIN/Symbol","PositionsTable.Name":"Name","PositionsTable.ProfitLossAbs":"+/- abs.","PositionsTable.ProfitLossRel":"+/- %","PositionsTable.PurchaseValuationQuotation":"Kaufkurs","PositionsTable.Size":"Stück/Nominale","TradeDraftTable.Actions.dismiss":"Entfernen","TradeDraftTable.Actions.open":"Order öffnen","TradeDraftTable.createdAt":"Erstellt am","TradeDraftTable.description":"Beschreibung","TradeDraftTable.orderData.broker":"Handelsplatz","TradeDraftTable.orderData.direction":"Richtung","TradeDraftTable.orderData.limit":"Limit","TradeDraftTable.orderData.security.selector.isin":"ISIN","TradeDraftTable.orderData.size":"Größe","TradeDraftTable.orderData.stop":"Stop","TradeDraftTable.orderDismissed":"Trade Draft erfolgreich entfernt","ValidityType.AUTO":"Automatisch","ValidityType.GFD":"Tagesgültig","ValidityType.GTC":"Gültig bis Streichung","ValidityType.GTD":"Gültig bis","ValidityType.GTDT":"Gültig bis","ValidityType.GTU":"Gültig bis Monatsende","ValidityType.IOC":"Immediate Or Cancel"},ZS={"Commons.AuthMethod":"","Commons.ChangeOrder":"","Commons.Direction":"","Commons.EnableSessionTanNow":"","Commons.Order.Limit":"","Commons.Order.Stop":"","Commons.Order.StopLimit":"","Commons.Order.StopLoss":"","Commons.Order.TakeProfit":"","Commons.Order.ValidityDate":"","Commons.Order.ValidityType":"","Commons.OrderActions.Cancel":"","Commons.OrderActions.Change":"","Commons.OrderActions.ShowReceipt":"","Commons.OrderDisplayNo":"","Commons.OrderForm.SessionTanRequiredForThisOperation":"","Commons.OrderModel":"","Commons.PleaseChooseAuthMethod":"","Commons.Portfolio":"","Commons.Security":"","Commons.Size":"","CostEstimation.EntryCosts":"","CostEstimation.ExpectedCounterValue":"","CostEstimation.OrderFees":"","CostEstimation.ShowDetailedCostEstimation":"","CostEstimation.TotalCosts":"","CostEstimation.TransactionTax":"","Direction.Buy":"","Direction.Sell":"","Order.CreatedAt":"","Order.Placed":"","Order.ProfitLossAbs":"","Order.ProfitLossRel":"",OrderExecution:"","OrderExecution.Amount":"","OrderExecution.Tax":"","OrderExecution.TotalAmount":"","OrderExecution.TransactionTax":"","OrderModel.Buy.Fraction":"","OrderModel.Buy.Limit":"","OrderModel.Buy.Market":"","OrderModel.Buy.OcoStopLimit":"","OrderModel.Buy.OcoStopMarket":"","OrderModel.Buy.Quote":"","OrderModel.Buy.SavingsPlan":"","OrderModel.Buy.StopLimit":"","OrderModel.Buy.StopLoss":"","OrderModel.Buy.StopLossLimit":"","OrderModel.Buy.StopMarket":"","OrderModel.Buy.TrailingStopLimit":"","OrderModel.Buy.TrailingStopMarket":"","OrderModel.BuyWithDirection.Fraction":"","OrderModel.BuyWithDirection.Limit":"","OrderModel.BuyWithDirection.Market":"","OrderModel.BuyWithDirection.OcoStopLimit":"","OrderModel.BuyWithDirection.OcoStopMarket":"","OrderModel.BuyWithDirection.Quote":"","OrderModel.BuyWithDirection.SavingsPlan":"","OrderModel.BuyWithDirection.StopLimit":"","OrderModel.BuyWithDirection.StopMarket":"","OrderModel.BuyWithDirection.TrailingStopLimit":"","OrderModel.BuyWithDirection.TrailingStopMarket":"","OrderModel.BuyWithDirection.Unknown":"","OrderModel.Sell.Fraction":"","OrderModel.Sell.Limit":"","OrderModel.Sell.Market":"","OrderModel.Sell.OcoStopLimit":"","OrderModel.Sell.OcoStopMarket":"","OrderModel.Sell.Quote":"","OrderModel.Sell.SavingsPlan":"","OrderModel.Sell.StopLimit":"","OrderModel.Sell.StopMarket":"","OrderModel.Sell.StopSell":"","OrderModel.Sell.StopSellLimit":"","OrderModel.Sell.TrailingStopLimit":"","OrderModel.Sell.TrailingStopMarket":"","OrderModel.Sell.Unknown":"","OrderModel.SellWithDirection.Fraction":"","OrderModel.SellWithDirection.Limit":"","OrderModel.SellWithDirection.Market":"","OrderModel.SellWithDirection.OcoStopLimit":"","OrderModel.SellWithDirection.OcoStopMarket":"","OrderModel.SellWithDirection.Quote":"","OrderModel.SellWithDirection.SavingsPlan":"","OrderModel.SellWithDirection.StopLimit":"","OrderModel.SellWithDirection.StopMarket":"","OrderModel.SellWithDirection.TrailingStopLimit":"","OrderModel.SellWithDirection.TrailingStopMarket":"","OrderModel.SellWithDirection.Unknown":"","OrderStatus.Canceled":"","OrderStatus.CanceledExecuted":"","OrderStatus.Executed":"","OrderStatus.Open":"","OrderStatus.OpenExecuted":"","OrderTable.CurrentStop":"","OrderTable.ExchangeName":"","OrderTable.ExecutedAt":"","OrderTable.ExecutedDateTime":"","OrderTable.ExecutedQuote":"","OrderTable.ExecutionStatusText":"","OrderTable.Filter.All":"","OrderTable.Filter.Canceled":"","OrderTable.Filter.Executed":"","OrderTable.Filter.Open":"","OrderTable.FilterSearchPlaceholder":"","OrderTable.Limit":"","OrderTable.Name":"","OrderTable.OrderModelAndDirection":"","OrderTable.Size":"","OrderTable.Status":"","OrderTable.Stop":"","OrderTable.StopLimit":"","OrderTable.StopLoss":"","OrderTable.TakeProfit":"","OrderTable.TrailingDistance":"","OrderTable.TrailingLimitTolerance":"","OrderTable.Validity":"","PositionsTable.Actions":"","PositionsTable.Actions.Buy":"","PositionsTable.Actions.Sell":"","PositionsTable.CurrentValuation.PositionValue":"","PositionsTable.CurrentValuationQuotation":"","PositionsTable.Isin":"","PositionsTable.Name":"","PositionsTable.ProfitLossAbs":"","PositionsTable.ProfitLossRel":"","PositionsTable.PurchaseValuationQuotation":"","PositionsTable.Size":"","TradeDraftTable.Actions.dismiss":"","TradeDraftTable.Actions.open":"","TradeDraftTable.createdAt":"","TradeDraftTable.description":"","TradeDraftTable.orderData.broker":"","TradeDraftTable.orderData.direction":"","TradeDraftTable.orderData.limit":"","TradeDraftTable.orderData.security.selector.isin":"","TradeDraftTable.orderData.size":"","TradeDraftTable.orderData.stop":"","TradeDraftTable.orderDismissed":"","ValidityType.AUTO":"","ValidityType.GFD":"","ValidityType.GTC":"","ValidityType.GTD":"","ValidityType.GTDT":"","ValidityType.GTU":"","ValidityType.IOC":""},Fa={},eT=1e3*60*60;function tT(t){if(!Fa[t]){const e=new Intl.DateTimeFormat(t,{dateStyle:"medium"}),n=new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"medium"}),r=new Intl.DateTimeFormat(t,{timeStyle:"medium"});Fa[t]={date:i=>sl(e,i),dateTime:i=>sl(n,i),quoteTime:i=>Date.now()-(i==null?void 0:i.getTime())<eT*2?sl(r,i):sl(n,i)}}return Fa[t]}function sl(t,e){if(!e)return"";try{return t.format(e)}catch(n){return console.warn(n,"error occured when trying to format date value "+e+". Formatting as fallback value InvalidDate"),"InvalidDate:"+e}}function nT(t){let e;const n=t[4].default,r=ht(n,t,t[3],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,[o]){r&&r.p&&(!e||o&8)&&gt(r,n,i,i[3],e?mt(n,i[3],o,null):pt(i[3]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}const xa=Symbol(),rT=Symbol();function pr(t){const e=t(xa);if(!e)throw new Error("getLocaleContext could not find the LocaleContext in component context.");return e}const Gc=Symbol();function iT(t){const e=t(Gc);if(!e)throw new Error("getBrokerizeDataContext could not find the BrokerizeDataContext in component context.");return e}function oT(){return"de"}function lT(t,e,n){let{$$slots:r={},$$scope:i}=e,{locale:o=oT()}=e,{formatAmount:l=null}=e,{brokers:a=null}=e,s=!tn(xa);const u={brokers:Or(a)};if(s){Di(rT,Or(null)),Di(Gc,u),l||(l=jS([o]));const f=(w=>{if(w=="de")return S=>XS[S]||S;if(w=="en")return S=>ZS[S]||S})(o),d=KS(f),m=tT(o),h=new Intl.NumberFormat(o,{signDisplay:"exceptZero",maximumFractionDigits:2,minimumFractionDigits:2});Di(xa,{__:f,formatAmount:l,formatProfitLossRelHtml:w=>{if(w==null)return"";const S=h.format(w*100);return w<0?'<span style="color: var(--zl-color-sell-base)">'+S+"% </span>":w>0?'<span style="color: var(--zl-color-buy-base)">'+S+"% </span>":S+" %"},formatDate:w=>m.date(w),formatDateTime:w=>m.dateTime(w),formatQuoteTime:w=>m.quoteTime(w),formatProfitLossAbsHtml:w=>{if(w==null||w.value==null)return"";const S=l(w);return w.value<0?'<span style="color: var(--zl-color-sell-base)">'+S+"</span>":w.value>0?'<span style="color: var(--zl-color-buy-base)">'+S+"</span>":S},labels:d})}return t.$$set=c=>{"locale"in c&&n(1,o=c.locale),"formatAmount"in c&&n(0,l=c.formatAmount),"brokers"in c&&n(2,a=c.brokers),"$$scope"in c&&n(3,i=c.$$scope)},t.$$.update=()=>{t.$$.dirty&4&&u.brokers.set(a)},[l,o,a,i,r]}class Jn extends Ne{constructor(e){super(),Ee(this,e,lT,nT,Ae,{locale:1,formatAmount:0,brokers:2})}get locale(){return this.$$.ctx[1]}set locale(e){this.$$set({locale:e}),C()}get formatAmount(){return this.$$.ctx[0]}set formatAmount(e){this.$$set({formatAmount:e}),C()}get brokers(){return this.$$.ctx[2]}set brokers(e){this.$$set({brokers:e}),C()}}Le(Jn,{locale:{},formatAmount:{},brokers:{}},["default"],[],!0);function aT(t){yt(t,"svelte-f2lykz",".footer.svelte-f2lykz.svelte-f2lykz{align-items:baseline;color:var(--zl-footer-color, var(--zl-color-gray-darkest));display:flex;flex-wrap:wrap;font-size:var(--zl-footer-font-size, var(--zl-font-size-2xs));gap:5px;justify-content:flex-end;padding-top:var(--zl-spacing-xl)}.footer.svelte-f2lykz span.svelte-f2lykz{white-space:nowrap}.footer.svelte-f2lykz img{display:inline-block;height:0.85em;margin:0 0 0.1rem 0.1rem;width:auto}.footer.center.svelte-f2lykz.svelte-f2lykz{margin-top:var(--zl-spacing-xl)}.footer.center.svelte-f2lykz .footer-col.svelte-f2lykz{width:100%;text-align:center}.footer.center.svelte-f2lykz .zlc-hide-on-mobile.svelte-f2lykz{display:none}@media(max-width: 768px){.footer.svelte-f2lykz.svelte-f2lykz{margin-top:var(--zl-spacing-xl)}.footer.svelte-f2lykz .footer-col.svelte-f2lykz{width:100%;text-align:center}}.parent-has-no-padding.svelte-f2lykz.svelte-f2lykz{margin-right:var(--zl-app-frame-padding);margin-bottom:var(--zl-app-frame-padding);margin-left:var(--zl-app-frame-padding)}")}function sT(t){let e,n;return{c(){e=W("img"),Qn(e.src,n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwMCIgaGVpZ2h0PSIxNzUiIHZpZXdCb3g9IjAgMCAxMDAwIDE3NSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxwYXRoIGQ9Ik0yNDcuNzkyIDE2Ni4zNzFjLTkuOS01LjY2Mi0xNy42Ni0xMy40ODItMjMuMjgtMjMuMTktNS44ODctOS43MDYtOC41NjMtMjAuNzYyLTguNTYzLTMyLjYyNiAwLTExLjg2NSAyLjk0My0yMi45MiA4LjU2My0zMi44OTcgNS44ODctOS45NzcgMTMuNjQ3LTE3Ljc5NyAyMy4yOC0yMy4xOSA5LjkwMS01LjY2MiAyMC42MDUtOC4zNTkgMzIuMzgtOC4zNTkgMTEuNzczIDAgMjIuNzQ1IDIuNjk3IDMyLjY0NiA4LjM2IDkuOSA1LjY2MiAxNy42NjEgMTMuNDgyIDIzLjI4IDIzLjE4OSA1LjYyIDkuOTc3IDguNTYzIDIwLjc2MyA4LjU2MyAzMi44OTcgMCAxMi4xMzQtMi45NDMgMjIuOTItOC41NjMgMzIuNjI3LTUuNjE5IDkuNzA3LTEzLjM4IDE3LjUyNy0yMy4yOCAyMy4xOS05LjkwMSA1LjY2Mi0yMC42MDUgOC42MjgtMzIuMzggOC42MjgtMTIuMDQgMC0yMi43NDUtMi45NjYtMzIuNjQ2LTguNjI5Wm01MS42NDYtMjIuMTFjNS44ODctMy4yMzYgMTAuNDM2LTguMDkgMTMuNjQ3LTEzLjc1MyAzLjIxMS01LjkzMiA1LjA4NS0xMi40MDMgNS4wODUtMTkuOTUzIDAtNy4yOC0xLjYwNi0xNC4wMjItNS4wODUtMTkuOTU0LTMuMjEtNS45MzItNy43Ni0xMC41MTYtMTMuNjQ3LTEzLjc1Mi01Ljg4Ny0zLjIzNi0xMi4zMS01LjEyMy0xOS4yNjctNS4xMjMtNy4yMjUgMC0xMy42NDcgMS42MTgtMTkuMjY3IDUuMTIzLTUuODg3IDMuMjM2LTEwLjQzNiA4LjA5LTEzLjY0NyAxMy43NTItMy4yMTEgNS45MzItNS4wODQgMTIuNDA0LTUuMDg0IDE5Ljk1NCAwIDcuMjggMS42MDUgMTQuMDIxIDUuMDg0IDE5Ljk1MyAzLjIxMSA1LjkzMyA3Ljc2IDEwLjUxNyAxMy42NDcgMTMuNzUyIDUuODg4IDMuMjM2IDEyLjMxIDUuMTI0IDE5LjI2NyA1LjEyNCA2Ljk1OC0uMjcgMTMuMzgtMS44ODggMTkuMjY3LTUuMTI0Wk00MzkuMzkgMTcxLjc2NGwtNDguNzAyLTU2LjYyNXY1Ni42MjVoLTI2LjIyNVYwaDI2LjIyNXYxMDMuMjc0bDQ2LjI5NC01NC4xOThoMzEuMzA4bC01Mi4xOCA2MC4xMyA1NC41ODggNjIuNTU4ek01MTAuMDM1IDE0NC4yNmM2LjY5IDUuMTI0IDE0Ljk4NSA3LjgyIDI0LjM1IDcuODIgNi40MjMgMCAxMi4zMS0xLjM0OCAxNy42NjItNC4wNDUgNS4wODQtMi42OTYgOC44My02LjQ3MSAxMS4yNC0xMC43ODVsMjYuNzU4LS4yN2MtMy43NDYgMTEuODY0LTEwLjcwMyAyMS4wMzItMjAuNjA0IDI3Ljc3M0M1NTkuNTQgMTcxLjQ5NSA1NDcuNzY2IDE3NSA1MzQuMTE4IDE3NWMtMTIuNTc3IDAtMjMuODE2LTIuNjk2LTMzLjcxNy04LjM1OS05LjYzMy01LjY2My0xNy4zOTMtMTMuMjEzLTIyLjc0NS0yMy4xOS01LjM1Mi05Ljk3Ni04LjAyOC0yMC43NjItOC4wMjgtMzMuMTY2IDAtMTIuMTM0IDIuNjc2LTIzLjE5IDguMDI4LTMyLjg5NyA1LjM1Mi05LjcwNyAxMi44NDQtMTcuNTI3IDIyLjc0NS0yMy4xOSA5LjYzNC01LjY2MiAyMC44NzMtOC4zNTggMzMuMTgyLTguMzU4IDExLjc3NCAwIDIyLjQ3OCAyLjk2NiAzMS41NzYgOC42MjggOS4wOTggNS45MzMgMTYuMzIzIDEzLjc1MiAyMS40MDggMjMuNDYgNS4wODQgOS45NzYgNy40OTIgMjAuNzYyIDcuNDkyIDMyLjYyNyAwIDIuNjk2LS4yNjcgNi40NzEtMS4wNyAxMS4wNTVoLTk2LjA2NmMyLjE0IDkuOTc3IDYuNDIyIDE3LjUyNyAxMy4xMTIgMjIuNjVabTU3LjUzMy00NC40OTFjLTEuNjA2LTkuNzA3LTUuNjItMTcuMjU3LTExLjc3NS0yMi4zOC02LjE1NC01LjEyNC0xMy42NDctNy41NS0yMS45NDItNy41NS05LjYzNCAwLTE3LjkzIDIuNjk2LTI0LjM1MSA4LjA4OS02LjQyMyA1LjM5Mi0xMC43MDQgMTIuNjczLTEyLjMxIDIxLjg0aDcwLjM3OFpNOTE1Ljk3NSAxNDQuMjZjNi42OSA1LjEyNCAxNC45ODYgNy44MiAyNC4zNTEgNy44MiA2LjQyMyAwIDEyLjMxLTEuMzQ4IDE3LjY2Mi00LjA0NSA1LjA4NC0yLjY5NiA4LjgzLTYuNDcxIDExLjIzOS0xMC43ODVsMjYuNzYtLjI3Yy0zLjc0NyAxMS44NjQtMTAuNzA1IDIxLjAzMi0yMC42MDYgMjcuNzczLTkuOSA2Ljc0Mi0yMS42NzUgMTAuMjQ3LTM1LjMyMiAxMC4yNDctMTIuNTc3IDAtMjMuODE2LTIuNjk2LTMzLjcxNy04LjM1OS05LjYzMy01LjY2My0xNy4zOTQtMTMuMjEzLTIyLjc0Ni0yMy4xOS01LjM1MS05Ljk3Ni04LjAyNy0yMC43NjItOC4wMjctMzMuMTY2IDAtMTIuMTM0IDIuNjc2LTIzLjE5IDguMDI3LTMyLjg5NyA1LjM1Mi05LjcwNyAxMi44NDUtMTcuNTI3IDIyLjc0Ni0yMy4xOSA5LjYzMy01LjY2MiAyMC44NzItOC4zNTggMzMuMTgyLTguMzU4IDExLjc3NCAwIDIyLjQ3OCAyLjk2NiAzMS41NzYgOC42MjggOS4wOTggNS45MzMgMTYuMzIzIDEzLjc1MiAyMS40MDcgMjMuNDYgNS4wODUgOS45NzYgNy40OTMgMjAuNzYyIDcuNDkzIDMyLjYyNyAwIDIuNjk2LS4yNjggNi40NzEtMS4wNyAxMS4wNTVoLTk2LjA2N2MxLjg3MyA5Ljk3NyA2LjE1NSAxNy41MjcgMTMuMTEyIDIyLjY1Wm01Ny4yNjYtNDQuNDkxYy0xLjYwNi05LjcwNy01LjYyLTE3LjI1Ny0xMS43NzUtMjIuMzgtNi4xNTQtNS4xMjQtMTMuNjQ3LTcuNTUtMjEuOTQyLTcuNTUtOS42MzQgMC0xNy45MyAyLjY5Ni0yNC4zNTEgOC4wODktNi40MjMgNS4zOTItMTAuNzA0IDEyLjY3My0xMi4zMSAyMS44NGg3MC4zNzhaTTY5NS43NDUgNDkuMDc2aDI2LjIyNHYxMjIuNjg4aC0yNi4yMjR6TTYxMy44NjEgMTcyLjAzNFY0OS4wNzZoNjIuMDgydjI0LjgwN2gtMzUuMDU1djk4LjE1ek0xNDguNzgyIDE3Mi4wMzRWNDkuMDc2aDYyLjA4MnYyNC44MDdIMTc1Ljgxdjk4LjE1ek0xMjAuNDE3IDc0Ljk2MWMtNS42MTktOS45NzYtMTMuMzgtMTcuNzk2LTIzLjI4LTIzLjE4OS05LjkwMS01LjkzMi0yMC42MDUtOC42MjktMzIuMzgtOC42MjktMTEuNzczIDAtMjIuNDc3IDIuNjk3LTMyLjM3OCA4LjM2LTIuMTQgMS4zNDgtNC4wMTQgMi42OTYtNi4xNTUgNC4wNDRWLjUzOUgwdjE3MS43NjVoMjYuMjI0VjE1OS42M2MxLjg3MyAxLjM0OCA0LjAxNCAyLjY5NyA2LjE1NSA0LjA0NSA5LjkgNS42NjIgMjAuNjA1IDguNjI5IDMyLjM3OSA4LjYyOSAxMS43NzQgMCAyMi40NzgtMi45NjcgMzIuMzc5LTguNjMgOS45LTUuNjYyIDE3LjY2MS0xMy40ODEgMjMuMjgtMjMuMTg5IDUuNjItOS43MDcgOC41NjMtMjAuNzYyIDguNTYzLTMyLjYyNyAwLTEyLjEzNC0yLjk0My0yMi45Mi04LjU2My0zMi44OTdabS0yMi43NDUgNTIuNTgxYy0zLjIxMSA1LjkzMy03Ljc2IDEwLjUxNy0xMy42NDcgMTMuNzUyLTUuODg3IDMuMjM2LTEyLjMxIDUuMTI0LTE5LjI2NyA1LjEyNC02Ljk1OCAwLTEzLjY0Ny0xLjYxOC0xOS4yNjctNS4xMjQtNS44ODctMy4yMzUtMTAuNDM2LTguMDktMTMuNjQ3LTEzLjc1Mi0zLjIxMS01LjkzMi01LjA4NS0xMi40MDMtNS4wODUtMTkuOTUzIDAtNy4yOCAxLjYwNi0xNC4wMjIgNS4wODUtMTkuOTU0IDMuMjEtNS45MzIgNy43Ni0xMC41MTYgMTMuNjQ3LTEzLjc1MiA1Ljg4Ny0zLjIzNiAxMi4zMS01LjEyMyAxOS4yNjctNS4xMjMgNi45NTcgMCAxMy42NDcgMS42MTggMTkuMjY3IDUuMTIzIDUuODg3IDMuMjM2IDEwLjQzNiA4LjA5IDEzLjY0NyAxMy43NTIgMy4yMTEgNS45MzIgNS4wODQgMTIuNDA0IDUuMDg0IDE5Ljk1NCAwIDcuNTUtMS44NzMgMTQuMDIxLTUuMDg0IDE5Ljk1M1oiIGZpbGw9IiMxNDE5MUQiLz48cGF0aCBmaWxsPSIjMUU2RUU2IiBkPSJNODcyLjYyNSA0OS4wNzYgODUxLjc1MyA3NS41SDc0Mi4wMzlWNDkuMDc2ek03OTYuMzYgMTQ1LjMzOWwzNC41Mi00My42ODNINzk3LjdsLTU1LjY2IDcwLjEwOGgxMjYuMzA1VjE0NS4zNHoiLz48L2c+PC9zdmc+Cg==")||x(e,"src",n),x(e,"alt","brokerize logo")},m(r,i){L(r,e,i)},d(r){r&&E(e)}}}function uT(t){let e,n;return{c(){e=W("img"),Qn(e.src,n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzc0IiBoZWlnaHQ9IjY1IiB2aWV3Qm94PSIwIDAgMzc0IDY1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPiA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMl8xNikiPiA8cGF0aCBkPSJNOTIuNiA2MS43Qzg4LjkgNTkuNiA4NiA1Ni43IDgzLjkgNTMuMUM4MS43IDQ5LjUgODAuNyA0NS40IDgwLjcgNDFDODAuNyAzNi42IDgxLjggMzIuNSA4My45IDI4LjhDODYuMSAyNS4xIDg5IDIyLjIgOTIuNiAyMC4yQzk2LjMgMTguMSAxMDAuMyAxNy4xIDEwNC43IDE3LjFDMTA5LjEgMTcuMSAxMTMuMiAxOC4xIDExNi45IDIwLjJDMTIwLjYgMjIuMyAxMjMuNSAyNS4yIDEyNS42IDI4LjhDMTI3LjcgMzIuNSAxMjguOCAzNi41IDEyOC44IDQxQzEyOC44IDQ1LjUgMTI3LjcgNDkuNSAxMjUuNiA1My4xQzEyMy41IDU2LjcgMTIwLjYgNTkuNiAxMTYuOSA2MS43QzExMy4yIDYzLjggMTA5LjIgNjQuOSAxMDQuOCA2NC45QzEwMC4zIDY0LjkgOTYuMyA2My44IDkyLjYgNjEuN1pNMTExLjkgNTMuNUMxMTQuMSA1Mi4zIDExNS44IDUwLjUgMTE3IDQ4LjRDMTE4LjIgNDYuMiAxMTguOSA0My44IDExOC45IDQxQzExOC45IDM4LjMgMTE4LjMgMzUuOCAxMTcgMzMuNkMxMTUuOCAzMS40IDExNC4xIDI5LjcgMTExLjkgMjguNUMxMDkuNyAyNy4zIDEwNy4zIDI2LjYgMTA0LjcgMjYuNkMxMDIgMjYuNiA5OS42IDI3LjIgOTcuNSAyOC41Qzk1LjMgMjkuNyA5My42IDMxLjUgOTIuNCAzMy42QzkxLjIgMzUuOCA5MC41IDM4LjIgOTAuNSA0MUM5MC41IDQzLjcgOTEuMSA0Ni4yIDkyLjQgNDguNEM5My42IDUwLjYgOTUuMyA1Mi4zIDk3LjUgNTMuNUM5OS43IDU0LjcgMTAyLjEgNTUuNCAxMDQuNyA1NS40QzEwNy4zIDU1LjMgMTA5LjcgNTQuNyAxMTEuOSA1My41WiIgZmlsbD0id2hpdGUiLz4gPHBhdGggZD0iTTE2NC4yIDYzLjdMMTQ2IDQyLjdWNjMuN0gxMzYuMlYwSDE0NlYzOC4zTDE2My4zIDE4LjJIMTc1TDE1NS41IDQwLjVMMTc1LjkgNjMuN0gxNjQuMloiIGZpbGw9IndoaXRlIi8+IDxwYXRoIGQ9Ik0xOTAuNiA1My41QzE5My4xIDU1LjQgMTk2LjIgNTYuNCAxOTkuNyA1Ni40QzIwMi4xIDU2LjQgMjA0LjMgNTUuOSAyMDYuMyA1NC45QzIwOC4yIDUzLjkgMjA5LjYgNTIuNSAyMTAuNSA1MC45TDIyMC41IDUwLjhDMjE5LjEgNTUuMiAyMTYuNSA1OC42IDIxMi44IDYxLjFDMjA5LjEgNjMuNiAyMDQuNyA2NC45IDE5OS42IDY0LjlDMTk0LjkgNjQuOSAxOTAuNyA2My45IDE4NyA2MS44QzE4My40IDU5LjcgMTgwLjUgNTYuOSAxNzguNSA1My4yQzE3Ni41IDQ5LjUgMTc1LjUgNDUuNSAxNzUuNSA0MC45QzE3NS41IDM2LjQgMTc2LjUgMzIuMyAxNzguNSAyOC43QzE4MC41IDI1LjEgMTgzLjMgMjIuMiAxODcgMjAuMUMxOTAuNiAxOCAxOTQuOCAxNyAxOTkuNCAxN0MyMDMuOCAxNyAyMDcuOCAxOC4xIDIxMS4yIDIwLjJDMjE0LjYgMjIuNCAyMTcuMyAyNS4zIDIxOS4yIDI4LjlDMjIxLjEgMzIuNiAyMjIgMzYuNiAyMjIgNDFDMjIyIDQyIDIyMS45IDQzLjQgMjIxLjYgNDUuMUgxODUuN0MxODYuNSA0OC44IDE4OC4xIDUxLjYgMTkwLjYgNTMuNVpNMjEyLjEgMzdDMjExLjUgMzMuNCAyMTAgMzAuNiAyMDcuNyAyOC43QzIwNS40IDI2LjggMjAyLjYgMjUuOSAxOTkuNSAyNS45QzE5NS45IDI1LjkgMTkyLjggMjYuOSAxOTAuNCAyOC45QzE4OCAzMC45IDE4Ni40IDMzLjYgMTg1LjggMzdIMjEyLjFaIiBmaWxsPSJ3aGl0ZSIvPiA8cGF0aCBkPSJNMzQyLjMgNTMuNUMzNDQuOCA1NS40IDM0Ny45IDU2LjQgMzUxLjQgNTYuNEMzNTMuOCA1Ni40IDM1NiA1NS45IDM1OCA1NC45QzM1OS45IDUzLjkgMzYxLjMgNTIuNSAzNjIuMiA1MC45TDM3Mi4yIDUwLjhDMzcwLjggNTUuMiAzNjguMiA1OC42IDM2NC41IDYxLjFDMzYwLjggNjMuNiAzNTYuNCA2NC45IDM1MS4zIDY0LjlDMzQ2LjYgNjQuOSAzNDIuNCA2My45IDMzOC43IDYxLjhDMzM1LjEgNTkuNyAzMzIuMiA1Ni45IDMzMC4yIDUzLjJDMzI4LjIgNDkuNSAzMjcuMiA0NS41IDMyNy4yIDQwLjlDMzI3LjIgMzYuNCAzMjguMiAzMi4zIDMzMC4yIDI4LjdDMzMyLjIgMjUuMSAzMzUgMjIuMiAzMzguNyAyMC4xQzM0Mi4zIDE4IDM0Ni41IDE3IDM1MS4xIDE3QzM1NS41IDE3IDM1OS41IDE4LjEgMzYyLjkgMjAuMkMzNjYuMyAyMi40IDM2OSAyNS4zIDM3MC45IDI4LjlDMzcyLjggMzIuNiAzNzMuNyAzNi42IDM3My43IDQxQzM3My43IDQyIDM3My42IDQzLjQgMzczLjMgNDUuMUgzMzcuNEMzMzguMSA0OC44IDMzOS43IDUxLjYgMzQyLjMgNTMuNVpNMzYzLjcgMzdDMzYzLjEgMzMuNCAzNjEuNiAzMC42IDM1OS4zIDI4LjdDMzU3IDI2LjggMzU0LjIgMjUuOSAzNTEuMSAyNS45QzM0Ny41IDI1LjkgMzQ0LjQgMjYuOSAzNDIgMjguOUMzMzkuNiAzMC45IDMzOCAzMy42IDMzNy40IDM3SDM2My43WiIgZmlsbD0id2hpdGUiLz4gPHBhdGggZD0iTTI2MCAxOC4ySDI2OS44VjYzLjdIMjYwVjE4LjJaIiBmaWxsPSJ3aGl0ZSIvPiA8cGF0aCBkPSJNMjI5LjQgNjMuOFYxOC4ySDI1Mi42VjI3LjRIMjM5LjVWNjMuOEgyMjkuNFoiIGZpbGw9IndoaXRlIi8+IDxwYXRoIGQ9Ik01NS42IDYzLjhWMTguMkg3OC44VjI3LjRINjUuN1Y2My44SDU1LjZaIiBmaWxsPSJ3aGl0ZSIvPiA8cGF0aCBkPSJNNDUgMjcuOEM0Mi45IDI0LjEgNDAgMjEuMiAzNi4zIDE5LjJDMzIuNiAxNyAyOC42IDE2IDI0LjIgMTZDMTkuOCAxNiAxNS44IDE3IDEyLjEgMTkuMUMxMS4zIDE5LjYgMTAuNiAyMC4xIDkuOCAyMC42VjEwLjdWMC4xOTk5OTdIMFY2My45SDkuOFY1OS4yQzEwLjUgNTkuNyAxMS4zIDYwLjIgMTIuMSA2MC43QzE1LjggNjIuOCAxOS44IDYzLjkgMjQuMiA2My45QzI4LjYgNjMuOSAzMi42IDYyLjggMzYuMyA2MC43QzQwIDU4LjYgNDIuOSA1NS43IDQ1IDUyLjFDNDcuMSA0OC41IDQ4LjIgNDQuNCA0OC4yIDQwQzQ4LjIgMzUuNSA0Ny4xIDMxLjUgNDUgMjcuOFpNMzYuNSA0Ny4zQzM1LjMgNDkuNSAzMy42IDUxLjIgMzEuNCA1Mi40QzI5LjIgNTMuNiAyNi44IDU0LjMgMjQuMiA1NC4zQzIxLjYgNTQuMyAxOS4xIDUzLjcgMTcgNTIuNEMxNC44IDUxLjIgMTMuMSA0OS40IDExLjkgNDcuM0MxMC43IDQ1LjEgMTAgNDIuNyAxMCAzOS45QzEwIDM3LjIgMTAuNiAzNC43IDExLjkgMzIuNUMxMy4xIDMwLjMgMTQuOCAyOC42IDE3IDI3LjRDMTkuMiAyNi4yIDIxLjYgMjUuNSAyNC4yIDI1LjVDMjYuOCAyNS41IDI5LjMgMjYuMSAzMS40IDI3LjRDMzMuNiAyOC42IDM1LjMgMzAuNCAzNi41IDMyLjVDMzcuNyAzNC43IDM4LjQgMzcuMSAzOC40IDM5LjlDMzguNCA0Mi43IDM3LjcgNDUuMSAzNi41IDQ3LjNaIiBmaWxsPSJ3aGl0ZSIvPiA8cGF0aCBkPSJNMzI2LjEgMTguMkwzMTguMyAyOEgyNzcuM1YxOC4ySDMyNi4xWiIgZmlsbD0iIzFFNkVFNiIvPiA8cGF0aCBkPSJNMjk3LjYgNTMuOUwzMTAuNSAzNy43SDI5OC4xTDI3Ny4zIDYzLjdIMjg5LjhIMzI0LjVWNTMuOUgyOTcuNloiIGZpbGw9IiMxRTZFRTYiLz4gPC9nPiA8ZGVmcz4gPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzE2Ij4gPHJlY3Qgd2lkdGg9IjM3My42IiBoZWlnaHQ9IjY0LjkiIGZpbGw9IndoaXRlIi8+IDwvY2xpcFBhdGg+IDwvZGVmcz4gPC9zdmc+")||x(e,"src",n),x(e,"alt","brokerize logo")},m(r,i){L(r,e,i)},d(r){r&&E(e)}}}function cT(t){let e;function n(o,l){var a;return((a=o[3])==null?void 0:a.logoStyle)=="dark"?uT:sT}let r=n(t),i=r(t);return{c(){i.c(),e=Xe()},m(o,l){i.m(o,l),L(o,e,l)},p(o,l){r!==(r=n(o))&&(i.d(1),i=r(o),i&&(i.c(),i.m(e.parentNode,e)))},d(o){o&&E(e),i.d(o)}}}function fT(t){let e;return{c(){e=Ie("Impressum")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function dT(t){let e;return{c(){e=Ie("AGB")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function Kc(t){let e,n,r,i;return r=new Hr({props:{a_class:"zlc-link",href:t[4],rel:"noopener noreferrer",$$slots:{default:[hT]},$$scope:{ctx:t}}}),{c(){e=W("span"),e.textContent="|",n=j(),F(r.$$.fragment),x(e,"class","svelte-f2lykz")},m(o,l){L(o,e,l),L(o,n,l),$(r,o,l),i=!0},p(o,l){const a={};l&16&&(a.href=o[4]),l&512&&(a.$$scope={dirty:l,ctx:o}),r.$set(a)},i(o){i||(g(r.$$.fragment,o),i=!0)},o(o){b(r.$$.fragment,o),i=!1},d(o){o&&(E(e),E(n)),R(r,o)}}}function hT(t){let e;return{c(){e=Ie("Support")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function Qc(t){let e,n,r,i,o;return{c(){e=W("span"),e.textContent="|",n=j(),r=W("a"),r.textContent="Sicherheit",x(e,"class","svelte-f2lykz"),x(r,"class","zlc-link"),x(r,"rel","noopener noreferrer"),x(r,"target","_blank")},m(l,a){L(l,e,a),L(l,n,a),L(l,r,a),i||(o=tt(r,"click",t[5]),i=!0)},p:ze,d(l){l&&(E(e),E(n),E(r)),i=!1,o()}}}function mT(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S;o=new Hr({props:{target:"_blank",href:"https://brokerize.com",rel:"noopener noreferrer",$$slots:{default:[cT]},$$scope:{ctx:t}}}),c=new Hr({props:{a_class:"zlc-link",href:"https://brokerize.com/legal/imprint/",rel:"noopener noreferrer",target:"_blank",$$slots:{default:[fT]},$$scope:{ctx:t}}}),h=new Hr({props:{a_class:"zlc-link",href:"https://brokerize.com/legal/terms-and-conditions/",rel:"noopener noreferrer",target:"_blank",$$slots:{default:[dT]},$$scope:{ctx:t}}});let y=t[4]&&Kc(t),z=t[1]&&Qc(t);return{c(){e=W("footer"),n=W("div"),r=W("span"),r.textContent="Handel ermöglicht durch",i=j(),F(o.$$.fragment),l=j(),a=W("div"),s=W("span"),s.textContent="|",u=j(),F(c.$$.fragment),f=j(),d=W("span"),d.textContent="|",m=j(),F(h.$$.fragment),p=j(),y&&y.c(),v=j(),z&&z.c(),x(r,"class","svelte-f2lykz"),x(n,"class","footer-col svelte-f2lykz"),x(s,"class","zlc-hide-on-mobile svelte-f2lykz"),x(d,"class","svelte-f2lykz"),x(a,"class","footer-col svelte-f2lykz"),x(e,"class",w="footer "+(t[0]?"parent-has-no-padding":"")+" "+(t[2]?"center":"")+" svelte-f2lykz")},m(O,N){L(O,e,N),V(e,n),V(n,r),V(n,i),$(o,n,null),V(e,l),V(e,a),V(a,s),V(a,u),$(c,a,null),V(a,f),V(a,d),V(a,m),$(h,a,null),V(a,p),y&&y.m(a,null),V(a,v),z&&z.m(a,null),S=!0},p(O,[N]){const U={};N&520&&(U.$$scope={dirty:N,ctx:O}),o.$set(U);const A={};N&512&&(A.$$scope={dirty:N,ctx:O}),c.$set(A);const P={};N&512&&(P.$$scope={dirty:N,ctx:O}),h.$set(P),O[4]?y?(y.p(O,N),N&16&&g(y,1)):(y=Kc(O),y.c(),g(y,1),y.m(a,v)):y&&(ne(),b(y,1,1,()=>{y=null}),re()),O[1]?z?z.p(O,N):(z=Qc(O),z.c(),z.m(a,null)):z&&(z.d(1),z=null),(!S||N&5&&w!==(w="footer "+(O[0]?"parent-has-no-padding":"")+" "+(O[2]?"center":"")+" svelte-f2lykz"))&&x(e,"class",w)},i(O){S||(g(o.$$.fragment,O),g(c.$$.fragment,O),g(h.$$.fragment,O),g(y),S=!0)},o(O){b(o.$$.fragment,O),b(c.$$.fragment,O),b(h.$$.fragment,O),b(y),S=!1},d(O){O&&E(e),R(o),R(c),R(h),y&&y.d(),z&&z.d()}}}function gT(t){return"mailto:support@brokerize.com?subject="+encodeURIComponent(t)}function pT(t,e,n){let r,i;tn("themeConfig").subscribe(d=>{n(3,i=d)});let{parentHasNoPadding:l=!1}=e,{showSecurityLink:a=!1}=e,{center:s=!1}=e,{supportLink:u=null}=e;const c=`
25
+ <div class="zlc-richtext">
26
+ <h3>Wählen Sie Zugangsdaten sorgfältig aus und gehen Sie vorsichtig damit um</h3>
27
+ <p>Wählen Sie ein sicheres, komplexes <a href="https://www.bsi.bund.de/DE/Themen/Verbraucherinnen-und-Verbraucher/Informationen-und-Empfehlungen/Cyber-Sicherheitsempfehlungen/Accountschutz/Sichere-Passwoerter-erstellen/sichere-passwoerter-erstellen_node.html" target="_blank" rel="noopener noreferrer">Passwort</a> für Ihren Konto-/Depotzugang. Ein gutes Passwort sollte mindestens acht Zeichen lang sein und aus Groß- und Kleinbuchstaben, Ziffern und Sonderzeichen bestehen. Geben Sie das Passwort niemals weiter.</p>
28
+ <h3>Reagieren Sie nicht auf Phishing-Mails</h3>
29
+ <p>Gefälschte E-Mails sehen mittlerweile sehr professionell aus. Sowohl die <a href="https://www.bsi.bund.de/DE/Themen/Verbraucherinnen-und-Verbraucher/Cyber-Sicherheitslage/Methoden-der-Cyber-Kriminalitaet/Spam-Phishing-Co/Passwortdiebstahl-durch-Phishing/Wie-erkenne-ich-Phishing-in-E-Mails-und-auf-Webseiten/wie-erkenne-ich-phishing-in-e-mails-und-auf-webseiten_node.html" target="_blank" rel="noopener noreferrer">Phishing-Mail</a> selbst als auch die gefälschte Website, auf die ein Link im Text verweist, sind zumeist sorgfältig nachgeahmt. Achten Sie daher immer auf die Absender-Adresse und auf die URL, die sich hinter einem Link verbirgt.</p>
30
+ <h3>Speichern Sie Ihr Passwort nicht unverschlüsselt</h3>
31
+ <p>Passwörter sollten niemals unverschlüsselt auf dem PC oder im Browser <a href="https://www.bsi.bund.de/DE/Themen/Verbraucherinnen-und-Verbraucher/Informationen-und-Empfehlungen/Cyber-Sicherheitsempfehlungen/Accountschutz/Sichere-Passwoerter-erstellen/Umgang-mit-Passwoertern/umgang-mit-passwoertern_node.html#:~:text=Passw%C3%B6rter%20sollten%20niemals%20unverschl%C3%BCsselt%20auf,in%20einer%20verschl%C3%BCsselten%20Datei%20ablegen." target="_blank" rel="noopener noreferrer">gespeichert</a> werden. Um sich nicht alle Passwörter merken zu müssen, empfiehlt sich ein Passwort-Verwaltungsprogramm.</p>
32
+ <h3>Halten Sie die Software Ihrer Endgeräte aktuell und nutzen Sie Firewalls und Virenschutzprogramme</h3>
33
+ <p>Ihr Betriebssystem und Ihre Softwareprogramme wie Virenschutz und Firewall sollten immer aktuell sein - ebenso wie Browser und Plugins. Nur so ist sichergestellt, dass Sie die passenden Sicherheitsfunktionen nutzen.</p>
34
+ <h3>Melden Sie sich immer ab</h3>
35
+ <p>Loggen Sie sich bei Ihrem Broker aus, sobald Sie Ihre Aktivitäten beendet haben. Nur so wird die Datenverbindung zuverlässig getrennt. Schließen Sie außerdem das Browserfenster. Besondere Vorsicht ist bei Endgeräten geboten, zu denen mehrere Personen Zugang haben.</p>
36
+ <h3>Achten Sie auf eine sichere Verbindung</h3>
37
+ <p>Am Schlosssymbol in der Adresszeile Ihres Browsers können Sie erkennen, ob Ihre Daten sicher übertragen werden. Das Schloss muss dafür geschlossen dargestellt sein. Manche Browser färben auch das Adressfeld grün ein. Die Daten-Verschlüsselung schützt Ihre vertraulichen Kontodaten vor Dritten.</p>
38
+ </div>
39
+ `;function f(){jt.showSecurityInformation("Wichtige Informationen zur Sicherheit im Online-Brokerage",c)}return t.$$set=d=>{"parentHasNoPadding"in d&&n(0,l=d.parentHasNoPadding),"showSecurityLink"in d&&n(1,a=d.showSecurityLink),"center"in d&&n(2,s=d.center),"supportLink"in d&&n(6,u=d.supportLink)},t.$$.update=()=>{t.$$.dirty&64&&n(4,r=u?gT(u.emailSubject):null)},[l,a,s,i,r,f,u]}class jc extends Ne{constructor(e){super(),Ee(this,e,pT,mT,Ae,{parentHasNoPadding:0,showSecurityLink:1,center:2,supportLink:6},aT)}get parentHasNoPadding(){return this.$$.ctx[0]}set parentHasNoPadding(e){this.$$set({parentHasNoPadding:e}),C()}get showSecurityLink(){return this.$$.ctx[1]}set showSecurityLink(e){this.$$set({showSecurityLink:e}),C()}get center(){return this.$$.ctx[2]}set center(e){this.$$set({center:e}),C()}get supportLink(){return this.$$.ctx[6]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(jc,{parentHasNoPadding:{type:"Boolean"},showSecurityLink:{type:"Boolean"},center:{type:"Boolean"},supportLink:{}},[],[],!0);var bT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vT(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var _T={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const yT=Ua(_T),mo="a-f\\d",kT=`#?[${mo}]{3}[${mo}]?`,wT=`#?[${mo}]{6}([${mo}]{2})?`,ST=new RegExp(`[^#${mo}]`,"gi"),TT=new RegExp(`^${kT}$|^${wT}$`,"i");var zT=(t,e={})=>{if(typeof t!="string"||ST.test(t)||!TT.test(t))throw new TypeError("Expected a valid hex string");t=t.replace(/^#/,"");let n=1;t.length===8&&(n=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),t.length===4&&(n=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const r=Number.parseInt(t,16),i=r>>16,o=r>>8&255,l=r&255,a=typeof e.alpha=="number"?e.alpha:n;if(e.format==="array")return[i,o,l,a];if(e.format==="css"){const s=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${i} ${o} ${l}${s})`}return{red:i,green:o,blue:l,alpha:a}};const CT=Ua(zT),OT=/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;var IT=new RegExp(OT,"i");const Ba="-?\\d*(?:\\.\\d+)",$i=`(${Ba}?)`,Ir=`(${Ba}?%)`,Ri=`(${Ba}?%?)`,AT=`^
40
+ hsla?\\(
41
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,
42
+ \\s*${Ir}\\s*,
43
+ \\s*${Ir}\\s*
44
+ (?:,\\s*${Ri}\\s*)?
45
+ \\)
46
+ $
47
+ `.replace(/\n|\s/g,"");var DT=new RegExp(AT);const MT=`^
48
+ hsla?\\(
49
+ \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*
50
+ \\s+${Ir}
51
+ \\s+${Ir}
52
+ \\s*(?:\\s*\\/\\s*${Ri}\\s*)?
53
+ \\)
54
+ $
55
+ `.replace(/\n|\s/g,"");var ET=new RegExp(MT);const LT=`^
56
+ rgba?\\(
57
+ \\s*${$i}\\s*,
58
+ \\s*${$i}\\s*,
59
+ \\s*${$i}\\s*
60
+ (?:,\\s*${Ri}\\s*)?
61
+ \\)
62
+ $
63
+ `.replace(/\n|\s/g,"");var NT=new RegExp(LT);const PT=`^
64
+ rgba?\\(
65
+ \\s*${Ir}\\s*,
66
+ \\s*${Ir}\\s*,
67
+ \\s*${Ir}\\s*
68
+ (?:,\\s*${Ri}\\s*)?
69
+ \\)
70
+ $
71
+ `.replace(/\n|\s/g,"");var $T=new RegExp(PT);const RT=`^
72
+ rgba?\\(
73
+ \\s*${$i}
74
+ \\s+${$i}
75
+ \\s+${$i}
76
+ \\s*(?:\\s*\\/\\s*${Ri}\\s*)?
77
+ \\)
78
+ $
79
+ `.replace(/\n|\s/g,"");var FT=new RegExp(RT);const xT=`^
80
+ rgba?\\(
81
+ \\s*${Ir}
82
+ \\s+${Ir}
83
+ \\s+${Ir}
84
+ \\s*(?:\\s*\\/\\s*${Ri}\\s*)?
85
+ \\)
86
+ $
87
+ `.replace(/\n|\s/g,"");var UT=new RegExp(xT);const BT=/^transparent$/;var qT=new RegExp(BT,"i");const qa=(t,e,n)=>Math.min(Math.max(e,t),n),VT=t=>{let e=t;return typeof e!="number"&&(e=e.endsWith("%")?parseFloat(e)*255/100:parseFloat(e)),qa(Math.round(e),0,255)},Xc=t=>qa(parseFloat(t),0,100);function Zc(t){let e=t;return typeof e!="number"&&(e=e.endsWith("%")?parseFloat(e)/100:parseFloat(e)),qa(e,0,1)}function JT(t){const[e,n,r,i]=CT(t,{format:"array"});return ul([null,e,n,r,i])}function HT([,t,e,n,r=1]){let i=t;return i.endsWith("turn")?i=parseFloat(i)*360/1:i.endsWith("rad")?i=Math.round(parseFloat(i)*180/Math.PI):i=parseFloat(i),{type:"hsl",values:[i,Xc(e),Xc(n)],alpha:Zc(r===null?1:r)}}function ul([,t,e,n,r=1]){return{type:"rgb",values:[t,e,n].map(VT),alpha:Zc(r===null?1:r)}}/**
88
+ * parse-css-color
89
+ * @version v0.2.1
90
+ * @link http://github.com/noeldelgado/parse-css-color/
91
+ * @license MIT
92
+ */const WT=t=>{if(typeof t!="string")return null;const e=IT.exec(t);if(e)return JT(e[0]);const n=ET.exec(t)||DT.exec(t);if(n)return HT(n);const r=FT.exec(t)||UT.exec(t)||NT.exec(t)||$T.exec(t);if(r)return ul(r);if(qT.exec(t))return ul([null,0,0,0,0]);const i=yT[t.toLowerCase()];return i?ul([null,i[0],i[1],i[2],1]):null};function YT(t){if(!t)return"";const e=Object.assign({},p2,t.tokens);return Object.keys(e).map(n=>{const r=e[n],i=GT(n);if(i){const o=ef(e,new Set,n),l=KT(n,o);let a=`--${i+"-hsl-h"}: ${l[0]};`,s=`--${i+"-hsl-s"}: ${l[1]}%;`,u=`--${i+"-hsl-l"}: ${l[2]}%;`;return a+s+u+`--${n}: ${tf(o)};`}else return`--${n}: ${tf(r)}`}).join(";")}function GT(t){return t.includes("-color")&&t.includes("-base")?t.replace("-base",""):t=="zl-color-white"||t=="zl-color-black"?t:null}function KT(t,e){const n=WT(e);if(n&&n.type==="rgb")return jT(n.values[0],n.values[1],n.values[2]);if(n&&n.type=="hsl")return n.values;throw new Error(`colors must be HSL or RGB. tried to parse color ${t} with value ${e}`)}const QT=/^var\(\-\-([a-zA-Z0-9\-]*)\)$/;function jT(t,e,n){t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=r-Math.min(t,e,n),o=i?r===t?(e-n)/i:r===e?2+(n-t)/i:4+(t-e)/i:0;return[Math.round(60*o<0?60*o+360:60*o),Math.round(100*(i?r<=.5?i/(2*r-i):i/(2-(2*r-i)):0)),Math.round(100*(2*r-i)/2)]}function ef(t,e,n){if(e.has(n))throw new Error(`Circular reference in theme token ${n}`);e.add(n);const r=t[n];if(!r)return null;const i=r.match(QT);if(!i)return r;const o=i[1];return ef(t,e,o)}function tf(t){return t?t.startsWith("url(")?t:t.replace(/'/g,"\\'").replace(/"/g,'\\"'):""}function XT(t){yt(t,"svelte-1snqi6i",`.datepicker-popup-portal{display:none;inset:0;position:fixed}zl-module *[class*='zlc-gap-y']{display:flex;flex-direction:column;gap:var(--zl-gap-base)}zl-module *[class*='zlc-gap-y']:empty{display:none}zl-module .zlc-gap-y-form{gap:var(--zl-gap-form)}zl-module .zlc-gap-y-sm{gap:var(--zl-spacing-sm)}zl-module .zlc-gap-y-md{gap:var(--zl-spacing-md)}zl-module .zlc-gap-y-lg{gap:var(--zl-spacing-lg)}zl-module .zlc-gap-y-xl{gap:var(--zl-spacing-xl)}zl-module .zlc-gap-y-2xl{gap:var(--zl-spacing-2xl)}zl-module .zlc-gap-y-3xl{gap:var(--zl-spacing-3xl)}zl-module .zlc-gap-y-4xl{gap:var(--zl-spacing-4xl)}zl-module .zlc-spacing-y{margin-block:var(--zl-spacing-base)}zl-module .zlc-spacing-y-sm{margin-block:var(--zl-spacing-sm)}zl-module .zlc-spacing-y-md{margin-block:var(--zl-spacing-md)}zl-module .zlc-spacing-y-lg{margin-block:var(--zl-spacing-lg)}zl-module .zlc-spacing-y-xl{margin-block:var(--zl-spacing-xl)}zl-module .zlc-spacing-y-2xl{margin-block:var(--zl-spacing-2xl)}zl-module .zlc-spacing-y-3xl{margin-block:var(--zl-spacing-3xl)}zl-module .zlc-spacing-y-4xl{margin-block:var(--zl-spacing-4xl)}zl-module .zlc-max-width-xs{max-width:var(--zl-size-xs)}zl-module .zlc-max-width-sm{max-width:var(--zl-size-sm)}zl-module .zlc-max-width-md{max-width:var(--zl-size-md)}zl-module .zlc-max-width-lg{max-width:var(--zl-size-lg)}zl-module .zlc-max-width-xl{max-width:var(--zl-size-xl)}zl-module .zlc-max-width-2xl{max-width:var(--zl-size-2xl)}zl-module .zlc-hidden-empty:empty{display:none}zl-module .zlc-hidden{display:none}zl-module .zlc-invisible{border:0 !important;clip:rect(0, 0, 0, 0) !important;height:1px !important;margin:-1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;white-space:nowrap !important;width:1px !important}zl-module .zlc-link,zl-module .zlc-richtext a:not(.link)[href]{color:var(--zl-default-link-color);cursor:pointer;text-align:left;-webkit-text-decoration:var(--zl-default-link-decoration, underline);text-decoration:var(--zl-default-link-decoration, underline);text-underline-offset:var(--zl-link-underline-offset)}zl-module .zlc-link:hover,zl-module .zlc-richtext a:not(.link)[href]:hover{text-decoration:none}zl-module .zlc-icon{flex-shrink:0}zl-module .zlc-icon *{color:currentColor}zl-module .zl-popup-text .zlc-richtext p{padding:var(--zl-spacing-lg) 0 var(--zl-spacing-lg) 0}zl-module .zlc-richtext :is(h1){font-weight:var(--zl-font-weight-bold)}zl-module .zlc-richtext :is(h2),zl-module .zlc-richtext :is(h3),zl-module .zlc-richtext :is(h4),zl-module .zlc-richtext :is(h5),zl-module .zlc-richtext :is(h6){font-weight:var(--zl-font-weight-medium)}zl-module .zlc-richtext ol,zl-module .zlc-richtext ul{list-style:revert;margin:revert;padding:revert}@media(min-width: 768px){zl-module .zlc-hide-on-desktop{display:none !important}}@media(max-width: 768px){zl-module .zlc-hide-on-mobile{display:none !important}}zl-module,zl-module *,zl-module *::before,zl-module *::after{box-sizing:border-box}zl-module{color:var(--zl-default-text-color);display:block;font-family:var(--zl-font-family);font-size:var(--zl-default-font-size);isolation:isolate;line-height:normal;min-height:var(--zl-app-min-height);padding:var(--zl-app-padding);position:relative;width:100%;z-index:var(--zl-z-index, 0)}zl-module:not(.zl-module-no-background){background-color:var(--zl-app-background-color);background-image:var(--zl-app-background-image)}zl-module .zl-module-frame{background-color:var(--zl-app-background-color);background-image:var(--zl-app-background-image);border-color:var(--zl-app-frame-border-color);border-radius:var(--zl-app-frame-border-radius);border-style:var(--zl-app-frame-border-style);border-width:var(--zl-app-frame-border-width)}zl-module .zl-module-frame zl-module{background-color:transparent}zl-module .zl-module-frame.zl-module-frame-box-shadow{box-shadow:var(--zl-app-frame-box-shadow)}zl-module .zl-module-frame:not(.zl-module-frame-no-padding){padding:var(--zl-app-frame-padding)}zl-module *{font-family:inherit}zl-module hr{height:0;color:inherit;border-top-width:1px}zl-module abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}zl-module h1,zl-module h2,zl-module h3,zl-module h4,zl-module h5,zl-module h6{font-size:inherit;font-weight:inherit}zl-module b,zl-module strong{font-weight:bolder}zl-module code,zl-module kbd,zl-module samp,zl-module pre{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
93
+ monospace;font-size:1em}zl-module small{font-size:80%}zl-module sub,zl-module sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}zl-module sub{bottom:-0.25em}zl-module sup{top:-0.5em}zl-module table{text-indent:0;border-color:inherit;border-collapse:collapse;width:100%}zl-module button,zl-module input,zl-module optgroup,zl-module select,zl-module textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0;border-style:solid;border-color:transparent}zl-module button,zl-module select{text-transform:none}zl-module button,zl-module [type='button'],zl-module [type='reset'],zl-module [type='submit']{-webkit-appearance:button;appearance:button;background-color:transparent;background-image:none}zl-module :-moz-focusring{outline:auto}zl-module :-moz-ui-invalid{box-shadow:none}zl-module progress{vertical-align:baseline}zl-module ::-webkit-inner-spin-button,zl-module ::-webkit-outer-spin-button{height:auto}zl-module [type='search']{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}zl-module ::-webkit-search-decoration{-webkit-appearance:none}zl-module ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}zl-module summary{display:list-item}zl-module blockquote,zl-module dl,zl-module dd,zl-module h1,zl-module h2,zl-module h3,zl-module h4,zl-module h5,zl-module h6,zl-module hr,zl-module figure,zl-module p,zl-module pre{margin:0}zl-module div{border:0;margin:0;padding:0;min-width:0}zl-module legend{padding:0}zl-module label{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:rgb(0, 0, 0 / 0)}zl-module ol,zl-module ul,zl-module menu{list-style:none;margin:0;padding:0}zl-module textarea{resize:vertical}zl-module input::placeholder,zl-module textarea::placeholder{opacity:1;color:#9ca3af}zl-module a{color:inherit}zl-module a,zl-module button,zl-module [role='button']{cursor:pointer;touch-action:manipulation}zl-module [disabled]{cursor:default}zl-module img,zl-module svg,zl-module video,zl-module canvas,zl-module audio,zl-module iframe,zl-module embed,zl-module object{display:block;vertical-align:middle}zl-module img,zl-module video{max-width:100%;height:auto}zl-module .zl-input{background-color:var(--zl-input-background-color, var(--zl-app-background-color));border-color:var(--zl-input-border-color, var(--zl-default-border-color));border-radius:var(--zl-input-border-radius);border-width:var(--zl-input-border-width, var(--zl-spacing-xs));color:var(--zl-input-color, var(--zl-color-gray-darkest));min-width:0;padding:var(--zl-input-padding-y) var(--zl-input-padding-x);width:100%}zl-module .zl-input:focus{outline:none;border-color:var(--zl-input-focus-border-color)}zl-module .zl-input::-webkit-date-and-time-value{display:block;height:1em;margin-bottom:4px;margin-top:0;text-align:left;vertical-align:middle}zl-module .zl-input::-webkit-calendar-picker-indicator{background-image:none}zl-module .zl-input::placeholder{color:var(--zl-input-placeholder-color);opacity:1}zl-module .item--error .zl-input{border-color:var(--zl-input-focus-error-border-color)}zl-module{--zl-z-index-content:0;--zl-z-index-header:calc(var(--zl-z-index-content) + 1);--zl-z-index-modal:calc(var(--zl-z-index-header) + 1);--zl-z-index-popup:calc(var(--zl-z-index-modal) + 1);--zl-z-index:0}`)}function ZT(t){let e;const n=t[12].default,r=ht(n,t,t[11],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&2048)&&gt(r,n,i,i[11],e?mt(n,i[11],o,null):pt(i[11]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function ez(t){let e,n,r=t[6]&&nf(t);return{c(){e=W("div"),r&&r.c(),ke(e,"zl-module-frame",t[0]),ke(e,"zl-module-frame-box-shadow",t[2]),ke(e,"zl-module-frame-no-padding",t[3])},m(i,o){L(i,e,o),r&&r.m(e,null),n=!0},p(i,o){i[6]?r?(r.p(i,o),o&64&&g(r,1)):(r=nf(i),r.c(),g(r,1),r.m(e,null)):r&&(ne(),b(r,1,1,()=>{r=null}),re()),(!n||o&1)&&ke(e,"zl-module-frame",i[0]),(!n||o&4)&&ke(e,"zl-module-frame-box-shadow",i[2]),(!n||o&8)&&ke(e,"zl-module-frame-no-padding",i[3])},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d()}}}function nf(t){let e,n,r;const i=t[12].default,o=ht(i,t,t[11],null);return n=new jc({props:{parentHasNoPadding:t[3],showSecurityLink:t[5],supportLink:t[1]}}),{c(){o&&o.c(),e=j(),F(n.$$.fragment)},m(l,a){o&&o.m(l,a),L(l,e,a),$(n,l,a),r=!0},p(l,a){o&&o.p&&(!r||a&2048)&&gt(o,i,l,l[11],r?mt(i,l[11],a,null):pt(l[11]),null);const s={};a&8&&(s.parentHasNoPadding=l[3]),a&32&&(s.showSecurityLink=l[5]),a&2&&(s.supportLink=l[1]),n.$set(s)},i(l){r||(g(o,l),g(n.$$.fragment,l),r=!0)},o(l){b(o,l),b(n.$$.fragment,l),r=!1},d(l){l&&E(e),o&&o.d(l),R(n,l)}}}function tz(t){let e,n,r,i,o,l,a,s;const u=[ez,ZT],c=[];function f(d,m){return d[0]?0:d[6]?1:-1}return~(i=f(t))&&(o=c[i]=u[i](t)),{c(){e=W("zl-module"),n=W("style"),n.innerHTML="",r=j(),o&&o.c(),l=j(),a=W("div"),x(a,"class","datepicker-popup-portal"),ke(e,"zl-module-no-background",t[4]||t[0])},m(d,m){L(d,e,m),V(e,n),t[13](n),V(e,r),~i&&c[i].m(e,null),V(e,l),V(e,a),s=!0},p(d,[m]){let h=i;i=f(d),i===h?~i&&c[i].p(d,m):(o&&(ne(),b(c[h],1,1,()=>{c[h]=null}),re()),~i?(o=c[i],o?o.p(d,m):(o=c[i]=u[i](d),o.c()),g(o,1),o.m(e,l)):o=null),(!s||m&17)&&ke(e,"zl-module-no-background",d[4]||d[0])},i(d){s||(g(o),s=!0)},o(d){b(o),s=!1},d(d){d&&E(e),t[13](null),~i&&c[i].d()}}}const rf=Symbol();function nz(t,e,n){let{$$slots:r={},$$scope:i}=e,{themeStore:o=Or(null)}=e,{theme:l=bn}=e,{addFrame:a=!1}=e,{supportLink:s=null}=e,{addShadow:u=!1}=e,{noPadding:c=!1}=e,{noBackground:f=!1}=e,{showSecurityLink:d=!1}=e;tn(rf)||Di(rf,!0),Di("themeConfig",o);let m=!1,h=!1;ir(()=>{n(10,m=!0),v(l)});let p;function v(S){if(!m)return;o.set(S);const y=YT(S);n(7,p.innerHTML=`zl-module {${y}}`,p),n(6,h=!0)}function w(S){xe[S?"unshift":"push"](()=>{p=S,n(7,p)})}return t.$$set=S=>{"themeStore"in S&&n(8,o=S.themeStore),"theme"in S&&n(9,l=S.theme),"addFrame"in S&&n(0,a=S.addFrame),"supportLink"in S&&n(1,s=S.supportLink),"addShadow"in S&&n(2,u=S.addShadow),"noPadding"in S&&n(3,c=S.noPadding),"noBackground"in S&&n(4,f=S.noBackground),"showSecurityLink"in S&&n(5,d=S.showSecurityLink),"$$scope"in S&&n(11,i=S.$$scope)},t.$$.update=()=>{t.$$.dirty&1536&&m&&v(l)},[a,s,u,c,f,d,h,p,o,l,m,i,r,w]}class Pn extends Ne{constructor(e){super(),Ee(this,e,nz,tz,Ae,{themeStore:8,theme:9,addFrame:0,supportLink:1,addShadow:2,noPadding:3,noBackground:4,showSecurityLink:5},XT)}get themeStore(){return this.$$.ctx[8]}set themeStore(e){this.$$set({themeStore:e}),C()}get theme(){return this.$$.ctx[9]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[0]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[1]}set supportLink(e){this.$$set({supportLink:e}),C()}get addShadow(){return this.$$.ctx[2]}set addShadow(e){this.$$set({addShadow:e}),C()}get noPadding(){return this.$$.ctx[3]}set noPadding(e){this.$$set({noPadding:e}),C()}get noBackground(){return this.$$.ctx[4]}set noBackground(e){this.$$set({noBackground:e}),C()}get showSecurityLink(){return this.$$.ctx[5]}set showSecurityLink(e){this.$$set({showSecurityLink:e}),C()}}Le(Pn,{themeStore:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},addShadow:{type:"Boolean"},noPadding:{type:"Boolean"},noBackground:{type:"Boolean"},showSecurityLink:{type:"Boolean"}},["default"],[],!0);const Va="confirm_item_acceptance";class rz{getTermsAccepted(e){if(typeof localStorage>"u")return null;const n=of(localStorage.getItem(Va))||{};return n[e]?{acceptedAt:n[e].acceptedAt}:null}setTermsAccepted(e,n){if(typeof localStorage>"u")return;const r=of(localStorage.getItem(Va))||{};n?r[e]=n:delete r[e],localStorage.setItem(Va,JSON.stringify(r))}}function of(t){try{return JSON.parse(t)}catch{return null}}let Ja=null;function iz(){return Ja||(Ja=new rz),Ja}function oz(t){yt(t,"svelte-su2cwn",".cards-view.svelte-su2cwn{display:grid;grid-template-columns:1fr 1fr;gap:1em}")}function lf(t,e,n){const r=t.slice();return r[23]=e[n],r}function lz(t){let e,n,r,i,o,l,a,s,u,c,f,d,m=At(t[7]),h=[];for(let v=0;v<m.length;v+=1)h[v]=af(lf(t,m,v));const p=v=>b(h[v],1,1,()=>{h[v]=null});return{c(){e=W("div"),n=W("div"),r=W("div"),i=Ie(t[6]),o=j(),l=W("div"),a=W("span"),a.textContent="Weitere Informationen anzeigen.",s=j(),u=W("div");for(let v=0;v<h.length;v+=1)h[v].c();x(a,"class","zlc-link"),x(n,"class","zlc-richtext zlc-gap-y"),x(u,"class","cards-view svelte-su2cwn"),x(e,"class","zlc-gap-y-3xl")},m(v,w){L(v,e,w),V(e,n),V(n,r),V(r,i),V(n,o),V(n,l),V(l,a),V(e,s),V(e,u);for(let S=0;S<h.length;S+=1)h[S]&&h[S].m(u,null);c=!0,f||(d=tt(a,"click",t[11]),f=!0)},p(v,w){if((!c||w&64)&&Ke(i,v[6]),w&1415){m=At(v[7]);let S;for(S=0;S<m.length;S+=1){const y=lf(v,m,S);h[S]?(h[S].p(y,w),g(h[S],1)):(h[S]=af(y),h[S].c(),g(h[S],1),h[S].m(u,null))}for(ne(),S=m.length;S<h.length;S+=1)p(S);re()}},i(v){if(!c){for(let w=0;w<m.length;w+=1)g(h[w]);c=!0}},o(v){h=h.filter(Boolean);for(let w=0;w<h.length;w+=1)b(h[w]);c=!1},d(v){v&&E(e),Mn(h,v),f=!1,d()}}}function az(t){var r,i;let e,n;return e=new Ra({props:{logo:((r=t[2])==null?void 0:r.logoStyle)=="dark"?t[9].images.dark:t[9].images.light,broker:t[9].displayName,checkboxes:((i=t[8])==null?void 0:i.confirmItems)||[],details:!0,confirmationStorage:t[1],$$slots:{content:[uz]},$$scope:{ctx:t}}}),e.$on("hideDetails",t[13]),e.$on("login",t[14]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){var s,u;const a={};l&516&&(a.logo=((s=o[2])==null?void 0:s.logoStyle)=="dark"?o[9].images.dark:o[9].images.light),l&512&&(a.broker=o[9].displayName),l&256&&(a.checkboxes=((u=o[8])==null?void 0:u.confirmItems)||[]),l&2&&(a.confirmationStorage=o[1]),l&67109152&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function sz(t){var i;let e,n=((i=t[8])==null?void 0:i.disclaimerHtml)+"",r;return{c(){e=new hr(!1),r=j(),e.a=r},m(o,l){e.m(n,o,l),L(o,r,l)},p(o,l){var a;l&256&&n!==(n=((a=o[8])==null?void 0:a.disclaimerHtml)+"")&&e.p(n)},d(o){o&&(e.d(),E(r))}}}function af(t){var o,l;let e,n;function r(){return t[15](t[23])}function i(){return t[16](t[23])}return e=new Ra({props:{logo:((o=t[2])==null?void 0:o.logoStyle)=="dark"?t[23].images.dark:t[23].images.light,broker:t[23].displayName,confirmationStorage:t[1],checkboxes:((l=t[8])==null?void 0:l.confirmItems)||[],$$slots:{content:[sz]},$$scope:{ctx:t}}}),e.$on("showDetails",r),e.$on("login",i),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),n=!0},p(a,s){var c,f;t=a;const u={};s&132&&(u.logo=((c=t[2])==null?void 0:c.logoStyle)=="dark"?t[23].images.dark:t[23].images.light),s&128&&(u.broker=t[23].displayName),s&2&&(u.confirmationStorage=t[1]),s&256&&(u.checkboxes=((f=t[8])==null?void 0:f.confirmItems)||[]),s&67109120&&(u.$$scope={dirty:s,ctx:t}),e.$set(u)},i(a){n||(g(e.$$.fragment,a),n=!0)},o(a){b(e.$$.fragment,a),n=!1},d(a){R(e,a)}}}function sf(t){let e;return{c(){e=W("p")},m(n,r){L(n,e,r),e.innerHTML=t[5]},p(n,r){r&32&&(e.innerHTML=n[5])},d(n){n&&E(e)}}}function uz(t){var l;let e,n,r=((l=t[8])==null?void 0:l.disclaimerHtml)+"",i,o=t[5]&&sf(t);return{c(){o&&o.c(),e=j(),n=new hr(!1),i=Xe(),n.a=i},m(a,s){o&&o.m(a,s),L(a,e,s),n.m(r,a,s),L(a,i,s)},p(a,s){var u;a[5]?o?o.p(a,s):(o=sf(a),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),s&256&&r!==(r=((u=a[8])==null?void 0:u.disclaimerHtml)+"")&&n.p(r)},d(a){a&&(E(e),E(i),n.d()),o&&o.d(a)}}}function cz(t){let e,n,r,i;const o=[az,lz],l=[];function a(s,u){return s[9]?0:1}return n=a(t),r=l[n]=o[n](t),{c(){e=W("div"),r.c(),x(e,"class","zlc-gap-y")},m(s,u){L(s,e,u),l[n].m(e,null),i=!0},p(s,u){let c=n;n=a(s),n===c?l[n].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),r=l[n],r?r.p(s,u):(r=l[n]=o[n](s),r.c()),g(r,1),r.m(e,null))},i(s){i||(g(r),i=!0)},o(s){b(r),i=!1},d(s){s&&E(e),l[n].d()}}}function fz(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[cz]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&67109863&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function dz(t){let e,n;return e=new Pn({props:{theme:t[2],addFrame:t[3],supportLink:t[4],showSecurityLink:!0,$$slots:{default:[fz]},$$scope:{ctx:t}}}),e.$on("openSecurityModal",t[17]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&4&&(o.theme=r[2]),i&8&&(o.addFrame=r[3]),i&16&&(o.supportLink=r[4]),i&67109863&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function hz(t,e,n){let{theme:r=null}=e,{apiCtx:i=null}=e,{addFrame:o=!0}=e,{supportLink:l=null}=e,{confirmationStorage:a=null}=e,{brokerName:s=null}=e,{disclaimerPrefixHtml:u=""}=e,{infoPreamble:c="Sie können sich bei diesen Partner-Brokern einloggen und direkt handeln oder Ihr Depot einsehen, ohne die Anwendung verlassen zu müssen. Es entstehen für Sie keine Zusatzkosten. Höchste Sicherheitsstandards sind gewährleistet."}=e;a||(a=iz());const f=Bt();let d=[],m=!1,h;async function p(){if(!m||!i)return;const[Y,B]=await Promise.all([i.getBrokers(),i.getLegalTerms()]);n(7,d=Y.brokers),n(8,h=B)}ir(()=>{m=!0,p()});const v=`<div class="zlc-richtext">
94
+ <h3>So sicher wie bei Ihrem Broker</h3>
95
+ <p>
96
+ brokerize unterhält Kooperationen mit den angebundenen Brokern, um diese Dienstleistung anbieten zu
97
+ können. Die technische und rechtliche Umsetzung ist von Ihrem Broker abgenommen und freigegeben. Für die
98
+ höchstmögliche Sicherheit werden sichere Schnittstellen der Broker genutzt.
99
+ </p>
100
+ <h3>Datensicherheit</h3>
101
+ <p>
102
+ Ihre Zugangsdaten gehören Ihnen. brokerize leitet Ihre Login-Daten an den Broker weiter und speichert
103
+ diese zu keinem Zeitpunkt. Die beim Broker-Login entstehende Verbindung zum Broker wird in Form eines
104
+ Tokens sicher bei brokerize aufbewahrt und beim Logout wieder beendet. Ihre Depotdaten werden dabei auf
105
+ einem Server der brokerize vorgehalten, solange Ihre Verbindung zum Broker aktiv ist und anschließend
106
+ gelöscht. Daten, die zu Revisionszwecken benötigt werden, werden anonymisiert gespeichert. Da brokerize
107
+ alle Daten anonymisiert und pseudonymisiert, ist eine Zuordnung der Daten zu natürlichen Personen nicht
108
+ möglich.
109
+ </p>
110
+
111
+ <h3>Verschlüsselung</h3>
112
+ <p>
113
+ Durch die HTTPS-/TLS-Verschlüsselung können die Daten während der Session (also der Übertragungs- bzw.
114
+ Verbindungssituation) nicht durch Dritte verändert, gelesen oder manipuliert werden.
115
+ </p>
116
+
117
+ <h3>Ausführungsqualität</h3>
118
+ <p>
119
+ Alle Transaktionen werden an Ihren Broker weitergeleitet. Für die korrekte Orderausführung ist
120
+ ausschließlich Ihr Broker bzw. der gewählte Handelsplatz verantwortlich. Eventuell auftretende
121
+ technische Störungen bei brokerize haben darauf keinen Einfluss.
122
+ </p>
123
+
124
+ <h3>Vergütung von brokerize</h3>
125
+ <p>
126
+ brokerize wird von kooperierenden Brokern für seine Dienstleistung vergütet, wodurch Ihnen keine
127
+ zusätzlichen Kosten entstehen.
128
+ </p>
129
+
130
+ <h3>Haftungsdach</h3>
131
+ <p>
132
+ Wer Bankgeschäfte betreiben oder Finanz- und Wertpapierdienstleistungen erbringen will, benötigt die
133
+ (schriftliche) Erlaubnis der Aufsichtsbehörde (BaFin-Zulassung). Die brokerize GmbH ist als vertraglich
134
+ gebundener Vermittler gemäß § 3 Abs. 2 WpIG für Rechnung und unter Haftung der DonauCapital Wertpapier
135
+ GmbH tätig und im Vermittlerregister der BaFin eingetragen.
136
+ </p>
137
+ </div> `;function w(Y){jt.showSecurityInformation("Gute Gründe für den Handel mit brokerize",v)}let S=null;function y(Y,B){n(9,S=(B||[]).find(J=>J.brokerName==Y))}function z(){var Y;if(!(!S||!h)){for(const B of h.confirmItems||[])if(!((Y=a.getTermsAccepted(B.id))!=null&&Y.acceptedAt))return;f("login",{brokerName:S.brokerName})}}const O=()=>{n(0,s=null)},N=()=>f("login",{brokerName:S.brokerName}),U=Y=>{n(0,s=Y.brokerName)},A=Y=>f("login",{brokerName:Y.brokerName});function P(Y){qe.call(this,t,Y)}return t.$$set=Y=>{"theme"in Y&&n(2,r=Y.theme),"apiCtx"in Y&&n(12,i=Y.apiCtx),"addFrame"in Y&&n(3,o=Y.addFrame),"supportLink"in Y&&n(4,l=Y.supportLink),"confirmationStorage"in Y&&n(1,a=Y.confirmationStorage),"brokerName"in Y&&n(0,s=Y.brokerName),"disclaimerPrefixHtml"in Y&&n(5,u=Y.disclaimerPrefixHtml),"infoPreamble"in Y&&n(6,c=Y.infoPreamble)},t.$$.update=()=>{t.$$.dirty&4096&&i&&p(),t.$$.dirty&129&&y(s,d),t.$$.dirty&768&&S&&h&&z()},[s,a,r,o,l,u,c,d,h,S,f,w,i,O,N,U,A,P]}class Ha extends Ne{constructor(e){super(),Ee(this,e,hz,dz,Ae,{theme:2,apiCtx:12,addFrame:3,supportLink:4,confirmationStorage:1,brokerName:0,disclaimerPrefixHtml:5,infoPreamble:6},oz)}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get apiCtx(){return this.$$.ctx[12]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}get confirmationStorage(){return this.$$.ctx[1]}set confirmationStorage(e){this.$$set({confirmationStorage:e}),C()}get brokerName(){return this.$$.ctx[0]}set brokerName(e){this.$$set({brokerName:e}),C()}get disclaimerPrefixHtml(){return this.$$.ctx[5]}set disclaimerPrefixHtml(e){this.$$set({disclaimerPrefixHtml:e}),C()}get infoPreamble(){return this.$$.ctx[6]}set infoPreamble(e){this.$$set({infoPreamble:e}),C()}}Le(Ha,{theme:{},apiCtx:{},addFrame:{type:"Boolean"},supportLink:{},confirmationStorage:{},brokerName:{},disclaimerPrefixHtml:{},infoPreamble:{}},[],[],!0);function mz(t){let e,n;const r=[{theme:t[3]},{addFrame:t[0]},{supportLink:t[1]},{confirmationStorage:t[2]},t[5]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ha({props:i}),e.$on("login",t[8]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&47?ut(r,[l&8&&{theme:o[3]},l&1&&{addFrame:o[0]},l&2&&{supportLink:o[1]},l&4&&{confirmationStorage:o[2]},l&32&&kt(o[5])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function gz(t){let e,n;const r=[t[5],{requiredProps:t[4]}];let i={$$slots:{default:[mz]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&48?ut(r,[l&32&&kt(o[5]),l&16&&{requiredProps:o[4]}]):{};l&559&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function pz(t,e,n){let{apiCtx:r=null}=e,{addFrame:i=!0}=e,{supportLink:o=null}=e,{openExternalLink:l=null}=e,{confirmationStorage:a=null}=e,{theme:s=bn}=e,u=["apiCtx"];function c(f){qe.call(this,t,f)}return t.$$set=f=>{n(5,e=ve(ve({},e),je(f))),"apiCtx"in f&&n(6,r=f.apiCtx),"addFrame"in f&&n(0,i=f.addFrame),"supportLink"in f&&n(1,o=f.supportLink),"openExternalLink"in f&&n(7,l=f.openExternalLink),"confirmationStorage"in f&&n(2,a=f.confirmationStorage),"theme"in f&&n(3,s=f.theme)},e=je(e),[i,o,a,s,u,e,r,l,c]}class uf extends Ne{constructor(e){super(),Ee(this,e,pz,gz,Ae,{apiCtx:6,addFrame:0,supportLink:1,openExternalLink:7,confirmationStorage:2,theme:3})}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get addFrame(){return this.$$.ctx[0]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[1]}set supportLink(e){this.$$set({supportLink:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}get confirmationStorage(){return this.$$.ctx[2]}set confirmationStorage(e){this.$$set({confirmationStorage:e}),C()}get theme(){return this.$$.ctx[3]}set theme(e){this.$$set({theme:e}),C()}}customElements.define("brokerize-broker-list",Le(uf,{apiCtx:{},addFrame:{type:"Boolean"},supportLink:{},openExternalLink:{},confirmationStorage:{},theme:{}},[],[],!0));function bz(t){yt(t,"svelte-1tntjuc",`.button-bar.svelte-1tntjuc{display:flex;flex-direction:column;gap:var(--zl-spacing-md)}@media(min-width: 768px){.button-bar.svelte-1tntjuc{display:grid;grid-template-areas:'aside main';grid-template-columns:auto 1fr;grid-template-rows:1fr
138
+ }}`)}const vz=t=>({}),cf=t=>({});function _z(t){let e;const n=t[2].default,r=ht(n,t,t[1],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&2)&&gt(r,n,i,i[1],e?mt(n,i[1],o,null):pt(i[1]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function yz(t){let e,n,r;const i=t[2].aside,o=ht(i,t,t[1],cf),l=t[2].default,a=ht(l,t,t[1],null);return{c(){e=W("div"),o&&o.c(),n=j(),a&&a.c(),x(e,"class","button-bar svelte-1tntjuc")},m(s,u){L(s,e,u),o&&o.m(e,null),V(e,n),a&&a.m(e,null),r=!0},p(s,u){o&&o.p&&(!r||u&2)&&gt(o,i,s,s[1],r?mt(i,s[1],u,vz):pt(s[1]),cf),a&&a.p&&(!r||u&2)&&gt(a,l,s,s[1],r?mt(l,s[1],u,null):pt(s[1]),null)},i(s){r||(g(o,s),g(a,s),r=!0)},o(s){b(o,s),b(a,s),r=!1},d(s){s&&E(e),o&&o.d(s),a&&a.d(s)}}}function kz(t){let e,n,r,i;const o=[yz,_z],l=[];function a(s,u){return s[0]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,[u]){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function wz(t,e,n){let{$$slots:r={},$$scope:i}=e,{showAside:o=!1}=e;return t.$$set=l=>{"showAside"in l&&n(0,o=l.showAside),"$$scope"in l&&n(1,i=l.$$scope)},[o,i,r]}class go extends Ne{constructor(e){super(),Ee(this,e,wz,kz,Ae,{showAside:0},bz)}get showAside(){return this.$$.ctx[0]}set showAside(e){this.$$set({showAside:e}),C()}}Le(go,{showAside:{type:"Boolean"}},["aside","default"],[],!0);function Sz(t){yt(t,"svelte-14qy2lo",".zl-notification.svelte-14qy2lo.svelte-14qy2lo{align-items:flex-start;background-color:var(--zl-notification-info-background-color, var(--zl-color-gray-lighter));border-radius:var(--zl-default-border-radius);border:1px solid var(--zl-notification-border-color, var(--zl-default-border-color));box-shadow:var(--zl-default-box-shadow);color:var(--zl-notification-info-color, var(--zl-default-text-color));display:flex;font-size:var(--zl-notification-font-size, var(--zl-font-size-xs));gap:var(--zl-spacing-md);min-height:calc(var(--zl-default-padding-y) * 4);padding:var(--zl-default-padding-y) var(--zl-default-padding-x);position:relative}[part='title'].svelte-14qy2lo.svelte-14qy2lo,.icon{color:var(--zl-notification-info-color, var(--zl-default-text-color));font-weight:var(--zl-notification-font-weight, var(--zl-font-weight-bold));padding-top:1px}[part='content'].svelte-14qy2lo.svelte-14qy2lo{display:flex;gap:var(--zl-spacing-md);width:100%}[part='text-container'].svelte-14qy2lo.svelte-14qy2lo{display:flex;flex-direction:column;flex:1 1 auto;gap:var(--zl-spacing-md)}[part='actions'].svelte-14qy2lo.svelte-14qy2lo{margin-bottom:var(--zl-spacing-md)}[part='close-btn'].svelte-14qy2lo.svelte-14qy2lo{min-width:16px;max-width:16px}.error.svelte-14qy2lo.svelte-14qy2lo{background-color:var(--zl-notification-error-background-color, var(--zl-color-error-decent));border-color:var(--zl-notification-error-border-color, var(--zl-color-error-base));color:var(--zl-notification-error-color, var(--zl-color-error-dark))}.error.svelte-14qy2lo [part='title'].svelte-14qy2lo,.error.svelte-14qy2lo .icon{color:var(--zl-notification-error-color, var(--zl-color-error-dark))}.warning.svelte-14qy2lo.svelte-14qy2lo{background-color:var(--zl-notification-warning-background-color, var(--zl-color-warning-decent));border-color:var(--zl-notification-warning-border-color, var(--zl-color-warning-base));color:var(--zl-notification-warning-color, var(--zl-color-warning-dark))}.warning.svelte-14qy2lo [part='title'].svelte-14qy2lo,.warning.svelte-14qy2lo .icon{color:var(--zl-notification-warning-color, var(--zl-color-warning-dark))}.success.svelte-14qy2lo.svelte-14qy2lo{background-color:var(--zl-notification-success-background-color, var(--zl-color-success-decent));border-color:var(--zl-notification-success-border-color, var(--zl-color-success-base));color:var(--zl-notification-success-color, var(--zl-color-success-dark))}.success.svelte-14qy2lo [part='title'].svelte-14qy2lo,.success.svelte-14qy2lo .icon{color:var(--zl-notification-success-color, var(--zl-color-success-dark))}")}const Tz=t=>({}),ff=t=>({});function df(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h=!t[5]&&hf(t),p=t[1]&&mf(t);const v=t[13].default,w=ht(v,t,t[12],null),S=w||zz(t);let y=t[3]&&gf(t),z=t[10].actions&&pf(t),O=!t[4]&&bf(t),N=[{part:"notification"},{"aria-live":c=t[0]==="error"?"assertive":"polite"},{class:"zl-notification zlc-gap-y"},t[9]],U={};for(let A=0;A<N.length;A+=1)U=ve(U,N[A]);return{c(){e=W("div"),n=W("div"),h&&h.c(),r=j(),i=W("div"),p&&p.c(),o=j(),l=W("div"),S&&S.c(),a=j(),y&&y.c(),s=j(),z&&z.c(),u=j(),O&&O.c(),x(l,"part","text"),x(l,"class","zlc-hidden-empty"),x(i,"part","text-container"),x(i,"class","svelte-14qy2lo"),x(n,"part","content"),x(n,"class","svelte-14qy2lo"),En(e,U),ke(e,"error",t[0]==="error"),ke(e,"info",t[0]==="info"),ke(e,"success",t[0]==="success"),ke(e,"warning",t[0]==="warning"),ke(e,"svelte-14qy2lo",!0)},m(A,P){L(A,e,P),V(e,n),h&&h.m(n,null),V(n,r),V(n,i),p&&p.m(i,null),V(i,o),V(i,l),S&&S.m(l,null),V(i,a),y&&y.m(i,null),V(i,s),z&&z.m(i,null),V(n,u),O&&O.m(n,null),f=!0,d||(m=tt(e,"click",t[14]),d=!0)},p(A,P){A[5]?h&&(ne(),b(h,1,1,()=>{h=null}),re()):h?(h.p(A,P),P&32&&g(h,1)):(h=hf(A),h.c(),g(h,1),h.m(n,r)),A[1]?p?p.p(A,P):(p=mf(A),p.c(),p.m(i,o)):p&&(p.d(1),p=null),w?w.p&&(!f||P&4096)&&gt(w,v,A,A[12],f?mt(v,A[12],P,null):pt(A[12]),null):S&&S.p&&(!f||P&4)&&S.p(A,f?P:-1),A[3]?y?y.p(A,P):(y=gf(A),y.c(),y.m(i,s)):y&&(y.d(1),y=null),A[10].actions?z?(z.p(A,P),P&1024&&g(z,1)):(z=pf(A),z.c(),g(z,1),z.m(i,null)):z&&(ne(),b(z,1,1,()=>{z=null}),re()),A[4]?O&&(ne(),b(O,1,1,()=>{O=null}),re()):O?(O.p(A,P),P&16&&g(O,1)):(O=bf(A),O.c(),g(O,1),O.m(n,null)),En(e,U=ut(N,[{part:"notification"},(!f||P&1&&c!==(c=A[0]==="error"?"assertive":"polite"))&&{"aria-live":c},{class:"zl-notification zlc-gap-y"},P&512&&A[9]])),ke(e,"error",A[0]==="error"),ke(e,"info",A[0]==="info"),ke(e,"success",A[0]==="success"),ke(e,"warning",A[0]==="warning"),ke(e,"svelte-14qy2lo",!0)},i(A){f||(g(h),g(S,A),g(z),g(O),f=!0)},o(A){b(h),b(S,A),b(z),b(O),f=!1},d(A){A&&E(e),h&&h.d(),p&&p.d(),S&&S.d(A),y&&y.d(),z&&z.d(),O&&O.d(),d=!1,m()}}}function hf(t){let e,n,r;var i=t[7];function o(l,a){return{props:{size:16,"stroke-width":1.5,class:"zlc-icon"}}}return i&&(e=fn(i,o())),{c(){e&&F(e.$$.fragment),n=Xe()},m(l,a){e&&$(e,l,a),L(l,n,a),r=!0},p(l,a){if(a&128&&i!==(i=l[7])){if(e){ne();const s=e;b(s.$$.fragment,1,0,()=>{R(s,1)}),re()}i?(e=fn(i,o()),F(e.$$.fragment),g(e.$$.fragment,1),$(e,n.parentNode,n)):e=null}},i(l){r||(e&&g(e.$$.fragment,l),r=!0)},o(l){e&&b(e.$$.fragment,l),r=!1},d(l){l&&E(n),e&&R(e,l)}}}function mf(t){let e,n;return{c(){e=W("div"),n=Ie(t[1]),x(e,"part","title"),x(e,"class","svelte-14qy2lo")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&2&&Ke(n,r[1])},d(r){r&&E(e)}}}function zz(t){let e;return{c(){e=Ie(t[2])},m(n,r){L(n,e,r)},p(n,r){r&4&&Ke(e,n[2])},d(n){n&&E(e)}}}function gf(t){let e,n;return{c(){e=W("div"),n=Ie(t[3]),x(e,"part","caption")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&8&&Ke(n,r[3])},d(r){r&&E(e)}}}function pf(t){let e,n;const r=t[13].actions,i=ht(r,t,t[12],ff);return{c(){e=W("div"),i&&i.c(),x(e,"part","actions"),x(e,"class","svelte-14qy2lo")},m(o,l){L(o,e,l),i&&i.m(e,null),n=!0},p(o,l){i&&i.p&&(!n||l&4096)&&gt(i,r,o,o[12],n?mt(r,o[12],l,Tz):pt(o[12]),ff)},i(o){n||(g(i,o),n=!0)},o(o){b(i,o),n=!1},d(o){o&&E(e),i&&i.d(o)}}}function bf(t){let e,n,r;return n=new nt({props:{icon:"X",variant:"unrecognizable",size:"xs"}}),n.$on("click",t[15]),{c(){e=W("div"),F(n.$$.fragment),x(e,"part","close-btn"),x(e,"class","svelte-14qy2lo")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p:ze,i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function Cz(t){let e,n,r=t[6]&&df(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,[o]){i[6]?r?(r.p(i,o),o&64&&g(r,1)):(r=df(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function Oz(t,e,n){let r;const i=["variant","title","text","caption","timeout","hideCloseButton","hideIcon"];let o=Dn(e,i),{$$slots:l={},$$scope:a}=e;const s=Xo(l);let{variant:u=null}=e,{title:c=""}=e,{text:f=""}=e,{caption:d=""}=e,{timeout:m=0}=e,{hideCloseButton:h=!1}=e,{hideIcon:p=!1}=e;const v=Bt();let w=!0,S;const y=U=>{switch(U){case"success":return an.CheckCircle;case"error":return an.XOctagon;case"info":return an.Info;case"warning":return an.AlertTriangle;default:return null}};function z(U){n(6,w=!1),v("close",{timeout:U===!0})}ir(()=>(m&&(S=setTimeout(()=>z(!0),m)),()=>{clearTimeout(S)}));function O(U){qe.call(this,t,U)}const N=()=>z(!0);return t.$$set=U=>{e=ve(ve({},e),je(U)),n(9,o=Dn(e,i)),"variant"in U&&n(0,u=U.variant),"title"in U&&n(1,c=U.title),"text"in U&&n(2,f=U.text),"caption"in U&&n(3,d=U.caption),"timeout"in U&&n(11,m=U.timeout),"hideCloseButton"in U&&n(4,h=U.hideCloseButton),"hideIcon"in U&&n(5,p=U.hideIcon),"$$scope"in U&&n(12,a=U.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&n(7,r=y(u))},[u,c,f,d,h,p,w,r,z,o,s,m,a,l,O,N]}class or extends Ne{constructor(e){super(),Ee(this,e,Oz,Cz,Ae,{variant:0,title:1,text:2,caption:3,timeout:11,hideCloseButton:4,hideIcon:5},Sz)}get variant(){return this.$$.ctx[0]}set variant(e){this.$$set({variant:e}),C()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),C()}get text(){return this.$$.ctx[2]}set text(e){this.$$set({text:e}),C()}get caption(){return this.$$.ctx[3]}set caption(e){this.$$set({caption:e}),C()}get timeout(){return this.$$.ctx[11]}set timeout(e){this.$$set({timeout:e}),C()}get hideCloseButton(){return this.$$.ctx[4]}set hideCloseButton(e){this.$$set({hideCloseButton:e}),C()}get hideIcon(){return this.$$.ctx[5]}set hideIcon(e){this.$$set({hideIcon:e}),C()}}Le(or,{variant:{},title:{},text:{},caption:{},timeout:{},hideCloseButton:{type:"Boolean"},hideIcon:{type:"Boolean"}},["default","actions"],[],!0);function Iz(t){yt(t,"svelte-27p16",".image.svelte-27p16{display:block;margin:var(--zl-spacing-md) auto}")}function vf(t){let e,n=(t[0].challengeExplanation||"")+"",r;return{c(){e=W("p"),r=Ie(n)},m(i,o){L(i,e,o),V(e,r)},p(i,o){o&1&&n!==(n=(i[0].challengeExplanation||"")+"")&&Ke(r,n)},d(i){i&&E(e)}}}function Az(t){let e,n=t[0].challengeExplanation&&vf(t);return{c(){n&&n.c(),e=Xe()},m(r,i){n&&n.m(r,i),L(r,e,i)},p(r,i){r[0].challengeExplanation?n?n.p(r,i):(n=vf(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&E(e),n&&n.d(r)}}}function _f(t){let e,n,r;return{c(){e=W("img"),x(e,"class","image svelte-27p16"),x(e,"alt",n=t[0].challengeExplanation),Qn(e.src,r="data:image/png;base64, "+t[0].challengePrompt)||x(e,"src",r)},m(i,o){L(i,e,o)},p(i,o){o&1&&n!==(n=i[0].challengeExplanation)&&x(e,"alt",n),o&1&&!Qn(e.src,r="data:image/png;base64, "+i[0].challengePrompt)&&x(e,"src",r)},d(i){i&&E(e)}}}function Dz(t){let e,n,r,i;e=new or({props:{hideCloseButton:!0,title:t[0].challengePromptType!=="base64png"?t[0].challengePrompt:null,$$slots:{default:[Az]},$$scope:{ctx:t}}});let o=t[0].challengePromptType==="base64png"&&_f(t);return{c(){F(e.$$.fragment),n=j(),o&&o.c(),r=Xe()},m(l,a){$(e,l,a),L(l,n,a),o&&o.m(l,a),L(l,r,a),i=!0},p(l,[a]){const s={};a&1&&(s.title=l[0].challengePromptType!=="base64png"?l[0].challengePrompt:null),a&3&&(s.$$scope={dirty:a,ctx:l}),e.$set(s),l[0].challengePromptType==="base64png"?o?o.p(l,a):(o=_f(l),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i(l){i||(g(e.$$.fragment,l),i=!0)},o(l){b(e.$$.fragment,l),i=!1},d(l){l&&(E(n),E(r)),R(e,l),o&&o.d(l)}}}function Mz(t,e,n){let{challenge:r=null}=e;return t.$$set=i=>{"challenge"in i&&n(0,r=i.challenge)},[r]}class Fi extends Ne{constructor(e){super(),Ee(this,e,Mz,Dz,Ae,{challenge:0},Iz)}get challenge(){return this.$$.ctx[0]}set challenge(e){this.$$set({challenge:e}),C()}}Le(Fi,{challenge:{}},[],[],!0);const yf={assetsPath:"https://assets.brokerize.com"};function Ez(t){yt(t,"svelte-ekgw94",`.svg-loader-container.svelte-ekgw94{display:flex}.svg-loader.svelte-ekgw94{display:inline-block;position:relative}.overlay.svelte-ekgw94{display:grid;place-items:center;position:absolute;inset:0;background-color:hsl(
139
+ var(--zl-color-white-hsl-h) var(--zl-color-white-hsl-s) var(--zl-color-white-hsl-l) /
140
+ var(--zl-overlay-backdrop-opacity)
141
+ )}`)}function kf(t){let e;return{c(){e=Ie("...")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function Lz(t){let e,n,r,i,o=(t[3]&&t[5]||t[4])&&kf();return{c(){e=W("zl-loader"),o&&o.c(),n=j(),r=W("span"),i=W("div"),x(r,"class","svg-loader svelte-ekgw94"),_n(r,"transform","scale("+(""+t[6])+")"),ii(e,"class","svg-loader-container svelte-ekgw94"),_n(e,"justify-content",t[0]),_n(e,"padding-block",t[6]*2.5+"%"),ke(e,"overlay",t[1])},m(l,a){L(l,e,a),o&&o.m(e,null),V(e,n),V(e,r),V(r,i),t[12](i)},p(l,[a]){l[3]&&l[5]||l[4]?o||(o=kf(),o.c(),o.m(e,n)):o&&(o.d(1),o=null),a&64&&_n(r,"transform","scale("+(""+l[6])+")"),a&1&&_n(e,"justify-content",l[0]),a&64&&_n(e,"padding-block",l[6]*2.5+"%"),a&2&&ke(e,"overlay",l[1])},i:ze,o:ze,d(l){l&&E(e),o&&o.d(),t[12](null)}}}let cl={};async function Nz(t){const e=await fetch(t);if(e.ok)return await e.text();throw new Error("Failed to fetch SVG "+t)}async function Pz(t){return cl[t]||(cl[t]=Nz(t).catch(e=>{throw cl[t]=null,e})),cl[t]}function $z(t,e,n){let r,i,{variant:o="spinner"}=e;const l={brokerize:"brokerize_a81c25a0.svg",spinner:"spinner_136200f6.svg",order:"order_f6ca3ead.svg",loading:"loading_ca40b31e.svg"};let a=!0,s=null,u,c=!1,f=!1;setTimeout(()=>{n(5,f=!0)},750);let{alignment:d="center"}=e,{size:m=0}=e,{repeat:h=!0}=e,{overlay:p=!1}=e;mr(()=>{c=!0});async function v(z){Pz(z).then(O=>{c||(n(4,s=null),u?(n(2,u.innerHTML=O,u),h||w()):console.warn("SVG Container not ready"),n(3,a=!1))},O=>{n(3,a=!1),n(4,s=O)})}function w(){const z=u.querySelectorAll("g"),O=u.querySelector("svg").getAttribute("data-duration-ms");if(O!=null){const N=parseFloat(O);setTimeout(()=>{z.forEach(U=>{U.style.animationPlayState="paused"})},N/2)}}let S=!1;function y(z){xe[z?"unshift":"push"](()=>{u=z,n(2,u)})}return t.$$set=z=>{"variant"in z&&n(7,o=z.variant),"alignment"in z&&n(0,d=z.alignment),"size"in z&&n(8,m=z.size),"repeat"in z&&n(9,h=z.repeat),"overlay"in z&&n(1,p=z.overlay)},t.$$.update=()=>{t.$$.dirty&128&&n(11,r=`${yf.assetsPath}/loading-animations/${l[o]}`),t.$$.dirty&1028&&u&&!S&&n(10,S=!0),t.$$.dirty&3072&&r&&S&&v(r),t.$$.dirty&256&&n(6,i=1+m/10)},[d,p,u,a,s,f,i,o,m,h,S,r,y]}class Sn extends Ne{constructor(e){super(),Ee(this,e,$z,Lz,Ae,{variant:7,alignment:0,size:8,repeat:9,overlay:1},Ez)}get variant(){return this.$$.ctx[7]}set variant(e){this.$$set({variant:e}),C()}get alignment(){return this.$$.ctx[0]}set alignment(e){this.$$set({alignment:e}),C()}get size(){return this.$$.ctx[8]}set size(e){this.$$set({size:e}),C()}get repeat(){return this.$$.ctx[9]}set repeat(e){this.$$set({repeat:e}),C()}get overlay(){return this.$$.ctx[1]}set overlay(e){this.$$set({overlay:e}),C()}}Le(Sn,{variant:{},alignment:{},size:{},repeat:{type:"Boolean"},overlay:{type:"Boolean"}},[],[],!0);function Rz(t){let e,n;return e=new or({props:{variant:"info",title:t[0].text||t[3].de.canceled}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.title=r[0].text||r[3].de.canceled),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Fz(t){let e,n;return e=new or({props:{variant:"success",title:t[0].text||t[3].de.success}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.title=r[0].text||r[3].de.success),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xz(t){let e,n;return e=new or({props:{title:t[0].text||t[3].de.initial,$$slots:{actions:[Bz]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.title=r[0].text||r[3].de.initial),i&32&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Uz(t){let e,n;return e=new or({props:{variant:"error",title:t[3].de.aborted,caption:t[3].de.abortedCaption,$$slots:{actions:[qz]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&32&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Bz(t){let e,n,r,i,o,l;return r=new Sn({props:{size:2}}),o=new nt({props:{variant:"default",icon:"X",text:t[3].de.initialCancel}}),o.$on("click",t[1]),{c(){e=W("div"),n=W("div"),F(r.$$.fragment),i=j(),F(o.$$.fragment),x(n,"class","zlc-spacing-y-xl"),x(e,"slot","actions"),x(e,"class","zlc-gap-y")},m(a,s){L(a,e,s),V(e,n),$(r,n,null),V(e,i),$(o,e,null),l=!0},p:ze,i(a){l||(g(r.$$.fragment,a),g(o.$$.fragment,a),l=!0)},o(a){b(r.$$.fragment,a),b(o.$$.fragment,a),l=!1},d(a){a&&E(e),R(r),R(o)}}}function qz(t){let e,n,r;return n=new nt({props:{variant:"default",onClick:t[2],text:t[3].de.abortedRedo}}),{c(){e=W("div"),F(n.$$.fragment),x(e,"slot","actions")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p:ze,i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function Vz(t){let e,n,r,i;const o=[Uz,xz,Fz,Rz],l=[];function a(s,u){var c,f,d,m;return((c=s[0])==null?void 0:c.state)=="AUTHORIZATION_ABORTED"?0:((f=s[0])==null?void 0:f.state)=="AUTHORIZATION_INITIAL"?1:((d=s[0])==null?void 0:d.state)=="AUTHORIZATION_USER_ACCEPTED"?2:((m=s[0])==null?void 0:m.state)=="AUTHORIZATION_USER_CANCELED"?3:-1}return~(e=a(t))&&(n=l[e]=o[e](t)),{c(){n&&n.c(),r=Xe()},m(s,u){~e&&l[e].m(s,u),L(s,r,u),i=!0},p(s,[u]){let c=e;e=a(s),e===c?~e&&l[e].p(s,u):(n&&(ne(),b(l[c],1,1,()=>{l[c]=null}),re()),~e?(n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r)):n=null)},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),~e&&l[e].d(s)}}}function Jz(t,e,n){let{status:r=null}=e;const i=Bt();function o(s){i("cancel",s)}function l(s){i("redo",s)}const a={de:{aborted:"Aktion wurde abgebrochen.",abortedCaption:"Sie können nochmal versuchen oder das Fenster schließen.",abortedRedo:"Nochmal versuchen",initial:"Warte auf Bestätigung...",initialCancel:"Abbrechen",success:"Vorgang bestätigt.",canceled:"Sie haben diesen Vorgang erfolgreich abgebrochen."}};return t.$$set=s=>{"status"in s&&n(0,r=s.status)},[r,o,l,a]}class fl extends Ne{constructor(e){super(),Ee(this,e,Jz,Vz,Ae,{status:0})}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),C()}}Le(fl,{status:{}},[],[],!0);function wf(t,e){if(!e)return"";let n="";return e.name=="BrokerizeError"?n=e.msg:typeof e=="string"?n=e:n=""+e,t&&(n!=null&&n.length)?t+": "+n:n}function Sf(t){let e,n;return e=new or({props:{variant:"error",title:t[0],hideCloseButton:!0}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.title=r[0]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Hz(t){let e,n,r=t[0]&&Sf(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,[o]){i[0]?r?(r.p(i,o),o&1&&g(r,1)):(r=Sf(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function Wz(t,e,n){let r,{errorPrefix:i=""}=e,{error:o}=e;return t.$$set=l=>{"errorPrefix"in l&&n(1,i=l.errorPrefix),"error"in l&&n(2,o=l.error)},t.$$.update=()=>{t.$$.dirty&6&&n(0,r=wf(i,o))},[r,i,o]}class zn extends Ne{constructor(e){super(),Ee(this,e,Wz,Hz,Ae,{errorPrefix:1,error:2})}get errorPrefix(){return this.$$.ctx[1]}set errorPrefix(e){this.$$set({errorPrefix:e}),C()}get error(){return this.$$.ctx[2]}set error(e){this.$$set({error:e}),C()}}Le(zn,{errorPrefix:{},error:{}},[],[],!0);const dl=Math.min,ui=Math.max,hl=Math.round,ml=Math.floor,Wr=t=>({x:t,y:t}),Yz={left:"right",right:"left",bottom:"top",top:"bottom"},Gz={start:"end",end:"start"};function Tf(t,e,n){return ui(t,dl(e,n))}function gl(t,e){return typeof t=="function"?t(e):t}function ci(t){return t.split("-")[0]}function pl(t){return t.split("-")[1]}function zf(t){return t==="x"?"y":"x"}function Cf(t){return t==="y"?"height":"width"}function bl(t){return["top","bottom"].includes(ci(t))?"y":"x"}function Of(t){return zf(bl(t))}function Kz(t,e,n){n===void 0&&(n=!1);const r=pl(t),i=Of(t),o=Cf(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=vl(l)),[l,vl(l)]}function Qz(t){const e=vl(t);return[Wa(t),e,Wa(e)]}function Wa(t){return t.replace(/start|end/g,e=>Gz[e])}function jz(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:l;default:return[]}}function Xz(t,e,n,r){const i=pl(t);let o=jz(ci(t),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),e&&(o=o.concat(o.map(Wa)))),o}function vl(t){return t.replace(/left|right|bottom|top/g,e=>Yz[e])}function Zz(t){return{top:0,right:0,bottom:0,left:0,...t}}function eC(t){return typeof t!="number"?Zz(t):{top:t,right:t,bottom:t,left:t}}function _l(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function If(t,e,n){let{reference:r,floating:i}=t;const o=bl(e),l=Of(e),a=Cf(l),s=ci(e),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let m;switch(s){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-i.width,y:f};break;default:m={x:r.x,y:r.y}}switch(pl(e)){case"start":m[l]-=d*(n&&u?-1:1);break;case"end":m[l]+=d*(n&&u?-1:1);break}return m}const tC=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(e));let u=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:f}=If(u,r,s),d=r,m={},h=0;for(let p=0;p<a.length;p++){const{name:v,fn:w}=a[p],{x:S,y,data:z,reset:O}=await w({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:m,rects:u,platform:l,elements:{reference:t,floating:e}});c=S??c,f=y??f,m={...m,[v]:{...m[v],...z}},O&&h<=50&&(h++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(u=O.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:c,y:f}=If(u,d,s)),p=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:m}};async function Af(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=gl(e,t),h=eC(m),v=a[d?f==="floating"?"reference":"floating":f],w=_l(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),S=f==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),z=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},O=_l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:y,strategy:s}):S);return{top:(w.top-O.top+h.top)/z.y,bottom:(O.bottom-w.bottom+h.bottom)/z.y,left:(w.left-O.left+h.left)/z.x,right:(O.right-w.right+h.right)/z.x}}const nC=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:a,platform:s,elements:u}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:p=!0,...v}=gl(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const w=ci(i),S=ci(a)===a,y=await(s.isRTL==null?void 0:s.isRTL(u.floating)),z=d||(S||!p?[vl(a)]:Qz(a));!d&&h!=="none"&&z.push(...Xz(a,p,h,y));const O=[a,...z],N=await Af(e,v),U=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&U.push(N[w]),f){const J=Kz(i,l,y);U.push(N[J[0]],N[J[1]])}if(A=[...A,{placement:i,overflows:U}],!U.every(J=>J<=0)){var P,Y;const J=(((P=o.flip)==null?void 0:P.index)||0)+1,ee=O[J];if(ee)return{data:{index:J,overflows:A},reset:{placement:ee}};let X=(Y=A.filter(ce=>ce.overflows[0]<=0).sort((ce,he)=>ce.overflows[1]-he.overflows[1])[0])==null?void 0:Y.placement;if(!X)switch(m){case"bestFit":{var B;const ce=(B=A.map(he=>[he.placement,he.overflows.filter(de=>de>0).reduce((de,se)=>de+se,0)]).sort((he,de)=>he[1]-de[1])[0])==null?void 0:B[0];ce&&(X=ce);break}case"initialPlacement":X=a;break}if(i!==X)return{reset:{placement:X}}}return{}}}};async function rC(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=ci(n),a=pl(n),s=bl(n)==="y",u=["left","top"].includes(l)?-1:1,c=o&&s?-1:1,f=gl(e,t);let{mainAxis:d,crossAxis:m,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof h=="number"&&(m=a==="end"?h*-1:h),s?{x:m*c,y:d*u}:{x:d*u,y:m*c}}const iC=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:l,middlewareData:a}=e,s=await rC(e,t);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},oC=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:v=>{let{x:w,y:S}=v;return{x:w,y:S}}},...s}=gl(t,e),u={x:n,y:r},c=await Af(e,s),f=bl(ci(i)),d=zf(f);let m=u[d],h=u[f];if(o){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",S=m+c[v],y=m-c[w];m=Tf(S,m,y)}if(l){const v=f==="y"?"top":"left",w=f==="y"?"bottom":"right",S=h+c[v],y=h-c[w];h=Tf(S,h,y)}const p=a.fn({...e,[d]:m,[f]:h});return{...p,data:{x:p.x-n,y:p.y-r}}}}};function xi(t){return Df(t)?(t.nodeName||"").toLowerCase():"#document"}function lr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $r(t){var e;return(e=(Df(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Df(t){return t instanceof Node||t instanceof lr(t).Node}function Ar(t){return t instanceof Element||t instanceof lr(t).Element}function Dr(t){return t instanceof HTMLElement||t instanceof lr(t).HTMLElement}function Mf(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof lr(t).ShadowRoot}function po(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=yr(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function lC(t){return["table","td","th"].includes(xi(t))}function Ya(t){const e=Ga(),n=yr(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function aC(t){let e=Yr(t);for(;Dr(e)&&!Ui(e);){if(Ya(e))return e;e=Yr(e)}return null}function Ga(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ui(t){return["html","body","#document"].includes(xi(t))}function yr(t){return lr(t).getComputedStyle(t)}function yl(t){return Ar(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yr(t){if(xi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mf(t)&&t.host||$r(t);return Mf(e)?e.host:e}function Ef(t){const e=Yr(t);return Ui(e)?t.ownerDocument?t.ownerDocument.body:t.body:Dr(e)&&po(e)?e:Ef(e)}function bo(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ef(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),l=lr(i);return o?e.concat(l,l.visualViewport||[],po(i)?i:[],l.frameElement&&n?bo(l.frameElement):[]):e.concat(i,bo(i,[],n))}function Lf(t){const e=yr(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Dr(t),o=i?t.offsetWidth:n,l=i?t.offsetHeight:r,a=hl(n)!==o||hl(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function Ka(t){return Ar(t)?t:t.contextElement}function Bi(t){const e=Ka(t);if(!Dr(e))return Wr(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Lf(e);let l=(o?hl(n.width):n.width)/r,a=(o?hl(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const sC=Wr(0);function Nf(t){const e=lr(t);return!Ga()||!e.visualViewport?sC:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function uC(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==lr(t)?!1:e}function fi(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=Ka(t);let l=Wr(1);e&&(r?Ar(r)&&(l=Bi(r)):l=Bi(t));const a=uC(o,n,r)?Nf(o):Wr(0);let s=(i.left+a.x)/l.x,u=(i.top+a.y)/l.y,c=i.width/l.x,f=i.height/l.y;if(o){const d=lr(o),m=r&&Ar(r)?lr(r):r;let h=d,p=h.frameElement;for(;p&&r&&m!==h;){const v=Bi(p),w=p.getBoundingClientRect(),S=yr(p),y=w.left+(p.clientLeft+parseFloat(S.paddingLeft))*v.x,z=w.top+(p.clientTop+parseFloat(S.paddingTop))*v.y;s*=v.x,u*=v.y,c*=v.x,f*=v.y,s+=y,u+=z,h=lr(p),p=h.frameElement}}return _l({width:c,height:f,x:s,y:u})}const cC=[":popover-open",":modal"];function Qa(t){return cC.some(e=>{try{return t.matches(e)}catch{return!1}})}function fC(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o=i==="fixed",l=$r(r),a=e?Qa(e.floating):!1;if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=Wr(1);const c=Wr(0),f=Dr(r);if((f||!f&&!o)&&((xi(r)!=="body"||po(l))&&(s=yl(r)),Dr(r))){const d=fi(r);u=Bi(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}}function dC(t){return Array.from(t.getClientRects())}function Pf(t){return fi($r(t)).left+yl(t).scrollLeft}function hC(t){const e=$r(t),n=yl(t),r=t.ownerDocument.body,i=ui(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=ui(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Pf(t);const a=-n.scrollTop;return yr(r).direction==="rtl"&&(l+=ui(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}function mC(t,e){const n=lr(t),r=$r(t),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;const u=Ga();(!u||u&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}function gC(t,e){const n=fi(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=Dr(t)?Bi(t):Wr(1),l=t.clientWidth*o.x,a=t.clientHeight*o.y,s=i*o.x,u=r*o.y;return{width:l,height:a,x:s,y:u}}function $f(t,e,n){let r;if(e==="viewport")r=mC(t,n);else if(e==="document")r=hC($r(t));else if(Ar(e))r=gC(e,n);else{const i=Nf(t);r={...e,x:e.x-i.x,y:e.y-i.y}}return _l(r)}function Rf(t,e){const n=Yr(t);return n===e||!Ar(n)||Ui(n)?!1:yr(n).position==="fixed"||Rf(n,e)}function pC(t,e){const n=e.get(t);if(n)return n;let r=bo(t,[],!1).filter(a=>Ar(a)&&xi(a)!=="body"),i=null;const o=yr(t).position==="fixed";let l=o?Yr(t):t;for(;Ar(l)&&!Ui(l);){const a=yr(l),s=Ya(l);!s&&a.position==="fixed"&&(i=null),(o?!s&&!i:!s&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||po(l)&&!s&&Rf(t,l))?r=r.filter(c=>c!==l):i=a,l=Yr(l)}return e.set(t,r),r}function bC(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const l=[...n==="clippingAncestors"?Qa(e)?[]:pC(e,this._c):[].concat(n),r],a=l[0],s=l.reduce((u,c)=>{const f=$f(e,c,i);return u.top=ui(f.top,u.top),u.right=dl(f.right,u.right),u.bottom=dl(f.bottom,u.bottom),u.left=ui(f.left,u.left),u},$f(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function vC(t){const{width:e,height:n}=Lf(t);return{width:e,height:n}}function _C(t,e,n){const r=Dr(e),i=$r(e),o=n==="fixed",l=fi(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const s=Wr(0);if(r||!r&&!o)if((xi(e)!=="body"||po(i))&&(a=yl(e)),r){const f=fi(e,!0,o,e);s.x=f.x+e.clientLeft,s.y=f.y+e.clientTop}else i&&(s.x=Pf(i));const u=l.left+a.scrollLeft-s.x,c=l.top+a.scrollTop-s.y;return{x:u,y:c,width:l.width,height:l.height}}function ja(t){return yr(t).position==="static"}function Ff(t,e){return!Dr(t)||yr(t).position==="fixed"?null:e?e(t):t.offsetParent}function xf(t,e){const n=lr(t);if(Qa(t))return n;if(!Dr(t)){let i=Yr(t);for(;i&&!Ui(i);){if(Ar(i)&&!ja(i))return i;i=Yr(i)}return n}let r=Ff(t,e);for(;r&&lC(r)&&ja(r);)r=Ff(r,e);return r&&Ui(r)&&ja(r)&&!Ya(r)?n:r||aC(t)||n}const yC=async function(t){const e=this.getOffsetParent||xf,n=this.getDimensions,r=await n(t.floating);return{reference:_C(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kC(t){return yr(t).direction==="rtl"}const wC={convertOffsetParentRelativeRectToViewportRelativeRect:fC,getDocumentElement:$r,getClippingRect:bC,getOffsetParent:xf,getElementRects:yC,getClientRects:dC,getDimensions:vC,getScale:Bi,isElement:Ar,isRTL:kC};function SC(t,e){let n=null,r;const i=$r(t);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const{left:u,top:c,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const m=ml(c),h=ml(i.clientWidth-(u+f)),p=ml(i.clientHeight-(c+d)),v=ml(u),S={rootMargin:-m+"px "+-h+"px "+-p+"px "+-v+"px",threshold:ui(0,dl(1,s))||1};let y=!0;function z(O){const N=O[0].intersectionRatio;if(N!==s){if(!y)return l();N?l(!1,N):r=setTimeout(()=>{l(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(z,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(z,S)}n.observe(t)}return l(!0),o}function TC(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=Ka(t),c=i||o?[...u?bo(u):[],...bo(e)]:[];c.forEach(w=>{i&&w.addEventListener("scroll",n,{passive:!0}),o&&w.addEventListener("resize",n)});const f=u&&a?SC(u,n):null;let d=-1,m=null;l&&(m=new ResizeObserver(w=>{let[S]=w;S&&S.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),u&&!s&&m.observe(u),m.observe(e));let h,p=s?fi(t):null;s&&v();function v(){const w=fi(t);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&n(),p=w,h=requestAnimationFrame(v)}return n(),()=>{var w;c.forEach(S=>{i&&S.removeEventListener("scroll",n),o&&S.removeEventListener("resize",n)}),f==null||f(),(w=m)==null||w.disconnect(),m=null,s&&cancelAnimationFrame(h)}}const Uf=iC,Bf=oC,qf=nC,zC=(t,e,n)=>{const r=new Map,i={platform:wC,...n},o={...i.platform,_c:r};return tC(t,e,{...i,platform:o})};function Vf(t){let e,n;const r={autoUpdate:!0};let i=t;const o=c=>({...r,...t||{},...c||{}}),l=c=>{e&&n&&(i=o(c),zC(e,n,i).then(f=>{Object.assign(n.style,{position:f.strategy,left:`${f.x}px`,top:`${f.y}px`}),i!=null&&i.onComputed&&i.onComputed(f)}))},a=c=>{if("subscribe"in c)return u(c),{};e=c,l()},s=(c,f)=>{let d;n=c,i=o(f),setTimeout(()=>l(f),0),l(f);const m=()=>{d&&(d(),d=void 0)},h=({autoUpdate:p}=i||{})=>{m(),p!==!1&&rl().then(()=>TC(e,n,()=>l(i),p===!0?{}:p))};return d=h(),{update(p){l(p),d=h(p)},destroy(){m()}}},u=c=>{const f=c.subscribe(d=>{e===void 0?(e=d,l()):(Object.assign(e,d),l())});mr(f)};return[a,s,l]}function CC(t,{from:e,to:n},r={}){const i=getComputedStyle(t),o=i.transform==="none"?"":i.transform,[l,a]=i.transformOrigin.split(" ").map(parseFloat),s=e.left+e.width*l/n.width-(n.left+l),u=e.top+e.height*a/n.height-(n.top+a),{delay:c=0,duration:f=m=>Math.sqrt(m)*120,easing:d=uc}=r;return{delay:c,duration:Vn(f)?f(Math.sqrt(s*s+u*u)):f,easing:d,css:(m,h)=>{const p=h*s,v=h*u,w=m+h*e.width/n.width,S=m+h*e.height/n.height;return`transform: ${o} translate(${p}px, ${v}px) scale(${w}, ${S});`}}}const OC={duration:4e3,initial:1,next:0,pausable:!1,dismissable:!0,reversed:!1,intro:{x:256}};function IC(){const{subscribe:t,update:e}=Or(new Array),n={};let r=0;function i(u){return u instanceof Object}function o(u="default",c={}){return n[u]=c,n}function l(u,c){const f={target:"default",...i(u)?u:{...c,msg:u}},d=n[f.target]||{},m={...OC,...d,...f,theme:{...d.theme,...f.theme},classes:[...d.classes||[],...f.classes||[]],id:++r};return e(h=>m.reversed?[...h,m]:[m,...h]),r}function a(u){e(c=>{if(!c.length||u===0)return[];if(typeof u=="function")return c.filter(d=>u(d));if(i(u))return c.filter(d=>d.target!==u.target);const f=u||Math.max(...c.map(d=>d.id));return c.filter(d=>d.id!==f)})}function s(u,c){const f=i(u)?u:{...c,id:u};e(d=>{const m=d.findIndex(h=>h.id===f.id);return m>-1&&(d[m]={...d[m],...f}),d})}return{subscribe:t,push:l,pop:a,set:s,_init:o}}const Gr=IC();function Jf(t){return Object.prototype.toString.call(t)==="[object Date]"}function Xa(t,e){if(t===e||t!==t)return()=>t;const n=typeof t;if(n!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((i,o)=>Xa(t[o],i));return i=>r.map(o=>o(i))}if(n==="object"){if(!t||!e)throw new Error("Object cannot be null");if(Jf(t)&&Jf(e)){t=t.getTime(),e=e.getTime();const o=e-t;return l=>new Date(t+l*o)}const r=Object.keys(e),i={};return r.forEach(o=>{i[o]=Xa(t[o],e[o])}),o=>{const l={};return r.forEach(a=>{l[a]=i[a](o)}),l}}if(n==="number"){const r=e-t;return i=>t+i*r}throw new Error(`Cannot interpolate ${n} values`)}function AC(t,e={}){const n=Or(t);let r,i=t;function o(l,a){if(t==null)return n.set(t=l),Promise.resolve();i=l;let s=r,u=!1,{delay:c=0,duration:f=400,easing:d=ri,interpolate:m=Xa}=ve(ve({},e),a);if(f===0)return s&&(s.abort(),s=null),n.set(t=i),Promise.resolve();const h=io()+c;let p;return r=oo(v=>{if(v<h)return!0;u||(p=m(t,l),typeof f=="function"&&(f=f(t,l)),u=!0),s&&(s.abort(),s=null);const w=v-h;return w>f?(n.set(t=l),!1):(n.set(t=p(d(w/f))),!0)}),r.promise}return{set:o,update:(l,a)=>o(l(i,t),a),subscribe:n.subscribe}}function DC(t){yt(t,"svelte-1s1x34c",`._toastItem.svelte-1s1x34c{width:var(--toastWidth, 16rem);height:var(--toastHeight, auto);min-height:var(--toastMinHeight, 3.5rem);margin:var(--toastMargin, 0 0 0.5rem 0);padding:var(--toastPadding, 0);background:var(--toastBackground, rgba(66, 66, 66, 0.9));color:var(--toastColor, #fff);box-shadow:var(
142
+ --toastBoxShadow,
143
+ 0 4px 6px -1px rgba(0, 0, 0, 0.1),
144
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06)
145
+ );border:var(--toastBorder, none);border-radius:var(--toastBorderRadius, 0.125rem);position:relative;display:flex;flex-direction:row;align-items:center;overflow:hidden;will-change:transform, opacity;-webkit-tap-highlight-color:transparent}._toastMsg.svelte-1s1x34c{padding:var(--toastMsgPadding, 0.75rem 0.5rem);flex:1 1 0%}.pe.svelte-1s1x34c,._toastMsg.svelte-1s1x34c a{pointer-events:auto}._toastBtn.svelte-1s1x34c{width:var(--toastBtnWidth, 2rem);height:var(--toastBtnHeight, 100%);cursor:pointer;outline:none}._toastBtn.svelte-1s1x34c::after{content:var(--toastBtnContent, '✕');font:var(--toastBtnFont, 1rem sans-serif);display:flex;align-items:center;justify-content:center}._toastBar.svelte-1s1x34c{top:var(--toastBarTop, auto);right:var(--toastBarRight, auto);bottom:var(--toastBarBottom, 0);left:var(--toastBarLeft, 0);height:var(--toastBarHeight, 6px);width:var(--toastBarWidth, 100%);position:absolute;display:block;-webkit-appearance:none;appearance:none;border:none;background:transparent;pointer-events:none}._toastBar.svelte-1s1x34c::-webkit-progress-bar{background:transparent}._toastBar.svelte-1s1x34c::-webkit-progress-value{background:var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)))}._toastBar.svelte-1s1x34c::-moz-progress-bar{background:var(--toastProgressBackground, var(--toastBarBackground, rgba(33, 150, 243, 0.75)))}`)}function MC(t){let e,n=t[0].msg+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&1&&n!==(n=i[0].msg+"")&&e.p(n)},i:ze,o:ze,d(i){i&&(E(r),e.d())}}}function EC(t){let e,n,r;const i=[t[2]];var o=t[0].component.src;function l(a,s){let u={};for(let c=0;c<i.length;c+=1)u=ve(u,i[c]);return s!==void 0&&s&4&&(u=ve(u,ut(i,[kt(a[2])]))),{props:u}}return o&&(e=fn(o,l(t))),{c(){e&&F(e.$$.fragment),n=Xe()},m(a,s){e&&$(e,a,s),L(a,n,s),r=!0},p(a,s){if(s&1&&o!==(o=a[0].component.src)){if(e){ne();const u=e;b(u.$$.fragment,1,0,()=>{R(u,1)}),re()}o?(e=fn(o,l(a,s)),F(e.$$.fragment),g(e.$$.fragment,1),$(e,n.parentNode,n)):e=null}else if(o){const u=s&4?ut(i,[kt(a[2])]):{};e.$set(u)}},i(a){r||(e&&g(e.$$.fragment,a),r=!0)},o(a){e&&b(e.$$.fragment,a),r=!1},d(a){a&&E(n),e&&R(e,a)}}}function Hf(t){let e,n,r;return{c(){e=W("div"),x(e,"class","_toastBtn pe svelte-1s1x34c"),x(e,"role","button"),x(e,"tabindex","0")},m(i,o){L(i,e,o),n||(r=[tt(e,"click",t[4]),tt(e,"keydown",t[8])],n=!0)},p:ze,d(i){i&&E(e),n=!1,pn(r)}}}function LC(t){let e,n,r,i,o,l,a,s,u,c;const f=[EC,MC],d=[];function m(p,v){return p[0].component?0:1}r=m(t),i=d[r]=f[r](t);let h=t[0].dismissable&&Hf(t);return{c(){e=W("div"),n=W("div"),i.c(),o=j(),h&&h.c(),l=j(),a=W("progress"),x(n,"class","_toastMsg svelte-1s1x34c"),ke(n,"pe",t[0].component),x(a,"class","_toastBar svelte-1s1x34c"),a.value=t[1],x(e,"role","status"),x(e,"class","_toastItem svelte-1s1x34c"),ke(e,"pe",t[0].pausable)},m(p,v){L(p,e,v),V(e,n),d[r].m(n,null),V(e,o),h&&h.m(e,null),V(e,l),V(e,a),s=!0,u||(c=[tt(e,"mouseenter",t[9]),tt(e,"mouseleave",t[6])],u=!0)},p(p,[v]){let w=r;r=m(p),r===w?d[r].p(p,v):(ne(),b(d[w],1,1,()=>{d[w]=null}),re(),i=d[r],i?i.p(p,v):(i=d[r]=f[r](p),i.c()),g(i,1),i.m(n,null)),(!s||v&1)&&ke(n,"pe",p[0].component),p[0].dismissable?h?h.p(p,v):(h=Hf(p),h.c(),h.m(e,l)):h&&(h.d(1),h=null),(!s||v&2)&&(a.value=p[1]),(!s||v&1)&&ke(e,"pe",p[0].pausable)},i(p){s||(g(i),s=!0)},o(p){b(i),s=!1},d(p){p&&E(e),d[r].d(),h&&h.d(),u=!1,pn(c)}}}function Za(t,e="undefined"){return typeof t===e}function NC(t,e,n){let r,{item:i}=e,o=i.initial,l=o,a=!1,s={},u;const c=AC(i.initial,{duration:i.duration,easing:ri});Ia(t,c,S=>n(1,r=S));function f(){Gr.pop(i.id)}function d(){(r===1||r===0)&&f()}function m(){!a&&r!==o&&(c.set(r,{duration:0}),a=!0)}function h(){if(a){const S=i.duration,y=S-S*((r-l)/(o-l));c.set(o,{duration:y}).then(d),a=!1}}function p(S=document){if(Za(S.hidden))return;const y=()=>S.hidden?m():h(),z="visibilitychange";S.addEventListener(z,y),u=()=>S.removeEventListener(z,y),y()}ir(p),mr(()=>{Za(i.onpop,"function")&&i.onpop(i.id),u&&u()});const v=S=>{S instanceof KeyboardEvent&&["Enter"," "].includes(S.key)&&f()},w=()=>{i.pausable&&m()};return t.$$set=S=>{"item"in S&&n(0,i=S.item)},t.$$.update=()=>{if(t.$$.dirty&1&&(Za(i.progress)||n(0,i.next=i.progress,i)),t.$$.dirty&131&&o!==i.next&&(n(7,o=i.next),l=r,a=!1,c.set(o).then(d)),t.$$.dirty&1&&i.component){const{props:S={},sendIdTo:y}=i.component;n(2,s={...S,...y&&{[y]:i.id}})}},[i,r,s,c,f,m,h,o,v,w]}class Wf extends Ne{constructor(e){super(),Ee(this,e,NC,LC,Ae,{item:0},DC)}get item(){return this.$$.ctx[0]}set item(e){this.$$set({item:e}),C()}}Le(Wf,{item:{}},[],[],!0);function PC(t){yt(t,"svelte-yh90az","._toastContainer.svelte-yh90az{top:var(--toastContainerTop, 1.5rem);right:var(--toastContainerRight, 2rem);bottom:var(--toastContainerBottom, auto);left:var(--toastContainerLeft, auto);position:fixed;margin:0;padding:0;list-style-type:none;pointer-events:none;z-index:var(--toastContainerZIndex, 9999)}")}function Yf(t,e,n){const r=t.slice();return r[4]=e[n],r}function Gf(t,e){let n,r,i,o,l,a,s,u,c=ze,f;return r=new Wf({props:{item:e[4]}}),{key:t,first:null,c(){var d;n=W("li"),F(r.$$.fragment),i=j(),x(n,"class",o=vn((d=e[4].classes)==null?void 0:d.join(" "))+" svelte-yh90az"),x(n,"style",l=Kf(e[4].theme)),this.first=n},m(d,m){L(d,n,m),$(r,n,null),V(n,i),f=!0},p(d,m){var p;e=d;const h={};m&1&&(h.item=e[4]),r.$set(h),(!f||m&1&&o!==(o=vn((p=e[4].classes)==null?void 0:p.join(" "))+" svelte-yh90az"))&&x(n,"class",o),(!f||m&1&&l!==(l=Kf(e[4].theme)))&&x(n,"style",l)},r(){u=n.getBoundingClientRect()},f(){o2(n),c(),Zu(n,u)},a(){c(),c=i2(n,u,CC,{duration:200})},i(d){f||(g(r.$$.fragment,d),d&&gr(()=>{f&&(s&&s.end(1),a=nc(n,b2,e[4].intro),a.start())}),f=!0)},o(d){b(r.$$.fragment,d),a&&a.invalidate(),d&&(s=rc(n,ai,{})),f=!1},d(d){d&&E(n),R(r),d&&s&&s.end()}}}function $C(t){let e,n=[],r=new Map,i,o=At(t[0]);const l=a=>a[4].id;for(let a=0;a<o.length;a+=1){let s=Yf(t,o,a),u=l(s);r.set(u,n[a]=Gf(u,s))}return{c(){e=W("ul");for(let a=0;a<n.length;a+=1)n[a].c();x(e,"class","_toastContainer svelte-yh90az")},m(a,s){L(a,e,s);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(e,null);i=!0},p(a,[s]){if(s&1){o=At(a[0]),ne();for(let u=0;u<n.length;u+=1)n[u].r();n=ll(n,s,l,1,a,o,r,e,u2,Gf,null,Yf);for(let u=0;u<n.length;u+=1)n[u].a();re()}},i(a){if(!i){for(let s=0;s<o.length;s+=1)g(n[s]);i=!0}},o(a){for(let s=0;s<n.length;s+=1)b(n[s]);i=!1},d(a){a&&E(e);for(let s=0;s<n.length;s+=1)n[s].d()}}}function Kf(t){return t?Object.keys(t).reduce((e,n)=>`${e}${n}:${t[n]};`,""):void 0}function RC(t,e,n){let r;Ia(t,Gr,a=>n(3,r=a));let{options:i={}}=e,{target:o="default"}=e,l=[];return t.$$set=a=>{"options"in a&&n(1,i=a.options),"target"in a&&n(2,o=a.target)},t.$$.update=()=>{t.$$.dirty&6&&Gr._init(o,i),t.$$.dirty&12&&n(0,l=r.filter(a=>a.target===o))},[l,i,o,r]}class Qf extends Ne{constructor(e){super(),Ee(this,e,RC,$C,Ae,{options:1,target:2},PC)}get options(){return this.$$.ctx[1]}set options(e){this.$$set({options:e}),C()}get target(){return this.$$.ctx[2]}set target(e){this.$$set({target:e}),C()}}Le(Qf,{options:{},target:{}},[],[],!0);function FC(t){Gr.push(t)}async function xC(t){let e="",n=null;t.response&&t.response.status?(n=await t.response.json(),e=JSON.stringify(n)):e=t,console.error("errorToast called with error",t,e,n),Gr.push(e,{theme:{"--toastBarBackground":"var(--zl-color-error-dark)"}})}function UC(t){yt(t,"svelte-1aefr2c",".copy2clipboard.svelte-1aefr2c{cursor:pointer;white-space:nowrap}")}function BC(t){let e,n,r,i,o;return{c(){e=W("span"),n=Ie(t[0]),r=Ie(" ⧉"),x(e,"title","copy to clipboard"),x(e,"class","copy2clipboard svelte-1aefr2c")},m(l,a){L(l,e,a),V(e,n),V(e,r),i||(o=tt(e,"click",t[1]),i=!0)},p(l,[a]){a&1&&Ke(n,l[0])},i:ze,o:ze,d(l){l&&E(e),i=!1,o()}}}function qC(t,e,n){let{text:r}=e;async function i(){try{await navigator.clipboard.writeText(r),FC("copied to clipboard")}catch(o){console.error(o),xC("copy failed")}}return t.$$set=o=>{"text"in o&&n(0,r=o.text)},[r,i]}class jf extends Ne{constructor(e){super(),Ee(this,e,qC,BC,Ae,{text:0},UC)}get text(){return this.$$.ctx[0]}set text(e){this.$$set({text:e}),C()}}Le(jf,{text:{}},[],[],!0);function VC(t){yt(t,"svelte-1pfv9rr",`.bg.svelte-1pfv9rr{background:#f5f5f5;border-radius:10px;padding:5px}@media(prefers-color-scheme: dark){.bg.svelte-1pfv9rr{background:#111
146
+ }}`)}function Xf(t){let e;return{c(){e=Ie(t[1])},m(n,r){L(n,e,r)},p(n,r){r&2&&Ke(e,n[1])},d(n){n&&E(e)}}}function JC(t){let e,n,r,i,o,l,a=t[1]&&Xf(t);return{c(){e=W("div"),a&&a.c(),n=j(),r=W("pre"),i=Ie(t[2]),x(e,"class","bg svelte-1pfv9rr")},m(s,u){L(s,e,u),a&&a.m(e,null),V(e,n),V(e,r),V(r,i),o||(l=tt(e,"click",t[4]),o=!0)},p(s,[u]){s[1]?a?a.p(s,u):(a=Xf(s),a.c(),a.m(e,n)):a&&(a.d(1),a=null),u&4&&Ke(i,s[2])},i:ze,o:ze,d(s){s&&E(e),a&&a.d(),o=!1,l()}}}function HC(t,e){if(!t)return t;if(e){const n=JSON.stringify(t);return(n==null?void 0:n.length)>50?n.substring(0,50)+"...":n}else return JSON.stringify(t,null,4)}function WC(t,e,n){let r,{data:i}=e,{title:o=""}=e,{collapsed:l=!0}=e;const a=()=>n(0,l=!l);return t.$$set=s=>{"data"in s&&n(3,i=s.data),"title"in s&&n(1,o=s.title),"collapsed"in s&&n(0,l=s.collapsed)},t.$$.update=()=>{t.$$.dirty&9&&n(2,r=HC(i,l))},[l,o,r,i,a]}class Zf extends Ne{constructor(e){super(),Ee(this,e,WC,JC,Ae,{data:3,title:1,collapsed:0},VC)}get data(){return this.$$.ctx[3]}set data(e){this.$$set({data:e}),C()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),C()}get collapsed(){return this.$$.ctx[0]}set collapsed(e){this.$$set({collapsed:e}),C()}}Le(Zf,{data:{},title:{},collapsed:{type:"Boolean"}},[],[],!0);function ed(t){let e,n;return{c(){e=W("img"),Qn(e.src,n=t[2])||x(e,"src",n),_n(e,"height",t[1]),_n(e,"display","inline"),x(e,"alt",t[0])},m(r,i){L(r,e,i)},p(r,i){i&4&&!Qn(e.src,n=r[2])&&x(e,"src",n),i&2&&_n(e,"height",r[1]),i&1&&x(e,"alt",r[0])},d(r){r&&E(e)}}}function YC(t){let e,n=t[0]&&ed(t);return{c(){n&&n.c(),e=Xe()},m(r,i){n&&n.m(r,i),L(r,e,i)},p(r,[i]){r[0]?n?n.p(r,i):(n=ed(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:ze,o:ze,d(r){r&&E(e),n&&n.d(r)}}}function GC(t,e){return t!=null&&t.images?(e==null?void 0:e.logoStyle)=="light"?t.images.light:t.images.dark:null}function KC(t,e,n){let r,{brokerName:i}=e,{height:o}=e;const l=tn("themeConfig");let a;l.subscribe(c=>{n(3,a=c)});const s=iT(tn);let u=null;return s.brokers.subscribe(c=>{n(4,u=c==null?void 0:c.brokers)}),t.$$set=c=>{"brokerName"in c&&n(0,i=c.brokerName),"height"in c&&n(1,o=c.height)},t.$$.update=()=>{t.$$.dirty&25&&n(2,r=a?GC(u==null?void 0:u.find(c=>c.brokerName==i),a):null)},[i,o,r,a,u]}class kl extends Ne{constructor(e){super(),Ee(this,e,KC,YC,Ae,{brokerName:0,height:1})}get brokerName(){return this.$$.ctx[0]}set brokerName(e){this.$$set({brokerName:e}),C()}get height(){return this.$$.ctx[1]}set height(e){this.$$set({height:e}),C()}}Le(kl,{brokerName:{},height:{}},[],[],!0);function QC(t){yt(t,"svelte-1d6q7ud",".zl-tooltip.svelte-1d6q7ud.svelte-1d6q7ud.svelte-1d6q7ud{display:inline-block;height:1em;position:relative;width:1em}.zl-tooltip.notrigger.svelte-1d6q7ud.svelte-1d6q7ud.svelte-1d6q7ud{display:inline}.zl-tooltip.svelte-1d6q7ud button.svelte-1d6q7ud.svelte-1d6q7ud{cursor:pointer;display:inline-block;left:0;left:50%;position:absolute;top:50%;transform:translate(-50%, -40%);z-index:var(--zl-z-index-content)}.zl-tooltip.svelte-1d6q7ud span.svelte-1d6q7ud.svelte-1d6q7ud{background-color:var(--zl-tooltip-background-color, var(--zl-color-primary-base));border-color:var(--zl-tooltip-border-color, var(--zl-color-primary-base));border-radius:var(--zl-tooltip-border-color, var(--zl-default-border-radius));border-style:var(--zl-tooltip-border-style, solid);border-width:var(--zl-tooltip-border-width, 1px);box-shadow:var(--zl-tooltip-box-shadow, var(--zl-default-box-shadow));color:var(--zl-tooltip-color, var(--zl-color-primary-text));font-size:var(--zl-tooltip-font-size, var(--zl-font-size-xs));max-width:var(--zl-tooltip-max-width, 20em);padding:var(--zl-tooltip-padding, var(--zl-spacing-md));pointer-events:none;position:fixed;text-align:var(--zl-tooltip-text-align, center);text-transform:none;width:auto;z-index:var(--zl-z-index-popup);transform:translateX(0.5em)}.zl-tooltip.svelte-1d6q7ud button.svelte-1d6q7ud:focus+span.svelte-1d6q7ud,.zl-tooltip.svelte-1d6q7ud button.svelte-1d6q7ud:hover+span.svelte-1d6q7ud{display:block}")}function td(t){let e,n,r,i,o;var l=an.Info;function a(s,u){return{props:{class:"icon","aria-hidden":"true",size:16,"stroke-width":1.5}}}return l&&(n=fn(l,a())),{c(){e=W("button"),n&&F(n.$$.fragment),x(e,"type","button"),x(e,"aria-describedby",t[2]),x(e,"aria-label",t[3]),x(e,"class","svelte-1d6q7ud")},m(s,u){L(s,e,u),n&&$(n,e,null),t[11](e),r=!0,i||(o=[tt(e,"mouseenter",t[12]),tt(e,"mouseleave",t[13]),tt(e,"focusin",t[14]),tt(e,"focusout",t[15]),zr(t[7].call(null,e))],i=!0)},p(s,u){if(l!==(l=an.Info)){if(n){ne();const c=n;b(c.$$.fragment,1,0,()=>{R(c,1)}),re()}l?(n=fn(l,a()),F(n.$$.fragment),g(n.$$.fragment,1),$(n,e,null)):n=null}(!r||u&4)&&x(e,"aria-describedby",s[2]),(!r||u&8)&&x(e,"aria-label",s[3])},i(s){r||(n&&g(n.$$.fragment,s),r=!0)},o(s){n&&b(n.$$.fragment,s),r=!1},d(s){s&&E(e),n&&R(n),t[11](null),i=!1,pn(o)}}}function nd(t){let e,n,r,i,o;return{c(){e=W("span"),n=Ie(t[4]),r=new hr(!1),r.a=null,x(e,"role","tooltip"),x(e,"id",t[2]),x(e,"class","svelte-1d6q7ud")},m(l,a){L(l,e,a),V(e,n),r.m(t[5],e),i||(o=zr(t[8].call(null,e)),i=!0)},p(l,a){a&16&&Ke(n,l[4]),a&32&&r.p(l[5]),a&4&&x(e,"id",l[2])},d(l){l&&E(e),i=!1,o()}}}function jC(t){let e,n,r,i,o,l=t[6]&&td(t),a=t[1]&&nd(t);return{c(){e=W("span"),l&&l.c(),n=j(),a&&a.c(),x(e,"class","zl-tooltip svelte-1d6q7ud"),ke(e,"notrigger",!t[6])},m(s,u){L(s,e,u),l&&l.m(e,null),V(e,n),a&&a.m(e,null),r=!0,i||(o=tt(window,"resize",t[10]),i=!0)},p(s,[u]){s[6]?l?(l.p(s,u),u&64&&g(l,1)):(l=td(s),l.c(),g(l,1),l.m(e,n)):l&&(ne(),b(l,1,1,()=>{l=null}),re()),s[1]?a?a.p(s,u):(a=nd(s),a.c(),a.m(e,null)):a&&(a.d(1),a=null),(!r||u&64)&&ke(e,"notrigger",!s[6])},i(s){r||(g(l),r=!0)},o(s){b(l),r=!1},d(s){s&&E(e),l&&l.d(),a&&a.d(),i=!1,o()}}}function XC(t,e,n){let{ref:r=null}=e,{showTooltip:i=!1}=e,{id:o="zl-"+Ni(10)+"-tooltip"}=e,{label:l=""}=e,{text:a=""}=e,{html:s=""}=e,{showTriggerIcon:u=!0}=e;const[c,f,d]=Vf({strategy:"fixed",placement:"top",middleware:[Uf({mainAxis:5,crossAxis:0}),qf(),Bf({padding:5})],autoUpdate:{ancestorResize:!1,elementResize:!1}}),m=()=>d();function h(y){xe[y?"unshift":"push"](()=>{r=y,n(0,r)})}const p=()=>n(1,i=!0),v=()=>n(1,i=!1),w=()=>n(1,i=!0),S=()=>n(1,i=!1);return t.$$set=y=>{"ref"in y&&n(0,r=y.ref),"showTooltip"in y&&n(1,i=y.showTooltip),"id"in y&&n(2,o=y.id),"label"in y&&n(3,l=y.label),"text"in y&&n(4,a=y.text),"html"in y&&n(5,s=y.html),"showTriggerIcon"in y&&n(6,u=y.showTriggerIcon)},[r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S]}class vo extends Ne{constructor(e){super(),Ee(this,e,XC,jC,Ae,{ref:0,showTooltip:1,id:2,label:3,text:4,html:5,showTriggerIcon:6},QC)}get ref(){return this.$$.ctx[0]}set ref(e){this.$$set({ref:e}),C()}get showTooltip(){return this.$$.ctx[1]}set showTooltip(e){this.$$set({showTooltip:e}),C()}get id(){return this.$$.ctx[2]}set id(e){this.$$set({id:e}),C()}get label(){return this.$$.ctx[3]}set label(e){this.$$set({label:e}),C()}get text(){return this.$$.ctx[4]}set text(e){this.$$set({text:e}),C()}get html(){return this.$$.ctx[5]}set html(e){this.$$set({html:e}),C()}get showTriggerIcon(){return this.$$.ctx[6]}set showTriggerIcon(e){this.$$set({showTriggerIcon:e}),C()}}Le(vo,{ref:{},showTooltip:{type:"Boolean"},id:{},label:{},text:{},html:{},showTriggerIcon:{type:"Boolean"}},[],[],!0);function ZC(t){yt(t,"svelte-9x1coj",".zl-badge.svelte-9x1coj{border-radius:var(--zl-border-radius-md);border:1px solid;padding:var(--zl-spacing-xs) var(--zl-spacing-md) var(--zl-spacing-xs) var(--zl-spacing-md);font-size:var(--zl-font-size-2xs);display:inline-block}.info.svelte-9x1coj{background-color:var(--zl-notification-info-background-color, var(--zl-color-gray-lighter));border-color:var(--zl-notification-border-color, var(--zl-default-border-color));color:var(--zl-badge-info-color, var(--zl-color-info-dark))}.error.svelte-9x1coj{background-color:var(--zl-badge-error-background-color, var(--zl-color-error-decent));border-color:var(--zl-badge-error-border-color, var(--zl-color-error-base));color:var(--zl-badge-error-color, var(--zl-color-error-dark))}.warning.svelte-9x1coj{background-color:var(--zl-badge-warning-background-color, var(--zl-color-warning-decent));border-color:var(--zl-badge-warning-border-color, var(--zl-color-warning-base));color:var(--zl-badge-warning-color, var(--zl-color-warning-dark))}.success.svelte-9x1coj{background-color:var(--zl-badge-success-background-color, var(--zl-color-success-decent));border-color:var(--zl-badge-success-border-color, var(--zl-color-success-base));color:var(--zl-badge-success-color, var(--zl-color-success-dark))}")}function rd(t){let e;return{c(){e=Ie(t[1])},m(n,r){L(n,e,r)},p(n,r){r&2&&Ke(e,n[1])},d(n){n&&E(e)}}}function eO(t){let e,n=t[1]&&rd(t);return{c(){e=W("span"),n&&n.c(),x(e,"class","zl-badge svelte-9x1coj"),ke(e,"error",t[0]==="error"),ke(e,"info",t[0]==="info"),ke(e,"success",t[0]==="success"),ke(e,"warning",t[0]==="warning")},m(r,i){L(r,e,i),n&&n.m(e,null)},p(r,[i]){r[1]?n?n.p(r,i):(n=rd(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null),i&1&&ke(e,"error",r[0]==="error"),i&1&&ke(e,"info",r[0]==="info"),i&1&&ke(e,"success",r[0]==="success"),i&1&&ke(e,"warning",r[0]==="warning")},i:ze,o:ze,d(r){r&&E(e),n&&n.d()}}}function tO(t,e,n){let{variant:r="info"}=e,{label:i=""}=e;return t.$$set=o=>{"variant"in o&&n(0,r=o.variant),"label"in o&&n(1,i=o.label)},[r,i]}class id extends Ne{constructor(e){super(),Ee(this,e,tO,eO,Ae,{variant:0,label:1},ZC)}get variant(){return this.$$.ctx[0]}set variant(e){this.$$set({variant:e}),C()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),C()}}Le(id,{variant:{},label:{}},[],[],!0);function nO(t){yt(t,"svelte-19zqcha",".listbox.svelte-19zqcha{background-color:var(--zl-listbox-background-color, var(--zl-color-gray-lighter));border-radius:var(--zl-listbox-border-radius, var(--zl-default-border-radius));border-style:var(--zl-listbox-border-style, solid);border-width:var(--zl-listbox-border-width, 1px);border-color:var(--zl-listbox-border-color, var(--zl-color-gray-lightest));box-shadow:var(--zl-default-box-shadow);color:var(--zl-notification-info-color);display:flex;flex-direction:column;gap:var(--zl-listbox-padding, var(--zl-spacing-sm));max-width:var(--zl-listbox-max-width, 15rem);padding:var(--zl-listbox-padding, var(--zl-spacing-sm));position:fixed;width:fit-content;z-index:var(--zl-z-index-popup)}.listbox.svelte-19zqcha>button.zl-btn{align-items:flex-start}.listbox.svelte-19zqcha>button.zl-btn .zl-btn-inner{justify-content:flex-start;max-width:100%;text-align:left;width:max-content}.inlineFlex.svelte-19zqcha{display:inline-flex;align-content:center}.inlineIcon.svelte-19zqcha{padding-left:var(--zl-listbox-padding, var(--zl-spacing-sm))}.grid.svelte-19zqcha{display:grid;gap:0.5em;grid-auto-flow:column}")}function od(t,e,n){const r=t.slice();return r[25]=e[n],r}function ld(t,e,n){const r=t.slice();return r[25]=e[n],r}function ad(t){let e,n,r,i;const o=[_O,vO,bO,pO,gO,mO,hO,dO,fO,cO,uO,sO,aO,lO,oO,iO,rO],l=[];function a(s,u){return s[3].type=="text"?0:s[3].type=="orderModelBadge"?1:s[3].type=="plainText"?2:s[3].type=="amount"?3:s[3].type=="datetime"?4:s[3].type=="date"?5:s[3].type=="orderValidity"?6:s[3].type=="html"?7:s[3].type=="profitLossRel"?8:s[3].type=="profitLossAbs"?9:s[3].type=="image"?10:s[3].type=="brokerName"?11:s[3].type=="actions"?12:s[3].type=="link"&&s[3].value.type=="url"?13:s[3].type=="link"&&s[3].value.type=="portfolio"?14:s[3].type=="orderTrailingDistance"?15:16}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function rO(t){let e,n;return e=new Zf({props:{data:t[3].value}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.data=r[3].value),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function iO(t){let e;function n(o,l){var a,s;if(((a=o[3].value)==null?void 0:a.mode)=="abs")return kO;if(((s=o[3])==null?void 0:s.value.mode)=="rel")return yO}let r=n(t),i=r&&r(t);return{c(){i&&i.c(),e=Xe()},m(o,l){i&&i.m(o,l),L(o,e,l)},p(o,l){r===(r=n(o))&&i?i.p(o,l):(i&&i.d(1),i=r&&r(o),i&&(i.c(),i.m(e.parentNode,e)))},i:ze,o:ze,d(o){o&&E(e),i&&i.d(o)}}}function oO(t){let e,n=t[3].value.text+"",r,i,o;return{c(){e=W("button"),r=Ie(n),x(e,"class","zlc-link")},m(l,a){L(l,e,a),V(e,r),i||(o=tt(e,"click",t[23]),i=!0)},p(l,a){a&8&&n!==(n=l[3].value.text+"")&&Ke(r,n)},i:ze,o:ze,d(l){l&&E(e),i=!1,o()}}}function lO(t){let e,n;return e=new Hr({props:{href:t[3].value.url,rel:"noopener noreferrer",target:"_blank",$$slots:{default:[wO]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.href=r[3].value.url),i&1073741832&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function aO(t){let e,n,r=t[3].value.length&&sd(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[3].value.length?r?(r.p(i,o),o&8&&g(r,1)):(r=sd(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function sO(t){let e,n;return e=new kl({props:{height:"10px",brokerName:t[3].value}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.brokerName=r[3].value),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function uO(t){let e,n;return{c(){e=W("img"),Qn(e.src,n=t[3].value.url)||x(e,"src",n),_n(e,"height",t[3].value.height)},m(r,i){L(r,e,i)},p(r,i){i&8&&!Qn(e.src,n=r[3].value.url)&&x(e,"src",n),i&8&&_n(e,"height",r[3].value.height)},i:ze,o:ze,d(r){r&&E(e)}}}function cO(t){let e,n=t[8].formatProfitLossAbsHtml(t[3].value)+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&8&&n!==(n=i[8].formatProfitLossAbsHtml(i[3].value)+"")&&e.p(n)},i:ze,o:ze,d(i){i&&(E(r),e.d())}}}function fO(t){let e,n=t[8].formatProfitLossRelHtml(t[3].value)+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&8&&n!==(n=i[8].formatProfitLossRelHtml(i[3].value)+"")&&e.p(n)},i:ze,o:ze,d(i){i&&(E(r),e.d())}}}function dO(t){let e,n=t[3].value+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&8&&n!==(n=i[3].value+"")&&e.p(n)},i:ze,o:ze,d(i){i&&(E(r),e.d())}}}function hO(t){let e=t[10](t[3].value)+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[10](r[3].value)+"")&&Ke(n,e)},i:ze,o:ze,d(r){r&&E(n)}}}function mO(t){let e=t[8].formatDate(t[3].value)+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[8].formatDate(r[3].value)+"")&&Ke(n,e)},i:ze,o:ze,d(r){r&&E(n)}}}function gO(t){let e=t[8].formatDateTime(t[3].value)+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[8].formatDateTime(r[3].value)+"")&&Ke(n,e)},i:ze,o:ze,d(r){r&&E(n)}}}function pO(t){let e,n=t[8].formatAmount(t[3].value)+"",r,i,o,l=t[3].tooltip&&dd(t);return{c(){e=W("div"),r=Ie(n),i=j(),l&&l.c(),x(e,"class","inlineFlex svelte-19zqcha")},m(a,s){L(a,e,s),V(e,r),V(e,i),l&&l.m(e,null),o=!0},p(a,s){(!o||s&8)&&n!==(n=a[8].formatAmount(a[3].value)+"")&&Ke(r,n),a[3].tooltip?l?(l.p(a,s),s&8&&g(l,1)):(l=dd(a),l.c(),g(l,1),l.m(e,null)):l&&(ne(),b(l,1,1,()=>{l=null}),re())},i(a){o||(g(l),o=!0)},o(a){b(l),o=!1},d(a){a&&E(e),l&&l.d()}}}function bO(t){let e=(t[3].value||"")+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=(r[3].value||"")+"")&&Ke(n,e)},i:ze,o:ze,d(r){r&&E(n)}}}function vO(t){var r;let e,n;return e=new id({props:{label:((r=t[3].value)==null?void 0:r.orderModelLabel)||"",variant:t[3].value.direction==="buy"?"success":"error"}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o&8&&(l.label=((a=i[3].value)==null?void 0:a.orderModelLabel)||""),o&8&&(l.variant=i[3].value.direction==="buy"?"success":"error"),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function _O(t){let e,n,r,i;const o=[OO,CO,zO],l=[];function a(s,u){return s[3].clipboard?0:s[3].navigate?1:2}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function yO(t){let e=t[8].formatAmount({value:t[3].value.value,currency:"PRC",minDecimals:2,maxDecimals:2})+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[8].formatAmount({value:r[3].value.value,currency:"PRC",minDecimals:2,maxDecimals:2})+"")&&Ke(n,e)},d(r){r&&E(n)}}}function kO(t){let e=t[8].formatAmount({value:t[3].value.value,currency:t[3].currency,minDecimals:2,maxDecimals:4})+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[8].formatAmount({value:r[3].value.value,currency:r[3].currency,minDecimals:2,maxDecimals:4})+"")&&Ke(n,e)},d(r){r&&E(n)}}}function wO(t){let e=t[3].value.text+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&8&&e!==(e=r[3].value.text+"")&&Ke(n,e)},d(r){r&&E(n)}}}function sd(t){let e,n,r,i;const o=[TO,SO],l=[];function a(s,u){return s[2]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function SO(t){let e,n,r=At(t[3].value),i=[];for(let l=0;l<r.length;l+=1)i[l]=ud(od(t,r,l));const o=l=>b(i[l],1,1,()=>{i[l]=null});return{c(){e=W("div");for(let l=0;l<i.length;l+=1)i[l].c();x(e,"class","grid svelte-19zqcha")},m(l,a){L(l,e,a);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(e,null);n=!0},p(l,a){if(a&520){r=At(l[3].value);let s;for(s=0;s<r.length;s+=1){const u=od(l,r,s);i[s]?(i[s].p(u,a),g(i[s],1)):(i[s]=ud(u),i[s].c(),g(i[s],1),i[s].m(e,null))}for(ne(),s=r.length;s<i.length;s+=1)o(s);re()}},i(l){if(!n){for(let a=0;a<r.length;a+=1)g(i[a]);n=!0}},o(l){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)b(i[a]);n=!1},d(l){l&&E(e),Mn(i,l)}}}function TO(t){let e,n,r,i,o,l,a=t[1]&&cd(t);return{c(){e=W("button"),e.innerHTML='<span class="zl-btn-inner"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="zlc-icon"><circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle></svg> <span class="zl-btn__text zlc-invisible">Auswahl</span></span>',n=j(),a&&a.c(),r=Xe()},m(s,u){L(s,e,u),t[19](e),L(s,n,u),a&&a.m(s,u),L(s,r,u),i=!0,o||(l=[tt(e,"click",t[20]),zr(t[5].call(null,e))],o=!0)},p(s,u){s[1]?a?(a.p(s,u),u&2&&g(a,1)):(a=cd(s),a.c(),g(a,1),a.m(r.parentNode,r)):a&&(ne(),b(a,1,1,()=>{a=null}),re())},i(s){i||(g(a),i=!0)},o(s){b(a),i=!1},d(s){s&&(E(e),E(n),E(r)),t[19](null),a&&a.d(s),o=!1,pn(l)}}}function ud(t){let e,n;function r(){return t[22](t[25])}return e=new nt({props:{variant:"outlined",width:"full",text:t[25].label}}),e.$on("click",r),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){t=i;const l={};o&8&&(l.text=t[25].label),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function cd(t){let e,n,r,i,o=At(t[3].value),l=[];for(let s=0;s<o.length;s+=1)l[s]=fd(ld(t,o,s));const a=s=>b(l[s],1,1,()=>{l[s]=null});return{c(){e=W("div");for(let s=0;s<l.length;s+=1)l[s].c();x(e,"class","listbox svelte-19zqcha")},m(s,u){L(s,e,u);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(e,null);n=!0,r||(i=zr(t[6].call(null,e)),r=!0)},p(s,u){if(u&520){o=At(s[3].value);let c;for(c=0;c<o.length;c+=1){const f=ld(s,o,c);l[c]?(l[c].p(f,u),g(l[c],1)):(l[c]=fd(f),l[c].c(),g(l[c],1),l[c].m(e,null))}for(ne(),c=o.length;c<l.length;c+=1)a(c);re()}},i(s){if(!n){for(let u=0;u<o.length;u+=1)g(l[u]);n=!0}},o(s){l=l.filter(Boolean);for(let u=0;u<l.length;u+=1)b(l[u]);n=!1},d(s){s&&E(e),Mn(l,s),r=!1,i()}}}function fd(t){let e,n;function r(){return t[21](t[25])}return e=new nt({props:{variant:"muted",width:"full",text:t[25].label}}),e.$on("click",r),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){t=i;const l={};o&8&&(l.text=t[25].label),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function dd(t){let e,n,r,i,o;return n=new vo({props:{showTooltip:t[4],html:t[3].tooltip}}),{c(){e=W("div"),F(n.$$.fragment),x(e,"class","legal-hint-tooltip inlineIcon svelte-19zqcha")},m(l,a){L(l,e,a),$(n,e,null),r=!0,i||(o=[tt(e,"mouseenter",t[15]),tt(e,"mouseleave",t[16]),tt(e,"focusin",t[17]),tt(e,"focusout",t[18])],i=!0)},p(l,a){const s={};a&16&&(s.showTooltip=l[4]),a&8&&(s.html=l[3].tooltip),n.$set(s)},i(l){r||(g(n.$$.fragment,l),r=!0)},o(l){b(n.$$.fragment,l),r=!1},d(l){l&&E(e),R(n),i=!1,pn(o)}}}function zO(t){let e,n=(t[3].value||"")+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&8&&n!==(n=(i[3].value||"")+"")&&e.p(n)},i:ze,o:ze,d(i){i&&(E(r),e.d())}}}function CO(t){let e,n=(t[3].value||"")+"",r,i,o;return{c(){e=W("span"),r=Ie(n),x(e,"class","zlc-link")},m(l,a){L(l,e,a),V(e,r),i||(o=tt(e,"click",t[14]),i=!0)},p(l,a){a&8&&n!==(n=(l[3].value||"")+"")&&Ke(r,n)},i:ze,o:ze,d(l){l&&E(e),i=!1,o()}}}function OO(t){let e,n;return e=new jf({props:{text:t[3].value}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.text=r[3].value),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function IO(t){let e,n,r,i,o=t[3]&&ad(t);return{c(){o&&o.c(),e=Xe()},m(l,a){o&&o.m(l,a),L(l,e,a),n=!0,r||(i=[tt(window,"resize",t[12]),tt(window,"click",t[13]),tt(window,"keydown",t[11])],r=!0)},p(l,[a]){l[3]?o?(o.p(l,a),a&8&&g(o,1)):(o=ad(l),o.c(),g(o,1),o.m(e.parentNode,e)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){n||(g(o),n=!0)},o(l){b(o),n=!1},d(l){l&&E(e),o&&o.d(l),r=!1,pn(i)}}}function AO(t,e){return!t.target||!e?!1:!!(t.target.contains(e)||t.composedPath&&t.composedPath().includes(e))}function DO(t,e,n){let{ref:r=null}=e,{showDropdown:i=!1}=e,{actionsAsDropdown:o=!0}=e,{value:l}=e,a=!1;const[s,u,c]=Vf({strategy:"fixed",placement:"left-start",middleware:[Uf({mainAxis:10,crossAxis:-10}),qf(),Bf({padding:2})],autoUpdate:{ancestorResize:!1,elementResize:!1}}),f=pr(tn),d=Bt(),m=f.__;function h(J){if(!J)return"";switch(J.type){case"AUTO":return m("ValidityType.AUTO");case"GFD":return m("ValidityType.GFD");case"GTD":return f.formatDate(new Date(J.date));case"GTDT":return f.formatDateTime(new Date(J.date));case"GTU":return m("ValidityType.GTU");case"GTC":return m("ValidityType.GTC");case"IOC":return m("ValidityType.IOC");default:throw new Error("Wrong validity type "+J.type)}}function p(J){J.key==="Escape"&&n(1,i=!1)}const v=()=>c(),w=J=>{i&&!AO(J,r)&&n(1,i=!1)},S=()=>d("navigate"),y=()=>n(4,a=!0),z=()=>n(4,a=!1),O=()=>n(4,a=!0),N=()=>n(4,a=!1);function U(J){xe[J?"unshift":"push"](()=>{r=J,n(0,r)})}const A=()=>{n(1,i=!i),d("actionsToggle")},P=J=>d("action",{id:J.id}),Y=J=>d("action",{id:J.id}),B=()=>d("link",{link:l.value});return t.$$set=J=>{"ref"in J&&n(0,r=J.ref),"showDropdown"in J&&n(1,i=J.showDropdown),"actionsAsDropdown"in J&&n(2,o=J.actionsAsDropdown),"value"in J&&n(3,l=J.value)},[r,i,o,l,a,s,u,c,f,d,h,p,v,w,S,y,z,O,N,U,A,P,Y,B]}class wl extends Ne{constructor(e){super(),Ee(this,e,DO,IO,Ae,{ref:0,showDropdown:1,actionsAsDropdown:2,value:3},nO)}get ref(){return this.$$.ctx[0]}set ref(e){this.$$set({ref:e}),C()}get showDropdown(){return this.$$.ctx[1]}set showDropdown(e){this.$$set({showDropdown:e}),C()}get actionsAsDropdown(){return this.$$.ctx[2]}set actionsAsDropdown(e){this.$$set({actionsAsDropdown:e}),C()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),C()}}Le(wl,{ref:{},showDropdown:{type:"Boolean"},actionsAsDropdown:{type:"Boolean"},value:{}},[],[],!0);function MO(t){yt(t,"svelte-13tn1xp","zl-summary.svelte-13tn1xp.svelte-13tn1xp{display:block}zl-summary.svelte-13tn1xp+zl-summary{margin-top:calc(var(--zl-summary-padding-y, var(--zl-spacing-md)) * 2)}.block.svelte-13tn1xp>div.svelte-13tn1xp{display:flex;flex-direction:column}.columns.svelte-13tn1xp>div.svelte-13tn1xp{display:grid;grid-template-columns:1fr 1fr}div.svelte-13tn1xp.svelte-13tn1xp{padding:var(--zl-summary-padding-y, var(--zl-spacing-md)) var(--zl-summary-padding-x, 0);column-gap:var(--zl-summary-padding-x, 0);row-gap:var(--zl-summary-row-gap, calc(var(--zl-spacing-md)) / 2)}div.svelte-13tn1xp.svelte-13tn1xp:not(:first-child){border-top-width:var(--zl-summary-border-width, 1px);border-top-style:var(--zl-summary-border-style, dashed);border-top-color:var(--zl-summary-border-color, var(--zl-default-border-color))}dl.svelte-13tn1xp.svelte-13tn1xp{max-width:var(--zl-summary-max-width, 100%);margin:0 auto}.title.svelte-13tn1xp.svelte-13tn1xp{font-size:var(--zl-summary-title-font-size, var(--zl-font-size-md));font-weight:var(--zl-summary-title-font-weight, var(--zl-font-weight-bold));color:var(--zl-summary-title-color, var(--zl-default-text-color));padding-bottom:var(--zl-summary-padding-y, var(--zl-spacing-md));border-bottom:1px var(--zl-summary-border-style) var(--zl-summary-border-color);margin:0}dt.svelte-13tn1xp.svelte-13tn1xp,dd.svelte-13tn1xp.svelte-13tn1xp{min-width:0;max-width:100%;overflow-wrap:break-word}dt.svelte-13tn1xp.svelte-13tn1xp{grid-column:1 / 2;font-weight:var(--zl-summary-key-font-weight, var(--zl-font-weight-bold));color:var(--zl-summary-key-color, var(--zl-default-text-color));margin-right:var(--zl-summary-key-value-gap, var(--zl-spacing-sm))}dd.svelte-13tn1xp.svelte-13tn1xp{color:var(--zl-summary-value-color, var(--zl-default-text-color));display:flex;font-weight:var(--zl-summary-value-font-weight, var(--zl-font-weight-normal));grid-column:2 / 3;justify-content:var(--zl-summary-value-alignment, start)}")}function hd(t,e,n){const r=t.slice();return r[11]=e[n].label,r[12]=e[n].value,r}function md(t){let e,n;return{c(){e=W("div"),n=Ie(t[1]),x(e,"class","title svelte-13tn1xp")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&2&&Ke(n,r[1])},d(r){r&&E(e)}}}function gd(t){let e,n,r=t[11]+"",i,o,l,a,s,u;return a=new wl({props:{value:t[12],actionsAsDropdown:!1}}),a.$on("link",t[5]),a.$on("action",t[6]),a.$on("action",t[7]),a.$on("navigate",t[8]),a.$on("actionsToggle",t[9]),{c(){e=W("div"),n=W("dt"),i=Ie(r),o=j(),l=W("dd"),F(a.$$.fragment),s=j(),x(n,"class","svelte-13tn1xp"),x(l,"class","svelte-13tn1xp"),x(e,"class","svelte-13tn1xp")},m(c,f){L(c,e,f),V(e,n),V(n,i),V(e,o),V(e,l),$(a,l,null),V(e,s),u=!0},p(c,f){(!u||f&1)&&r!==(r=c[11]+"")&&Ke(i,r);const d={};f&1&&(d.value=c[12]),a.$set(d)},i(c){u||(g(a.$$.fragment,c),u=!0)},o(c){b(a.$$.fragment,c),u=!1},d(c){c&&E(e),R(a)}}}function EO(t){let e,n,r,i,o,l=t[1]&&md(t),a=At(t[0]),s=[];for(let c=0;c<a.length;c+=1)s[c]=gd(hd(t,a,c));const u=c=>b(s[c],1,1,()=>{s[c]=null});return{c(){e=W("zl-summary"),l&&l.c(),n=j(),r=W("dl");for(let c=0;c<s.length;c+=1)s[c].c();x(r,"class",i=vn(`${t[2]||t[4]}`)+" svelte-13tn1xp"),ii(e,"class","svelte-13tn1xp")},m(c,f){L(c,e,f),l&&l.m(e,null),V(e,n),V(e,r);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(r,null);o=!0},p(c,[f]){if(c[1]?l?l.p(c,f):(l=md(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),f&9){a=At(c[0]);let d;for(d=0;d<a.length;d+=1){const m=hd(c,a,d);s[d]?(s[d].p(m,f),g(s[d],1)):(s[d]=gd(m),s[d].c(),g(s[d],1),s[d].m(r,null))}for(ne(),d=a.length;d<s.length;d+=1)u(d);re()}(!o||f&20&&i!==(i=vn(`${c[2]||c[4]}`)+" svelte-13tn1xp"))&&x(r,"class",i)},i(c){if(!o){for(let f=0;f<a.length;f+=1)g(s[f]);o=!0}},o(c){s=s.filter(Boolean);for(let f=0;f<s.length;f+=1)b(s[f]);o=!1},d(c){c&&E(e),l&&l.d(),Mn(s,c)}}}function LO(t,e,n){let{items:r=null}=e,{title:i=""}=e,{layout:o=null}=e;const l=tn("themeConfig");let a;l.subscribe(h=>n(4,a=h==null?void 0:h.layout));let{onAction:s=null}=e;function u(h){qe.call(this,t,h)}function c(h){qe.call(this,t,h)}const f=h=>s&&s(h.detail);function d(h){qe.call(this,t,h)}function m(h){qe.call(this,t,h)}return t.$$set=h=>{"items"in h&&n(0,r=h.items),"title"in h&&n(1,i=h.title),"layout"in h&&n(2,o=h.layout),"onAction"in h&&n(3,s=h.onAction)},[r,i,o,s,a,u,c,f,d,m]}class qi extends Ne{constructor(e){super(),Ee(this,e,LO,EO,Ae,{items:0,title:1,layout:2,onAction:3},MO)}get items(){return this.$$.ctx[0]}set items(e){this.$$set({items:e}),C()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),C()}get layout(){return this.$$.ctx[2]}set layout(e){this.$$set({layout:e}),C()}get onAction(){return this.$$.ctx[3]}set onAction(e){this.$$set({onAction:e}),C()}}Le(qi,{items:{},title:{},layout:{},onAction:{}},[],[],!0);function pd(t){return t.sizeUnit||t.bondCurrencyIso||"XXX"}function NO(t){return t.sizeUnit?`Betrag in ${t.sizeUnit}`:t.bondCurrencyIso?`Nominalbetrag in ${t.bondCurrencyIso}`:"Stückzahl"}function bd(t,e,n){const r=t.slice();return r[12]=e[n],r}function vd(t){let e,n,r,i,o,l,a=t[0]&&_d();n=new qi({props:{items:t[1].items}}),n.$on("link",t[2]);let s=At(t[1].executions),u=[];for(let d=0;d<s.length;d+=1)u[d]=yd(bd(t,s,d));const c=d=>b(u[d],1,1,()=>{u[d]=null});let f=t[1].actionsItems&&kd(t);return{c(){a&&a.c(),e=j(),F(n.$$.fragment),r=j();for(let d=0;d<u.length;d+=1)u[d].c();i=j(),f&&f.c(),o=Xe()},m(d,m){a&&a.m(d,m),L(d,e,m),$(n,d,m),L(d,r,m);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(d,m);L(d,i,m),f&&f.m(d,m),L(d,o,m),l=!0},p(d,m){d[0]?a?m&1&&g(a,1):(a=_d(),a.c(),g(a,1),a.m(e.parentNode,e)):a&&(ne(),b(a,1,1,()=>{a=null}),re());const h={};if(m&2&&(h.items=d[1].items),n.$set(h),m&6){s=At(d[1].executions);let p;for(p=0;p<s.length;p+=1){const v=bd(d,s,p);u[p]?(u[p].p(v,m),g(u[p],1)):(u[p]=yd(v),u[p].c(),g(u[p],1),u[p].m(i.parentNode,i))}for(ne(),p=s.length;p<u.length;p+=1)c(p);re()}d[1].actionsItems?f?(f.p(d,m),m&2&&g(f,1)):(f=kd(d),f.c(),g(f,1),f.m(o.parentNode,o)):f&&(ne(),b(f,1,1,()=>{f=null}),re())},i(d){if(!l){g(a),g(n.$$.fragment,d);for(let m=0;m<s.length;m+=1)g(u[m]);g(f),l=!0}},o(d){b(a),b(n.$$.fragment,d),u=u.filter(Boolean);for(let m=0;m<u.length;m+=1)b(u[m]);b(f),l=!1},d(d){d&&(E(e),E(r),E(i),E(o)),a&&a.d(d),R(n,d),Mn(u,d),f&&f.d(d)}}}function _d(t){let e,n;return e=new Sn({props:{variant:"order",repeat:!1,size:15}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function yd(t){let e,n;return e=new qi({props:{title:t[12].title,items:t[12].items}}),e.$on("link",t[2]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2&&(o.title=r[12].title),i&2&&(o.items=r[12].items),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function kd(t){let e,n;return e=new qi({props:{items:t[1].actionsItems}}),e.$on("action",t[3]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2&&(o.items=r[1].actionsItems),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function PO(t){let e,n,r=t[1]&&vd(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,[o]){i[1]?r?(r.p(i,o),o&2&&g(r,1)):(r=vd(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function Vi(t,e,n){return e==null?null:{label:t,value:{type:"amount",value:{value:e,currency:n.limitCurrencyIso,minDecimals:2,maxDecimals:n.quoteDecimals}}}}function $O(t){return t.isin||t.selector.isin?`${t==null?void 0:t.name} (ISIN: ${t.isin||t.selector.isin})`:t.selector.cryptoCode?`${t==null?void 0:t.name} (Symbol: ${t.selector.cryptoCode})`:t.selector.cryptoPair?`${t==null?void 0:t.name} (Symbol: ${t.selector.cryptoPair})`:t.selector.sinoTicker?`${t==null?void 0:t.name} (Symbol: ${t.selector.sinoTicker})`:t.selector.usTicker?`${t==null?void 0:t.name} (Symbol: ${t.selector.usTicker})`:t.selector.wkn?`${t==null?void 0:t.name} (Symbol: ${t.selector.wkn})`:`${t==null?void 0:t.name}`}function RO(t,e,n){let r;const i=Bt();let{data:o=null}=e,{showActions:l=!1}=e,{isOrderConfirmation:a=!1}=e,{onNavigate:s=null}=e,{onAction:u=null}=e;const{__:c,labels:f}=pr(tn);function d(p){if(!p)return null;const{order:v,portfolio:w}=p;if(!v)return null;const S=l?[v.allowsCancel?{id:"cancelOrder",label:c("Commons.OrderActions.Cancel")}:null,v.allowsChangeSize||v.allowsChangeValidityTypes||v.allowsChangeOrderModels||v.allowsChangeStop||v.allowsChangeStopLimit||v.allowsChangeTrailingDistance?{id:"editOrder",label:c("Commons.OrderActions.Change")}:null].filter(y=>!!y):[];return{items:[{label:c("Commons.Security"),value:{type:"text",value:$O(v.security)}},w?{label:c("Commons.Portfolio"),value:{type:"link",value:{type:"portfolio",text:w==null?void 0:w.portfolioName,portfolioId:v.portfolioId}}}:null,v.displayNo?{label:c("Commons.OrderDisplayNo"),value:{type:"text",value:v.displayNo}}:null,v.size!=null?{label:c("Commons.Size"),value:{type:"amount",value:{value:v.size,currency:pd(v)}}}:null,v.createdAt?{label:c("Order.CreatedAt"),value:{type:"datetime",value:v.createdAt}}:null,{label:c("Commons.Direction"),value:{type:"text",value:f.direction[v.direction]}},{label:c("Commons.OrderModel"),value:{type:"text",value:f.orderModel(v.orderModel,v.direction,v.intent)}},v.profitLossAbs!=null?{label:c("Order.ProfitLossAbs"),value:{type:"profitLossAbs",value:v.profitLossAbs}}:null,v.profitLossRel!=null?{label:c("Order.ProfitLossRel"),value:{type:"profitLossRel",value:v.profitLossRel}}:null,Vi(c("OrderTable.Limit"),v.limit,v),Vi(c("OrderTable.Stop"),v.stop,v),Vi(c("OrderTable.StopLimit"),v.stopLimit,v),v.currentStop!=null?{label:c("OrderTable.CurrentStop"),value:{type:"amount",value:v.currentStop}}:null,v.exchangeName?{label:c("OrderTable.ExchangeName"),value:{type:"text",value:v.exchangeName}}:null,v.statusText?{label:c("OrderTable.Status"),value:{type:"text",value:v.statusText}}:null,v.validity?{label:c("OrderTable.Validity"),value:{type:"orderValidity",value:v.validity}}:null,v.trailingDistance?{label:c("OrderTable.TrailingDistance"),value:{type:"orderTrailingDistance",value:v.trailingDistance,currency:v.limitCurrencyIso}}:null,Vi(c("OrderTable.TrailingLimitTolerance"),v.trailingLimitTolerance,v),Vi(c("OrderTable.TakeProfit"),v.takeProfit,v),Vi(c("OrderTable.StopLoss"),v.stopLoss,v)].filter(y=>!!y),executions:(v.executions||[]).map((y,z)=>({title:c("OrderExecution")+" #"+(z+1),items:[{label:c("OrderTable.Size"),value:{type:"amount",value:{value:y.size.value,currency:y.size.currency||"XXX"}}},{label:c("OrderTable.ExecutedQuote"),value:{type:"amount",value:y.quote}},{label:c("OrderTable.ExecutedDateTime"),value:{type:"datetime",value:y.executedDateTime}},y.executionStatusText!=null?{label:c("OrderTable.ExecutionStatusText"),value:{type:"text",value:y.executionStatusText}}:null,y.transactionTax!=null?{label:c("OrderExecution.TransactionTax"),value:{type:"amount",value:y.transactionTax}}:null,y.tax!=null?{label:c("OrderExecution.Tax"),value:{type:"amount",value:y.tax}}:null,y.amount!=null?{label:c("OrderExecution.Amount"),value:{type:"amount",value:y.amount}}:null,y.totalAmount!=null?{label:c("OrderExecution.TotalAmount"),value:{type:"amount",value:y.totalAmount}}:null].filter(O=>!!O)})),actionsItems:S.length?[{label:"",value:{type:"actions",value:S}}]:null}}function m(p){const v=p.detail.link;if(v.type=="portfolio"){const w={type:"portfolio",portfolioId:v.portfolioId};i("navigate",w),s&&s(w)}}function h(p){i("action",p.detail),u&&u(p.detail)}return t.$$set=p=>{"data"in p&&n(4,o=p.data),"showActions"in p&&n(5,l=p.showActions),"isOrderConfirmation"in p&&n(0,a=p.isOrderConfirmation),"onNavigate"in p&&n(6,s=p.onNavigate),"onAction"in p&&n(7,u=p.onAction)},t.$$.update=()=>{t.$$.dirty&16&&n(1,r=d(o))},[a,r,m,h,o,l,s,u]}class Sl extends Ne{constructor(e){super(),Ee(this,e,RO,PO,Ae,{data:4,showActions:5,isOrderConfirmation:0,onNavigate:6,onAction:7})}get data(){return this.$$.ctx[4]}set data(e){this.$$set({data:e}),C()}get showActions(){return this.$$.ctx[5]}set showActions(e){this.$$set({showActions:e}),C()}get isOrderConfirmation(){return this.$$.ctx[0]}set isOrderConfirmation(e){this.$$set({isOrderConfirmation:e}),C()}get onNavigate(){return this.$$.ctx[6]}set onNavigate(e){this.$$set({onNavigate:e}),C()}get onAction(){return this.$$.ctx[7]}set onAction(e){this.$$set({onAction:e}),C()}}Le(Sl,{data:{},showActions:{type:"Boolean"},isOrderConfirmation:{type:"Boolean"},onNavigate:{},onAction:{}},[],[],!0);function FO(t){yt(t,"svelte-1qyq56l","select.svelte-1qyq56l.svelte-1qyq56l{-webkit-appearance:none;appearance:none;background-color:var(--zl-select-background-color, var(--zl-color-gray-lightest));background-position-x:calc(100% - var(--zl-select-padding-x, var(--zl-default-padding-x)) * 0.5);background-position-y:50%;background-repeat:no-repeat;border-color:var(--zl-select-border-color, var(--zl-default-border-color));border-radius:var(--zl-select-border-radius, var(--zl-default-border-radius));border-style:var(--zl-select-border-style, solid);border-width:var(--zl-select-border-width, var(--zl-default-border-width));color:var(--zl-select-color, var(--zl-default-text-color));font-size:var(--zl-select-font-size, var(--zl-default-font-size));padding-block:var(--zl-select-padding-y, var(--zl-default-padding-y));padding-inline:var(--zl-select-padding-x, var(--zl-default-padding-x)) 40px;text-overflow:ellipsis;width:100%}select.select--error.svelte-1qyq56l.svelte-1qyq56l{border-color:var(--zl-color-error-base)}select.svelte-1qyq56l>option{padding-inline:0}select.svelte-1qyq56l.svelte-1qyq56l:focus{outline:none;border-color:var(--zl-color-outline)}select.svelte-1qyq56l:focus>option.svelte-1qyq56l:disabled{color:var(--zl-color-gray-darkest)}@media(max-width: 768px){select.svelte-1qyq56l.svelte-1qyq56l{font-size:var(--zl-select-font-size-mobile, 16px)}}.error.svelte-1qyq56l.svelte-1qyq56l{color:var(--zl-color-error-base)}")}function wd(t,e,n){const r=t.slice();return r[12]=e[n].id,r[25]=e[n].value,r[11]=e[n].disabled,r[0]=e[n].selected,r}const xO=t=>({}),Sd=t=>({});function Td(t){let e,n=t[2]!=null&&zd(t);return{c(){n&&n.c(),e=Xe()},m(r,i){n&&n.m(r,i),L(r,e,i)},p(r,i){r[2]!=null?n?n.p(r,i):(n=zd(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d(r){r&&E(e),n&&n.d(r)}}}function zd(t){let e,n;return{c(){e=W("option"),n=Ie(t[2]),e.__value="",oi(e,e.__value),e.disabled=!0,e.selected=!0,e.hidden=!0,x(e,"class","svelte-1qyq56l")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&4&&Ke(n,r[2])},d(r){r&&E(e)}}}function Cd(t,e){let n,r=e[25]+"",i,o,l,a,s;return{key:t,first:null,c(){n=W("option"),i=Ie(r),o=j(),n.__value=l=e[12],oi(n,n.__value),n.disabled=a=e[11],n.selected=s=e[0],x(n,"class","svelte-1qyq56l"),this.first=n},m(u,c){L(u,n,c),V(n,i),V(n,o)},p(u,c){e=u,c&2&&r!==(r=e[25]+"")&&Ke(i,r),c&2&&l!==(l=e[12])&&(n.__value=l,oi(n,n.__value)),c&2&&a!==(a=e[11])&&(n.disabled=a),c&2&&s!==(s=e[0])&&(n.selected=s)},d(u){u&&E(n)}}}function UO(t){var v;let e,n,r=[],i=new Map,o,l,a,s,u=!t[0]&&Td(t);const c=t[16].default,f=ht(c,t,t[22],null);let d=At(t[1]);const m=w=>w[12];for(let w=0;w<d.length;w+=1){let S=wd(t,d,w),y=m(S);i.set(y,r[w]=Cd(y,S))}let h=[{part:"select"},{id:t[12]},{name:t[3]},{disabled:t[11]},{required:t[6]},t[15],{style:o=((v=t[13])==null?void 0:v.logoStyle)=="light"?'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%234d5460%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")':'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%2391999c%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")'}],p={};for(let w=0;w<h.length;w+=1)p=ve(p,h[w]);return{c(){e=W("select"),u&&u.c(),n=Xe(),f&&f.c();for(let w=0;w<r.length;w+=1)r[w].c();En(e,p),t[0]===void 0&&gr(()=>t[21].call(e)),ke(e,"select--error",t[7]),ke(e,"svelte-1qyq56l",!0)},m(w,S){L(w,e,S),u&&u.m(e,null),V(e,n),f&&f.m(e,null);for(let y=0;y<r.length;y+=1)r[y]&&r[y].m(e,null);"value"in p&&(p.multiple?el:Jr)(e,p.value),e.autofocus&&e.focus(),Jr(e,t[0],!0),l=!0,a||(s=[tt(e,"change",t[21]),tt(e,"change",t[14]),tt(e,"keydown",t[17]),tt(e,"keyup",t[18]),tt(e,"focus",t[19]),tt(e,"blur",t[20])],a=!0)},p(w,S){var y;w[0]?u&&(u.d(1),u=null):u?u.p(w,S):(u=Td(w),u.c(),u.m(e,n)),f&&f.p&&(!l||S&4194304)&&gt(f,c,w,w[22],l?mt(c,w[22],S,null):pt(w[22]),null),S&2&&(d=At(w[1]),r=ll(r,S,m,1,w,d,i,e,ic,Cd,null,wd)),En(e,p=ut(h,[{part:"select"},(!l||S&4096)&&{id:w[12]},(!l||S&8)&&{name:w[3]},(!l||S&2048)&&{disabled:w[11]},(!l||S&64)&&{required:w[6]},S&32768&&w[15],(!l||S&8192&&o!==(o=((y=w[13])==null?void 0:y.logoStyle)=="light"?'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%234d5460%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")':'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%2391999c%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")'))&&{style:o}])),S&47176&&"value"in p&&(p.multiple?el:Jr)(e,p.value),S&3&&Jr(e,w[0]),ke(e,"select--error",w[7]),ke(e,"svelte-1qyq56l",!0)},i(w){l||(g(f,w),l=!0)},o(w){b(f,w),l=!1},d(w){w&&E(e),u&&u.d(),f&&f.d(w);for(let S=0;S<r.length;S+=1)r[S].d();a=!1,pn(s)}}}function BO(t){let e;return{c(){e=Ie(t[4])},m(n,r){L(n,e,r)},p(n,r){r&16&&Ke(e,n[4])},d(n){n&&E(e)}}}function qO(t){let e;return{c(){e=Ie(t[9])},m(n,r){L(n,e,r)},p(n,r){r&512&&Ke(e,n[9])},d(n){n&&E(e)}}}function VO(t){let e;return{c(){e=W("span"),e.textContent=`${WO}`,x(e,"aria-hidden","true")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function JO(t){let e,n,r;const i=t[16].label,o=ht(i,t,t[22],Sd),l=o||BO(t);function a(c,f){return c[6]?VO:qO}let s=a(t),u=s(t);return{c(){e=W("label"),l&&l.c(),n=j(),u.c(),x(e,"for",t[12]),x(e,"slot","label"),x(e,"part","label"),x(e,"class","svelte-1qyq56l"),ke(e,"disabled",t[11]),ke(e,"zlc-invisible",t[5]),ke(e,"error",t[7])},m(c,f){L(c,e,f),l&&l.m(e,null),V(e,n),u.m(e,null),r=!0},p(c,f){o?o.p&&(!r||f&4194304)&&gt(o,i,c,c[22],r?mt(i,c[22],f,xO):pt(c[22]),Sd):l&&l.p&&(!r||f&16)&&l.p(c,r?f:-1),s===(s=a(c))&&u?u.p(c,f):(u.d(1),u=s(c),u&&(u.c(),u.m(e,null))),(!r||f&4096)&&x(e,"for",c[12]),(!r||f&2048)&&ke(e,"disabled",c[11]),(!r||f&32)&&ke(e,"zlc-invisible",c[5]),(!r||f&128)&&ke(e,"error",c[7])},i(c){r||(g(l,c),r=!0)},o(c){b(l,c),r=!1},d(c){c&&E(e),l&&l.d(c),u.d()}}}function HO(t){let e,n;return e=new si({props:{hasError:t[7],layout:t[10],errorText:t[8],$$slots:{label:[JO],default:[UO]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&128&&(o.hasError=r[7]),i&1024&&(o.layout=r[10]),i&256&&(o.errorText=r[8]),i&4242175&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}let WO="*";function YO(t,e,n){const r=["items","selected","placeholder","disabled","id","name","label","hideLabel","required","hasError","errorText","optionalText","layout"];let i=Dn(e,r),{$$slots:o={},$$scope:l}=e;const a=tn("themeConfig");let s;a.subscribe(ee=>{n(13,s=ee)}),tn("themeConfig").subscribe(ee=>{n(13,s=ee)});const u=Bt();let{items:c=[]}=e,{selected:f=void 0}=e,{placeholder:d=void 0}=e,{disabled:m=!1}=e,{id:h="zl-"+Ni(10)}=e,{name:p=void 0}=e,{label:v=""}=e,{hideLabel:w=!1}=e,{required:S=!1}=e,{hasError:y=!1}=e,{errorText:z=""}=e,{optionalText:O=""}=e,{layout:N=null}=e;const U=ee=>{u("change",ee.target.value)};function A(ee){qe.call(this,t,ee)}function P(ee){qe.call(this,t,ee)}function Y(ee){qe.call(this,t,ee)}function B(ee){qe.call(this,t,ee)}function J(){f=ju(this),n(0,f),n(1,c)}return t.$$set=ee=>{e=ve(ve({},e),je(ee)),n(15,i=Dn(e,r)),"items"in ee&&n(1,c=ee.items),"selected"in ee&&n(0,f=ee.selected),"placeholder"in ee&&n(2,d=ee.placeholder),"disabled"in ee&&n(11,m=ee.disabled),"id"in ee&&n(12,h=ee.id),"name"in ee&&n(3,p=ee.name),"label"in ee&&n(4,v=ee.label),"hideLabel"in ee&&n(5,w=ee.hideLabel),"required"in ee&&n(6,S=ee.required),"hasError"in ee&&n(7,y=ee.hasError),"errorText"in ee&&n(8,z=ee.errorText),"optionalText"in ee&&n(9,O=ee.optionalText),"layout"in ee&&n(10,N=ee.layout),"$$scope"in ee&&n(22,l=ee.$$scope)},[f,c,d,p,v,w,S,y,z,O,N,m,h,s,U,i,o,A,P,Y,B,J,l]}class Un extends Ne{constructor(e){super(),Ee(this,e,YO,HO,Ae,{items:1,selected:0,placeholder:2,disabled:11,id:12,name:3,label:4,hideLabel:5,required:6,hasError:7,errorText:8,optionalText:9,layout:10},FO)}get items(){return this.$$.ctx[1]}set items(e){this.$$set({items:e}),C()}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),C()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),C()}get disabled(){return this.$$.ctx[11]}set disabled(e){this.$$set({disabled:e}),C()}get id(){return this.$$.ctx[12]}set id(e){this.$$set({id:e}),C()}get name(){return this.$$.ctx[3]}set name(e){this.$$set({name:e}),C()}get label(){return this.$$.ctx[4]}set label(e){this.$$set({label:e}),C()}get hideLabel(){return this.$$.ctx[5]}set hideLabel(e){this.$$set({hideLabel:e}),C()}get required(){return this.$$.ctx[6]}set required(e){this.$$set({required:e}),C()}get hasError(){return this.$$.ctx[7]}set hasError(e){this.$$set({hasError:e}),C()}get errorText(){return this.$$.ctx[8]}set errorText(e){this.$$set({errorText:e}),C()}get optionalText(){return this.$$.ctx[9]}set optionalText(e){this.$$set({optionalText:e}),C()}get layout(){return this.$$.ctx[10]}set layout(e){this.$$set({layout:e}),C()}}Le(Un,{items:{},selected:{},placeholder:{},disabled:{type:"Boolean"},id:{},name:{},label:{},hideLabel:{type:"Boolean"},required:{type:"Boolean"},hasError:{type:"Boolean"},errorText:{},optionalText:{},layout:{}},["label","default"],[],!0);function GO(t){yt(t,"svelte-1obo04y","select.svelte-1obo04y.svelte-1obo04y{-webkit-appearance:none;appearance:none;background-color:var(--zl-input-background-color);background-position-x:calc(100% - var(--zl-default-padding-x) * 0.5);background-position-y:50%;background-repeat:no-repeat;border-color:var(--zl-input-border-color);border-radius:var(--zl-input-border-radius);border-width:var(--zl-input-border-width);color:var(--zl-input-color);font-size:var(--zl-input-font-size);min-width:95px;padding:var(--zl-default-padding-y) var(--zl-default-padding-x);text-overflow:ellipsis}select.input--error.svelte-1obo04y.svelte-1obo04y{border-color:var(--zl-color-error-base)}select.svelte-1obo04y>option{padding-inline:0}select.svelte-1obo04y.svelte-1obo04y:focus{outline:none;border-color:var(--zl-color-outline)}select.svelte-1obo04y:focus>option[disabled].svelte-1obo04y{color:var(--zl-color-gray-darkest)}select.svelte-1obo04y.svelte-1obo04y{border-left:0;border-top-left-radius:var(--zl-input-with-dropdown-border-top-left-radius, 0);border-bottom-left-radius:var(--zl-input-with-dropdown-border-bottom-left-radius, 0);border-top-right-radius:var(--zl-input-with-dropdown-border-top-right-radius, 0);border-bottom-right-radius:var(--zl-input-with-dropdown-border-bottom-right-radius);background-color:var(--zl-input-with-dropdown-background-color)}select.input--error.svelte-1obo04y.svelte-1obo04y{background-color:transparent;border-left-color:transparent}")}function Od(t,e,n){const r=t.slice();return r[6]=e[n].id,r[17]=e[n].value,r[5]=e[n].disabled,r[0]=e[n].selected,r}function Id(t,e){let n,r=e[17]+"",i,o,l,a,s;return{key:t,first:null,c(){n=W("option"),i=Ie(r),o=j(),n.__value=l=e[6],oi(n,n.__value),n.disabled=a=e[5],n.selected=s=e[0],x(n,"class","svelte-1obo04y"),this.first=n},m(u,c){L(u,n,c),V(n,i),V(n,o)},p(u,c){e=u,c&8&&r!==(r=e[17]+"")&&Ke(i,r),c&8&&l!==(l=e[6])&&(n.__value=l,oi(n,n.__value)),c&8&&a!==(a=e[5])&&(n.disabled=a),c&8&&s!==(s=e[0])&&(n.selected=s)},d(u){u&&E(n)}}}function KO(t){var d;let e,n,r=[],i=new Map,o,l,a,s=At(t[3]);const u=m=>m[6];for(let m=0;m<s.length;m+=1){let h=Od(t,s,m),p=u(h);i.set(p,r[m]=Id(p,h))}let c=[{part:"select"},{id:t[6]},{name:t[1]},{disabled:t[5]},{required:t[2]},t[9],{style:o=((d=t[7])==null?void 0:d.logoStyle)=="light"?'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%234d5460%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")':'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%2391999c%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")'}],f={};for(let m=0;m<c.length;m+=1)f=ve(f,c[m]);return{c(){e=W("select"),n=Ie(`>
147
+ `);for(let m=0;m<r.length;m+=1)r[m].c();En(e,f),t[0]===void 0&&gr(()=>t[14].call(e)),ke(e,"input--error",t[4]),ke(e,"svelte-1obo04y",!0)},m(m,h){L(m,e,h),V(e,n);for(let p=0;p<r.length;p+=1)r[p]&&r[p].m(e,null);"value"in f&&(f.multiple?el:Jr)(e,f.value),e.autofocus&&e.focus(),Jr(e,t[0],!0),l||(a=[tt(e,"change",t[14]),tt(e,"change",t[8]),tt(e,"keydown",t[10]),tt(e,"keyup",t[11]),tt(e,"focus",t[12]),tt(e,"blur",t[13])],l=!0)},p(m,[h]){var p;h&8&&(s=At(m[3]),r=ll(r,h,u,1,m,s,i,e,ic,Id,null,Od)),En(e,f=ut(c,[{part:"select"},h&64&&{id:m[6]},h&2&&{name:m[1]},h&32&&{disabled:m[5]},h&4&&{required:m[2]},h&512&&m[9],h&128&&o!==(o=((p=m[7])==null?void 0:p.logoStyle)=="light"?'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%234d5460%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")':'background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27%3E%3Cpath fill=%27%2391999c%27 d=%27M17.6 8.6L19 10 13.4 15.6l.004.004-1.4 1.401L12 17l-.003.004-1.401-1.4.003-.005L5 10.001 6.4 8.6l5.6 5.599L17.6 8.6z%27/%3E%3C/svg%3E")')&&{style:o}])),h&742&&"value"in f&&(f.multiple?el:Jr)(e,f.value),h&9&&Jr(e,m[0]),ke(e,"input--error",m[4]),ke(e,"svelte-1obo04y",!0)},i:ze,o:ze,d(m){m&&E(e);for(let h=0;h<r.length;h+=1)r[h].d();l=!1,pn(a)}}}function QO(t,e,n){const r=["disabled","id","name","required","selected","items","hasError"];let i=Dn(e,r);const o=tn("themeConfig");let l;o.subscribe(O=>{n(7,l=O)});let{disabled:a=!1}=e,{id:s="zl-"+Ni(10)}=e,{name:u=void 0}=e,{required:c=!1}=e,{selected:f=void 0}=e,{items:d=[]}=e,{hasError:m=!1}=e;const h=Bt(),p=O=>{h("change",O.target.value)};function v(O){qe.call(this,t,O)}function w(O){qe.call(this,t,O)}function S(O){qe.call(this,t,O)}function y(O){qe.call(this,t,O)}function z(){f=ju(this),n(0,f),n(3,d)}return t.$$set=O=>{e=ve(ve({},e),je(O)),n(9,i=Dn(e,r)),"disabled"in O&&n(5,a=O.disabled),"id"in O&&n(6,s=O.id),"name"in O&&n(1,u=O.name),"required"in O&&n(2,c=O.required),"selected"in O&&n(0,f=O.selected),"items"in O&&n(3,d=O.items),"hasError"in O&&n(4,m=O.hasError)},[f,u,c,d,m,a,s,l,p,i,v,w,S,y,z]}class Ad extends Ne{constructor(e){super(),Ee(this,e,QO,KO,Ae,{disabled:5,id:6,name:1,required:2,selected:0,items:3,hasError:4},GO)}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),C()}get id(){return this.$$.ctx[6]}set id(e){this.$$set({id:e}),C()}get name(){return this.$$.ctx[1]}set name(e){this.$$set({name:e}),C()}get required(){return this.$$.ctx[2]}set required(e){this.$$set({required:e}),C()}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),C()}get items(){return this.$$.ctx[3]}set items(e){this.$$set({items:e}),C()}get hasError(){return this.$$.ctx[4]}set hasError(e){this.$$set({hasError:e}),C()}}Le(Ad,{disabled:{type:"Boolean"},id:{},name:{},required:{type:"Boolean"},selected:{},items:{},hasError:{type:"Boolean"}},[],[],!0);const jO=/iPad|iPhone|iPod/.test(navigator.userAgent);class XO{constructor(e,n){Kt(this,"_group");Kt(this,"_decimal");Kt(this,"_numeral");Kt(this,"_decimalSeparator");Kt(this,"_groupSeparator");Kt(this,"_maxDecimalPlaces");Kt(this,"_index");Kt(this,"_formatter");this._formatter=new Intl.NumberFormat(e,{maximumFractionDigits:n});const r=this._formatter.formatToParts(12345.6),i=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((l,a)=>[l,a]));this._groupSeparator=r.find(l=>l.type==="group").value,this._group=new RegExp(`[${this._groupSeparator}]`,"g"),this._decimalSeparator=r.find(l=>l.type==="decimal").value,this._decimal=new RegExp(`[${this._decimalSeparator}]`),this._numeral=new RegExp(`[${i.join("")}]`,"g"),this._index=l=>o.get(l),this._maxDecimalPlaces=n}parseFromInputModeDecimal(e){return e==null?null:(jO&&e.indexOf(this._decimalSeparator)==-1&&e.indexOf(this._groupSeparator)!=-1&&(e=e.replace(this._group,this._decimalSeparator)),e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index),e?+e:NaN)}format(e){return e==null?"":this._formatter.format(e)}fixInputDecimals(e){if(e===""||e==null)return"";const n=e.indexOf(this._decimalSeparator);return n<=0?e:e.length-n-1>this._maxDecimalPlaces?e.substring(0,e.indexOf(this._decimalSeparator)+this._maxDecimalPlaces+1):e}}function ZO(t){yt(t,"svelte-20tr6t","input.svelte-20tr6t{-webkit-appearance:textfield;appearance:textfield;background-color:var(--zl-input-background-color);border-color:var(--zl-input-border-color);border-radius:var(--zl-input-border-radius);border-style:var(--zl-input-border-style, solid);border-width:var(--zl-input-border-width);color:var(--zl-input-color);font-size:var(--zl-input-font-size);min-width:0;padding-block:var(--zl-input-padding-y);padding-inline:var(--zl-input-padding-x);width:100%}input.svelte-20tr6t::-webkit-outer-spin-button,input.svelte-20tr6t::-webkit-inner-spin-button{-webkit-appearance:none;-moz-appearance:none}input[type='number'].svelte-20tr6t{-webkit-appearance:textfield;-moz-appearance:textfield}input.svelte-20tr6t:focus{outline:none;border-color:var(--zl-color-outline)}input.input--error.svelte-20tr6t{border-color:var(--zl-color-error-base)}input.svelte-20tr6t::placeholder{color:var(--zl-input-placeholder-color);opacity:1}@media(max-width: 768px){input.svelte-20tr6t{font-size:var(--zl-input-font-size-mobile, 16px);padding-block:var(--zl-input-padding-y-mobile, var(--zl-input-padding-y));padding-inline:var(--zl-input-padding-x-mobile, var(--zl-input-padding-x))}}.error.svelte-20tr6t{color:var(--zl-color-error-base)}")}const eI=t=>({}),Dd=t=>({});function Md(t){let e,n,r;function i(l){t[34](l)}let o={hasError:t[20],items:t[16]};return t[0]!==void 0&&(o.selected=t[0]),e=new Ad({props:o}),xe.push(()=>Je(e,"selected",i)),e.$on("change",t[35]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&1048576&&(s.hasError=l[20]),a[0]&65536&&(s.items=l[16]),!n&&a[0]&1&&(n=!0,s.selected=l[0],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function tI(t){let e,n,r,i,o,l,a,s,u=[{part:"input"},{step:"any"},{inputmode:n=t[2]==="number"?"decimal":void 0},{"data-entermaysubmit":r=t[18]?"true":void 0},{id:t[5]},{name:t[6]},{autocomplete:t[7]},{disabled:t[3]},{placeholder:t[1]},{required:t[11]},{readOnly:t[13]},{value:t[19]},t[25]],c={};for(let d=0;d<u.length;d+=1)c=ve(c,u[d]);let f=t[15]&&Md(t);return{c(){e=W("input"),i=j(),f&&f.c(),o=Xe(),En(e,c),ke(e,"input--error",t[20]),ke(e,"svelte-20tr6t",!0)},m(d,m){L(d,e,m),"value"in c&&(e.value=c.value),e.autofocus&&e.focus(),L(d,i,m),f&&f.m(d,m),L(d,o,m),l=!0,a||(s=[zr(t[22].call(null,e)),tt(e,"change",t[24]),tt(e,"input",t[23]),tt(e,"keydown",t[29]),tt(e,"keyup",t[30]),tt(e,"focus",t[31]),tt(e,"blur",t[32]),tt(e,"paste",t[33])],a=!0)},p(d,m){En(e,c=ut(u,[{part:"input"},{step:"any"},(!l||m[0]&4&&n!==(n=d[2]==="number"?"decimal":void 0))&&{inputmode:n},(!l||m[0]&262144&&r!==(r=d[18]?"true":void 0))&&{"data-entermaysubmit":r},(!l||m[0]&32)&&{id:d[5]},(!l||m[0]&64)&&{name:d[6]},(!l||m[0]&128)&&{autocomplete:d[7]},(!l||m[0]&8)&&{disabled:d[3]},(!l||m[0]&2)&&{placeholder:d[1]},(!l||m[0]&2048)&&{required:d[11]},(!l||m[0]&8192)&&{readOnly:d[13]},(!l||m[0]&524288&&e.value!==d[19])&&{value:d[19]},m[0]&33554432&&d[25]])),"value"in c&&(e.value=c.value),ke(e,"input--error",d[20]),ke(e,"svelte-20tr6t",!0),d[15]?f?(f.p(d,m),m[0]&32768&&g(f,1)):(f=Md(d),f.c(),g(f,1),f.m(o.parentNode,o)):f&&(ne(),b(f,1,1,()=>{f=null}),re())},i(d){l||(g(f),l=!0)},o(d){b(f),l=!1},d(d){d&&(E(e),E(i),E(o)),f&&f.d(d),a=!1,pn(s)}}}function Ed(t){let e,n;return e=new vo({props:{text:t[9]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&512&&(o.text=r[9]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function nI(t){var l;let e,n,r,i,o=((l=t[9])==null?void 0:l.length)&&Ed(t);return{c(){e=Ie(t[8]),n=j(),o&&o.c(),r=Xe()},m(a,s){L(a,e,s),L(a,n,s),o&&o.m(a,s),L(a,r,s),i=!0},p(a,s){var u;(!i||s[0]&256)&&Ke(e,a[8]),(u=a[9])!=null&&u.length?o?(o.p(a,s),s[0]&512&&g(o,1)):(o=Ed(a),o.c(),g(o,1),o.m(r.parentNode,r)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(a){i||(g(o),i=!0)},o(a){b(o),i=!1},d(a){a&&(E(e),E(n),E(r)),o&&o.d(a)}}}function rI(t){let e;return{c(){e=Ie(t[12])},m(n,r){L(n,e,r)},p(n,r){r[0]&4096&&Ke(e,n[12])},d(n){n&&E(e)}}}function iI(t){let e;return{c(){e=W("span"),e.textContent=`${aI}`,x(e,"aria-hidden","true")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function oI(t){let e,n,r;const i=t[28].label,o=ht(i,t,t[36],Dd),l=o||nI(t);function a(c,f){return c[11]?iI:rI}let s=a(t),u=s(t);return{c(){e=W("label"),l&&l.c(),n=j(),u.c(),x(e,"for",t[5]),x(e,"slot","label"),x(e,"part","label"),x(e,"class","svelte-20tr6t"),ke(e,"disabled",t[3]),ke(e,"zlc-invisible",t[10]),ke(e,"error",t[20])},m(c,f){L(c,e,f),l&&l.m(e,null),V(e,n),u.m(e,null),r=!0},p(c,f){o?o.p&&(!r||f[1]&32)&&gt(o,i,c,c[36],r?mt(i,c[36],f,eI):pt(c[36]),Dd):l&&l.p&&(!r||f[0]&768)&&l.p(c,r?f:[-1,-1]),s===(s=a(c))&&u?u.p(c,f):(u.d(1),u=s(c),u&&(u.c(),u.m(e,null))),(!r||f[0]&32)&&x(e,"for",c[5]),(!r||f[0]&8)&&ke(e,"disabled",c[3]),(!r||f[0]&1024)&&ke(e,"zlc-invisible",c[10]),(!r||f[0]&1048576)&&ke(e,"error",c[20])},i(c){r||(g(l,c),r=!0)},o(c){b(l,c),r=!1},d(c){c&&E(e),l&&l.d(c),u.d()}}}function lI(t){let e,n;return e=new si({props:{hasError:t[20],layout:t[17],errorText:t[14],dropdownCombo:t[15],hasNoInheritStyles:t[4],$$slots:{label:[oI],default:[tI]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1048576&&(o.hasError=r[20]),i[0]&131072&&(o.layout=r[17]),i[0]&16384&&(o.errorText=r[14]),i[0]&32768&&(o.dropdownCombo=r[15]),i[0]&16&&(o.hasNoInheritStyles=r[4]),i[0]&35504111|i[1]&32&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}let aI="*";function sI(t,e){return!!(t===e||isNaN(t)&&isNaN(e))}function uI(t,e,n){let r,i;const o=["value","placeholder","type","disabled","hasNoInheritStyles","id","name","autocomplete","label","labelTooltip","hideLabel","required","optionalText","maxDecimals","readonly","errorText","dropdownCombo","selectItems","selected","layout","enterMaySubmit"];let l=Dn(e,o),{$$slots:a={},$$scope:s}=e,{value:u=""}=e,{placeholder:c=" "}=e,{type:f="text"}=e,{disabled:d=!1}=e,{hasNoInheritStyles:m=!1}=e,{id:h="zl-"+Ni(10)}=e,{name:p=void 0}=e,{autocomplete:v=void 0}=e,{label:w=""}=e,{labelTooltip:S=""}=e,{hideLabel:y=!1}=e,{required:z=!1}=e,{optionalText:O=""}=e,{maxDecimals:N=16}=e,{readonly:U=!1}=e,{errorText:A=""}=e,{dropdownCombo:P=!1}=e,{selectItems:Y=[]}=e,{selected:B=null}=e,{layout:J=null}=e,{enterMaySubmit:ee=!1}=e,X=ue(u),ce=u;function he(Ce){sI(ce,Ce)||(ce=Ce,n(19,X=ue(Ce)))}const de=Bt();function se(Ce){const St=f==="number"?"text":f;Ce.type=St}function ue(Ce){return Ce==null||Ce==""?"":f==="number"?i==null?void 0:i.format(Ce):Ce}function fe(Ce){return f!=="number"?Ce:Ce==""?null:i.parseFromInputModeDecimal(Ce)}const Oe=Ce=>{n(19,X=Ce.target.value),n(19,X=i.fixInputDecimals(X)),ce=fe(X),n(26,u=ce),de("input",u)},me=Ce=>{n(19,X=Ce.target.value),ce=fe(X),n(26,u=ce),de("change",u)};function we(Ce){n(19,X=i.fixInputDecimals(ue(u)))}function Fe(Ce){qe.call(this,t,Ce)}function pe(Ce){qe.call(this,t,Ce)}function Se(Ce){qe.call(this,t,Ce)}function De(Ce){qe.call(this,t,Ce)}function Ze(Ce){qe.call(this,t,Ce)}function Qe(Ce){B=Ce,n(0,B)}const dt=Ce=>de("dropdownchange",Ce.detail);return t.$$set=Ce=>{e=ve(ve({},e),je(Ce)),n(25,l=Dn(e,o)),"value"in Ce&&n(26,u=Ce.value),"placeholder"in Ce&&n(1,c=Ce.placeholder),"type"in Ce&&n(2,f=Ce.type),"disabled"in Ce&&n(3,d=Ce.disabled),"hasNoInheritStyles"in Ce&&n(4,m=Ce.hasNoInheritStyles),"id"in Ce&&n(5,h=Ce.id),"name"in Ce&&n(6,p=Ce.name),"autocomplete"in Ce&&n(7,v=Ce.autocomplete),"label"in Ce&&n(8,w=Ce.label),"labelTooltip"in Ce&&n(9,S=Ce.labelTooltip),"hideLabel"in Ce&&n(10,y=Ce.hideLabel),"required"in Ce&&n(11,z=Ce.required),"optionalText"in Ce&&n(12,O=Ce.optionalText),"maxDecimals"in Ce&&n(27,N=Ce.maxDecimals),"readonly"in Ce&&n(13,U=Ce.readonly),"errorText"in Ce&&n(14,A=Ce.errorText),"dropdownCombo"in Ce&&n(15,P=Ce.dropdownCombo),"selectItems"in Ce&&n(16,Y=Ce.selectItems),"selected"in Ce&&n(0,B=Ce.selected),"layout"in Ce&&n(17,J=Ce.layout),"enterMaySubmit"in Ce&&n(18,ee=Ce.enterMaySubmit),"$$scope"in Ce&&n(36,s=Ce.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&16384&&n(20,r=!!(A!=null&&A.length)),t.$$.dirty[0]&134217728&&(i=new XO(void 0,N)),t.$$.dirty[0]&134217728&&we(),t.$$.dirty[0]&67108864&&he(u)},[B,c,f,d,m,h,p,v,w,S,y,z,O,U,A,P,Y,J,ee,X,r,de,se,Oe,me,l,u,N,a,Fe,pe,Se,De,Ze,Qe,dt,s]}class Mt extends Ne{constructor(e){super(),Ee(this,e,uI,lI,Ae,{value:26,placeholder:1,type:2,disabled:3,hasNoInheritStyles:4,id:5,name:6,autocomplete:7,label:8,labelTooltip:9,hideLabel:10,required:11,optionalText:12,maxDecimals:27,readonly:13,errorText:14,dropdownCombo:15,selectItems:16,selected:0,layout:17,enterMaySubmit:18},ZO,[-1,-1])}get value(){return this.$$.ctx[26]}set value(e){this.$$set({value:e}),C()}get placeholder(){return this.$$.ctx[1]}set placeholder(e){this.$$set({placeholder:e}),C()}get type(){return this.$$.ctx[2]}set type(e){this.$$set({type:e}),C()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),C()}get hasNoInheritStyles(){return this.$$.ctx[4]}set hasNoInheritStyles(e){this.$$set({hasNoInheritStyles:e}),C()}get id(){return this.$$.ctx[5]}set id(e){this.$$set({id:e}),C()}get name(){return this.$$.ctx[6]}set name(e){this.$$set({name:e}),C()}get autocomplete(){return this.$$.ctx[7]}set autocomplete(e){this.$$set({autocomplete:e}),C()}get label(){return this.$$.ctx[8]}set label(e){this.$$set({label:e}),C()}get labelTooltip(){return this.$$.ctx[9]}set labelTooltip(e){this.$$set({labelTooltip:e}),C()}get hideLabel(){return this.$$.ctx[10]}set hideLabel(e){this.$$set({hideLabel:e}),C()}get required(){return this.$$.ctx[11]}set required(e){this.$$set({required:e}),C()}get optionalText(){return this.$$.ctx[12]}set optionalText(e){this.$$set({optionalText:e}),C()}get maxDecimals(){return this.$$.ctx[27]}set maxDecimals(e){this.$$set({maxDecimals:e}),C()}get readonly(){return this.$$.ctx[13]}set readonly(e){this.$$set({readonly:e}),C()}get errorText(){return this.$$.ctx[14]}set errorText(e){this.$$set({errorText:e}),C()}get dropdownCombo(){return this.$$.ctx[15]}set dropdownCombo(e){this.$$set({dropdownCombo:e}),C()}get selectItems(){return this.$$.ctx[16]}set selectItems(e){this.$$set({selectItems:e}),C()}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),C()}get layout(){return this.$$.ctx[17]}set layout(e){this.$$set({layout:e}),C()}get enterMaySubmit(){return this.$$.ctx[18]}set enterMaySubmit(e){this.$$set({enterMaySubmit:e}),C()}}Le(Mt,{value:{},placeholder:{},type:{},disabled:{type:"Boolean"},hasNoInheritStyles:{type:"Boolean"},id:{},name:{},autocomplete:{},label:{},labelTooltip:{},hideLabel:{type:"Boolean"},required:{type:"Boolean"},optionalText:{},maxDecimals:{},readonly:{type:"Boolean"},errorText:{},dropdownCombo:{type:"Boolean"},selectItems:{},selected:{},layout:{},enterMaySubmit:{type:"Boolean"}},["label"],[],!0);function cI(t){let e,n,r,i;const o=t[1].default,l=ht(o,t,t[0],null);return{c(){e=W("form"),l&&l.c()},m(a,s){L(a,e,s),l&&l.m(e,null),n=!0,r||(i=[tt(e,"submit",Ii(t[2])),tt(e,"keydown",fI)],r=!0)},p(a,[s]){l&&l.p&&(!n||s&1)&&gt(l,o,a,a[0],n?mt(o,a[0],s,null):pt(a[0]),null)},i(a){n||(g(l,a),n=!0)},o(a){b(l,a),n=!1},d(a){a&&E(e),l&&l.d(a),r=!1,pn(i)}}}function fI(t){var e;if(t.key=="Enter"&&(t.target.type=="number"||t.target.type=="text"||t.target.type=="email")&&!((e=t.target.dataset)!=null&&e.entermaysubmit))return t.preventDefault(),t.target.blur(),!1}function dI(t,e,n){let{$$slots:r={},$$scope:i}=e;function o(l){qe.call(this,t,l)}return t.$$set=l=>{"$$scope"in l&&n(0,i=l.$$scope)},[i,r,o]}class Ji extends Ne{constructor(e){super(),Ee(this,e,dI,cI,Ae,{})}}Le(Ji,{},["default"],[],!0);function hI(t){let e,n;return e=new zn({props:{error:t[10]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1024&&(o.error=r[10]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function mI(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function gI(t){let e,n;return e=new Sl({props:{data:t[11]}}),e.$on("navigate",t[19]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2048&&(o.data=r[11]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ld(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function pI(t){let e,n,r,i,o,l=t[2]&&Nd(t);const a=[kI,yI,_I],s=[];function u(c,f){var d,m,h;return((d=c[13])==null?void 0:d.flow)=="CHALLENGE_RESPONSE"?0:((m=c[13])==null?void 0:m.flow)=="DECOUPLED"?1:((h=c[13])==null?void 0:h.flow)=="TAN"?2:-1}return~(n=u(t))&&(r=s[n]=a[n](t)),{c(){l&&l.c(),e=j(),r&&r.c(),i=Xe()},m(c,f){l&&l.m(c,f),L(c,e,f),~n&&s[n].m(c,f),L(c,i,f),o=!0},p(c,f){c[2]?l?(l.p(c,f),f&4&&g(l,1)):(l=Nd(c),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(ne(),b(l,1,1,()=>{l=null}),re());let d=n;n=u(c),n===d?~n&&s[n].p(c,f):(r&&(ne(),b(s[d],1,1,()=>{s[d]=null}),re()),~n?(r=s[n],r?r.p(c,f):(r=s[n]=a[n](c),r.c()),g(r,1),r.m(i.parentNode,i)):r=null)},i(c){o||(g(l),g(r),o=!0)},o(c){b(l),b(r),o=!1},d(c){c&&(E(e),E(i)),l&&l.d(c),~n&&s[n].d(c)}}}function bI(t){let e,n;return e=new or({props:{variant:"info",hideCloseButton:!0,title:t[15]("Commons.OrderForm.SessionTanRequiredForThisOperation"),$$slots:{actions:[TI]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1073741824&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function vI(t){let e,n;return e=new nt({props:{text:"Order streichen",variant:"default",width:"full"}}),e.$on("click",t[20]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Nd(t){let e,n,r,i;function o(a){t[22](a)}let l={label:"Authentifizierungsmethode",layout:t[12],placeholder:"Wählen Sie eine Authentifizierungsmethode",items:t[14]};return t[0]!==void 0&&(l.selected=t[0]),n=new Un({props:l}),xe.push(()=>Je(n,"selected",o)),{c(){e=W("div"),F(n.$$.fragment)},m(a,s){L(a,e,s),$(n,e,null),i=!0},p(a,s){const u={};s&4096&&(u.layout=a[12]),s&16384&&(u.items=a[14]),!r&&s&1&&(r=!0,u.selected=a[0],Ve(()=>r=!1)),n.$set(u)},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n)}}}function _I(t){let e,n,r,i,o,l,a;function s(c){t[27](c)}let u={type:"text",name:"challengeResponse",label:t[13].tanFieldLabel,layout:t[12],autofocus:!0,enterMaySubmit:!0};return t[1]!==void 0&&(u.value=t[1]),n=new Mt({props:u}),xe.push(()=>Je(n,"value",s)),l=new nt({props:{text:"Order streichen",variant:"default",width:"full"}}),l.$on("click",t[28]),{c(){e=W("div"),F(n.$$.fragment),i=j(),o=W("div"),F(l.$$.fragment)},m(c,f){L(c,e,f),$(n,e,null),L(c,i,f),L(c,o,f),$(l,o,null),a=!0},p(c,f){const d={};f&8192&&(d.label=c[13].tanFieldLabel),f&4096&&(d.layout=c[12]),!r&&f&2&&(r=!0,d.value=c[1],Ve(()=>r=!1)),n.$set(d)},i(c){a||(g(n.$$.fragment,c),g(l.$$.fragment,c),a=!0)},o(c){b(n.$$.fragment,c),b(l.$$.fragment,c),a=!1},d(c){c&&(E(e),E(i),E(o)),R(n),R(l)}}}function yI(t){let e,n,r,i;n=new nt({props:{text:"Weiter",variant:"default",width:"full"}}),n.$on("click",t[25]);let o=t[8]&&Pd(t);return{c(){e=W("div"),F(n.$$.fragment),r=j(),o&&o.c()},m(l,a){L(l,e,a),$(n,e,null),V(e,r),o&&o.m(e,null),i=!0},p(l,a){l[8]?o?(o.p(l,a),a&256&&g(o,1)):(o=Pd(l),o.c(),g(o,1),o.m(e,null)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){i||(g(n.$$.fragment,l),g(o),i=!0)},o(l){b(n.$$.fragment,l),b(o),i=!1},d(l){l&&E(e),R(n),o&&o.d()}}}function kI(t){let e,n,r,i=!t[3]&&$d(t),o=t[3]&&Rd(t);return{c(){i&&i.c(),e=j(),o&&o.c(),n=Xe()},m(l,a){i&&i.m(l,a),L(l,e,a),o&&o.m(l,a),L(l,n,a),r=!0},p(l,a){l[3]?i&&(ne(),b(i,1,1,()=>{i=null}),re()):i?(i.p(l,a),a&8&&g(i,1)):(i=$d(l),i.c(),g(i,1),i.m(e.parentNode,e)),l[3]?o?(o.p(l,a),a&8&&g(o,1)):(o=Rd(l),o.c(),g(o,1),o.m(n.parentNode,n)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){r||(g(i),g(o),r=!0)},o(l){b(i),b(o),r=!1},d(l){l&&(E(e),E(n)),i&&i.d(l),o&&o.d(l)}}}function Pd(t){let e,n;return e=new fl({props:{status:t[8]}}),e.$on("cancel",t[26]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&256&&(o.status=r[8]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $d(t){var i;let e,n,r;return n=new nt({props:{text:(i=t[13])==null?void 0:i.getChallengeLabel,variant:"default",width:"full"}}),n.$on("click",t[17]),{c(){e=W("div"),F(n.$$.fragment)},m(o,l){L(o,e,l),$(n,e,null),r=!0},p(o,l){var s;const a={};l&8192&&(a.text=(s=o[13])==null?void 0:s.getChallengeLabel),n.$set(a)},i(o){r||(g(n.$$.fragment,o),r=!0)},o(o){b(n.$$.fragment,o),r=!1},d(o){o&&E(e),R(n)}}}function Rd(t){let e,n,r,i,o,l,a,s;e=new Fi({props:{challenge:t[3]}});function u(f){t[23](f)}let c={type:"text",name:"challengeResponse",label:t[13].tanFieldLabel,layout:t[12],autofocus:!0,enterMaySubmit:!0};return t[1]!==void 0&&(c.value=t[1]),i=new Mt({props:c}),xe.push(()=>Je(i,"value",u)),a=new go({props:{showAside:!!t[4],$$slots:{default:[wI]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=j(),r=W("div"),F(i.$$.fragment),l=j(),F(a.$$.fragment)},m(f,d){$(e,f,d),L(f,n,d),L(f,r,d),$(i,r,null),L(f,l,d),$(a,f,d),s=!0},p(f,d){const m={};d&8&&(m.challenge=f[3]),e.$set(m);const h={};d&8192&&(h.label=f[13].tanFieldLabel),d&4096&&(h.layout=f[12]),!o&&d&2&&(o=!0,h.value=f[1],Ve(()=>o=!1)),i.$set(h);const p={};d&16&&(p.showAside=!!f[4]),d&1073750160&&(p.$$scope={dirty:d,ctx:f}),a.$set(p)},i(f){s||(g(e.$$.fragment,f),g(i.$$.fragment,f),g(a.$$.fragment,f),s=!0)},o(f){b(e.$$.fragment,f),b(i.$$.fragment,f),b(a.$$.fragment,f),s=!1},d(f){f&&(E(n),E(r),E(l)),R(e,f),R(i),R(a,f)}}}function Fd(t){var r;let e,n;return e=new nt({props:{slot:"aside",icon:"RotateCw",height:"full",width:"full",variant:"outlined",text:(r=t[13])==null?void 0:r.getChallengeLabel,busy:t[7]}}),e.$on("click",t[17]),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o&8192&&(l.text=(a=i[13])==null?void 0:a.getChallengeLabel),o&128&&(l.busy=i[7]),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function wI(t){let e,n,r,i=t[4]&&Fd(t);return n=new nt({props:{variant:"default",height:"full",width:"full",text:"Order streichen"}}),n.$on("click",t[24]),{c(){i&&i.c(),e=j(),F(n.$$.fragment)},m(o,l){i&&i.m(o,l),L(o,e,l),$(n,o,l),r=!0},p(o,l){o[4]?i?(i.p(o,l),l&16&&g(i,1)):(i=Fd(o),i.c(),g(i,1),i.m(e.parentNode,e)):i&&(ne(),b(i,1,1,()=>{i=null}),re())},i(o){r||(g(i),g(n.$$.fragment,o),r=!0)},o(o){b(i),b(n.$$.fragment,o),r=!1},d(o){o&&E(e),i&&i.d(o),R(n,o)}}}function SI(t){let e;return{c(){e=Ie("Jetzt aktivieren")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function TI(t){let e,n;return e=new nt({props:{slot:"actions",variant:"default",$$slots:{default:[SI]},$$scope:{ctx:t}}}),e.$on("click",t[21]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1073741824&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function zI(t){let e,n,r,i,o,l,a,s;n=new zn({props:{error:t[4]}}),i=new zn({props:{error:t[6]}});const u=[vI,bI,pI],c=[];function f(d,m){var h,p;return(h=d[2])!=null&&h.sessionTanActive?0:(p=d[2])!=null&&p.allOperationsRequireSessionTan?1:2}return l=f(t),a=c[l]=u[l](t),{c(){e=W("div"),F(n.$$.fragment),r=j(),F(i.$$.fragment),o=j(),a.c(),x(e,"class","zlc-gap-y")},m(d,m){L(d,e,m),$(n,e,null),V(e,r),$(i,e,null),V(e,o),c[l].m(e,null),s=!0},p(d,m){const h={};m&16&&(h.error=d[4]),n.$set(h);const p={};m&64&&(p.error=d[6]),i.$set(p);let v=l;l=f(d),l===v?c[l].p(d,m):(ne(),b(c[v],1,1,()=>{c[v]=null}),re(),a=c[l],a?a.p(d,m):(a=c[l]=u[l](d),a.c()),g(a,1),a.m(e,null))},i(d){s||(g(n.$$.fragment,d),g(i.$$.fragment,d),g(a),s=!0)},o(d){b(n.$$.fragment,d),b(i.$$.fragment,d),b(a),s=!1},d(d){d&&E(e),R(n),R(i),c[l].d()}}}function CI(t){let e,n,r,i,o,l,a;const s=[gI,mI,hI],u=[];function c(d,m){return d[11]?0:d[9]?1:d[10]?2:-1}~(n=c(t))&&(r=u[n]=s[n](t));let f=t[5]&&Ld();return l=new Ji({props:{$$slots:{default:[zI]},$$scope:{ctx:t}}}),{c(){e=W("div"),r&&r.c(),i=j(),f&&f.c(),o=j(),F(l.$$.fragment),x(e,"class","zlc-gap-y")},m(d,m){L(d,e,m),~n&&u[n].m(e,null),V(e,i),f&&f.m(e,null),V(e,o),$(l,e,null),a=!0},p(d,[m]){let h=n;n=c(d),n===h?~n&&u[n].p(d,m):(r&&(ne(),b(u[h],1,1,()=>{u[h]=null}),re()),~n?(r=u[n],r?r.p(d,m):(r=u[n]=s[n](d),r.c()),g(r,1),r.m(e,i)):r=null),d[5]?f?m&32&&g(f,1):(f=Ld(),f.c(),g(f,1),f.m(e,o)):f&&(ne(),b(f,1,1,()=>{f=null}),re());const p={};m&1073770975&&(p.$$scope={dirty:m,ctx:d}),l.$set(p)},i(d){a||(g(r),g(f),g(l.$$.fragment,d),a=!0)},o(d){b(r),b(f),b(l.$$.fragment,d),a=!1},d(d){d&&E(e),~n&&u[n].d(),f&&f.d(),R(l)}}}function OI(t,e,n){let r,i,{authInfo:o=null}=e,{authMethod:l=null}=e,{challenge:a=null}=e,{enableError:s=null}=e,{enableLoading:u=!1}=e,{challengeError:c=null}=e,{challengeLoading:f=null}=e,{challengeResponse:d=null}=e,{decoupledOperationStatus:m=null}=e,{orderId:h=null}=e,{orderLoading:p=!1}=e,{orderError:v=null}=e,{orderReceipt:w}=e;const{__:S}=pr(tn),y=Bt(),z=tn("themeConfig");let O;z.subscribe(de=>n(12,O=de==null?void 0:de.layout));function N(){y("challenge",{authMethod:l})}function U(de){qe.call(this,t,de)}const A=()=>y("perform"),P=()=>y("sessiontan");function Y(de){l=de,n(0,l)}function B(de){d=de,n(1,d)}const J=()=>y("perform"),ee=()=>y("perform"),X=()=>y("cancelDecoupledOperation");function ce(de){d=de,n(1,d)}const he=()=>y("perform");return t.$$set=de=>{"authInfo"in de&&n(2,o=de.authInfo),"authMethod"in de&&n(0,l=de.authMethod),"challenge"in de&&n(3,a=de.challenge),"enableError"in de&&n(4,s=de.enableError),"enableLoading"in de&&n(5,u=de.enableLoading),"challengeError"in de&&n(6,c=de.challengeError),"challengeLoading"in de&&n(7,f=de.challengeLoading),"challengeResponse"in de&&n(1,d=de.challengeResponse),"decoupledOperationStatus"in de&&n(8,m=de.decoupledOperationStatus),"orderId"in de&&n(18,h=de.orderId),"orderLoading"in de&&n(9,p=de.orderLoading),"orderError"in de&&n(10,v=de.orderError),"orderReceipt"in de&&n(11,w=de.orderReceipt)},t.$$.update=()=>{var de;t.$$.dirty&4&&n(14,r=(de=o==null?void 0:o.authMethods)==null?void 0:de.filter(se=>se.flow!="DECOUPLED").map(se=>({id:se.id,value:se.label}))),t.$$.dirty&5&&n(13,i=((o==null?void 0:o.authMethods)||[]).find(se=>se.id==l))},[l,d,o,a,s,u,c,f,m,p,v,w,O,i,r,S,y,N,h,U,A,P,Y,B,J,ee,X,ce,he]}class xd extends Ne{constructor(e){super(),Ee(this,e,OI,CI,Ae,{authInfo:2,authMethod:0,challenge:3,enableError:4,enableLoading:5,challengeError:6,challengeLoading:7,challengeResponse:1,decoupledOperationStatus:8,orderId:18,orderLoading:9,orderError:10,orderReceipt:11})}get authInfo(){return this.$$.ctx[2]}set authInfo(e){this.$$set({authInfo:e}),C()}get authMethod(){return this.$$.ctx[0]}set authMethod(e){this.$$set({authMethod:e}),C()}get challenge(){return this.$$.ctx[3]}set challenge(e){this.$$set({challenge:e}),C()}get enableError(){return this.$$.ctx[4]}set enableError(e){this.$$set({enableError:e}),C()}get enableLoading(){return this.$$.ctx[5]}set enableLoading(e){this.$$set({enableLoading:e}),C()}get challengeError(){return this.$$.ctx[6]}set challengeError(e){this.$$set({challengeError:e}),C()}get challengeLoading(){return this.$$.ctx[7]}set challengeLoading(e){this.$$set({challengeLoading:e}),C()}get challengeResponse(){return this.$$.ctx[1]}set challengeResponse(e){this.$$set({challengeResponse:e}),C()}get decoupledOperationStatus(){return this.$$.ctx[8]}set decoupledOperationStatus(e){this.$$set({decoupledOperationStatus:e}),C()}get orderId(){return this.$$.ctx[18]}set orderId(e){this.$$set({orderId:e}),C()}get orderLoading(){return this.$$.ctx[9]}set orderLoading(e){this.$$set({orderLoading:e}),C()}get orderError(){return this.$$.ctx[10]}set orderError(e){this.$$set({orderError:e}),C()}get orderReceipt(){return this.$$.ctx[11]}set orderReceipt(e){this.$$set({orderReceipt:e}),C()}}Le(xd,{authInfo:{},authMethod:{},challenge:{},enableError:{},enableLoading:{type:"Boolean"},challengeError:{},challengeLoading:{},challengeResponse:{},decoupledOperationStatus:{},orderId:{},orderLoading:{type:"Boolean"},orderError:{},orderReceipt:{}},[],[],!0);function II(t){var s;let e,n,r,i;function o(u){t[20](u)}function l(u){t[21](u)}let a={authInfo:(s=t[5])==null?void 0:s.authInfo,challenge:t[8],enableError:t[11],enableLoading:t[10],challengeError:t[7],challengeLoading:t[6],orderId:t[0],orderLoading:t[13],orderError:t[14],orderReceipt:t[12]};return t[4]!==void 0&&(a.authMethod=t[4]),t[9]!==void 0&&(a.challengeResponse=t[9]),e=new xd({props:a}),xe.push(()=>Je(e,"authMethod",o)),xe.push(()=>Je(e,"challengeResponse",l)),e.$on("challenge",t[16]),e.$on("perform",t[17]),e.$on("sessiontan",t[22]),e.$on("navigate",t[23]),{c(){F(e.$$.fragment)},m(u,c){$(e,u,c),i=!0},p(u,c){var d;const f={};c[0]&32&&(f.authInfo=(d=u[5])==null?void 0:d.authInfo),c[0]&256&&(f.challenge=u[8]),c[0]&2048&&(f.enableError=u[11]),c[0]&1024&&(f.enableLoading=u[10]),c[0]&128&&(f.challengeError=u[7]),c[0]&64&&(f.challengeLoading=u[6]),c[0]&1&&(f.orderId=u[0]),c[0]&8192&&(f.orderLoading=u[13]),c[0]&16384&&(f.orderError=u[14]),c[0]&4096&&(f.orderReceipt=u[12]),!n&&c[0]&16&&(n=!0,f.authMethod=u[4],Ve(()=>n=!1)),!r&&c[0]&512&&(r=!0,f.challengeResponse=u[9],Ve(()=>r=!1)),e.$set(f)},i(u){i||(g(e.$$.fragment,u),i=!0)},o(u){b(e.$$.fragment,u),i=!1},d(u){R(e,u)}}}function AI(t){let e,n;return e=new Jn({props:{locale:"de",brokers:t[15],$$slots:{default:[II]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&32768&&(o.brokers=r[15]),i[0]&32753|i[1]&1&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function DI(t){let e,n;return e=new Pn({props:{theme:t[1],addFrame:t[2],supportLink:t[3],$$slots:{default:[AI]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&2&&(o.theme=r[1]),i[0]&4&&(o.addFrame=r[2]),i[0]&8&&(o.supportLink=r[3]),i[0]&65521|i[1]&1&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function MI(t,e,n){let{apiCtx:r=null}=e,{orderId:i=null}=e,{theme:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e;const s=Bt();let u,c=null,f=!1,d=null,m=null,h=null,p=!1,v=null,w=null,S=!1,y=null,z,O;async function N(de){n(13,S=!0),n(14,y=null);const[se,ue,fe]=await Promise.all([r.getBrokers(),r.getPortfolios(),r.getOrder(de)]),Oe=ue.portfolios.find(we=>we.id==fe.order.portfolioId);O=Oe.sessionIds[0];const me=await r.getAuthInfo(Oe.id);return{brokers:z,authInfo:me,orderReceipt:{order:fe.order,portfolio:Oe}}}function U(de){n(13,S=!0),n(14,y=null),N(de).then(se=>{var ue,fe;n(15,z=se.brokers),n(5,u=se.authInfo),n(4,c=(fe=(ue=u==null?void 0:u.authInfo)==null?void 0:ue.authMethods)!=null&&fe.length?u.authInfo.authMethods[0].id:null),n(12,w=se.orderReceipt),n(13,S=!1)},se=>{n(14,y=se),n(13,S=!1)})}let A;function P(){A==null||A.destroy(),n(6,f=!1),n(7,d=null),n(8,m=null)}function Y(){P(),n(11,v=null),n(6,f=!0),A=r.createChildContext(),A.createCancelOrderChallenge({id:i,cancelOrderChallengeParams:{authMethod:c}}).then(de=>{n(8,m=de),n(6,f=!1)},de=>{n(7,d=de),n(6,f=!1)})}function B(){n(10,p=!0),n(11,v=!1),r.cancelOrder({cancelOrderParams:u.authInfo.sessionTanActive?{mode:"sessionTan"}:{mode:"challengeResponse",authMethod:c,challengeId:(m==null?void 0:m.challengeId)||void 0,challengeResponse:h},id:i}).then(de=>{n(10,p=!1),s("exit",{canceled:!0})},de=>{n(11,v=de),n(10,p=!1)})}async function J(){await jt.showSessionTanModal(O)&&U(i)}function ee(de){c=de,n(4,c)}function X(de){h=de,n(9,h)}const ce=()=>J();function he(de){qe.call(this,t,de)}return t.$$set=de=>{"apiCtx"in de&&n(19,r=de.apiCtx),"orderId"in de&&n(0,i=de.orderId),"theme"in de&&n(1,o=de.theme),"addFrame"in de&&n(2,l=de.addFrame),"supportLink"in de&&n(3,a=de.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&1&&U(i),t.$$.dirty[0]&16&&c&&P()},[i,o,l,a,c,u,f,d,m,h,p,v,w,S,y,z,Y,B,J,r,ee,X,ce,he]}class es extends Ne{constructor(e){super(),Ee(this,e,MI,DI,Ae,{apiCtx:19,orderId:0,theme:1,addFrame:2,supportLink:3},null,[-1,-1])}get apiCtx(){return this.$$.ctx[19]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get orderId(){return this.$$.ctx[0]}set orderId(e){this.$$set({orderId:e}),C()}get theme(){return this.$$.ctx[1]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[2]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[3]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(es,{apiCtx:{},orderId:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function EI(t){let e,n;const r=[{addFrame:t[1]},{supportLink:t[2]},{theme:t[0]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new es({props:i}),e.$on("navigate",t[7]),e.$on("exit",t[8]),e.$on("showSessiontan",t[9]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&1&&{theme:o[0]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function LI(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[EI]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&1047&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function NI(t,e,n){let{apiCtx:r=null}=e,{theme:i=bn}=e,{orderId:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,s=["apiCtx","orderId"];function u(d){qe.call(this,t,d)}function c(d){qe.call(this,t,d)}function f(d){qe.call(this,t,d)}return t.$$set=d=>{n(4,e=ve(ve({},e),je(d))),"apiCtx"in d&&n(5,r=d.apiCtx),"theme"in d&&n(0,i=d.theme),"orderId"in d&&n(6,o=d.orderId),"addFrame"in d&&n(1,l=d.addFrame),"supportLink"in d&&n(2,a=d.supportLink)},e=je(e),[i,l,a,s,e,r,o,u,c,f]}class Ud extends Ne{constructor(e){super(),Ee(this,e,NI,LI,Ae,{apiCtx:5,theme:0,orderId:6,addFrame:1,supportLink:2})}get apiCtx(){return this.$$.ctx[5]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get orderId(){return this.$$.ctx[6]}set orderId(e){this.$$set({orderId:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}}customElements.define("brokerize-cancel-order-form",Le(Ud,{apiCtx:{},theme:{},orderId:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0));var Bd=typeof global=="object"&&global&&global.Object===Object&&global,PI=typeof self=="object"&&self&&self.Object===Object&&self,Mr=Bd||PI||Function("return this")(),br=Mr.Symbol,qd=Object.prototype,$I=qd.hasOwnProperty,RI=qd.toString,_o=br?br.toStringTag:void 0;function FI(t){var e=$I.call(t,_o),n=t[_o];try{t[_o]=void 0;var r=!0}catch{}var i=RI.call(t);return r&&(e?t[_o]=n:delete t[_o]),i}var xI=Object.prototype,UI=xI.toString;function BI(t){return UI.call(t)}var qI="[object Null]",VI="[object Undefined]",Vd=br?br.toStringTag:void 0;function Hi(t){return t==null?t===void 0?VI:qI:Vd&&Vd in Object(t)?FI(t):BI(t)}function Rr(t){return t!=null&&typeof t=="object"}var JI="[object Symbol]";function yo(t){return typeof t=="symbol"||Rr(t)&&Hi(t)==JI}function Tl(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var jn=Array.isArray,HI=1/0,Jd=br?br.prototype:void 0,Hd=Jd?Jd.toString:void 0;function Wd(t){if(typeof t=="string")return t;if(jn(t))return Tl(t,Wd)+"";if(yo(t))return Hd?Hd.call(t):"";var e=t+"";return e=="0"&&1/t==-HI?"-0":e}function di(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function ko(t){return t}var WI="[object AsyncFunction]",YI="[object Function]",GI="[object GeneratorFunction]",KI="[object Proxy]";function Yd(t){if(!di(t))return!1;var e=Hi(t);return e==YI||e==GI||e==WI||e==KI}var ts=Mr["__core-js_shared__"],Gd=function(){var t=/[^.]+$/.exec(ts&&ts.keys&&ts.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function QI(t){return!!Gd&&Gd in t}var jI=Function.prototype,XI=jI.toString;function hi(t){if(t!=null){try{return XI.call(t)}catch{}try{return t+""}catch{}}return""}var ZI=/[\\^$.*+?()[\]{}|]/g,e4=/^\[object .+?Constructor\]$/,t4=Function.prototype,n4=Object.prototype,r4=t4.toString,i4=n4.hasOwnProperty,o4=RegExp("^"+r4.call(i4).replace(ZI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l4(t){if(!di(t)||QI(t))return!1;var e=Yd(t)?o4:e4;return e.test(hi(t))}function a4(t,e){return t==null?void 0:t[e]}function mi(t,e){var n=a4(t,e);return l4(n)?n:void 0}var ns=mi(Mr,"WeakMap"),Kd=Object.create,s4=function(){function t(){}return function(e){if(!di(e))return{};if(Kd)return Kd(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function u4(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function c4(){}function f4(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var d4=800,h4=16,m4=Date.now;function g4(t){var e=0,n=0;return function(){var r=m4(),i=h4-(r-n);if(n=r,i>0){if(++e>=d4)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function p4(t){return function(){return t}}var zl=function(){try{var t=mi(Object,"defineProperty");return t({},"",{}),t}catch{}}(),b4=zl?function(t,e){return zl(t,"toString",{configurable:!0,enumerable:!1,value:p4(e),writable:!0})}:ko,v4=g4(b4);function _4(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function y4(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function k4(t){return t!==t}function w4(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function S4(t,e,n){return e===e?w4(t,e,n):y4(t,k4,n)}function T4(t,e){var n=t==null?0:t.length;return!!n&&S4(t,e,0)>-1}var z4=9007199254740991,C4=/^(?:0|[1-9]\d*)$/;function rs(t,e){var n=typeof t;return e=e??z4,!!e&&(n=="number"||n!="symbol"&&C4.test(t))&&t>-1&&t%1==0&&t<e}function Qd(t,e,n){e=="__proto__"&&zl?zl(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Cl(t,e){return t===e||t!==t&&e!==e}var O4=Object.prototype,I4=O4.hasOwnProperty;function jd(t,e,n){var r=t[e];(!(I4.call(t,e)&&Cl(r,n))||n===void 0&&!(e in t))&&Qd(t,e,n)}function wo(t,e,n,r){var i=!n;n||(n={});for(var o=-1,l=e.length;++o<l;){var a=e[o],s=void 0;s===void 0&&(s=t[a]),i?Qd(n,a,s):jd(n,a,s)}return n}var Xd=Math.max;function A4(t,e,n){return e=Xd(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Xd(r.length-e,0),l=Array(o);++i<o;)l[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(l),u4(t,this,a)}}function Zd(t,e){return v4(A4(t,e,ko),t+"")}var D4=9007199254740991;function is(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=D4}function Wi(t){return t!=null&&is(t.length)&&!Yd(t)}function M4(t,e,n){if(!di(n))return!1;var r=typeof e;return(r=="number"?Wi(n)&&rs(e,n.length):r=="string"&&e in n)?Cl(n[e],t):!1}function E4(t){return Zd(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,l&&M4(n[0],n[1],l)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,o)}return e})}var L4=Object.prototype;function os(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||L4;return t===n}function N4(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var P4="[object Arguments]";function eh(t){return Rr(t)&&Hi(t)==P4}var th=Object.prototype,$4=th.hasOwnProperty,R4=th.propertyIsEnumerable,ls=eh(function(){return arguments}())?eh:function(t){return Rr(t)&&$4.call(t,"callee")&&!R4.call(t,"callee")};function F4(){return!1}var nh=typeof ln=="object"&&ln&&!ln.nodeType&&ln,rh=nh&&typeof module=="object"&&module&&!module.nodeType&&module,x4=rh&&rh.exports===nh,ih=x4?Mr.Buffer:void 0,U4=ih?ih.isBuffer:void 0,Ol=U4||F4,B4="[object Arguments]",q4="[object Array]",V4="[object Boolean]",J4="[object Date]",H4="[object Error]",W4="[object Function]",Y4="[object Map]",G4="[object Number]",K4="[object Object]",Q4="[object RegExp]",j4="[object Set]",X4="[object String]",Z4="[object WeakMap]",eA="[object ArrayBuffer]",tA="[object DataView]",nA="[object Float32Array]",rA="[object Float64Array]",iA="[object Int8Array]",oA="[object Int16Array]",lA="[object Int32Array]",aA="[object Uint8Array]",sA="[object Uint8ClampedArray]",uA="[object Uint16Array]",cA="[object Uint32Array]",cn={};cn[nA]=cn[rA]=cn[iA]=cn[oA]=cn[lA]=cn[aA]=cn[sA]=cn[uA]=cn[cA]=!0,cn[B4]=cn[q4]=cn[eA]=cn[V4]=cn[tA]=cn[J4]=cn[H4]=cn[W4]=cn[Y4]=cn[G4]=cn[K4]=cn[Q4]=cn[j4]=cn[X4]=cn[Z4]=!1;function fA(t){return Rr(t)&&is(t.length)&&!!cn[Hi(t)]}function Il(t){return function(e){return t(e)}}var oh=typeof ln=="object"&&ln&&!ln.nodeType&&ln,So=oh&&typeof module=="object"&&module&&!module.nodeType&&module,dA=So&&So.exports===oh,as=dA&&Bd.process,Yi=function(){try{var t=So&&So.require&&So.require("util").types;return t||as&&as.binding&&as.binding("util")}catch{}}(),lh=Yi&&Yi.isTypedArray,ah=lh?Il(lh):fA,hA=Object.prototype,mA=hA.hasOwnProperty;function sh(t,e){var n=jn(t),r=!n&&ls(t),i=!n&&!r&&Ol(t),o=!n&&!r&&!i&&ah(t),l=n||r||i||o,a=l?N4(t.length,String):[],s=a.length;for(var u in t)(e||mA.call(t,u))&&!(l&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rs(u,s)))&&a.push(u);return a}function uh(t,e){return function(n){return t(e(n))}}var gA=uh(Object.keys,Object),pA=Object.prototype,bA=pA.hasOwnProperty;function vA(t){if(!os(t))return gA(t);var e=[];for(var n in Object(t))bA.call(t,n)&&n!="constructor"&&e.push(n);return e}function To(t){return Wi(t)?sh(t):vA(t)}function _A(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var yA=Object.prototype,kA=yA.hasOwnProperty;function wA(t){if(!di(t))return _A(t);var e=os(t),n=[];for(var r in t)r=="constructor"&&(e||!kA.call(t,r))||n.push(r);return n}function Al(t){return Wi(t)?sh(t,!0):wA(t)}var SA=E4(function(t,e){wo(e,Al(e),t)}),TA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zA=/^\w*$/;function ss(t,e){if(jn(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||yo(t)?!0:zA.test(t)||!TA.test(t)||e!=null&&t in Object(e)}var zo=mi(Object,"create");function CA(){this.__data__=zo?zo(null):{},this.size=0}function OA(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var IA="__lodash_hash_undefined__",AA=Object.prototype,DA=AA.hasOwnProperty;function MA(t){var e=this.__data__;if(zo){var n=e[t];return n===IA?void 0:n}return DA.call(e,t)?e[t]:void 0}var EA=Object.prototype,LA=EA.hasOwnProperty;function NA(t){var e=this.__data__;return zo?e[t]!==void 0:LA.call(e,t)}var PA="__lodash_hash_undefined__";function $A(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=zo&&e===void 0?PA:e,this}function gi(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}gi.prototype.clear=CA,gi.prototype.delete=OA,gi.prototype.get=MA,gi.prototype.has=NA,gi.prototype.set=$A;function RA(){this.__data__=[],this.size=0}function Dl(t,e){for(var n=t.length;n--;)if(Cl(t[n][0],e))return n;return-1}var FA=Array.prototype,xA=FA.splice;function UA(t){var e=this.__data__,n=Dl(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():xA.call(e,n,1),--this.size,!0}function BA(t){var e=this.__data__,n=Dl(e,t);return n<0?void 0:e[n][1]}function qA(t){return Dl(this.__data__,t)>-1}function VA(t,e){var n=this.__data__,r=Dl(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Fr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Fr.prototype.clear=RA,Fr.prototype.delete=UA,Fr.prototype.get=BA,Fr.prototype.has=qA,Fr.prototype.set=VA;var Co=mi(Mr,"Map");function JA(){this.size=0,this.__data__={hash:new gi,map:new(Co||Fr),string:new gi}}function HA(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ml(t,e){var n=t.__data__;return HA(e)?n[typeof e=="string"?"string":"hash"]:n.map}function WA(t){var e=Ml(this,t).delete(t);return this.size-=e?1:0,e}function YA(t){return Ml(this,t).get(t)}function GA(t){return Ml(this,t).has(t)}function KA(t,e){var n=Ml(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function xr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xr.prototype.clear=JA,xr.prototype.delete=WA,xr.prototype.get=YA,xr.prototype.has=GA,xr.prototype.set=KA;var QA="Expected a function";function us(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(QA);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var l=t.apply(this,r);return n.cache=o.set(i,l)||o,l};return n.cache=new(us.Cache||xr),n}us.Cache=xr;var jA=500;function XA(t){var e=us(t,function(r){return n.size===jA&&n.clear(),r}),n=e.cache;return e}var ZA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/\\(\\)?/g,tD=XA(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ZA,function(n,r,i,o){e.push(i?o.replace(eD,"$1"):r||n)}),e});function ch(t){return t==null?"":Wd(t)}function fh(t,e){return jn(t)?t:ss(t,e)?[t]:tD(ch(t))}var nD=1/0;function El(t){if(typeof t=="string"||yo(t))return t;var e=t+"";return e=="0"&&1/t==-nD?"-0":e}function cs(t,e){e=fh(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[El(e[n++])];return n&&n==r?t:void 0}function dh(t,e,n){var r=t==null?void 0:cs(t,e);return r===void 0?n:r}function fs(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var hh=br?br.isConcatSpreadable:void 0;function rD(t){return jn(t)||ls(t)||!!(hh&&t&&t[hh])}function iD(t,e,n,r,i){var o=-1,l=t.length;for(n||(n=rD),i||(i=[]);++o<l;){var a=t[o];n(a)&&fs(i,a)}return i}var mh=uh(Object.getPrototypeOf,Object);function oD(t){return function(e){return t==null?void 0:t[e]}}function lD(){this.__data__=new Fr,this.size=0}function aD(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function sD(t){return this.__data__.get(t)}function uD(t){return this.__data__.has(t)}var cD=200;function fD(t,e){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!Co||r.length<cD-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new xr(r)}return n.set(t,e),this.size=n.size,this}function Er(t){var e=this.__data__=new Fr(t);this.size=e.size}Er.prototype.clear=lD,Er.prototype.delete=aD,Er.prototype.get=sD,Er.prototype.has=uD,Er.prototype.set=fD;function dD(t,e){return t&&wo(e,To(e),t)}function hD(t,e){return t&&wo(e,Al(e),t)}var gh=typeof ln=="object"&&ln&&!ln.nodeType&&ln,ph=gh&&typeof module=="object"&&module&&!module.nodeType&&module,mD=ph&&ph.exports===gh,bh=mD?Mr.Buffer:void 0,vh=bh?bh.allocUnsafe:void 0;function gD(t,e){if(e)return t.slice();var n=t.length,r=vh?vh(n):new t.constructor(n);return t.copy(r),r}function pD(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var l=t[n];e(l,n,t)&&(o[i++]=l)}return o}function _h(){return[]}var bD=Object.prototype,vD=bD.propertyIsEnumerable,yh=Object.getOwnPropertySymbols,ds=yh?function(t){return t==null?[]:(t=Object(t),pD(yh(t),function(e){return vD.call(t,e)}))}:_h;function _D(t,e){return wo(t,ds(t),e)}var yD=Object.getOwnPropertySymbols,kh=yD?function(t){for(var e=[];t;)fs(e,ds(t)),t=mh(t);return e}:_h;function kD(t,e){return wo(t,kh(t),e)}function wh(t,e,n){var r=e(t);return jn(t)?r:fs(r,n(t))}function hs(t){return wh(t,To,ds)}function wD(t){return wh(t,Al,kh)}var ms=mi(Mr,"DataView"),gs=mi(Mr,"Promise"),Gi=mi(Mr,"Set"),Sh="[object Map]",SD="[object Object]",Th="[object Promise]",zh="[object Set]",Ch="[object WeakMap]",Oh="[object DataView]",TD=hi(ms),zD=hi(Co),CD=hi(gs),OD=hi(Gi),ID=hi(ns),kr=Hi;(ms&&kr(new ms(new ArrayBuffer(1)))!=Oh||Co&&kr(new Co)!=Sh||gs&&kr(gs.resolve())!=Th||Gi&&kr(new Gi)!=zh||ns&&kr(new ns)!=Ch)&&(kr=function(t){var e=Hi(t),n=e==SD?t.constructor:void 0,r=n?hi(n):"";if(r)switch(r){case TD:return Oh;case zD:return Sh;case CD:return Th;case OD:return zh;case ID:return Ch}return e});var AD=Object.prototype,DD=AD.hasOwnProperty;function MD(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&DD.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ll=Mr.Uint8Array;function ps(t){var e=new t.constructor(t.byteLength);return new Ll(e).set(new Ll(t)),e}function ED(t,e){var n=e?ps(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var LD=/\w*$/;function ND(t){var e=new t.constructor(t.source,LD.exec(t));return e.lastIndex=t.lastIndex,e}var Ih=br?br.prototype:void 0,Ah=Ih?Ih.valueOf:void 0;function PD(t){return Ah?Object(Ah.call(t)):{}}function $D(t,e){var n=e?ps(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var RD="[object Boolean]",FD="[object Date]",xD="[object Map]",UD="[object Number]",BD="[object RegExp]",qD="[object Set]",VD="[object String]",JD="[object Symbol]",HD="[object ArrayBuffer]",WD="[object DataView]",YD="[object Float32Array]",GD="[object Float64Array]",KD="[object Int8Array]",QD="[object Int16Array]",jD="[object Int32Array]",XD="[object Uint8Array]",ZD="[object Uint8ClampedArray]",eM="[object Uint16Array]",tM="[object Uint32Array]";function nM(t,e,n){var r=t.constructor;switch(e){case HD:return ps(t);case RD:case FD:return new r(+t);case WD:return ED(t,n);case YD:case GD:case KD:case QD:case jD:case XD:case ZD:case eM:case tM:return $D(t,n);case xD:return new r;case UD:case VD:return new r(t);case BD:return ND(t);case qD:return new r;case JD:return PD(t)}}function rM(t){return typeof t.constructor=="function"&&!os(t)?s4(mh(t)):{}}var iM="[object Map]";function oM(t){return Rr(t)&&kr(t)==iM}var Dh=Yi&&Yi.isMap,lM=Dh?Il(Dh):oM,aM="[object Set]";function sM(t){return Rr(t)&&kr(t)==aM}var Mh=Yi&&Yi.isSet,uM=Mh?Il(Mh):sM,cM=1,fM=2,dM=4,Eh="[object Arguments]",hM="[object Array]",mM="[object Boolean]",gM="[object Date]",pM="[object Error]",Lh="[object Function]",bM="[object GeneratorFunction]",vM="[object Map]",_M="[object Number]",Nh="[object Object]",yM="[object RegExp]",kM="[object Set]",wM="[object String]",SM="[object Symbol]",TM="[object WeakMap]",zM="[object ArrayBuffer]",CM="[object DataView]",OM="[object Float32Array]",IM="[object Float64Array]",AM="[object Int8Array]",DM="[object Int16Array]",MM="[object Int32Array]",EM="[object Uint8Array]",LM="[object Uint8ClampedArray]",NM="[object Uint16Array]",PM="[object Uint32Array]",sn={};sn[Eh]=sn[hM]=sn[zM]=sn[CM]=sn[mM]=sn[gM]=sn[OM]=sn[IM]=sn[AM]=sn[DM]=sn[MM]=sn[vM]=sn[_M]=sn[Nh]=sn[yM]=sn[kM]=sn[wM]=sn[SM]=sn[EM]=sn[LM]=sn[NM]=sn[PM]=!0,sn[pM]=sn[Lh]=sn[TM]=!1;function Nl(t,e,n,r,i,o){var l,a=e&cM,s=e&fM,u=e&dM;if(l!==void 0)return l;if(!di(t))return t;var c=jn(t);if(c){if(l=MD(t),!a)return f4(t,l)}else{var f=kr(t),d=f==Lh||f==bM;if(Ol(t))return gD(t,a);if(f==Nh||f==Eh||d&&!i){if(l=s||d?{}:rM(t),!a)return s?kD(t,hD(l,t)):_D(t,dD(l,t))}else{if(!sn[f])return i?t:{};l=nM(t,f,a)}}o||(o=new Er);var m=o.get(t);if(m)return m;o.set(t,l),uM(t)?t.forEach(function(v){l.add(Nl(v,e,n,v,t,o))}):lM(t)&&t.forEach(function(v,w){l.set(w,Nl(v,e,n,w,t,o))});var h=u?s?wD:hs:s?Al:To,p=c?void 0:h(t);return _4(p||t,function(v,w){p&&(w=v,v=t[w]),jd(l,w,Nl(v,e,n,w,t,o))}),l}var $M=1,RM=4;function Ph(t){return Nl(t,$M|RM)}var FM="__lodash_hash_undefined__";function xM(t){return this.__data__.set(t,FM),this}function UM(t){return this.__data__.has(t)}function Oo(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new xr;++e<n;)this.add(t[e])}Oo.prototype.add=Oo.prototype.push=xM,Oo.prototype.has=UM;function BM(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function $h(t,e){return t.has(e)}var qM=1,VM=2;function Rh(t,e,n,r,i,o){var l=n&qM,a=t.length,s=e.length;if(a!=s&&!(l&&s>a))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,m=n&VM?new Oo:void 0;for(o.set(t,e),o.set(e,t);++f<a;){var h=t[f],p=e[f];if(r)var v=l?r(p,h,f,e,t,o):r(h,p,f,t,e,o);if(v!==void 0){if(v)continue;d=!1;break}if(m){if(!BM(e,function(w,S){if(!$h(m,S)&&(h===w||i(h,w,n,r,o)))return m.push(S)})){d=!1;break}}else if(!(h===p||i(h,p,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function JM(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function bs(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var HM=1,WM=2,YM="[object Boolean]",GM="[object Date]",KM="[object Error]",QM="[object Map]",jM="[object Number]",XM="[object RegExp]",ZM="[object Set]",e3="[object String]",t3="[object Symbol]",n3="[object ArrayBuffer]",r3="[object DataView]",Fh=br?br.prototype:void 0,vs=Fh?Fh.valueOf:void 0;function i3(t,e,n,r,i,o,l){switch(n){case r3:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case n3:return!(t.byteLength!=e.byteLength||!o(new Ll(t),new Ll(e)));case YM:case GM:case jM:return Cl(+t,+e);case KM:return t.name==e.name&&t.message==e.message;case XM:case e3:return t==e+"";case QM:var a=JM;case ZM:var s=r&HM;if(a||(a=bs),t.size!=e.size&&!s)return!1;var u=l.get(t);if(u)return u==e;r|=WM,l.set(t,e);var c=Rh(a(t),a(e),r,i,o,l);return l.delete(t),c;case t3:if(vs)return vs.call(t)==vs.call(e)}return!1}var o3=1,l3=Object.prototype,a3=l3.hasOwnProperty;function s3(t,e,n,r,i,o){var l=n&o3,a=hs(t),s=a.length,u=hs(e),c=u.length;if(s!=c&&!l)return!1;for(var f=s;f--;){var d=a[f];if(!(l?d in e:a3.call(e,d)))return!1}var m=o.get(t),h=o.get(e);if(m&&h)return m==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var v=l;++f<s;){d=a[f];var w=t[d],S=e[d];if(r)var y=l?r(S,w,d,e,t,o):r(w,S,d,t,e,o);if(!(y===void 0?w===S||i(w,S,n,r,o):y)){p=!1;break}v||(v=d=="constructor")}if(p&&!v){var z=t.constructor,O=e.constructor;z!=O&&"constructor"in t&&"constructor"in e&&!(typeof z=="function"&&z instanceof z&&typeof O=="function"&&O instanceof O)&&(p=!1)}return o.delete(t),o.delete(e),p}var u3=1,xh="[object Arguments]",Uh="[object Array]",Pl="[object Object]",c3=Object.prototype,Bh=c3.hasOwnProperty;function f3(t,e,n,r,i,o){var l=jn(t),a=jn(e),s=l?Uh:kr(t),u=a?Uh:kr(e);s=s==xh?Pl:s,u=u==xh?Pl:u;var c=s==Pl,f=u==Pl,d=s==u;if(d&&Ol(t)){if(!Ol(e))return!1;l=!0,c=!1}if(d&&!c)return o||(o=new Er),l||ah(t)?Rh(t,e,n,r,i,o):i3(t,e,s,n,r,i,o);if(!(n&u3)){var m=c&&Bh.call(t,"__wrapped__"),h=f&&Bh.call(e,"__wrapped__");if(m||h){var p=m?t.value():t,v=h?e.value():e;return o||(o=new Er),i(p,v,n,r,o)}}return d?(o||(o=new Er),s3(t,e,n,r,i,o)):!1}function $l(t,e,n,r,i){return t===e?!0:t==null||e==null||!Rr(t)&&!Rr(e)?t!==t&&e!==e:f3(t,e,n,r,$l,i)}var d3=1,h3=2;function m3(t,e,n,r){var i=n.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var l=n[i];if(l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<o;){l=n[i];var a=l[0],s=t[a],u=l[1];if(l[2]){if(s===void 0&&!(a in t))return!1}else{var c=new Er,f;if(!(f===void 0?$l(u,s,d3|h3,r,c):f))return!1}}return!0}function qh(t){return t===t&&!di(t)}function g3(t){for(var e=To(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,qh(i)]}return e}function Vh(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function p3(t){var e=g3(t);return e.length==1&&e[0][2]?Vh(e[0][0],e[0][1]):function(n){return n===t||m3(n,t,e)}}function b3(t,e){return t!=null&&e in Object(t)}function v3(t,e,n){e=fh(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var l=El(e[r]);if(!(o=t!=null&&n(t,l)))break;t=t[l]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&is(i)&&rs(l,i)&&(jn(t)||ls(t)))}function _3(t,e){return t!=null&&v3(t,e,b3)}var y3=1,k3=2;function w3(t,e){return ss(t)&&qh(e)?Vh(El(t),e):function(n){var r=dh(n,t);return r===void 0&&r===e?_3(n,t):$l(e,r,y3|k3)}}function S3(t){return function(e){return e==null?void 0:e[t]}}function T3(t){return function(e){return cs(e,t)}}function z3(t){return ss(t)?S3(El(t)):T3(t)}function C3(t){return typeof t=="function"?t:t==null?ko:typeof t=="object"?jn(t)?w3(t[0],t[1]):p3(t):z3(t)}function O3(t){return function(e,n,r){for(var i=-1,o=Object(e),l=r(e),a=l.length;a--;){var s=l[++i];if(n(o[s],s,o)===!1)break}return e}}var I3=O3();function A3(t,e){return t&&I3(t,e,To)}function D3(t,e){return function(n,r){if(n==null)return n;if(!Wi(n))return t(n,r);for(var i=n.length,o=-1,l=Object(n);++o<i&&r(l[o],o,l)!==!1;);return n}}var M3=D3(A3);function E3(t){return Rr(t)&&Wi(t)}var L3={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},N3=oD(L3),Jh=/[&<>"']/g,P3=RegExp(Jh.source);function Hh(t){return t=ch(t),t&&P3.test(t)?t.replace(Jh,N3):t}function $3(t,e){var n=-1,r=Wi(t)?Array(t.length):[];return M3(t,function(i,o,l){r[++n]=e(i,o,l)}),r}function R3(t,e){return $l(t,e)}function F3(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);o!==void 0&&(n=n===void 0?o:n+o)}return n}function x3(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function U3(t,e){if(t!==e){var n=t!==void 0,r=t===null,i=t===t,o=yo(t),l=e!==void 0,a=e===null,s=e===e,u=yo(e);if(!a&&!u&&!o&&t>e||o&&l&&s&&!a&&!u||r&&l&&s||!n&&s||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||a&&n&&i||!l&&i||!s)return-1}return 0}function B3(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,l=i.length,a=n.length;++r<l;){var s=U3(i[r],o[r]);if(s){if(r>=a)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return t.index-e.index}function q3(t,e,n){e.length?e=Tl(e,function(o){return jn(o)?function(l){return cs(l,o.length===1?o[0]:o)}:o}):e=[ko];var r=-1;e=Tl(e,Il(C3));var i=$3(t,function(o,l,a){var s=Tl(e,function(u){return u(o)});return{criteria:s,index:++r,value:o}});return x3(i,function(o,l){return B3(o,l,n)})}function V3(t,e,n,r){return t==null?[]:(jn(e)||(e=e==null?[]:[e]),n=n,jn(n)||(n=n==null?[]:[n]),q3(t,e,n))}function J3(t){return t&&t.length?F3(t,ko):0}var H3=1/0,W3=Gi&&1/bs(new Gi([,-0]))[1]==H3?function(t){return new Gi(t)}:c4,Y3=200;function Wh(t,e,n){var r=-1,i=T4,o=t.length,l=!0,a=[],s=a;if(o>=Y3){var u=W3(t);if(u)return bs(u);l=!1,i=$h,s=new Oo}else s=a;e:for(;++r<o;){var c=t[r],f=c;if(c=c!==0?c:0,l&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;a.push(c)}else i(s,f,n)||(s!==a&&s.push(f),a.push(c))}return a}var Yh=Zd(function(t){return Wh(iD(t,1,E3))});function Gh(t){return t&&t.length?Wh(t):[]}var _s=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ki={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return typeof console<"u"&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},Io={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},Xn=function(t,e){return e===void 0&&(e=2),("000"+t).slice(e*-1)},vr=function(t){return t===!0?1:0};function Kh(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){return t.apply(r,i)},e)}}var ys=function(t){return t instanceof Array?t:[t]};function Hn(t,e,n){if(n===!0)return t.classList.add(e);t.classList.remove(e)}function Qt(t,e,n){var r=window.document.createElement(t);return e=e||"",n=n||"",r.className=e,n!==void 0&&(r.textContent=n),r}function Rl(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Qh(t,e){if(e(t))return t;if(t.parentNode)return Qh(t.parentNode,e)}function Fl(t,e){var n=Qt("div","numInputWrapper"),r=Qt("input","numInput "+t),i=Qt("span","arrowUp"),o=Qt("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),e!==void 0)for(var l in e)r.setAttribute(l,e[l]);return n.appendChild(r),n.appendChild(i),n.appendChild(o),n}function ar(t){try{if(typeof t.composedPath=="function"){var e=t.composedPath();return e[0]}return t.target}catch{return t.target}}var ks=function(){},xl=function(t,e,n){return n.months[e?"shorthand":"longhand"][t]},G3={D:ks,F:function(t,e,n){t.setMonth(n.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*vr(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(parseFloat(e)*1e3)},W:function(t,e,n){var r=parseInt(e),i=new Date(t.getFullYear(),0,2+(r-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+n.firstDayOfWeek),i},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:ks,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:ks,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},pi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Ao={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[Ao.w(t,e,n)]},F:function(t,e,n){return xl(Ao.n(t,e,n)-1,!1,e)},G:function(t,e,n){return Xn(Ao.h(t,e,n))},H:function(t){return Xn(t.getHours())},J:function(t,e){return e.ordinal!==void 0?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[vr(t.getHours()>11)]},M:function(t,e){return xl(t.getMonth(),!0,e)},S:function(t){return Xn(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return Xn(t.getFullYear(),4)},d:function(t){return Xn(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Xn(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return Xn(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},jh=function(t){var e=t.config,n=e===void 0?Ki:e,r=t.l10n,i=r===void 0?Io:r,o=t.isMobile,l=o===void 0?!1:o;return function(a,s,u){var c=u||i;return n.formatDate!==void 0&&!l?n.formatDate(a,s,c):s.split("").map(function(f,d,m){return Ao[f]&&m[d-1]!=="\\"?Ao[f](a,c,n):f!=="\\"?f:""}).join("")}},ws=function(t){var e=t.config,n=e===void 0?Ki:e,r=t.l10n,i=r===void 0?Io:r;return function(o,l,a,s){if(!(o!==0&&!o)){var u=s||i,c,f=o;if(o instanceof Date)c=new Date(o.getTime());else if(typeof o!="string"&&o.toFixed!==void 0)c=new Date(o);else if(typeof o=="string"){var d=l||(n||Ki).dateFormat,m=String(o).trim();if(m==="today")c=new Date,a=!0;else if(n&&n.parseDate)c=n.parseDate(o,d);else if(/Z$/.test(m)||/GMT$/.test(m))c=new Date(o);else{for(var h=void 0,p=[],v=0,w=0,S="";v<d.length;v++){var y=d[v],z=y==="\\",O=d[v-1]==="\\"||z;if(pi[y]&&!O){S+=pi[y];var N=new RegExp(S).exec(o);N&&(h=!0)&&p[y!=="Y"?"push":"unshift"]({fn:G3[y],val:N[++w]})}else z||(S+=".")}c=!n||!n.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),p.forEach(function(U){var A=U.fn,P=U.val;return c=A(c,P,u)||c}),c=h?c:void 0}}if(!(c instanceof Date&&!isNaN(c.getTime()))){n.errorHandler(new Error("Invalid date provided: "+f));return}return a===!0&&c.setHours(0,0,0,0),c}}};function sr(t,e,n){return n===void 0&&(n=!0),n!==!1?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var K3=function(t,e,n){return t>Math.min(e,n)&&t<Math.max(e,n)},Ss=function(t,e,n){return t*3600+e*60+n},Q3=function(t){var e=Math.floor(t/3600),n=(t-e*3600)/60;return[e,n,t-e*3600-n*60]},j3={DAY:864e5};function Ts(t){var e=t.defaultHour,n=t.defaultMinute,r=t.defaultSeconds;if(t.minDate!==void 0){var i=t.minDate.getHours(),o=t.minDate.getMinutes(),l=t.minDate.getSeconds();e<i&&(e=i),e===i&&n<o&&(n=o),e===i&&n===o&&r<l&&(r=t.minDate.getSeconds())}if(t.maxDate!==void 0){var a=t.maxDate.getHours(),s=t.maxDate.getMinutes();e=Math.min(e,a),e===a&&(n=Math.min(s,n)),e===a&&n===s&&(r=t.maxDate.getSeconds())}return{hours:e,minutes:n,seconds:r}}typeof Object.assign!="function"&&(Object.assign=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var r=function(a){a&&Object.keys(a).forEach(function(s){return t[s]=a[s]})},i=0,o=e;i<o.length;i++){var l=o[i];r(l)}return t});var Bn=function(){return Bn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Bn.apply(this,arguments)},Xh=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],l=0,a=o.length;l<a;l++,i++)r[i]=o[l];return r},X3=300;function Z3(t,e){var n={config:Bn(Bn({},Ki),Cn.defaultConfig),l10n:Io};n.parseDate=ws({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=p,n._setHoursFromDate=d,n._positionCalendar=wt,n.changeMonth=Oe,n.changeYear=De,n.clear=me,n.close=we,n.onMouseOver=St,n._createElement=Qt,n.createDay=N,n.destroy=Fe,n.isEnabled=Ze,n.jumpToDate=S,n.updateValue=$t,n.open=Lt,n.redraw=He,n.set=K,n.setDate=M,n.toggle=at;function r(){n.utils={getDaysInMonth:function(H,G){return H===void 0&&(H=n.currentMonth),G===void 0&&(G=n.currentYear),H===1&&(G%4===0&&G%100!==0||G%400===0)?29:n.l10n.daysInMonth[H]}}}function i(){n.element=n.input=t,n.isOpen=!1,ot(),It(),Me(),le(),r(),n.isMobile||O(),w(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&d(n.config.noCalendar?n.latestSelectedDateObj:void 0),$t(!1)),a();var H=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&H&&wt(),et("onReady")}function o(){var H;return((H=n.calendarContainer)===null||H===void 0?void 0:H.getRootNode()).activeElement||document.activeElement}function l(H){return H.bind(n)}function a(){var H=n.config;H.weekNumbers===!1&&H.showMonths===1||H.noCalendar!==!0&&window.requestAnimationFrame(function(){if(n.calendarContainer!==void 0&&(n.calendarContainer.style.visibility="hidden",n.calendarContainer.style.display="block"),n.daysContainer!==void 0){var G=(n.days.offsetWidth+1)*H.showMonths;n.daysContainer.style.width=G+"px",n.calendarContainer.style.width=G+(n.weekWrapper!==void 0?n.weekWrapper.offsetWidth:0)+"px",n.calendarContainer.style.removeProperty("visibility"),n.calendarContainer.style.removeProperty("display")}})}function s(H){if(n.selectedDates.length===0){var G=n.config.minDate===void 0||sr(new Date,n.config.minDate)>=0?new Date:new Date(n.config.minDate.getTime()),ie=Ts(n.config);G.setHours(ie.hours,ie.minutes,ie.seconds,G.getMilliseconds()),n.selectedDates=[G],n.latestSelectedDateObj=G}H!==void 0&&H.type!=="blur"&&rn(H);var ge=n._input.value;f(),$t(),n._input.value!==ge&&n._debouncedChange()}function u(H,G){return H%12+12*vr(G===n.l10n.amPM[1])}function c(H){switch(H%24){case 0:case 12:return 12;default:return H%12}}function f(){if(!(n.hourElement===void 0||n.minuteElement===void 0)){var H=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,G=(parseInt(n.minuteElement.value,10)||0)%60,ie=n.secondElement!==void 0?(parseInt(n.secondElement.value,10)||0)%60:0;n.amPM!==void 0&&(H=u(H,n.amPM.textContent));var ge=n.config.minTime!==void 0||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&sr(n.latestSelectedDateObj,n.config.minDate,!0)===0,Re=n.config.maxTime!==void 0||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&sr(n.latestSelectedDateObj,n.config.maxDate,!0)===0;if(n.config.maxTime!==void 0&&n.config.minTime!==void 0&&n.config.minTime>n.config.maxTime){var Be=Ss(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),bt=Ss(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),Ge=Ss(H,G,ie);if(Ge>bt&&Ge<Be){var vt=Q3(Be);H=vt[0],G=vt[1],ie=vt[2]}}else{if(Re){var We=n.config.maxTime!==void 0?n.config.maxTime:n.config.maxDate;H=Math.min(H,We.getHours()),H===We.getHours()&&(G=Math.min(G,We.getMinutes())),G===We.getMinutes()&&(ie=Math.min(ie,We.getSeconds()))}if(ge){var st=n.config.minTime!==void 0?n.config.minTime:n.config.minDate;H=Math.max(H,st.getHours()),H===st.getHours()&&G<st.getMinutes()&&(G=st.getMinutes()),G===st.getMinutes()&&(ie=Math.max(ie,st.getSeconds()))}}m(H,G,ie)}}function d(H){var G=H||n.latestSelectedDateObj;G&&G instanceof Date&&m(G.getHours(),G.getMinutes(),G.getSeconds())}function m(H,G,ie){n.latestSelectedDateObj!==void 0&&n.latestSelectedDateObj.setHours(H%24,G,ie||0,0),!(!n.hourElement||!n.minuteElement||n.isMobile)&&(n.hourElement.value=Xn(n.config.time_24hr?H:(12+H)%12+12*vr(H%12===0)),n.minuteElement.value=Xn(G),n.amPM!==void 0&&(n.amPM.textContent=n.l10n.amPM[vr(H>=12)]),n.secondElement!==void 0&&(n.secondElement.value=Xn(ie)))}function h(H){var G=ar(H),ie=parseInt(G.value)+(H.delta||0);(ie/1e3>1||H.key==="Enter"&&!/[^\d]/.test(ie.toString()))&&De(ie)}function p(H,G,ie,ge){if(G instanceof Array)return G.forEach(function(Re){return p(H,Re,ie,ge)});if(H instanceof Array)return H.forEach(function(Re){return p(Re,G,ie,ge)});H.addEventListener(G,ie,ge),n._handlers.push({remove:function(){return H.removeEventListener(G,ie,ge)}})}function v(){et("onChange")}function w(){if(n.config.wrap&&["open","close","toggle","clear"].forEach(function(ie){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+ie+"]"),function(ge){return p(ge,"click",n[ie])})}),n.isMobile){ct();return}var H=Kh(it,50);if(n._debouncedChange=Kh(v,X3),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&p(n.daysContainer,"mouseover",function(ie){n.config.mode==="range"&&St(ar(ie))}),p(n._input,"keydown",Ce),n.calendarContainer!==void 0&&p(n.calendarContainer,"keydown",Ce),!n.config.inline&&!n.config.static&&p(window,"resize",H),window.ontouchstart!==void 0?p(window.document,"touchstart",Se):p(window.document,"mousedown",Se),p(window.document,"focus",Se,{capture:!0}),n.config.clickOpens===!0&&(p(n._input,"focus",n.open),p(n._input,"click",n.open)),n.daysContainer!==void 0&&(p(n.monthNav,"click",un),p(n.monthNav,["keyup","increment"],h),p(n.daysContainer,"click",qt)),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0){var G=function(ie){return ar(ie).select()};p(n.timeContainer,["increment"],s),p(n.timeContainer,"blur",s,{capture:!0}),p(n.timeContainer,"click",y),p([n.hourElement,n.minuteElement],["focus","click"],G),n.secondElement!==void 0&&p(n.secondElement,"focus",function(){return n.secondElement&&n.secondElement.select()}),n.amPM!==void 0&&p(n.amPM,"click",function(ie){s(ie)})}n.config.allowInput&&p(n._input,"blur",dt)}function S(H,G){var ie=H!==void 0?n.parseDate(H):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate<n.now?n.config.maxDate:n.now),ge=n.currentYear,Re=n.currentMonth;try{ie!==void 0&&(n.currentYear=ie.getFullYear(),n.currentMonth=ie.getMonth())}catch(Be){Be.message="Invalid date supplied: "+ie,n.config.errorHandler(Be)}G&&n.currentYear!==ge&&(et("onYearChange"),ee()),G&&(n.currentYear!==ge||n.currentMonth!==Re)&&et("onMonthChange"),n.redraw()}function y(H){var G=ar(H);~G.className.indexOf("arrow")&&z(H,G.classList.contains("arrowUp")?1:-1)}function z(H,G,ie){var ge=H&&ar(H),Re=ie||ge&&ge.parentNode&&ge.parentNode.firstChild,Be=Ot("increment");Be.delta=G,Re&&Re.dispatchEvent(Be)}function O(){var H=window.document.createDocumentFragment();if(n.calendarContainer=Qt("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(H.appendChild(he()),n.innerContainer=Qt("div","flatpickr-innerContainer"),n.config.weekNumbers){var G=fe(),ie=G.weekWrapper,ge=G.weekNumbers;n.innerContainer.appendChild(ie),n.weekNumbers=ge,n.weekWrapper=ie}n.rContainer=Qt("div","flatpickr-rContainer"),n.rContainer.appendChild(se()),n.daysContainer||(n.daysContainer=Qt("div","flatpickr-days"),n.daysContainer.tabIndex=-1),J(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),H.appendChild(n.innerContainer)}n.config.enableTime&&H.appendChild(de()),Hn(n.calendarContainer,"rangeMode",n.config.mode==="range"),Hn(n.calendarContainer,"animate",n.config.animate===!0),Hn(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(H);var Re=n.config.appendTo!==void 0&&n.config.appendTo.nodeType!==void 0;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!Re&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):n.config.appendTo!==void 0&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var Be=Qt("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(Be,n.element),Be.appendChild(n.element),n.altInput&&Be.appendChild(n.altInput),Be.appendChild(n.calendarContainer)}!n.config.static&&!n.config.inline&&(n.config.appendTo!==void 0?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}function N(H,G,ie,ge){var Re=Ze(G,!0),Be=Qt("span",H,G.getDate().toString());return Be.dateObj=G,Be.$i=ge,Be.setAttribute("aria-label",n.formatDate(G,n.config.ariaDateFormat)),H.indexOf("hidden")===-1&&sr(G,n.now)===0&&(n.todayDateElem=Be,Be.classList.add("today"),Be.setAttribute("aria-current","date")),Re?(Be.tabIndex=-1,_t(G)&&(Be.classList.add("selected"),n.selectedDateElem=Be,n.config.mode==="range"&&(Hn(Be,"startRange",n.selectedDates[0]&&sr(G,n.selectedDates[0],!0)===0),Hn(Be,"endRange",n.selectedDates[1]&&sr(G,n.selectedDates[1],!0)===0),H==="nextMonthDay"&&Be.classList.add("inRange")))):Be.classList.add("flatpickr-disabled"),n.config.mode==="range"&&Gt(G)&&!_t(G)&&Be.classList.add("inRange"),n.weekNumbers&&n.config.showMonths===1&&H!=="prevMonthDay"&&ge%7===6&&n.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+n.config.getWeek(G)+"</span>"),et("onDayCreate",Be),Be}function U(H){H.focus(),n.config.mode==="range"&&St(H)}function A(H){for(var G=H>0?0:n.config.showMonths-1,ie=H>0?n.config.showMonths:-1,ge=G;ge!=ie;ge+=H)for(var Re=n.daysContainer.children[ge],Be=H>0?0:Re.children.length-1,bt=H>0?Re.children.length:-1,Ge=Be;Ge!=bt;Ge+=H){var vt=Re.children[Ge];if(vt.className.indexOf("hidden")===-1&&Ze(vt.dateObj))return vt}}function P(H,G){for(var ie=H.className.indexOf("Month")===-1?H.dateObj.getMonth():n.currentMonth,ge=G>0?n.config.showMonths:-1,Re=G>0?1:-1,Be=ie-n.currentMonth;Be!=ge;Be+=Re)for(var bt=n.daysContainer.children[Be],Ge=ie-n.currentMonth===Be?H.$i+G:G<0?bt.children.length-1:0,vt=bt.children.length,We=Ge;We>=0&&We<vt&&We!=(G>0?vt:-1);We+=Re){var st=bt.children[We];if(st.className.indexOf("hidden")===-1&&Ze(st.dateObj)&&Math.abs(H.$i-We)>=Math.abs(G))return U(st)}n.changeMonth(Re),Y(A(Re),0)}function Y(H,G){var ie=o(),ge=Qe(ie||document.body),Re=H!==void 0?H:ge?ie:n.selectedDateElem!==void 0&&Qe(n.selectedDateElem)?n.selectedDateElem:n.todayDateElem!==void 0&&Qe(n.todayDateElem)?n.todayDateElem:A(G>0?1:-1);Re===void 0?n._input.focus():ge?P(Re,G):U(Re)}function B(H,G){for(var ie=(new Date(H,G,1).getDay()-n.l10n.firstDayOfWeek+7)%7,ge=n.utils.getDaysInMonth((G-1+12)%12,H),Re=n.utils.getDaysInMonth(G,H),Be=window.document.createDocumentFragment(),bt=n.config.showMonths>1,Ge=bt?"prevMonthDay hidden":"prevMonthDay",vt=bt?"nextMonthDay hidden":"nextMonthDay",We=ge+1-ie,st=0;We<=ge;We++,st++)Be.appendChild(N("flatpickr-day "+Ge,new Date(H,G-1,We),We,st));for(We=1;We<=Re;We++,st++)Be.appendChild(N("flatpickr-day",new Date(H,G,We),We,st));for(var Nt=Re+1;Nt<=42-ie&&(n.config.showMonths===1||st%7!==0);Nt++,st++)Be.appendChild(N("flatpickr-day "+vt,new Date(H,G+1,Nt%Re),Nt,st));var Ht=Qt("div","dayContainer");return Ht.appendChild(Be),Ht}function J(){if(n.daysContainer!==void 0){Rl(n.daysContainer),n.weekNumbers&&Rl(n.weekNumbers);for(var H=document.createDocumentFragment(),G=0;G<n.config.showMonths;G++){var ie=new Date(n.currentYear,n.currentMonth,1);ie.setMonth(n.currentMonth+G),H.appendChild(B(ie.getFullYear(),ie.getMonth()))}n.daysContainer.appendChild(H),n.days=n.daysContainer.firstChild,n.config.mode==="range"&&n.selectedDates.length===1&&St()}}function ee(){if(!(n.config.showMonths>1||n.config.monthSelectorType!=="dropdown")){var H=function(ge){return n.config.minDate!==void 0&&n.currentYear===n.config.minDate.getFullYear()&&ge<n.config.minDate.getMonth()?!1:!(n.config.maxDate!==void 0&&n.currentYear===n.config.maxDate.getFullYear()&&ge>n.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var G=0;G<12;G++)if(H(G)){var ie=Qt("option","flatpickr-monthDropdown-month");ie.value=new Date(n.currentYear,G).getMonth().toString(),ie.textContent=xl(G,n.config.shorthandCurrentMonth,n.l10n),ie.tabIndex=-1,n.currentMonth===G&&(ie.selected=!0),n.monthsDropdownContainer.appendChild(ie)}}}function X(){var H=Qt("div","flatpickr-month"),G=window.document.createDocumentFragment(),ie;n.config.showMonths>1||n.config.monthSelectorType==="static"?ie=Qt("span","cur-month"):(n.monthsDropdownContainer=Qt("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),p(n.monthsDropdownContainer,"change",function(bt){var Ge=ar(bt),vt=parseInt(Ge.value,10);n.changeMonth(vt-n.currentMonth),et("onMonthChange")}),ee(),ie=n.monthsDropdownContainer);var ge=Fl("cur-year",{tabindex:"-1"}),Re=ge.getElementsByTagName("input")[0];Re.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&Re.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(Re.setAttribute("max",n.config.maxDate.getFullYear().toString()),Re.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var Be=Qt("div","flatpickr-current-month");return Be.appendChild(ie),Be.appendChild(ge),G.appendChild(Be),H.appendChild(G),{container:H,yearElement:Re,monthElement:ie}}function ce(){Rl(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var H=n.config.showMonths;H--;){var G=X();n.yearElements.push(G.yearElement),n.monthElements.push(G.monthElement),n.monthNav.appendChild(G.container)}n.monthNav.appendChild(n.nextMonthNav)}function he(){return n.monthNav=Qt("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=Qt("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=Qt("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,ce(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(H){n.__hidePrevMonthArrow!==H&&(Hn(n.prevMonthNav,"flatpickr-disabled",H),n.__hidePrevMonthArrow=H)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(H){n.__hideNextMonthArrow!==H&&(Hn(n.nextMonthNav,"flatpickr-disabled",H),n.__hideNextMonthArrow=H)}}),n.currentYearElement=n.yearElements[0],Vt(),n.monthNav}function de(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var H=Ts(n.config);n.timeContainer=Qt("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var G=Qt("span","flatpickr-time-separator",":"),ie=Fl("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=ie.getElementsByTagName("input")[0];var ge=Fl("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});if(n.minuteElement=ge.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=Xn(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?H.hours:c(H.hours)),n.minuteElement.value=Xn(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():H.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(ie),n.timeContainer.appendChild(G),n.timeContainer.appendChild(ge),n.config.time_24hr&&n.timeContainer.classList.add("time24hr"),n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var Re=Fl("flatpickr-second");n.secondElement=Re.getElementsByTagName("input")[0],n.secondElement.value=Xn(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():H.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(Qt("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(Re)}return n.config.time_24hr||(n.amPM=Qt("span","flatpickr-am-pm",n.l10n.amPM[vr((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM)),n.timeContainer}function se(){n.weekdayContainer?Rl(n.weekdayContainer):n.weekdayContainer=Qt("div","flatpickr-weekdays");for(var H=n.config.showMonths;H--;){var G=Qt("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(G)}return ue(),n.weekdayContainer}function ue(){if(n.weekdayContainer){var H=n.l10n.firstDayOfWeek,G=Xh(n.l10n.weekdays.shorthand);H>0&&H<G.length&&(G=Xh(G.splice(H,G.length),G.splice(0,H)));for(var ie=n.config.showMonths;ie--;)n.weekdayContainer.children[ie].innerHTML=`
148
+ <span class='flatpickr-weekday'>
149
+ `+G.join("</span><span class='flatpickr-weekday'>")+`
150
+ </span>
151
+ `}}function fe(){n.calendarContainer.classList.add("hasWeeks");var H=Qt("div","flatpickr-weekwrapper");H.appendChild(Qt("span","flatpickr-weekday",n.l10n.weekAbbreviation));var G=Qt("div","flatpickr-weeks");return H.appendChild(G),{weekWrapper:H,weekNumbers:G}}function Oe(H,G){G===void 0&&(G=!0);var ie=G?H:H-n.currentMonth;ie<0&&n._hidePrevMonthArrow===!0||ie>0&&n._hideNextMonthArrow===!0||(n.currentMonth+=ie,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,et("onYearChange"),ee()),J(),et("onMonthChange"),Vt())}function me(H,G){if(H===void 0&&(H=!0),G===void 0&&(G=!0),n.input.value="",n.altInput!==void 0&&(n.altInput.value=""),n.mobileInput!==void 0&&(n.mobileInput.value=""),n.selectedDates=[],n.latestSelectedDateObj=void 0,G===!0&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth()),n.config.enableTime===!0){var ie=Ts(n.config),ge=ie.hours,Re=ie.minutes,Be=ie.seconds;m(ge,Re,Be)}n.redraw(),H&&et("onChange")}function we(){n.isOpen=!1,n.isMobile||(n.calendarContainer!==void 0&&n.calendarContainer.classList.remove("open"),n._input!==void 0&&n._input.classList.remove("active")),et("onClose")}function Fe(){n.config!==void 0&&et("onDestroy");for(var H=n._handlers.length;H--;)n._handlers[H].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var G=n.calendarContainer.parentNode;if(G.lastChild&&G.removeChild(G.lastChild),G.parentNode){for(;G.firstChild;)G.parentNode.insertBefore(G.firstChild,G);G.parentNode.removeChild(G)}}else n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput),n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(ie){try{delete n[ie]}catch{}})}function pe(H){return n.calendarContainer.contains(H)}function Se(H){if(n.isOpen&&!n.config.inline){var G=ar(H),ie=pe(G),ge=G===n.input||G===n.altInput||n.element.contains(G)||H.path&&H.path.indexOf&&(~H.path.indexOf(n.input)||~H.path.indexOf(n.altInput)),Re=!ge&&!ie&&!pe(H.relatedTarget),Be=!n.config.ignoredFocusElements.some(function(bt){return bt.contains(G)});Re&&Be&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),n.timeContainer!==void 0&&n.minuteElement!==void 0&&n.hourElement!==void 0&&n.input.value!==""&&n.input.value!==void 0&&s(),n.close(),n.config&&n.config.mode==="range"&&n.selectedDates.length===1&&n.clear(!1))}}function De(H){if(!(!H||n.config.minDate&&H<n.config.minDate.getFullYear()||n.config.maxDate&&H>n.config.maxDate.getFullYear())){var G=H,ie=n.currentYear!==G;n.currentYear=G||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),ie&&(n.redraw(),et("onYearChange"),ee())}}function Ze(H,G){var ie;G===void 0&&(G=!0);var ge=n.parseDate(H,void 0,G);if(n.config.minDate&&ge&&sr(ge,n.config.minDate,G!==void 0?G:!n.minDateHasTime)<0||n.config.maxDate&&ge&&sr(ge,n.config.maxDate,G!==void 0?G:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&n.config.disable.length===0)return!0;if(ge===void 0)return!1;for(var Re=!!n.config.enable,Be=(ie=n.config.enable)!==null&&ie!==void 0?ie:n.config.disable,bt=0,Ge=void 0;bt<Be.length;bt++){if(Ge=Be[bt],typeof Ge=="function"&&Ge(ge))return Re;if(Ge instanceof Date&&ge!==void 0&&Ge.getTime()===ge.getTime())return Re;if(typeof Ge=="string"){var vt=n.parseDate(Ge,void 0,!0);return vt&&vt.getTime()===ge.getTime()?Re:!Re}else if(typeof Ge=="object"&&ge!==void 0&&Ge.from&&Ge.to&&ge.getTime()>=Ge.from.getTime()&&ge.getTime()<=Ge.to.getTime())return Re}return!Re}function Qe(H){return n.daysContainer!==void 0?H.className.indexOf("hidden")===-1&&H.className.indexOf("flatpickr-disabled")===-1&&n.daysContainer.contains(H):!1}function dt(H){var G=H.target===n._input,ie=n._input.value.trimEnd()!==Jt();G&&ie&&!(H.relatedTarget&&pe(H.relatedTarget))&&n.setDate(n._input.value,!0,H.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function Ce(H){var G=ar(H),ie=n.config.wrap?t.contains(G):G===n._input,ge=n.config.allowInput,Re=n.isOpen&&(!ge||!ie),Be=n.config.inline&&ie&&!ge;if(H.keyCode===13&&ie){if(ge)return n.setDate(n._input.value,!0,G===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),G.blur();n.open()}else if(pe(G)||Re||Be){var bt=!!n.timeContainer&&n.timeContainer.contains(G);switch(H.keyCode){case 13:bt?(H.preventDefault(),s(),Ut()):qt(H);break;case 27:H.preventDefault(),Ut();break;case 8:case 46:ie&&!n.config.allowInput&&(H.preventDefault(),n.clear());break;case 37:case 39:if(!bt&&!ie){H.preventDefault();var Ge=o();if(n.daysContainer!==void 0&&(ge===!1||Ge&&Qe(Ge))){var vt=H.keyCode===39?1:-1;H.ctrlKey?(H.stopPropagation(),Oe(vt),Y(A(1),0)):Y(void 0,vt)}}else n.hourElement&&n.hourElement.focus();break;case 38:case 40:H.preventDefault();var We=H.keyCode===40?1:-1;n.daysContainer&&G.$i!==void 0||G===n.input||G===n.altInput?H.ctrlKey?(H.stopPropagation(),De(n.currentYear-We),Y(A(1),0)):bt||Y(void 0,We*7):G===n.currentYearElement?De(n.currentYear-We):n.config.enableTime&&(!bt&&n.hourElement&&n.hourElement.focus(),s(H),n._debouncedChange());break;case 9:if(bt){var st=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter(function(nn){return nn}),Nt=st.indexOf(G);if(Nt!==-1){var Ht=st[Nt+(H.shiftKey?-1:1)];H.preventDefault(),(Ht||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(G)&&H.shiftKey&&(H.preventDefault(),n._input.focus());break}}if(n.amPM!==void 0&&G===n.amPM)switch(H.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],f(),$t();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],f(),$t();break}(ie||pe(G))&&et("onKeyDown",H)}function St(H,G){if(G===void 0&&(G="flatpickr-day"),!(n.selectedDates.length!==1||H&&(!H.classList.contains(G)||H.classList.contains("flatpickr-disabled")))){for(var ie=H?H.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),ge=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),Re=Math.min(ie,n.selectedDates[0].getTime()),Be=Math.max(ie,n.selectedDates[0].getTime()),bt=!1,Ge=0,vt=0,We=Re;We<Be;We+=j3.DAY)Ze(new Date(We),!0)||(bt=bt||We>Re&&We<Be,We<ge&&(!Ge||We>Ge)?Ge=We:We>ge&&(!vt||We<vt)&&(vt=We));var st=Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+"+n.config.showMonths+") > ."+G));st.forEach(function(Nt){var Ht=Nt.dateObj,nn=Ht.getTime(),_e=Ge>0&&nn<Ge||vt>0&&nn>vt;if(_e){Nt.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ue){Nt.classList.remove(Ue)});return}else if(bt&&!_e)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ue){Nt.classList.remove(Ue)}),H!==void 0&&(H.classList.add(ie<=n.selectedDates[0].getTime()?"startRange":"endRange"),ge<ie&&nn===ge?Nt.classList.add("startRange"):ge>ie&&nn===ge&&Nt.classList.add("endRange"),nn>=Ge&&(vt===0||nn<=vt)&&K3(nn,ge,ie)&&Nt.classList.add("inRange"))})}}function it(){n.isOpen&&!n.config.static&&!n.config.inline&&wt()}function Lt(H,G){if(G===void 0&&(G=n._positionElement),n.isMobile===!0){if(H){H.preventDefault();var ie=ar(H);ie&&ie.blur()}n.mobileInput!==void 0&&(n.mobileInput.focus(),n.mobileInput.click()),et("onOpen");return}else if(n._input.disabled||n.config.inline)return;var ge=n.isOpen;n.isOpen=!0,ge||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),et("onOpen"),wt(G)),n.config.enableTime===!0&&n.config.noCalendar===!0&&n.config.allowInput===!1&&(H===void 0||!n.timeContainer.contains(H.relatedTarget))&&setTimeout(function(){return n.hourElement.select()},50)}function Te(H){return function(G){var ie=n.config["_"+H+"Date"]=n.parseDate(G,n.config.dateFormat),ge=n.config["_"+(H==="min"?"max":"min")+"Date"];ie!==void 0&&(n[H==="min"?"minDateHasTime":"maxDateHasTime"]=ie.getHours()>0||ie.getMinutes()>0||ie.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter(function(Re){return Ze(Re)}),!n.selectedDates.length&&H==="min"&&d(ie),$t()),n.daysContainer&&(He(),ie!==void 0?n.currentYearElement[H]=ie.getFullYear().toString():n.currentYearElement.removeAttribute(H),n.currentYearElement.disabled=!!ge&&ie!==void 0&&ge.getFullYear()===ie.getFullYear())}}function ot(){var H=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],G=Bn(Bn({},JSON.parse(JSON.stringify(t.dataset||{}))),e),ie={};n.config.parseDate=G.parseDate,n.config.formatDate=G.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(st){n.config._enable=Q(st)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(st){n.config._disable=Q(st)}});var ge=G.mode==="time";if(!G.dateFormat&&(G.enableTime||ge)){var Re=Cn.defaultConfig.dateFormat||Ki.dateFormat;ie.dateFormat=G.noCalendar||ge?"H:i"+(G.enableSeconds?":S":""):Re+" H:i"+(G.enableSeconds?":S":"")}if(G.altInput&&(G.enableTime||ge)&&!G.altFormat){var Be=Cn.defaultConfig.altFormat||Ki.altFormat;ie.altFormat=G.noCalendar||ge?"h:i"+(G.enableSeconds?":S K":" K"):Be+(" h:i"+(G.enableSeconds?":S":"")+" K")}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:Te("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:Te("max")});var bt=function(st){return function(Nt){n.config[st==="min"?"_minTime":"_maxTime"]=n.parseDate(Nt,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:bt("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:bt("max")}),G.mode==="time"&&(n.config.noCalendar=!0,n.config.enableTime=!0),Object.assign(n.config,ie,G);for(var Ge=0;Ge<H.length;Ge++)n.config[H[Ge]]=n.config[H[Ge]]===!0||n.config[H[Ge]]==="true";_s.filter(function(st){return n.config[st]!==void 0}).forEach(function(st){n.config[st]=ys(n.config[st]||[]).map(l)}),n.isMobile=!n.config.disableMobile&&!n.config.inline&&n.config.mode==="single"&&!n.config.disable.length&&!n.config.enable&&!n.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var Ge=0;Ge<n.config.plugins.length;Ge++){var vt=n.config.plugins[Ge](n)||{};for(var We in vt)_s.indexOf(We)>-1?n.config[We]=ys(vt[We]).map(l).concat(n.config[We]):typeof G[We]>"u"&&(n.config[We]=vt[We])}G.altInputClass||(n.config.altInputClass=ft().className+" "+n.config.altInputClass),et("onParseConfig")}function ft(){return n.config.wrap?t.querySelector("[data-input]"):t}function It(){typeof n.config.locale!="object"&&typeof Cn.l10ns[n.config.locale]>"u"&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=Bn(Bn({},Cn.l10ns.default),typeof n.config.locale=="object"?n.config.locale:n.config.locale!=="default"?Cn.l10ns[n.config.locale]:void 0),pi.D="("+n.l10n.weekdays.shorthand.join("|")+")",pi.l="("+n.l10n.weekdays.longhand.join("|")+")",pi.M="("+n.l10n.months.shorthand.join("|")+")",pi.F="("+n.l10n.months.longhand.join("|")+")",pi.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")";var H=Bn(Bn({},e),JSON.parse(JSON.stringify(t.dataset||{})));H.time_24hr===void 0&&Cn.defaultConfig.time_24hr===void 0&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=jh(n),n.parseDate=ws({config:n.config,l10n:n.l10n})}function wt(H){if(typeof n.config.position=="function")return void n.config.position(n,H);if(n.calendarContainer!==void 0){et("onPreCalendarPosition");var G=H||n._positionElement,ie=Array.prototype.reduce.call(n.calendarContainer.children,function(Rn,ur){return Rn+ur.offsetHeight},0),ge=n.calendarContainer.offsetWidth,Re=n.config.position.split(" "),Be=Re[0],bt=Re.length>1?Re[1]:null,Ge=G.getBoundingClientRect(),vt=window.innerHeight-Ge.bottom,We=Be==="above"||Be!=="below"&&vt<ie&&Ge.top>ie,st=window.pageYOffset+Ge.top+(We?-ie-2:G.offsetHeight+2);if(Hn(n.calendarContainer,"arrowTop",!We),Hn(n.calendarContainer,"arrowBottom",We),!n.config.inline){var Nt=window.pageXOffset+Ge.left,Ht=!1,nn=!1;bt==="center"?(Nt-=(ge-Ge.width)/2,Ht=!0):bt==="right"&&(Nt-=ge-Ge.width,nn=!0),Hn(n.calendarContainer,"arrowLeft",!Ht&&!nn),Hn(n.calendarContainer,"arrowCenter",Ht),Hn(n.calendarContainer,"arrowRight",nn);var _e=window.document.body.offsetWidth-(window.pageXOffset+Ge.right),Ue=Nt+ge>window.document.body.offsetWidth,Yn=_e+ge>window.document.body.offsetWidth;if(Hn(n.calendarContainer,"rightMost",Ue),!n.config.static)if(n.calendarContainer.style.top=st+"px",!Ue)n.calendarContainer.style.left=Nt+"px",n.calendarContainer.style.right="auto";else if(!Yn)n.calendarContainer.style.left="auto",n.calendarContainer.style.right=_e+"px";else{var An=Ct();if(An===void 0)return;var Tn=window.document.body.offsetWidth,Xt=Math.max(0,Tn/2-ge/2),yn=".flatpickr-calendar.centerMost:before",dn=".flatpickr-calendar.centerMost:after",$n=An.cssRules.length,hn="{left:"+Ge.left+"px;right:auto;}";Hn(n.calendarContainer,"rightMost",!1),Hn(n.calendarContainer,"centerMost",!0),An.insertRule(yn+","+dn+hn,$n),n.calendarContainer.style.left=Xt+"px",n.calendarContainer.style.right="auto"}}}}function Ct(){for(var H=null,G=0;G<document.styleSheets.length;G++){var ie=document.styleSheets[G];if(ie.cssRules){try{ie.cssRules}catch{continue}H=ie;break}}return H??xt()}function xt(){var H=document.createElement("style");return document.head.appendChild(H),H.sheet}function He(){n.config.noCalendar||n.isMobile||(ee(),Vt(),J())}function Ut(){n._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(n.close,0):n.close()}function qt(H){H.preventDefault(),H.stopPropagation();var G=function(st){return st.classList&&st.classList.contains("flatpickr-day")&&!st.classList.contains("flatpickr-disabled")&&!st.classList.contains("notAllowed")},ie=Qh(ar(H),G);if(ie!==void 0){var ge=ie,Re=n.latestSelectedDateObj=new Date(ge.dateObj.getTime()),Be=(Re.getMonth()<n.currentMonth||Re.getMonth()>n.currentMonth+n.config.showMonths-1)&&n.config.mode!=="range";if(n.selectedDateElem=ge,n.config.mode==="single")n.selectedDates=[Re];else if(n.config.mode==="multiple"){var bt=_t(Re);bt?n.selectedDates.splice(parseInt(bt),1):n.selectedDates.push(Re)}else n.config.mode==="range"&&(n.selectedDates.length===2&&n.clear(!1,!1),n.latestSelectedDateObj=Re,n.selectedDates.push(Re),sr(Re,n.selectedDates[0],!0)!==0&&n.selectedDates.sort(function(st,Nt){return st.getTime()-Nt.getTime()}));if(f(),Be){var Ge=n.currentYear!==Re.getFullYear();n.currentYear=Re.getFullYear(),n.currentMonth=Re.getMonth(),Ge&&(et("onYearChange"),ee()),et("onMonthChange")}if(Vt(),J(),$t(),!Be&&n.config.mode!=="range"&&n.config.showMonths===1?U(ge):n.selectedDateElem!==void 0&&n.hourElement===void 0&&n.selectedDateElem&&n.selectedDateElem.focus(),n.hourElement!==void 0&&n.hourElement!==void 0&&n.hourElement.focus(),n.config.closeOnSelect){var vt=n.config.mode==="single"&&!n.config.enableTime,We=n.config.mode==="range"&&n.selectedDates.length===2&&!n.config.enableTime;(vt||We)&&Ut()}v()}}var Et={locale:[It,ue],showMonths:[ce,a,se],minDate:[S],maxDate:[S],positionElement:[Pe],clickOpens:[function(){n.config.clickOpens===!0?(p(n._input,"focus",n.open),p(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function K(H,G){if(H!==null&&typeof H=="object"){Object.assign(n.config,H);for(var ie in H)Et[ie]!==void 0&&Et[ie].forEach(function(ge){return ge()})}else n.config[H]=G,Et[H]!==void 0?Et[H].forEach(function(ge){return ge()}):_s.indexOf(H)>-1&&(n.config[H]=ys(G));n.redraw(),$t(!0)}function D(H,G){var ie=[];if(H instanceof Array)ie=H.map(function(ge){return n.parseDate(ge,G)});else if(H instanceof Date||typeof H=="number")ie=[n.parseDate(H,G)];else if(typeof H=="string")switch(n.config.mode){case"single":case"time":ie=[n.parseDate(H,G)];break;case"multiple":ie=H.split(n.config.conjunction).map(function(ge){return n.parseDate(ge,G)});break;case"range":ie=H.split(n.l10n.rangeSeparator).map(function(ge){return n.parseDate(ge,G)});break}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(H)));n.selectedDates=n.config.allowInvalidPreload?ie:ie.filter(function(ge){return ge instanceof Date&&Ze(ge,!1)}),n.config.mode==="range"&&n.selectedDates.sort(function(ge,Re){return ge.getTime()-Re.getTime()})}function M(H,G,ie){if(G===void 0&&(G=!1),ie===void 0&&(ie=n.config.dateFormat),H!==0&&!H||H instanceof Array&&H.length===0)return n.clear(G);D(H,ie),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),S(void 0,G),d(),n.selectedDates.length===0&&n.clear(!1),$t(G),G&&et("onChange")}function Q(H){return H.slice().map(function(G){return typeof G=="string"||typeof G=="number"||G instanceof Date?n.parseDate(G,void 0,!0):G&&typeof G=="object"&&G.from&&G.to?{from:n.parseDate(G.from,void 0),to:n.parseDate(G.to,void 0)}:G}).filter(function(G){return G})}function le(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var H=n.config.defaultDate||((n.input.nodeName==="INPUT"||n.input.nodeName==="TEXTAREA")&&n.input.placeholder&&n.input.value===n.input.placeholder?null:n.input.value);H&&D(H,n.config.dateFormat),n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()<n.now.getTime()?n.config.maxDate:n.now,n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth(),n.selectedDates.length>0&&(n.latestSelectedDateObj=n.selectedDates[0]),n.config.minTime!==void 0&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i")),n.config.maxTime!==void 0&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i")),n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}function Me(){if(n.input=ft(),!n.input){n.config.errorHandler(new Error("Invalid input element specified"));return}n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=Qt(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling)),n.config.allowInput||n._input.setAttribute("readonly","readonly"),Pe()}function Pe(){n._positionElement=n.config.positionElement||n._input}function ct(){var H=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=Qt("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=H,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr=H==="datetime-local"?"Y-m-d\\TH:i:S":H==="date"?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr)),n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d")),n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d")),n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step"))),n.input.type="hidden",n.altInput!==void 0&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch{}p(n.mobileInput,"change",function(G){n.setDate(ar(G).value,!1,n.mobileFormatStr),et("onChange"),et("onClose")})}function at(H){if(n.isOpen===!0)return n.close();n.open(H)}function et(H,G){if(n.config!==void 0){var ie=n.config[H];if(ie!==void 0&&ie.length>0)for(var ge=0;ie[ge]&&ge<ie.length;ge++)ie[ge](n.selectedDates,n.input.value,n,G);H==="onChange"&&(n.input.dispatchEvent(Ot("change")),n.input.dispatchEvent(Ot("input")))}}function Ot(H){var G=document.createEvent("Event");return G.initEvent(H,!0,!0),G}function _t(H){for(var G=0;G<n.selectedDates.length;G++){var ie=n.selectedDates[G];if(ie instanceof Date&&sr(ie,H)===0)return""+G}return!1}function Gt(H){return n.config.mode!=="range"||n.selectedDates.length<2?!1:sr(H,n.selectedDates[0])>=0&&sr(H,n.selectedDates[1])<=0}function Vt(){n.config.noCalendar||n.isMobile||!n.monthNav||(n.yearElements.forEach(function(H,G){var ie=new Date(n.currentYear,n.currentMonth,1);ie.setMonth(n.currentMonth+G),n.config.showMonths>1||n.config.monthSelectorType==="static"?n.monthElements[G].textContent=xl(ie.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=ie.getMonth().toString(),H.value=ie.getFullYear().toString()}),n._hidePrevMonthArrow=n.config.minDate!==void 0&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYear<n.config.minDate.getFullYear()),n._hideNextMonthArrow=n.config.maxDate!==void 0&&(n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth+1>n.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function Jt(H){var G=H||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map(function(ie){return n.formatDate(ie,G)}).filter(function(ie,ge,Re){return n.config.mode!=="range"||n.config.enableTime||Re.indexOf(ie)===ge}).join(n.config.mode!=="range"?n.config.conjunction:n.l10n.rangeSeparator)}function $t(H){H===void 0&&(H=!0),n.mobileInput!==void 0&&n.mobileFormatStr&&(n.mobileInput.value=n.latestSelectedDateObj!==void 0?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=Jt(n.config.dateFormat),n.altInput!==void 0&&(n.altInput.value=Jt(n.config.altFormat)),H!==!1&&et("onValueUpdate")}function un(H){var G=ar(H),ie=n.prevMonthNav.contains(G),ge=n.nextMonthNav.contains(G);ie||ge?Oe(ie?-1:1):n.yearElements.indexOf(G)>=0?G.select():G.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):G.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}function rn(H){H.preventDefault();var G=H.type==="keydown",ie=ar(H),ge=ie;n.amPM!==void 0&&ie===n.amPM&&(n.amPM.textContent=n.l10n.amPM[vr(n.amPM.textContent===n.l10n.amPM[0])]);var Re=parseFloat(ge.getAttribute("min")),Be=parseFloat(ge.getAttribute("max")),bt=parseFloat(ge.getAttribute("step")),Ge=parseInt(ge.value,10),vt=H.delta||(G?H.which===38?1:-1:0),We=Ge+bt*vt;if(typeof ge.value<"u"&&ge.value.length===2){var st=ge===n.hourElement,Nt=ge===n.minuteElement;We<Re?(We=Be+We+vr(!st)+(vr(st)&&vr(!n.amPM)),Nt&&z(void 0,-1,n.hourElement)):We>Be&&(We=ge===n.hourElement?We-Be-vr(!n.amPM):Re,Nt&&z(void 0,1,n.hourElement)),n.amPM&&st&&(bt===1?We+Ge===23:Math.abs(We-Ge)>bt)&&(n.amPM.textContent=n.l10n.amPM[vr(n.amPM.textContent===n.l10n.amPM[0])]),ge.value=Xn(We)}}return i(),n}function Qi(t,e){for(var n=Array.prototype.slice.call(t).filter(function(l){return l instanceof HTMLElement}),r=[],i=0;i<n.length;i++){var o=n[i];try{if(o.getAttribute("data-fp-omit")!==null)continue;o._flatpickr!==void 0&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=Z3(o,e||{}),r.push(o._flatpickr)}catch(l){console.error(l)}}return r.length===1?r[0]:r}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return Qi(this,t)},HTMLElement.prototype.flatpickr=function(t){return Qi([this],t)});var Cn=function(t,e){return typeof t=="string"?Qi(window.document.querySelectorAll(t),e):t instanceof Node?Qi([t],e):Qi(t,e)};Cn.defaultConfig={},Cn.l10ns={en:Bn({},Io),default:Bn({},Io)},Cn.localize=function(t){Cn.l10ns.default=Bn(Bn({},Cn.l10ns.default),t)},Cn.setDefaults=function(t){Cn.defaultConfig=Bn(Bn({},Cn.defaultConfig),t)},Cn.parseDate=ws({}),Cn.formatDate=jh({}),Cn.compareDates=sr,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(t){return Qi(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof t=="string"?parseInt(t,10):t))},typeof window<"u"&&(window.flatpickr=Cn);function eE(t){yt(t,"svelte-43zmv0",`.flatpickr-calendar{--fp-day-width:30px;animation:none;background:var(--zl-popup-background-color);border-radius:var(--zl-default-border-radius);border:1px solid var(--zl-default-border-color);box-shadow:var(--zl-box-shadow-xl);box-sizing:border-box;direction:ltr;display:none;font-family:ui-sans-serif,
152
+ system-ui,
153
+ -apple-system,
154
+ BlinkMacSystemFont,
155
+ 'Segoe UI',
156
+ Roboto,
157
+ 'Helvetica Neue',
158
+ Arial,
159
+ 'Noto Sans',
160
+ sans-serif,
161
+ 'Apple Color Emoji',
162
+ 'Segoe UI Emoji',
163
+ 'Segoe UI Symbol',
164
+ 'Noto Color Emoji';font-size:14px;line-height:24px;opacity:0;padding:var(--zl-spacing-md);position:absolute;text-align:center;touch-action:manipulation;visibility:hidden}.flatpickr-calendar.open,.flatpickr-calendar.inline{max-height:640px;opacity:1;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{animation:fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{display:block;z-index:999}.flatpickr-calendar.multiMonth
165
+ .flatpickr-days
166
+ .dayContainer:nth-child(n) +:global( 1)
167
+ .flatpickr-day.inRange:nth-child(7n) +:global( 7){box-shadow:none !important}.flatpickr-calendar.multiMonth
168
+ .flatpickr-days
169
+ .dayContainer:nth-child(n) +:global( 2)
170
+ .flatpickr-day.inRange:nth-child(7n) +:global( 1){box-shadow:-2px 0 0 #e6e6e6,
171
+ 5px 0 0 #e6e6e6}.flatpickr-calendar .hasWeeks .dayContainer,.flatpickr-calendar .hasTime .dayContainer{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{border-top:1px solid #e6e6e6;height:40px}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:before,.flatpickr-calendar:after{border:solid transparent;content:'';display:block;height:0;left:22px;pointer-events:none;position:absolute;width:0}.flatpickr-calendar.rightMost:before,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.arrowRight:after{left:auto;right:22px}.flatpickr-calendar.arrowCenter:before,.flatpickr-calendar.arrowCenter:after{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:before,.flatpickr-calendar.arrowTop:after{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:var(--zl-default-border-color)}.flatpickr-calendar.arrowTop:after{border-bottom-color:var(--zl-popup-background-color)}.flatpickr-calendar.arrowBottom:before,.flatpickr-calendar.arrowBottom:after{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:var(--zl-default-border-color)}.flatpickr-calendar.arrowBottom:after{border-top-color:var(--zl-popup-background-color)}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{align-items:center;display:flex;width:calc((var(--fp-day-width) * 7) + (2 * var(--zl-spacing-md)))}.flatpickr-months .flatpickr-month{background:transparent;color:var(--zl-popup-color);fill:var(--zl-popup-color);flex:1;line-height:1;overflow:hidden;text-align:center;-webkit-user-select:none;user-select:none}.flatpickr-months .flatpickr-prev-month,.flatpickr-months .flatpickr-next-month{color:var(--zl-popup-color);cursor:pointer;fill:var(--zl-popup-color);padding:0 10px;text-decoration:none;top:0;-webkit-user-select:none;user-select:none}.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,.flatpickr-months .flatpickr-next-month.flatpickr-disabled{opacity:0.5;pointer-events:none}.flatpickr-months .flatpickr-prev-month i,.flatpickr-months .flatpickr-next-month i{position:relative}.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,.flatpickr-months .flatpickr-next-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,.flatpickr-months .flatpickr-next-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-prev-month:hover,.flatpickr-months .flatpickr-next-month:hover{color:var(--zl-popup-color)}.flatpickr-months .flatpickr-prev-month:hover svg,.flatpickr-months .flatpickr-next-month:hover svg{color:var(--zl-popup-color)}.flatpickr-months .flatpickr-prev-month svg,.flatpickr-months .flatpickr-next-month svg{height:14px;width:14px}.flatpickr-months .flatpickr-prev-month svg path,.flatpickr-months .flatpickr-next-month svg path{fill:inherit;transition:fill 0.1s}.numInputWrapper{height:auto;position:relative}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-outer-spin-button,.numInputWrapper input::-webkit-inner-spin-button{margin:0;display:none}.numInputWrapper span{border:1px solid rgba(57, 57, 57, 0.15);box-sizing:border-box;cursor:pointer;height:50%;line-height:50%;opacity:0;padding:0 4px 0 2px;position:absolute;right:0;width:14px}.numInputWrapper span:after{content:'';display:block;position:absolute}.numInputWrapper span.arrowUp{border-bottom:0;top:0}.numInputWrapper span.arrowUp:after{border-bottom:4px solid rgba(57, 57, 57, 0.6);border-left:4px solid transparent;border-right:4px solid transparent;top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57, 57, 57, 0.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0, 0, 0, 0.5)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{align-items:center;color:inherit;display:flex;font-weight:500;line-height:1;line-height:inherit;text-align:center;transform:translate3d(0, 0, 0)}.flatpickr-current-month span.cur-month{color:inherit;display:inline-block;font-family:inherit;font-weight:700;margin-left:0.5ch;padding:0}.flatpickr-current-month .numInputWrapper{width:7ch\\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:var(--zl-popup-color)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:var(--zl-popup-color)}.flatpickr-current-month input.cur-year{-webkit-appearance:textfield;appearance:textfield;background:transparent;border-radius:0;border:0;box-sizing:border-box;color:inherit;cursor:text;display:inline-block;font-family:inherit;font-size:inherit;font-weight:500;height:auto;line-height:inherit;margin:0;padding:0 0 0 0.5ch;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{background:transparent;color:var(--zl-popup-color);font-size:100%;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{-webkit-appearance:menulist;appearance:menulist;background:transparent;border-radius:0;border:none;box-sizing:border-box;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:500;height:auto;line-height:inherit;margin:-1px 0 0 0;outline:none;padding:0 0 0 0.5ch;position:relative;vertical-align:initial;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:focus,.flatpickr-current-month .flatpickr-monthDropdown-months:active{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{align-items:center;background:transparent;display:flex;height:28px;overflow:hidden;text-align:center;width:100%}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:flex;flex:1}span.flatpickr-weekday{background:transparent;cursor:default;display:block;flex:1;font-size:90%;font-weight:var(--zl-font-weight-bold);line-height:1;margin:0;text-align:center}.dayContainer,.flatpickr-weeks{padding:1px 0 0 0}.flatpickr-days{position:relative;overflow:hidden;display:flex;align-items:flex-start;width:calc((var(--fp-day-width) * 7) + (2 * var(--zl-spacing-md)))}.flatpickr-days:focus{outline:0}.dayContainer{box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:space-around;max-width:calc((var(--fp-day-width) * 7) + (2 * var(--zl-spacing-md)));min-width:calc((var(--fp-day-width) * 7) + (2 * var(--zl-spacing-md)));opacity:1;outline:0;padding:0;text-align:left;transform:translate3d(0, 0, 0);width:calc((var(--fp-day-width) * 7) + (2 * var(--zl-spacing-md)))}.flatpickr-day{background:none;border-radius:var(--zl-border-radius-full);box-sizing:border-box;color:var(--zl-popup-color);cursor:pointer;display:inline-block;flex-basis:14.2857143%;font-weight:400;height:var(--fp-day-width);justify-content:center;line-height:var(--fp-day-width);margin:0;max-width:var(--fp-day-width);position:relative;text-align:center;width:14.2857143%}.flatpickr-day.inRange,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.today.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day:hover,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.nextMonthDay:hover,.flatpickr-day:focus,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.nextMonthDay:focus{background:var(--zl-color-primary-base);border-color:var(--zl-color-primary-base);color:var(--zl-color-primary-text);cursor:pointer;outline:0;opacity:1}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:hover,.flatpickr-day.today:focus{background:var(--zl-color-primary-base);border-color:var(--zl-color-primary-base);color:var(--zl-color-primary-text)}.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange,.flatpickr-day.selected.inRange,.flatpickr-day.startRange.inRange,.flatpickr-day.endRange.inRange,.flatpickr-day.selected:focus,.flatpickr-day.startRange:focus,.flatpickr-day.endRange:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange:hover,.flatpickr-day.endRange:hover,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.endRange.nextMonthDay{background:var(--zl-color-primary-base);border-color:var(--zl-color-primary-base);box-shadow:none;color:var(--zl-color-primary-text);opacity:1}.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange,.flatpickr-day.endRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange,.flatpickr-day.endRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n) +:global( 1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n) +:global( 1)),.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n) +:global( 1)){box-shadow:-10px 0 0 #569ff7}.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange,.flatpickr-day.endRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;box-shadow:-5px 0 0 #e6e6e6,
172
+ 5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.prevMonthDay,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.notAllowed.nextMonthDay{background:transparent;border-color:transparent;cursor:default;opacity:0.5}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{cursor:not-allowed;pointer-events:none;opacity:0.1}.flatpickr-day.week.selected{border-radius:0}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px}.flatpickr-weekwrapper .flatpickr-weekday{float:none;line-height:28px;width:100%}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{background:transparent;border:none;cursor:default;display:block;max-width:none;width:100%}.flatpickr-innerContainer{box-sizing:border-box;display:flex;overflow:hidden}.flatpickr-rContainer{box-sizing:border-box;display:inline-block;padding:0}.flatpickr-time{box-sizing:border-box;display:block;display:flex;height:0;line-height:40px;max-height:40px;outline:0;overflow:hidden;text-align:center}.flatpickr-time:after{clear:both;content:'';display:table}.flatpickr-time .numInputWrapper{flex:1;float:left;height:40px;width:40%}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{-webkit-appearance:textfield;appearance:textfield;background:transparent;border-radius:0;border:0;box-shadow:none;box-sizing:border-box;color:#393939;font-size:14px;height:inherit;line-height:inherit;margin:0;padding:0;position:relative;text-align:center}.flatpickr-time input.flatpickr-hour{font-weight:bold}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{border:0;outline:0}.flatpickr-time .flatpickr-time-separator,.flatpickr-time .flatpickr-am-pm{align-self:center;color:#393939;float:left;font-weight:bold;height:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;width:2%}.flatpickr-time .flatpickr-am-pm{cursor:pointer;font-weight:400;outline:0;text-align:center;width:18%}.flatpickr-time input:hover,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time .flatpickr-am-pm:focus{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@keyframes fpFadeInDown{from{opacity:0;transform:translate3d(0, -20px, 0)}to{opacity:1;transform:translate3d(0, 0, 0)}}.flatpickr-wrapper{width:100%}`)}function tE(t){let e,n=[t[1]],r={};for(let i=0;i<n.length;i+=1)r=ve(r,n[i]);return{c(){e=W("input"),En(e,r)},m(i,o){L(i,e,o),e.autofocus&&e.focus(),t[11](e)},p(i,o){En(e,r=ut(n,[o&2&&i[1]]))},d(i){i&&E(e),t[11](null)}}}function nE(t){let e;const n=t[10].default,r=ht(n,t,t[9],null),i=r||tE(t);return{c(){i&&i.c()},m(o,l){i&&i.m(o,l),e=!0},p(o,[l]){r?r.p&&(!e||l&512)&&gt(r,n,o,o[9],e?mt(n,o[9],l,null):pt(o[9]),null):i&&i.p&&(!e||l&3)&&i.p(o,e?l:-1)},i(o){e||(g(i,o),e=!0)},o(o){b(i,o),e=!1},d(o){i&&i.d(o)}}}function rE(t){return t==null||typeof t=="string"?t:new Date(t.getTime())}function iE(t){return t.charAt(2).toLowerCase()+t.substring(3)}function Zh(t,e){var r;return(((r=t==null?void 0:t.config)==null?void 0:r.mode)??"single")==="single"?e[0]:e}function em(t,e){return!!(t==e||t instanceof Date&&e instanceof Date&&t.valueOf()===e.valueOf()||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,r)=>n===e[r]))}function oE(t,e,n){const r=["value","formattedValue","element","dateFormat","options","input","flatpickr"];let i=Dn(e,r),{$$slots:o={},$$scope:l}=e;const a=new Set(["onChange","onOpen","onClose","onMonthChange","onYearChange","onReady","onValueUpdate","onDayCreate"]);let{value:s=void 0,formattedValue:u="",element:c=void 0,dateFormat:f=void 0}=e,{options:d={}}=e,m=!1,{input:h=void 0,flatpickr:p=void 0}=e;ir(()=>{const z=c??h,O=w(d);O.onReady.push((U,A,P)=>{s===void 0&&S(U,A,P),rl().then(()=>{p.mobileInput&&p.mobileInput.addEventListener("focus",()=>{try{p.mobileInput.showPicker()}catch(Y){console.log(Y,"ignoring error when trying to show date picker")}}),n(8,m=!0)})});const N=Object.assign(O,c?{wrap:!0}:{});return n(3,p=Cn(z,N)),()=>{p.destroy()}});const v=Bt();function w(z={}){z=Object.assign({},z);for(const O of a){const N=(U,A,P)=>{v(iE(O),[U,A,P])};O in z?(Array.isArray(z[O])||(z[O]=[z[O]]),z[O].push(N)):z[O]=[N]}return z.onChange&&!z.onChange.includes(S)&&z.onChange.push(S),z}function S(z,O,N){const U=Zh(N,z);!em(s,U)&&(s||U)&&n(2,s=rE(U)),n(4,u=O)}function y(z){xe[z?"unshift":"push"](()=>{h=z,n(0,h)})}return t.$$set=z=>{e=ve(ve({},e),je(z)),n(1,i=Dn(e,r)),"value"in z&&n(2,s=z.value),"formattedValue"in z&&n(4,u=z.formattedValue),"element"in z&&n(5,c=z.element),"dateFormat"in z&&n(6,f=z.dateFormat),"options"in z&&n(7,d=z.options),"input"in z&&n(0,h=z.input),"flatpickr"in z&&n(3,p=z.flatpickr),"$$scope"in z&&n(9,l=z.$$scope)},t.$$.update=()=>{if(t.$$.dirty&332&&p&&m&&(em(s,Zh(p,p.selectedDates))||p.setDate(s,!0,f)),t.$$.dirty&392&&p&&m)for(const[z,O]of Object.entries(w(d)))p.set(z,O)},[h,i,s,p,u,c,f,d,m,l,o,y]}class tm extends Ne{constructor(e){super(),Ee(this,e,oE,nE,Ae,{value:2,formattedValue:4,element:5,dateFormat:6,options:7,input:0,flatpickr:3},eE)}get value(){return this.$$.ctx[2]}set value(e){this.$$set({value:e}),C()}get formattedValue(){return this.$$.ctx[4]}set formattedValue(e){this.$$set({formattedValue:e}),C()}get element(){return this.$$.ctx[5]}set element(e){this.$$set({element:e}),C()}get dateFormat(){return this.$$.ctx[6]}set dateFormat(e){this.$$set({dateFormat:e}),C()}get options(){return this.$$.ctx[7]}set options(e){this.$$set({options:e}),C()}get input(){return this.$$.ctx[0]}set input(e){this.$$set({input:e}),C()}get flatpickr(){return this.$$.ctx[3]}set flatpickr(e){this.$$set({flatpickr:e}),C()}}Le(tm,{value:{},formattedValue:{},element:{},dateFormat:{},options:{},input:{},flatpickr:{}},["default"],[],!0);var zs={exports:{}};(function(t,e){(function(n,r){r(e)})(bT,function(n){var r=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},i={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};r.l10ns.de=i;var o=r.l10ns;n.German=i,n.default=o,Object.defineProperty(n,"__esModule",{value:!0})})})(zs,zs.exports);var lE=zs.exports;function aE(t){yt(t,"svelte-14n94n4",".error.svelte-14n94n4{color:var(--zl-color-error-base)}")}const sE=t=>({}),nm=t=>({});function rm(t){let e,n,r,i,o;function l(c){t[24](c)}function a(c){t[25](c)}function s(c){t[26](c)}let u={class:"zl-input",part:"input",options:t[15],id:t[3],name:t[4],disabled:t[2],placeholder:t[1],required:t[7]};return t[0]!==void 0&&(u.value=t[0]),t[12]!==void 0&&(u.formattedValue=t[12]),t[13]!==void 0&&(u.flatpickr=t[13]),e=new tm({props:u}),xe.push(()=>Je(e,"value",l)),xe.push(()=>Je(e,"formattedValue",a)),xe.push(()=>Je(e,"flatpickr",s)),e.$on("change",t[16]),e.$on("open",t[17]),e.$on("close",t[18]),{c(){F(e.$$.fragment)},m(c,f){$(e,c,f),o=!0},p(c,f){const d={};f&32768&&(d.options=c[15]),f&8&&(d.id=c[3]),f&16&&(d.name=c[4]),f&4&&(d.disabled=c[2]),f&2&&(d.placeholder=c[1]),f&128&&(d.required=c[7]),!n&&f&1&&(n=!0,d.value=c[0],Ve(()=>n=!1)),!r&&f&4096&&(r=!0,d.formattedValue=c[12],Ve(()=>r=!1)),!i&&f&8192&&(i=!0,d.flatpickr=c[13],Ve(()=>i=!1)),e.$set(d)},i(c){o||(g(e.$$.fragment,c),o=!0)},o(c){b(e.$$.fragment,c),o=!1},d(c){R(e,c)}}}function uE(t){let e,n,r=t[15]&&rm(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[15]?r?(r.p(i,o),o&32768&&g(r,1)):(r=rm(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function cE(t){let e;return{c(){e=Ie(t[5])},m(n,r){L(n,e,r)},p(n,r){r&32&&Ke(e,n[5])},d(n){n&&E(e)}}}function fE(t){let e;return{c(){e=Ie(t[10])},m(n,r){L(n,e,r)},p(n,r){r&1024&&Ke(e,n[10])},d(n){n&&E(e)}}}function dE(t){let e;return{c(){e=W("span"),e.textContent=`${gE}`,x(e,"aria-hidden","true")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function hE(t){let e,n,r;const i=t[22].label,o=ht(i,t,t[27],nm),l=o||cE(t);function a(c,f){return c[7]?dE:fE}let s=a(t),u=s(t);return{c(){e=W("label"),l&&l.c(),n=j(),u.c(),x(e,"for",t[3]),x(e,"part","label"),x(e,"slot","label"),x(e,"class","svelte-14n94n4"),ke(e,"disabled",t[2]),ke(e,"zlc-invisible",t[6]),ke(e,"error",t[8])},m(c,f){L(c,e,f),l&&l.m(e,null),V(e,n),u.m(e,null),t[23](e),r=!0},p(c,f){o?o.p&&(!r||f&134217728)&&gt(o,i,c,c[27],r?mt(i,c[27],f,sE):pt(c[27]),nm):l&&l.p&&(!r||f&32)&&l.p(c,r?f:-1),s===(s=a(c))&&u?u.p(c,f):(u.d(1),u=s(c),u&&(u.c(),u.m(e,null))),(!r||f&8)&&x(e,"for",c[3]),(!r||f&4)&&ke(e,"disabled",c[2]),(!r||f&64)&&ke(e,"zlc-invisible",c[6]),(!r||f&256)&&ke(e,"error",c[8])},i(c){r||(g(l,c),r=!0)},o(c){b(l,c),r=!1},d(c){c&&E(e),l&&l.d(c),u.d(),t[23](null)}}}function mE(t){let e,n;return e=new si({props:{hasError:t[8],layout:t[11],errorText:t[9],$$slots:{label:[hE],default:[uE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&256&&(o.hasError=r[8]),i&2048&&(o.layout=r[11]),i&512&&(o.errorText=r[9]),i&134280703&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}let gE="*";function im(t,e){return t?t.matches(e)?t:im(t.parentElement,e):null}function Kr(t,e,n){if(n===!0)return t.classList.add(e);t.classList.remove(e)}function pE(){for(var t=null,e=0;e<document.styleSheets.length;e++){var n=document.styleSheets[e];if(n.cssRules){try{n.cssRules}catch{continue}t=n;break}}return t??bE()}function bE(){var t=document.createElement("style");return document.head.appendChild(t),t.sheet}function vE(t,e,n){let{$$slots:r={},$$scope:i}=e,{placeholder:o=" "}=e,{disabled:l=!1}=e,{enableTime:a=!1}=e,{id:s="zl-"+Ni(10)}=e,{name:u=void 0}=e,{label:c=""}=e,{hideLabel:f=!1}=e,{required:d=!1}=e,{hasError:m=!1}=e,{errorText:h=""}=e,{minDate:p="today"}=e,{optionalText:v=""}=e,{layout:w=null}=e,{value:S=void 0}=e,y,z,O=null,N=null;ir(()=>{var he;n(21,N=c?(he=im(O,"zl-module"))==null?void 0:he.querySelector(".datepicker-popup-portal"):null)});let U;const A=Bt(),P=he=>{const[,de]=he.detail;A("change",de)};function Y(he){n(21,N.style.display="block",N)}function B(he){n(21,N.style.display="none",N)}function J(he){xe[he?"unshift":"push"](()=>{O=he,n(14,O)})}function ee(he){S=he,n(0,S)}function X(he){y=he,n(12,y)}function ce(he){z=he,n(13,z)}return t.$$set=he=>{"placeholder"in he&&n(1,o=he.placeholder),"disabled"in he&&n(2,l=he.disabled),"enableTime"in he&&n(19,a=he.enableTime),"id"in he&&n(3,s=he.id),"name"in he&&n(4,u=he.name),"label"in he&&n(5,c=he.label),"hideLabel"in he&&n(6,f=he.hideLabel),"required"in he&&n(7,d=he.required),"hasError"in he&&n(8,m=he.hasError),"errorText"in he&&n(9,h=he.errorText),"minDate"in he&&n(20,p=he.minDate),"optionalText"in he&&n(10,v=he.optionalText),"layout"in he&&n(11,w=he.layout),"value"in he&&n(0,S=he.value),"$$scope"in he&&n(27,i=he.$$scope)},t.$$.update=()=>{t.$$.dirty&3670016&&n(15,U=N?{locale:lE.German,altFormat:a?"d.m.Y H:i":"d.m.Y",dateFormat:a?"Y-m-d H:i":"Y-m-d",altInput:!0,minDate:p||void 0,enableTime:a,allowInput:!0,appendTo:N,position(he,de){var se=de||he._positionElement,ue=Array.prototype.reduce.call(he.calendarContainer.children,function(xt,He){return xt+He.offsetHeight},0),fe=he.calendarContainer.offsetWidth,Oe="auto".split(" "),me=Oe[0],we=Oe.length>1?Oe[1]:null,Fe=se.getBoundingClientRect(),pe=window.innerHeight-Fe.bottom,Se=me==="above"||me!=="below"&&pe<ue&&Fe.top>ue,De=Fe.top+(Se?-ue-Fe.height-5:se.offsetHeight+2);if(Kr(he.calendarContainer,"arrowTop",!Se),Kr(he.calendarContainer,"arrowBottom",Se),!he.config.inline){var Ze=window.pageXOffset+Fe.left,Qe=!1,dt=!1;we==="center"?(Ze-=(fe-Fe.width)/2,Qe=!0):we==="right"&&(Ze-=fe-Fe.width,dt=!0),Kr(he.calendarContainer,"arrowLeft",!Qe&&!dt),Kr(he.calendarContainer,"arrowCenter",Qe),Kr(he.calendarContainer,"arrowRight",dt);var Ce=window.document.body.offsetWidth-(window.pageXOffset+Fe.right),St=Ze+fe>window.document.body.offsetWidth,it=Ce+fe>window.document.body.offsetWidth;if(Kr(he.calendarContainer,"rightMost",St),!he.config.static)if(he.calendarContainer.style.top=De+"px",!St)he.calendarContainer.style.left=Ze+"px",he.calendarContainer.style.right="auto";else if(!it)he.calendarContainer.style.left="auto",he.calendarContainer.style.right=Ce+"px";else{var Lt=pE();if(Lt===void 0)return;var Te=window.document.body.offsetWidth,ot=Math.max(0,Te/2-fe/2),ft=".flatpickr-calendar.centerMost:before",It=".flatpickr-calendar.centerMost:after",wt=Lt.cssRules.length,Ct="{left:"+Fe.left+"px;right:auto;}";Kr(he.calendarContainer,"rightMost",!1),Kr(he.calendarContainer,"centerMost",!0),Lt.insertRule(ft+","+It+Ct,wt),he.calendarContainer.style.left=ot+"px",he.calendarContainer.style.right="auto"}}},static:!1}:null)},[S,o,l,s,u,c,f,d,m,h,v,w,y,z,O,U,P,Y,B,a,p,N,r,J,ee,X,ce,i]}class Ul extends Ne{constructor(e){super(),Ee(this,e,vE,mE,Ae,{placeholder:1,disabled:2,enableTime:19,id:3,name:4,label:5,hideLabel:6,required:7,hasError:8,errorText:9,minDate:20,optionalText:10,layout:11,value:0},aE)}get placeholder(){return this.$$.ctx[1]}set placeholder(e){this.$$set({placeholder:e}),C()}get disabled(){return this.$$.ctx[2]}set disabled(e){this.$$set({disabled:e}),C()}get enableTime(){return this.$$.ctx[19]}set enableTime(e){this.$$set({enableTime:e}),C()}get id(){return this.$$.ctx[3]}set id(e){this.$$set({id:e}),C()}get name(){return this.$$.ctx[4]}set name(e){this.$$set({name:e}),C()}get label(){return this.$$.ctx[5]}set label(e){this.$$set({label:e}),C()}get hideLabel(){return this.$$.ctx[6]}set hideLabel(e){this.$$set({hideLabel:e}),C()}get required(){return this.$$.ctx[7]}set required(e){this.$$set({required:e}),C()}get hasError(){return this.$$.ctx[8]}set hasError(e){this.$$set({hasError:e}),C()}get errorText(){return this.$$.ctx[9]}set errorText(e){this.$$set({errorText:e}),C()}get minDate(){return this.$$.ctx[20]}set minDate(e){this.$$set({minDate:e}),C()}get optionalText(){return this.$$.ctx[10]}set optionalText(e){this.$$set({optionalText:e}),C()}get layout(){return this.$$.ctx[11]}set layout(e){this.$$set({layout:e}),C()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),C()}}Le(Ul,{placeholder:{},disabled:{type:"Boolean"},enableTime:{type:"Boolean"},id:{},name:{},label:{},hideLabel:{type:"Boolean"},required:{type:"Boolean"},hasError:{type:"Boolean"},errorText:{},minDate:{},optionalText:{},layout:{},value:{}},["label"],[],!0);function _E(t){let e,n;return e=new Mt({props:{placeholder:t[0],label:t[1],type:"number",dropdownCombo:!0,selectItems:t[4],selected:t[2],value:t[3]}}),e.$on("input",t[5]),e.$on("dropdownchange",t[6]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.placeholder=r[0]),i&2&&(o.label=r[1]),i&16&&(o.selectItems=r[4]),i&4&&(o.selected=r[2]),i&8&&(o.value=r[3]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function yE(t,e,n){let{placeholder:r=""}=e,{label:i=""}=e,{absCurrency:o=""}=e,{value:l=null}=e,a=[];function s(p){n(4,a=[{id:"abs",value:p},{id:"rel",value:"%"}])}let u="abs",c=null;function f(p,v){n(3,c=p),n(2,u=v);let w=null;c&&u&&(w={value:c,mode:u}),JSON.stringify(l)!=JSON.stringify(w)&&n(7,l=w)}function d(p){const v=p.detail;f(v?parseFloat(v):null,u)}function m(p){f(c,p.detail)}function h(p){n(2,u=p==null?void 0:p.mode),n(3,c=p==null?void 0:p.value)}return t.$$set=p=>{"placeholder"in p&&n(0,r=p.placeholder),"label"in p&&n(1,i=p.label),"absCurrency"in p&&n(8,o=p.absCurrency),"value"in p&&n(7,l=p.value)},t.$$.update=()=>{t.$$.dirty&128&&h(l),t.$$.dirty&256&&s(o),t.$$.dirty&12&&f(c,u)},[r,i,u,c,a,d,m,l,o]}class Cs extends Ne{constructor(e){super(),Ee(this,e,yE,_E,Ae,{placeholder:0,label:1,absCurrency:8,value:7})}get placeholder(){return this.$$.ctx[0]}set placeholder(e){this.$$set({placeholder:e}),C()}get label(){return this.$$.ctx[1]}set label(e){this.$$set({label:e}),C()}get absCurrency(){return this.$$.ctx[8]}set absCurrency(e){this.$$set({absCurrency:e}),C()}get value(){return this.$$.ctx[7]}set value(e){this.$$set({value:e}),C()}}Le(Cs,{placeholder:{},label:{},absCurrency:{},value:{}},[],[],!0);function kE(t){yt(t,"svelte-bv7o1o",".costs-info-link.svelte-bv7o1o{color:var(--zl-default-link-color);display:block;font-size:var(--zl-font-size-xs);margin-bottom:var(--zl-spacing-xl);margin-top:var(--zl-spacing-xl);text-align:center;text-underline-offset:var(--zl-link-underline-offset)}")}function wE(t){let e,n;return e=new zn({props:{error:t[11]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&2048&&(o.error=r[11]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function SE(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function TE(t){var r;let e,n;return e=new kl({props:{height:"20px",brokerName:(r=t[12])==null?void 0:r.brokerName}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&4096&&(l.brokerName=(a=i[12])==null?void 0:a.brokerName),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function om(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function lm(t){var J;let e,n,r,i,o,l,a,s,u,c,f,d,m,h;const p=[CE,zE],v=[];function w(ee,X){return ee[1].allowsChangeSize?0:1}n=w(t),r=v[n]=p[n](t);let S=t[1].security&&am(t),y=((J=t[14])==null?void 0:J.length)&&um(t),z=(t[19]=="limit"||t[19]=="ocoStopMarket"||t[19]=="ocoStopLimit")&&cm(t),O=(t[19]=="stopMarket"||t[19]=="stopLimit"||t[19]=="ocoStopMarket"||t[19]=="ocoStopLimit"||t[19]=="trailingStopMarket"||t[19]=="trailingStopLimit")&&fm(t),N=(t[19]=="stopLimit"||t[19]=="ocoStopLimit")&&dm(t),U=t[1].allowsChangeTakeProfit&&hm(t),A=t[1].allowsChangeStopLoss&&mm(t),P=(t[19]=="trailingStopMarket"||t[19]=="trailingStopLimit")&&gm(t),Y=t[19]=="trailingStopLimit"&&pm(t),B=t[27]&&bm(t);return{c(){e=W("div"),r.c(),i=j(),S&&S.c(),o=j(),y&&y.c(),l=j(),z&&z.c(),a=j(),O&&O.c(),s=j(),N&&N.c(),u=j(),U&&U.c(),c=j(),A&&A.c(),f=j(),P&&P.c(),d=j(),Y&&Y.c(),m=j(),B&&B.c(),x(e,"class","zlc-gap-y-form")},m(ee,X){L(ee,e,X),v[n].m(e,null),V(e,i),S&&S.m(e,null),V(e,o),y&&y.m(e,null),V(e,l),z&&z.m(e,null),V(e,a),O&&O.m(e,null),V(e,s),N&&N.m(e,null),V(e,u),U&&U.m(e,null),V(e,c),A&&A.m(e,null),V(e,f),P&&P.m(e,null),V(e,d),Y&&Y.m(e,null),V(e,m),B&&B.m(e,null),h=!0},p(ee,X){var he;let ce=n;n=w(ee),n===ce?v[n].p(ee,X):(ne(),b(v[ce],1,1,()=>{v[ce]=null}),re(),r=v[n],r?r.p(ee,X):(r=v[n]=p[n](ee),r.c()),g(r,1),r.m(e,i)),ee[1].security?S?(S.p(ee,X),X[0]&2&&g(S,1)):(S=am(ee),S.c(),g(S,1),S.m(e,o)):S&&(ne(),b(S,1,1,()=>{S=null}),re()),(he=ee[14])!=null&&he.length?y?(y.p(ee,X),X[0]&16384&&g(y,1)):(y=um(ee),y.c(),g(y,1),y.m(e,l)):y&&(ne(),b(y,1,1,()=>{y=null}),re()),ee[19]=="limit"||ee[19]=="ocoStopMarket"||ee[19]=="ocoStopLimit"?z?(z.p(ee,X),X[0]&524288&&g(z,1)):(z=cm(ee),z.c(),g(z,1),z.m(e,a)):z&&(ne(),b(z,1,1,()=>{z=null}),re()),ee[19]=="stopMarket"||ee[19]=="stopLimit"||ee[19]=="ocoStopMarket"||ee[19]=="ocoStopLimit"||ee[19]=="trailingStopMarket"||ee[19]=="trailingStopLimit"?O?(O.p(ee,X),X[0]&524288&&g(O,1)):(O=fm(ee),O.c(),g(O,1),O.m(e,s)):O&&(ne(),b(O,1,1,()=>{O=null}),re()),ee[19]=="stopLimit"||ee[19]=="ocoStopLimit"?N?(N.p(ee,X),X[0]&524288&&g(N,1)):(N=dm(ee),N.c(),g(N,1),N.m(e,u)):N&&(ne(),b(N,1,1,()=>{N=null}),re()),ee[1].allowsChangeTakeProfit?U?(U.p(ee,X),X[0]&2&&g(U,1)):(U=hm(ee),U.c(),g(U,1),U.m(e,c)):U&&(ne(),b(U,1,1,()=>{U=null}),re()),ee[1].allowsChangeStopLoss?A?(A.p(ee,X),X[0]&2&&g(A,1)):(A=mm(ee),A.c(),g(A,1),A.m(e,f)):A&&(ne(),b(A,1,1,()=>{A=null}),re()),ee[19]=="trailingStopMarket"||ee[19]=="trailingStopLimit"?P?(P.p(ee,X),X[0]&524288&&g(P,1)):(P=gm(ee),P.c(),g(P,1),P.m(e,d)):P&&(ne(),b(P,1,1,()=>{P=null}),re()),ee[19]=="trailingStopLimit"?Y?(Y.p(ee,X),X[0]&524288&&g(Y,1)):(Y=pm(ee),Y.c(),g(Y,1),Y.m(e,m)):Y&&(ne(),b(Y,1,1,()=>{Y=null}),re()),ee[27]?B?(B.p(ee,X),X[0]&134217728&&g(B,1)):(B=bm(ee),B.c(),g(B,1),B.m(e,null)):B&&(ne(),b(B,1,1,()=>{B=null}),re())},i(ee){h||(g(r),g(S),g(y),g(z),g(O),g(N),g(U),g(A),g(P),g(Y),g(B),h=!0)},o(ee){b(r),b(S),b(y),b(z),b(O),b(N),b(U),b(A),b(P),b(Y),b(B),h=!1},d(ee){ee&&E(e),v[n].d(),S&&S.d(),y&&y.d(),z&&z.d(),O&&O.d(),N&&N.d(),U&&U.d(),A&&A.d(),P&&P.d(),Y&&Y.d(),B&&B.d()}}}function zE(t){let e,n;return e=new si({props:{layout:t[15],$$slots:{label:[IE],default:[OE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&32768&&(o.layout=r[15]),i[0]&268500992|i[1]&16777216&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function CE(t){let e,n,r;function i(l){t[36](l)}let o={label:t[28],type:"number",layout:t[15]};return t[16]!==void 0&&(o.value=t[16]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&268435456&&(s.label=l[28]),a[0]&32768&&(s.layout=l[15]),!n&&a[0]&65536&&(n=!0,s.value=l[16],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function OE(t){let e;return{c(){e=Ie(t[16])},m(n,r){L(n,e,r)},p(n,r){r[0]&65536&&Ke(e,n[16])},d(n){n&&E(e)}}}function IE(t){let e,n;return{c(){e=W("span"),n=Ie(t[28]),x(e,"slot","label")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i[0]&268435456&&Ke(n,r[28])},d(r){r&&E(e)}}}function am(t){let e,n;return e=new si({props:{layout:t[15],$$slots:{label:[DE],default:[AE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&32768&&(o.layout=r[15]),i[0]&2|i[1]&16777216&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function sm(t){let e,n=t[1].security.isin+"",r,i;return{c(){e=Ie("(ISIN "),r=Ie(n),i=Ie(")")},m(o,l){L(o,e,l),L(o,r,l),L(o,i,l)},p(o,l){l[0]&2&&n!==(n=o[1].security.isin+"")&&Ke(r,n)},d(o){o&&(E(e),E(r),E(i))}}}function AE(t){var l;let e=((l=t[1].security)==null?void 0:l.name)+"",n,r,i,o=t[1].security.isin&&sm(t);return{c(){n=Ie(e),r=j(),o&&o.c(),i=Xe()},m(a,s){L(a,n,s),L(a,r,s),o&&o.m(a,s),L(a,i,s)},p(a,s){var u;s[0]&2&&e!==(e=((u=a[1].security)==null?void 0:u.name)+"")&&Ke(n,e),a[1].security.isin?o?o.p(a,s):(o=sm(a),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},d(a){a&&(E(n),E(r),E(i)),o&&o.d(a)}}}function DE(t){let e;return{c(){e=W("span"),e.textContent="Instrument",x(e,"slot","label")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function um(t){let e,n,r;function i(l){t[37](l)}let o={label:t[31]("Commons.OrderModel"),layout:t[15],items:t[14]};return t[19]!==void 0&&(o.selected=t[19]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),a[0]&16384&&(s.items=l[14]),!n&&a[0]&524288&&(n=!0,s.selected=l[19],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function cm(t){let e,n,r;function i(l){t[38](l)}let o={label:t[31]("Commons.Order.Limit"),type:"number",layout:t[15]};return t[20]!==void 0&&(o.value=t[20]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&1048576&&(n=!0,s.value=l[20],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function fm(t){let e,n,r;function i(l){t[39](l)}let o={label:t[31]("Commons.Order.Stop"),type:"number",layout:t[15]};return t[23]!==void 0&&(o.value=t[23]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&8388608&&(n=!0,s.value=l[23],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function dm(t){let e,n,r;function i(l){t[40](l)}let o={label:t[31]("Commons.Order.StopLimit"),type:"number",layout:t[15]};return t[24]!==void 0&&(o.value=t[24]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&16777216&&(n=!0,s.value=l[24],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function hm(t){let e,n,r;function i(l){t[41](l)}let o={label:t[31]("Commons.Order.TakeProfit"),type:"number",layout:t[15]};return t[21]!==void 0&&(o.value=t[21]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&2097152&&(n=!0,s.value=l[21],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function mm(t){let e,n,r;function i(l){t[42](l)}let o={label:t[31]("Commons.Order.StopLoss"),type:"number",layout:t[15]};return t[22]!==void 0&&(o.value=t[22]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&4194304&&(n=!0,s.value=l[22],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function gm(t){let e,n,r;function i(l){t[43](l)}let o={absCurrency:t[1].limitCurrencyIso,label:"Trailing-Abstand",placeholder:"Trailing Abstand"};return t[25]!==void 0&&(o.value=t[25]),e=new Cs({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&2&&(s.absCurrency=l[1].limitCurrencyIso),!n&&a[0]&33554432&&(n=!0,s.value=l[25],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function pm(t){let e,n,r;function i(l){t[44](l)}let o={label:"Limit-Abstand",type:"number",layout:t[15]};return t[26]!==void 0&&(o.value=t[26]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&67108864&&(n=!0,s.value=l[26],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function bm(t){let e,n,r,i,o;function l(u){t[45](u)}let a={label:t[31]("Commons.Order.ValidityType"),layout:t[15],items:t[13]};t[17]!==void 0&&(a.selected=t[17]),e=new Un({props:a}),xe.push(()=>Je(e,"selected",l));let s=t[17]=="GTD"&&vm(t);return{c(){F(e.$$.fragment),r=j(),s&&s.c(),i=Xe()},m(u,c){$(e,u,c),L(u,r,c),s&&s.m(u,c),L(u,i,c),o=!0},p(u,c){const f={};c[0]&32768&&(f.layout=u[15]),c[0]&8192&&(f.items=u[13]),!n&&c[0]&131072&&(n=!0,f.selected=u[17],Ve(()=>n=!1)),e.$set(f),u[17]=="GTD"?s?(s.p(u,c),c[0]&131072&&g(s,1)):(s=vm(u),s.c(),g(s,1),s.m(i.parentNode,i)):s&&(ne(),b(s,1,1,()=>{s=null}),re())},i(u){o||(g(e.$$.fragment,u),g(s),o=!0)},o(u){b(e.$$.fragment,u),b(s),o=!1},d(u){u&&(E(r),E(i)),R(e,u),s&&s.d(u)}}}function vm(t){let e,n,r;function i(l){t[46](l)}let o={label:t[31]("Commons.Order.ValidityDate"),layout:t[15],placeholder:"TT.MM.JJJJ"};return t[18]!==void 0&&(o.value=t[18]),e=new Ul({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&32768&&(s.layout=l[15]),!n&&a[0]&262144&&(n=!0,s.value=l[18],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function _m(t){let e,n,r;return{c(){e=W("a"),e.textContent=`${t[31]("CostEstimation.ShowDetailedCostEstimation")}`,x(e,"rel","noopener"),x(e,"class","costs-info-link svelte-bv7o1o")},m(i,o){L(i,e,o),n||(r=tt(e,"click",Ii(t[47])),n=!0)},p:ze,d(i){i&&E(e),n=!1,r()}}}function ME(t){let e,n,r,i,o,l=t[3]&&ym(t);const a=[PE,NE],s=[];function u(c,f){var d,m;return((d=c[29])==null?void 0:d.flow)=="CHALLENGE_RESPONSE"?0:((m=c[29])==null?void 0:m.flow)=="TAN"?1:-1}return~(n=u(t))&&(r=s[n]=a[n](t)),{c(){l&&l.c(),e=j(),r&&r.c(),i=Xe()},m(c,f){l&&l.m(c,f),L(c,e,f),~n&&s[n].m(c,f),L(c,i,f),o=!0},p(c,f){c[3]?l?(l.p(c,f),f[0]&8&&g(l,1)):(l=ym(c),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(ne(),b(l,1,1,()=>{l=null}),re());let d=n;n=u(c),n===d?~n&&s[n].p(c,f):(r&&(ne(),b(s[d],1,1,()=>{s[d]=null}),re()),~n?(r=s[n],r?r.p(c,f):(r=s[n]=a[n](c),r.c()),g(r,1),r.m(i.parentNode,i)):r=null)},i(c){o||(g(l),g(r),o=!0)},o(c){b(l),b(r),o=!1},d(c){c&&(E(e),E(i)),l&&l.d(c),~n&&s[n].d(c)}}}function EE(t){let e,n;return e=new or({props:{variant:"info",hideCloseButton:!0,title:t[31]("Commons.OrderForm.SessionTanRequiredForThisOperation"),$$slots:{actions:[FE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[1]&16777216&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function LE(t){let e,n;return e=new nt({props:{text:t[31]("Commons.ChangeOrder"),variant:"default",width:"full"}}),e.$on("click",t[35]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function ym(t){let e,n,r,i;function o(a){t[49](a)}let l={label:t[31]("Commons.AuthMethod"),layout:t[15],placeholder:t[31]("Commons.PleaseChooseAuthMethod"),items:t[30]};return t[0]!==void 0&&(l.selected=t[0]),n=new Un({props:l}),xe.push(()=>Je(n,"selected",o)),{c(){e=W("div"),F(n.$$.fragment)},m(a,s){L(a,e,s),$(n,e,null),i=!0},p(a,s){const u={};s[0]&32768&&(u.layout=a[15]),s[0]&1073741824&&(u.items=a[30]),!r&&s[0]&1&&(r=!0,u.selected=a[0],Ve(()=>r=!1)),n.$set(u)},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n)}}}function NE(t){let e,n,r,i,o,l,a;function s(c){t[51](c)}let u={type:"text",name:"challengeResponse",label:t[29].tanFieldLabel,layout:t[15]};return t[2]!==void 0&&(u.value=t[2]),n=new Mt({props:u}),xe.push(()=>Je(n,"value",s)),l=new nt({props:{text:t[31]("Commons.ChangeOrder"),variant:"default",width:"full"}}),l.$on("click",t[35]),{c(){e=W("div"),F(n.$$.fragment),i=j(),o=W("div"),F(l.$$.fragment)},m(c,f){L(c,e,f),$(n,e,null),L(c,i,f),L(c,o,f),$(l,o,null),a=!0},p(c,f){const d={};f[0]&536870912&&(d.label=c[29].tanFieldLabel),f[0]&32768&&(d.layout=c[15]),!r&&f[0]&4&&(r=!0,d.value=c[2],Ve(()=>r=!1)),n.$set(d)},i(c){a||(g(n.$$.fragment,c),g(l.$$.fragment,c),a=!0)},o(c){b(n.$$.fragment,c),b(l.$$.fragment,c),a=!1},d(c){c&&(E(e),E(i),E(o)),R(n),R(l)}}}function PE(t){let e,n,r,i=!t[9]&&km(t),o=t[9]&&wm(t);return{c(){i&&i.c(),e=j(),o&&o.c(),n=Xe()},m(l,a){i&&i.m(l,a),L(l,e,a),o&&o.m(l,a),L(l,n,a),r=!0},p(l,a){l[9]?i&&(ne(),b(i,1,1,()=>{i=null}),re()):i?(i.p(l,a),a[0]&512&&g(i,1)):(i=km(l),i.c(),g(i,1),i.m(e.parentNode,e)),l[9]?o?(o.p(l,a),a[0]&512&&g(o,1)):(o=wm(l),o.c(),g(o,1),o.m(n.parentNode,n)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){r||(g(i),g(o),r=!0)},o(l){b(i),b(o),r=!1},d(l){l&&(E(e),E(n)),i&&i.d(l),o&&o.d(l)}}}function km(t){var i;let e,n,r;return n=new nt({props:{text:(i=t[29])==null?void 0:i.getChallengeLabel,variant:"default",width:"full"}}),n.$on("click",t[34]),{c(){e=W("div"),F(n.$$.fragment)},m(o,l){L(o,e,l),$(n,e,null),r=!0},p(o,l){var s;const a={};l[0]&536870912&&(a.text=(s=o[29])==null?void 0:s.getChallengeLabel),n.$set(a)},i(o){r||(g(n.$$.fragment,o),r=!0)},o(o){b(n.$$.fragment,o),r=!1},d(o){o&&E(e),R(n)}}}function wm(t){let e,n,r,i,o,l,a,s;e=new Fi({props:{challenge:t[9]}});function u(f){t[50](f)}let c={type:"text",name:"challengeResponse",label:t[29].tanFieldLabel,layout:t[15],enterMaySubmit:!0,autofocus:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Mt({props:c}),xe.push(()=>Je(i,"value",u)),a=new go({props:{showAside:!!t[4],$$slots:{default:[$E]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=j(),r=W("div"),F(i.$$.fragment),l=j(),F(a.$$.fragment)},m(f,d){$(e,f,d),L(f,n,d),L(f,r,d),$(i,r,null),L(f,l,d),$(a,f,d),s=!0},p(f,d){const m={};d[0]&512&&(m.challenge=f[9]),e.$set(m);const h={};d[0]&536870912&&(h.label=f[29].tanFieldLabel),d[0]&32768&&(h.layout=f[15]),!o&&d[0]&4&&(o=!0,h.value=f[2],Ve(()=>o=!1)),i.$set(h);const p={};d[0]&16&&(p.showAside=!!f[4]),d[0]&536871056|d[1]&16777216&&(p.$$scope={dirty:d,ctx:f}),a.$set(p)},i(f){s||(g(e.$$.fragment,f),g(i.$$.fragment,f),g(a.$$.fragment,f),s=!0)},o(f){b(e.$$.fragment,f),b(i.$$.fragment,f),b(a.$$.fragment,f),s=!1},d(f){f&&(E(n),E(r),E(l)),R(e,f),R(i),R(a,f)}}}function Sm(t){var r;let e,n;return e=new nt({props:{slot:"aside",height:"full",width:"full",variant:"outlined",icon:"RotateCw",text:(r=t[29])==null?void 0:r.getChallengeLabel,busy:t[7]}}),e.$on("click",t[34]),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&536870912&&(l.text=(a=i[29])==null?void 0:a.getChallengeLabel),o[0]&128&&(l.busy=i[7]),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function $E(t){let e,n,r,i=t[4]&&Sm(t);return n=new nt({props:{variant:"default",width:"full",height:"full",text:t[31]("Commons.ChangeOrder")}}),n.$on("click",t[35]),{c(){i&&i.c(),e=j(),F(n.$$.fragment)},m(o,l){i&&i.m(o,l),L(o,e,l),$(n,o,l),r=!0},p(o,l){o[4]?i?(i.p(o,l),l[0]&16&&g(i,1)):(i=Sm(o),i.c(),g(i,1),i.m(e.parentNode,e)):i&&(ne(),b(i,1,1,()=>{i=null}),re())},i(o){r||(g(i),g(n.$$.fragment,o),r=!0)},o(o){b(i),b(n.$$.fragment,o),r=!1},d(o){o&&E(e),i&&i.d(o),R(n,o)}}}function RE(t){let e=t[31]("Commons.EnableSessionTanNow")+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p:ze,d(r){r&&E(n)}}}function FE(t){let e,n;return e=new nt({props:{slot:"actions",variant:"default",$$slots:{default:[RE]},$$scope:{ctx:t}}}),e.$on("click",t[48]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[1]&16777216&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xE(t){var S;let e,n,r,i,o,l,a,s,u,c,f,d;n=new zn({props:{error:t[6]}}),i=new zn({props:{error:t[4]}}),l=new zn({props:{error:t[8]}});let m=t[1]&&lm(t),h=((S=t[1])==null?void 0:S.changesHaveCostEstimations)&&_m(t);const p=[LE,EE,ME],v=[];function w(y,z){var O,N;return(O=y[3])!=null&&O.sessionTanActive?0:(N=y[3])!=null&&N.allOperationsRequireSessionTan?1:2}return c=w(t),f=v[c]=p[c](t),{c(){e=W("div"),F(n.$$.fragment),r=j(),F(i.$$.fragment),o=j(),F(l.$$.fragment),a=j(),m&&m.c(),s=j(),h&&h.c(),u=j(),f.c(),x(e,"class","zlc-gap-y")},m(y,z){L(y,e,z),$(n,e,null),V(e,r),$(i,e,null),V(e,o),$(l,e,null),V(e,a),m&&m.m(e,null),V(e,s),h&&h.m(e,null),V(e,u),v[c].m(e,null),d=!0},p(y,z){var P;const O={};z[0]&64&&(O.error=y[6]),n.$set(O);const N={};z[0]&16&&(N.error=y[4]),i.$set(N);const U={};z[0]&256&&(U.error=y[8]),l.$set(U),y[1]?m?(m.p(y,z),z[0]&2&&g(m,1)):(m=lm(y),m.c(),g(m,1),m.m(e,s)):m&&(ne(),b(m,1,1,()=>{m=null}),re()),(P=y[1])!=null&&P.changesHaveCostEstimations?h?h.p(y,z):(h=_m(y),h.c(),h.m(e,u)):h&&(h.d(1),h=null);let A=c;c=w(y),c===A?v[c].p(y,z):(ne(),b(v[A],1,1,()=>{v[A]=null}),re(),f=v[c],f?f.p(y,z):(f=v[c]=p[c](y),f.c()),g(f,1),f.m(e,null))},i(y){d||(g(n.$$.fragment,y),g(i.$$.fragment,y),g(l.$$.fragment,y),g(m),g(f),d=!0)},o(y){b(n.$$.fragment,y),b(i.$$.fragment,y),b(l.$$.fragment,y),b(m),b(f),d=!1},d(y){y&&E(e),R(n),R(i),R(l),m&&m.d(),h&&h.d(),v[c].d()}}}function UE(t){let e,n,r,i,o,l;const a=[TE,SE,wE],s=[];function u(f,d){return f[1]?0:f[10]?1:f[11]?2:-1}~(e=u(t))&&(n=s[e]=a[e](t));let c=(t[5]||t[7])&&om();return o=new Ji({props:{$$slots:{default:[xE]},$$scope:{ctx:t}}}),{c(){n&&n.c(),r=j(),c&&c.c(),i=j(),F(o.$$.fragment)},m(f,d){~e&&s[e].m(f,d),L(f,r,d),c&&c.m(f,d),L(f,i,d),$(o,f,d),l=!0},p(f,d){let m=e;e=u(f),e===m?~e&&s[e].p(f,d):(n&&(ne(),b(s[m],1,1,()=>{s[m]=null}),re()),~e?(n=s[e],n?n.p(f,d):(n=s[e]=a[e](f),n.c()),g(n,1),n.m(r.parentNode,r)):n=null),f[5]||f[7]?c?d[0]&160&&g(c,1):(c=om(),c.c(),g(c,1),c.m(i.parentNode,i)):c&&(ne(),b(c,1,1,()=>{c=null}),re());const h={};d[0]&2147476447|d[1]&16777216&&(h.$$scope={dirty:d,ctx:f}),o.$set(h)},i(f){l||(g(n),g(c),g(o.$$.fragment,f),l=!0)},o(f){b(n),b(c),b(o.$$.fragment,f),l=!1},d(f){f&&(E(r),E(i)),~e&&s[e].d(f),c&&c.d(f),R(o,f)}}}function BE(t,e,n){let r,i,o,l,a,{authInfo:s=null}=e,{authMethod:u=null}=e,{challengeResponse:c=null}=e,{performError:f=null}=e,{performLoading:d=!1}=e,{costsError:m=null}=e,{challengeLoading:h=null}=e,{challengeError:p=null}=e,{challenge:v=null}=e,{orderLoading:w=!1}=e,{orderError:S=null}=e,{order:y}=e,{portfolio:z}=e,O=[];function N(He){var Ut,qt;n(1,y=He),He&&(n(16,ce=y.size),n(17,he=(Ut=y.validity)==null?void 0:Ut.type),n(18,de=(qt=y.validity)==null?void 0:qt.date),n(19,se=y.orderModel),n(20,ue=y.limit),n(21,fe=y.takeProfit),n(22,Oe=y.stopLoss),n(25,Fe=y.trailingDistance),n(23,me=y.stop),n(24,we=y.stopLimit),n(26,pe=y.trailingLimitTolerance),n(14,O=Yh([y.orderModel],y.allowsChangeOrderModels||[]).map(Et=>({id:Et,value:A.orderModel(Et,y.direction,y.intent)}))))}const{__:U,labels:A}=pr(tn),P=Bt(),Y=tn("themeConfig");let B;Y.subscribe(He=>n(15,B=He==null?void 0:He.layout));function J(){return{orderModel:se,size:ce,limit:ue||void 0,stop:me||void 0,stopLimit:we||void 0,trailingDistance:Fe||void 0,trailingLimitTolerance:pe||void 0,takeProfit:fe||void 0,stopLoss:Oe||void 0,validity:a?{type:he,date:he=="GTD"?de:void 0}:void 0}}function ee(){P("challenge",{authMethod:u,changes:J()})}function X(){P("perform",{authMethod:s!=null&&s.sessionTanActive?void 0:u,challengeId:(v==null?void 0:v.challengeId)||void 0,challengeResponse:c,changes:J()})}let ce=null,he=null,de=null,se=null,ue=null,fe=null,Oe=null,me=null,we=null,Fe=null,pe=null;function Se(He){ce=He,n(16,ce)}function De(He){se=He,n(19,se)}function Ze(He){ue=He,n(20,ue)}function Qe(He){me=He,n(23,me)}function dt(He){we=He,n(24,we)}function Ce(He){fe=He,n(21,fe)}function St(He){Oe=He,n(22,Oe)}function it(He){Fe=He,n(25,Fe)}function Lt(He){pe=He,n(26,pe)}function Te(He){he=He,n(17,he)}function ot(He){de=He,n(18,de)}const ft=()=>{P("costdetails",{changes:J()})},It=()=>P("sessiontan");function wt(He){u=He,n(0,u)}function Ct(He){c=He,n(2,c)}function xt(He){c=He,n(2,c)}return t.$$set=He=>{"authInfo"in He&&n(3,s=He.authInfo),"authMethod"in He&&n(0,u=He.authMethod),"challengeResponse"in He&&n(2,c=He.challengeResponse),"performError"in He&&n(4,f=He.performError),"performLoading"in He&&n(5,d=He.performLoading),"costsError"in He&&n(6,m=He.costsError),"challengeLoading"in He&&n(7,h=He.challengeLoading),"challengeError"in He&&n(8,p=He.challengeError),"challenge"in He&&n(9,v=He.challenge),"orderLoading"in He&&n(10,w=He.orderLoading),"orderError"in He&&n(11,S=He.orderError),"order"in He&&n(1,y=He.order),"portfolio"in He&&n(12,z=He.portfolio)},t.$$.update=()=>{var He;t.$$.dirty[0]&2&&N(y),t.$$.dirty[0]&8&&n(30,r=(He=s==null?void 0:s.authMethods)==null?void 0:He.filter(Ut=>Ut.flow!="DECOUPLED").map(Ut=>({id:Ut.id,value:Ut.label}))),t.$$.dirty[0]&9&&n(29,i=((s==null?void 0:s.authMethods)||[]).find(Ut=>Ut.id==u)),t.$$.dirty[0]&2&&n(28,o=y?NO(y):""),t.$$.dirty[0]&2&&n(13,l=y!=null&&y.allowsChangeValidityTypes?Yh(y.allowsChangeValidityTypes,[y.validity.type]).map(Ut=>({id:Ut,value:A.validityType[Ut]})):[]),t.$$.dirty[0]&8192&&n(27,a=(l==null?void 0:l.length)>=1)},[u,y,c,s,f,d,m,h,p,v,w,S,z,l,O,B,ce,he,de,se,ue,fe,Oe,me,we,Fe,pe,a,o,i,r,U,P,J,ee,X,Se,De,Ze,Qe,dt,Ce,St,it,Lt,Te,ot,ft,It,wt,Ct,xt]}class Tm extends Ne{constructor(e){super(),Ee(this,e,BE,UE,Ae,{authInfo:3,authMethod:0,challengeResponse:2,performError:4,performLoading:5,costsError:6,challengeLoading:7,challengeError:8,challenge:9,orderLoading:10,orderError:11,order:1,portfolio:12},kE,[-1,-1])}get authInfo(){return this.$$.ctx[3]}set authInfo(e){this.$$set({authInfo:e}),C()}get authMethod(){return this.$$.ctx[0]}set authMethod(e){this.$$set({authMethod:e}),C()}get challengeResponse(){return this.$$.ctx[2]}set challengeResponse(e){this.$$set({challengeResponse:e}),C()}get performError(){return this.$$.ctx[4]}set performError(e){this.$$set({performError:e}),C()}get performLoading(){return this.$$.ctx[5]}set performLoading(e){this.$$set({performLoading:e}),C()}get costsError(){return this.$$.ctx[6]}set costsError(e){this.$$set({costsError:e}),C()}get challengeLoading(){return this.$$.ctx[7]}set challengeLoading(e){this.$$set({challengeLoading:e}),C()}get challengeError(){return this.$$.ctx[8]}set challengeError(e){this.$$set({challengeError:e}),C()}get challenge(){return this.$$.ctx[9]}set challenge(e){this.$$set({challenge:e}),C()}get orderLoading(){return this.$$.ctx[10]}set orderLoading(e){this.$$set({orderLoading:e}),C()}get orderError(){return this.$$.ctx[11]}set orderError(e){this.$$set({orderError:e}),C()}get order(){return this.$$.ctx[1]}set order(e){this.$$set({order:e}),C()}get portfolio(){return this.$$.ctx[12]}set portfolio(e){this.$$set({portfolio:e}),C()}}Le(Tm,{authInfo:{},authMethod:{},challengeResponse:{},performError:{},performLoading:{type:"Boolean"},costsError:{},challengeLoading:{},challengeError:{},challenge:{},orderLoading:{type:"Boolean"},orderError:{},order:{},portfolio:{}},[],[],!0);function qE(t){let e,n,r;function i(l){t[22](l)}let o={authInfo:t[3],orderLoading:t[11],costsError:t[13],orderError:t[12],order:t[8],portfolio:t[9],challengeLoading:t[5],challengeError:t[6],challenge:t[7],performLoading:t[14],performError:t[15]};return t[4]!==void 0&&(o.authMethod=t[4]),e=new Tm({props:o}),xe.push(()=>Je(e,"authMethod",i)),e.$on("challenge",t[16]),e.$on("perform",t[17]),e.$on("costdetails",t[18]),e.$on("sessiontan",t[19]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a&8&&(s.authInfo=l[3]),a&2048&&(s.orderLoading=l[11]),a&8192&&(s.costsError=l[13]),a&4096&&(s.orderError=l[12]),a&256&&(s.order=l[8]),a&512&&(s.portfolio=l[9]),a&32&&(s.challengeLoading=l[5]),a&64&&(s.challengeError=l[6]),a&128&&(s.challenge=l[7]),a&16384&&(s.performLoading=l[14]),a&32768&&(s.performError=l[15]),!n&&a&16&&(n=!0,s.authMethod=l[4],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function VE(t){let e,n;return e=new Jn({props:{locale:"de",brokers:t[10],$$slots:{default:[qE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1024&&(o.brokers=r[10]),i&134282232&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function JE(t){let e,n;return e=new Pn({props:{theme:t[2],addFrame:t[0],supportLink:t[1],addShadow:!0,$$slots:{default:[VE]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&4&&(o.theme=r[2]),i&1&&(o.addFrame=r[0]),i&2&&(o.supportLink=r[1]),i&134283256&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function HE(t,e,n){let{apiCtx:r=null}=e,{orderId:i=""}=e,{addFrame:o=!0}=e,{supportLink:l=null}=e,{theme:a=null}=e;const s=Bt();let u,c="",f=!1,d=null,m=null,h=null,p=null,v,w=!1,S=null,y=null,z;function O(X){n(20,i=X),n(12,S=null),n(11,w=!0),i&&(r.getBrokers().then(ce=>n(10,v=ce)),r.getOrder(i).then(ce=>Promise.all([r.getPortfolios(),r.getAuthInfo(ce.order.portfolioId)]).then(([he,de])=>{const se=he.portfolios.find(ue=>ue.id==ce.order.portfolioId);return{_auth:de,_order:ce,_portfolio:se}})).then(({_auth:ce,_order:he,_portfolio:de})=>{N(ce==null?void 0:ce.authInfo,he.order,de),n(11,w=!1)},ce=>{n(12,S=ce),n(11,w=!1)}))}function N(X,ce,he){var de;n(3,u=X),n(8,h=ce),n(9,p=he),z=p.sessionIds[0],n(4,c=(de=X.authMethods)!=null&&de.length?X.authMethods[0].id:null)}function U(X){n(15,P=null),n(5,f=!0),r.createChangeOrderChallenge({id:i,changeOrderChallengeParams:{authMethod:X.detail.authMethod,changes:X.detail.changes}}).then(ce=>{n(7,m=ce),n(5,f=!1)},ce=>{n(6,d=ce),n(5,f=!1)})}let A=!1,P=null;function Y(X){n(14,A=!0),n(15,P=null),r.changeOrder({id:i,changeOrderParams:{authMethod:X.detail.authMethod||void 0,challengeId:X.detail.challengeId||void 0,challengeResponse:X.detail.challengeResponse||void 0,changes:X.detail.changes}}).then(()=>{n(14,A=!1),s("exit")},ce=>{n(15,P=ce),n(14,A=!1)})}async function B(X){console.log("showCostDetails"),n(13,y=null),r.getChangeOrderCostEstimation(i,X.detail.changes).then(ce=>{console.log("showCostDetailsXXX"),jt.showDetailedTable(ce.detailedTable,!0)},ce=>{console.log("showCostDetailsXXXYYYY",ce),n(13,y=ce)})}async function J(){await jt.showSessionTanModal(z)&&O(i)}function ee(X){c=X,n(4,c)}return t.$$set=X=>{"apiCtx"in X&&n(21,r=X.apiCtx),"orderId"in X&&n(20,i=X.orderId),"addFrame"in X&&n(0,o=X.addFrame),"supportLink"in X&&n(1,l=X.supportLink),"theme"in X&&n(2,a=X.theme)},t.$$.update=()=>{t.$$.dirty&3145728&&r&&O(i)},[o,l,a,u,c,f,d,m,h,p,v,w,S,y,A,P,U,Y,B,J,i,r,ee]}class Os extends Ne{constructor(e){super(),Ee(this,e,HE,JE,Ae,{apiCtx:21,orderId:20,addFrame:0,supportLink:1,theme:2})}get apiCtx(){return this.$$.ctx[21]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get orderId(){return this.$$.ctx[20]}set orderId(e){this.$$set({orderId:e}),C()}get addFrame(){return this.$$.ctx[0]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[1]}set supportLink(e){this.$$set({supportLink:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}}Le(Os,{apiCtx:{},orderId:{},addFrame:{type:"Boolean"},supportLink:{},theme:{}},[],[],!0);function WE(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Os({props:i}),e.$on("exit",t[8]),e.$on("costdetails",t[9]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function YE(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[WE]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&1047&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function GE(t,e,n){let{apiCtx:r=null}=e,{theme:i=bn}=e,{orderId:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,{openExternalLink:s=null}=e,u=["apiCtx","orderId"];function c(d){qe.call(this,t,d)}function f(d){qe.call(this,t,d)}return t.$$set=d=>{n(4,e=ve(ve({},e),je(d))),"apiCtx"in d&&n(5,r=d.apiCtx),"theme"in d&&n(0,i=d.theme),"orderId"in d&&n(6,o=d.orderId),"addFrame"in d&&n(1,l=d.addFrame),"supportLink"in d&&n(2,a=d.supportLink),"openExternalLink"in d&&n(7,s=d.openExternalLink)},e=je(e),[i,l,a,u,e,r,o,s,c,f]}class zm extends Ne{constructor(e){super(),Ee(this,e,GE,YE,Ae,{apiCtx:5,theme:0,orderId:6,addFrame:1,supportLink:2,openExternalLink:7})}get apiCtx(){return this.$$.ctx[5]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get orderId(){return this.$$.ctx[6]}set orderId(e){this.$$set({orderId:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-change-order-form",Le(zm,{apiCtx:{},theme:{},orderId:{},addFrame:{type:"Boolean"},supportLink:{},openExternalLink:{}},[],[],!0));var Cm={exports:{}};const KE=vT(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/*!
173
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
174
+ * SPDX-License-Identifier: Apache-2.0
175
+ */(function(t,e){(function(r,i){t.exports=i(function(){try{return KE}catch{}}())})(self,n=>(()=>{var r={2:(a,s,u)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.RawSha256=void 0;var c=u(149),f=function(){function d(){this.state=Int32Array.from(c.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return d.prototype.update=function(m){if(this.finished)throw new Error("Attempted to update an already finished hash.");var h=0,p=m.byteLength;if(this.bytesHashed+=p,this.bytesHashed*8>c.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;p>0;)this.buffer[this.bufferLength++]=m[h++],p--,this.bufferLength===c.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},d.prototype.digest=function(){if(!this.finished){var m=this.bytesHashed*8,h=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(h.setUint8(this.bufferLength++,128),p%c.BLOCK_SIZE>=c.BLOCK_SIZE-8){for(var v=this.bufferLength;v<c.BLOCK_SIZE;v++)h.setUint8(v,0);this.hashBuffer(),this.bufferLength=0}for(var v=this.bufferLength;v<c.BLOCK_SIZE-8;v++)h.setUint8(v,0);h.setUint32(c.BLOCK_SIZE-8,Math.floor(m/4294967296),!0),h.setUint32(c.BLOCK_SIZE-4,m),this.hashBuffer(),this.finished=!0}for(var w=new Uint8Array(c.DIGEST_LENGTH),v=0;v<8;v++)w[v*4]=this.state[v]>>>24&255,w[v*4+1]=this.state[v]>>>16&255,w[v*4+2]=this.state[v]>>>8&255,w[v*4+3]=this.state[v]>>>0&255;return w},d.prototype.hashBuffer=function(){for(var m=this,h=m.buffer,p=m.state,v=p[0],w=p[1],S=p[2],y=p[3],z=p[4],O=p[5],N=p[6],U=p[7],A=0;A<c.BLOCK_SIZE;A++){if(A<16)this.temp[A]=(h[A*4]&255)<<24|(h[A*4+1]&255)<<16|(h[A*4+2]&255)<<8|h[A*4+3]&255;else{var P=this.temp[A-2],Y=(P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10;P=this.temp[A-15];var B=(P>>>7|P<<25)^(P>>>18|P<<14)^P>>>3;this.temp[A]=(Y+this.temp[A-7]|0)+(B+this.temp[A-16]|0)}var J=(((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&O^~z&N)|0)+(U+(c.KEY[A]+this.temp[A]|0)|0)|0,ee=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&w^v&S^w&S)|0;U=N,N=O,O=z,z=y+J|0,y=S,S=w,w=v,v=J+ee|0}p[0]+=v,p[1]+=w,p[2]+=S,p[3]+=y,p[4]+=z,p[5]+=O,p[6]+=N,p[7]+=U},d}();s.RawSha256=f},149:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.MAX_HASHABLE_LENGTH=s.INIT=s.KEY=s.DIGEST_LENGTH=s.BLOCK_SIZE=void 0,s.BLOCK_SIZE=64,s.DIGEST_LENGTH=32,s.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},387:(a,s,u)=>{Object.defineProperty(s,"__esModule",{value:!0});var c=u(163);(0,c.__exportStar)(u(572),s)},572:(a,s,u)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Sha256=void 0;var c=u(163),f=u(149),d=u(2),m=u(948),h=function(){function v(w){if(this.hash=new d.RawSha256,w){this.outer=new d.RawSha256;var S=p(w),y=new Uint8Array(f.BLOCK_SIZE);y.set(S);for(var z=0;z<f.BLOCK_SIZE;z++)S[z]^=54,y[z]^=92;this.hash.update(S),this.outer.update(y);for(var z=0;z<S.byteLength;z++)S[z]=0}}return v.prototype.update=function(w){if(!((0,m.isEmptyData)(w)||this.error))try{this.hash.update((0,m.convertToBuffer)(w))}catch(S){this.error=S}},v.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},v.prototype.digest=function(){return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(w){return[2,this.digestSync()]})})},v}();s.Sha256=h;function p(v){var w=(0,m.convertToBuffer)(v);if(w.byteLength>f.BLOCK_SIZE){var S=new d.RawSha256;S.update(w),w=S.digest()}var y=new Uint8Array(f.BLOCK_SIZE);return y.set(w),y}},242:(a,s,u)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.convertToBuffer=void 0;var c=u(152),f=typeof Buffer<"u"&&Buffer.from?function(m){return Buffer.from(m,"utf8")}:c.fromUtf8;function d(m){return m instanceof Uint8Array?m:typeof m=="string"?f(m):ArrayBuffer.isView(m)?new Uint8Array(m.buffer,m.byteOffset,m.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(m)}s.convertToBuffer=d},948:(a,s,u)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.uint32ArrayFrom=s.numToUint8=s.isEmptyData=s.convertToBuffer=void 0;var c=u(242);Object.defineProperty(s,"convertToBuffer",{enumerable:!0,get:function(){return c.convertToBuffer}});var f=u(260);Object.defineProperty(s,"isEmptyData",{enumerable:!0,get:function(){return f.isEmptyData}});var d=u(668);Object.defineProperty(s,"numToUint8",{enumerable:!0,get:function(){return d.numToUint8}});var m=u(331);Object.defineProperty(s,"uint32ArrayFrom",{enumerable:!0,get:function(){return m.uint32ArrayFrom}})},260:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.isEmptyData=void 0;function u(c){return typeof c=="string"?c.length===0:c.byteLength===0}s.isEmptyData=u},668:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.numToUint8=void 0;function u(c){return new Uint8Array([(c&4278190080)>>24,(c&16711680)>>16,(c&65280)>>8,c&255])}s.numToUint8=u},331:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.uint32ArrayFrom=void 0;function u(c){if(!Array.from){for(var f=new Uint32Array(c.length),d=0;d<c.length;)f[d]=c[d];return f}return Uint32Array.from(c)}s.uint32ArrayFrom=u},152:(a,s,u)=>{u.r(s),u.d(s,{fromUtf8:()=>h,toUtf8:()=>p});const c=v=>{const w=[];for(let S=0,y=v.length;S<y;S++){const z=v.charCodeAt(S);if(z<128)w.push(z);else if(z<2048)w.push(z>>6|192,z&63|128);else if(S+1<v.length&&(z&64512)===55296&&(v.charCodeAt(S+1)&64512)===56320){const O=65536+((z&1023)<<10)+(v.charCodeAt(++S)&1023);w.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else w.push(z>>12|224,z>>6&63|128,z&63|128)}return Uint8Array.from(w)},f=v=>{let w="";for(let S=0,y=v.length;S<y;S++){const z=v[S];if(z<128)w+=String.fromCharCode(z);else if(192<=z&&z<224){const O=v[++S];w+=String.fromCharCode((z&31)<<6|O&63)}else if(240<=z&&z<365){const N="%"+[z,v[++S],v[++S],v[++S]].map(U=>U.toString(16)).join("%");w+=decodeURIComponent(N)}else w+=String.fromCharCode((z&15)<<12|(v[++S]&63)<<6|v[++S]&63)}return w};function d(v){return new TextEncoder().encode(v)}function m(v){return new TextDecoder("utf-8").decode(v)}const h=v=>typeof TextEncoder=="function"?d(v):c(v),p=v=>typeof TextDecoder=="function"?m(v):f(v)},766:(a,s)=>{s.byteLength=v,s.toByteArray=S,s.fromByteArray=O;for(var u=[],c=[],f=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,h=d.length;m<h;++m)u[m]=d[m],c[d.charCodeAt(m)]=m;c[45]=62,c[95]=63;function p(N){var U=N.length;if(U%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var A=N.indexOf("=");A===-1&&(A=U);var P=A===U?0:4-A%4;return[A,P]}function v(N){var U=p(N),A=U[0],P=U[1];return(A+P)*3/4-P}function w(N,U,A){return(U+A)*3/4-A}function S(N){var U,A=p(N),P=A[0],Y=A[1],B=new f(w(N,P,Y)),J=0,ee=Y>0?P-4:P,X;for(X=0;X<ee;X+=4)U=c[N.charCodeAt(X)]<<18|c[N.charCodeAt(X+1)]<<12|c[N.charCodeAt(X+2)]<<6|c[N.charCodeAt(X+3)],B[J++]=U>>16&255,B[J++]=U>>8&255,B[J++]=U&255;return Y===2&&(U=c[N.charCodeAt(X)]<<2|c[N.charCodeAt(X+1)]>>4,B[J++]=U&255),Y===1&&(U=c[N.charCodeAt(X)]<<10|c[N.charCodeAt(X+1)]<<4|c[N.charCodeAt(X+2)]>>2,B[J++]=U>>8&255,B[J++]=U&255),B}function y(N){return u[N>>18&63]+u[N>>12&63]+u[N>>6&63]+u[N&63]}function z(N,U,A){for(var P,Y=[],B=U;B<A;B+=3)P=(N[B]<<16&16711680)+(N[B+1]<<8&65280)+(N[B+2]&255),Y.push(y(P));return Y.join("")}function O(N){for(var U,A=N.length,P=A%3,Y=[],B=16383,J=0,ee=A-P;J<ee;J+=B)Y.push(z(N,J,J+B>ee?ee:J+B));return P===1?(U=N[A-1],Y.push(u[U>>2]+u[U<<4&63]+"==")):P===2&&(U=(N[A-2]<<8)+N[A-1],Y.push(u[U>>10]+u[U>>4&63]+u[U<<2&63]+"=")),Y.join("")}},834:(a,s,u)=>{/*!
176
+ * The buffer module from node.js, for the browser.
177
+ *
178
+ * @author Feross Aboukhadijeh <http://feross.org>
179
+ * @license MIT
180
+ */var c=u(766),f=u(333),d=u(906);s.lW=v,s.h2=50,v.TYPED_ARRAY_SUPPORT=u.g.TYPED_ARRAY_SUPPORT!==void 0?u.g.TYPED_ARRAY_SUPPORT:m(),h();function m(){try{var K=new Uint8Array(1);return K.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},K.foo()===42&&typeof K.subarray=="function"&&K.subarray(1,1).byteLength===0}catch{return!1}}function h(){return v.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function p(K,D){if(h()<D)throw new RangeError("Invalid typed array length");return v.TYPED_ARRAY_SUPPORT?(K=new Uint8Array(D),K.__proto__=v.prototype):(K===null&&(K=new v(D)),K.length=D),K}function v(K,D,M){if(!v.TYPED_ARRAY_SUPPORT&&!(this instanceof v))return new v(K,D,M);if(typeof K=="number"){if(typeof D=="string")throw new Error("If encoding is specified then the first argument must be a string");return z(this,K)}return w(this,K,D,M)}v.poolSize=8192,v._augment=function(K){return K.__proto__=v.prototype,K};function w(K,D,M,Q){if(typeof D=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&D instanceof ArrayBuffer?U(K,D,M,Q):typeof D=="string"?O(K,D,M):A(K,D)}v.from=function(K,D,M){return w(null,K,D,M)},v.TYPED_ARRAY_SUPPORT&&(v.prototype.__proto__=Uint8Array.prototype,v.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&v[Symbol.species]===v&&Object.defineProperty(v,Symbol.species,{value:null,configurable:!0}));function S(K){if(typeof K!="number")throw new TypeError('"size" argument must be a number');if(K<0)throw new RangeError('"size" argument must not be negative')}function y(K,D,M,Q){return S(D),D<=0?p(K,D):M!==void 0?typeof Q=="string"?p(K,D).fill(M,Q):p(K,D).fill(M):p(K,D)}v.alloc=function(K,D,M){return y(null,K,D,M)};function z(K,D){if(S(D),K=p(K,D<0?0:P(D)|0),!v.TYPED_ARRAY_SUPPORT)for(var M=0;M<D;++M)K[M]=0;return K}v.allocUnsafe=function(K){return z(null,K)},v.allocUnsafeSlow=function(K){return z(null,K)};function O(K,D,M){if((typeof M!="string"||M==="")&&(M="utf8"),!v.isEncoding(M))throw new TypeError('"encoding" must be a valid string encoding');var Q=Y(D,M)|0;K=p(K,Q);var le=K.write(D,M);return le!==Q&&(K=K.slice(0,le)),K}function N(K,D){var M=D.length<0?0:P(D.length)|0;K=p(K,M);for(var Q=0;Q<M;Q+=1)K[Q]=D[Q]&255;return K}function U(K,D,M,Q){if(D.byteLength,M<0||D.byteLength<M)throw new RangeError("'offset' is out of bounds");if(D.byteLength<M+(Q||0))throw new RangeError("'length' is out of bounds");return M===void 0&&Q===void 0?D=new Uint8Array(D):Q===void 0?D=new Uint8Array(D,M):D=new Uint8Array(D,M,Q),v.TYPED_ARRAY_SUPPORT?(K=D,K.__proto__=v.prototype):K=N(K,D),K}function A(K,D){if(v.isBuffer(D)){var M=P(D.length)|0;return K=p(K,M),K.length===0||D.copy(K,0,0,M),K}if(D){if(typeof ArrayBuffer<"u"&&D.buffer instanceof ArrayBuffer||"length"in D)return typeof D.length!="number"||Et(D.length)?p(K,0):N(K,D);if(D.type==="Buffer"&&d(D.data))return N(K,D.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function P(K){if(K>=h())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+h().toString(16)+" bytes");return K|0}v.isBuffer=function(D){return!!(D!=null&&D._isBuffer)},v.compare=function(D,M){if(!v.isBuffer(D)||!v.isBuffer(M))throw new TypeError("Arguments must be Buffers");if(D===M)return 0;for(var Q=D.length,le=M.length,Me=0,Pe=Math.min(Q,le);Me<Pe;++Me)if(D[Me]!==M[Me]){Q=D[Me],le=M[Me];break}return Q<le?-1:le<Q?1:0},v.isEncoding=function(D){switch(String(D).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.concat=function(D,M){if(!d(D))throw new TypeError('"list" argument must be an Array of Buffers');if(D.length===0)return v.alloc(0);var Q;if(M===void 0)for(M=0,Q=0;Q<D.length;++Q)M+=D[Q].length;var le=v.allocUnsafe(M),Me=0;for(Q=0;Q<D.length;++Q){var Pe=D[Q];if(!v.isBuffer(Pe))throw new TypeError('"list" argument must be an Array of Buffers');Pe.copy(le,Me),Me+=Pe.length}return le};function Y(K,D){if(v.isBuffer(K))return K.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(K)||K instanceof ArrayBuffer))return K.byteLength;typeof K!="string"&&(K=""+K);var M=K.length;if(M===0)return 0;for(var Q=!1;;)switch(D){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":case void 0:return Ct(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Ut(K).length;default:if(Q)return Ct(K).length;D=(""+D).toLowerCase(),Q=!0}}v.byteLength=Y;function B(K,D,M){var Q=!1;if((D===void 0||D<0)&&(D=0),D>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,D>>>=0,M<=D))return"";for(K||(K="utf8");;)switch(K){case"hex":return De(this,D,M);case"utf8":case"utf-8":return me(this,D,M);case"ascii":return pe(this,D,M);case"latin1":case"binary":return Se(this,D,M);case"base64":return Oe(this,D,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,D,M);default:if(Q)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),Q=!0}}v.prototype._isBuffer=!0;function J(K,D,M){var Q=K[D];K[D]=K[M],K[M]=Q}v.prototype.swap16=function(){var D=this.length;if(D%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<D;M+=2)J(this,M,M+1);return this},v.prototype.swap32=function(){var D=this.length;if(D%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<D;M+=4)J(this,M,M+3),J(this,M+1,M+2);return this},v.prototype.swap64=function(){var D=this.length;if(D%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<D;M+=8)J(this,M,M+7),J(this,M+1,M+6),J(this,M+2,M+5),J(this,M+3,M+4);return this},v.prototype.toString=function(){var D=this.length|0;return D===0?"":arguments.length===0?me(this,0,D):B.apply(this,arguments)},v.prototype.equals=function(D){if(!v.isBuffer(D))throw new TypeError("Argument must be a Buffer");return this===D?!0:v.compare(this,D)===0},v.prototype.inspect=function(){var D="",M=s.h2;return this.length>0&&(D=this.toString("hex",0,M).match(/.{2}/g).join(" "),this.length>M&&(D+=" ... ")),"<Buffer "+D+">"},v.prototype.compare=function(D,M,Q,le,Me){if(!v.isBuffer(D))throw new TypeError("Argument must be a Buffer");if(M===void 0&&(M=0),Q===void 0&&(Q=D?D.length:0),le===void 0&&(le=0),Me===void 0&&(Me=this.length),M<0||Q>D.length||le<0||Me>this.length)throw new RangeError("out of range index");if(le>=Me&&M>=Q)return 0;if(le>=Me)return-1;if(M>=Q)return 1;if(M>>>=0,Q>>>=0,le>>>=0,Me>>>=0,this===D)return 0;for(var Pe=Me-le,ct=Q-M,at=Math.min(Pe,ct),et=this.slice(le,Me),Ot=D.slice(M,Q),_t=0;_t<at;++_t)if(et[_t]!==Ot[_t]){Pe=et[_t],ct=Ot[_t];break}return Pe<ct?-1:ct<Pe?1:0};function ee(K,D,M,Q,le){if(K.length===0)return-1;if(typeof M=="string"?(Q=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,isNaN(M)&&(M=le?0:K.length-1),M<0&&(M=K.length+M),M>=K.length){if(le)return-1;M=K.length-1}else if(M<0)if(le)M=0;else return-1;if(typeof D=="string"&&(D=v.from(D,Q)),v.isBuffer(D))return D.length===0?-1:X(K,D,M,Q,le);if(typeof D=="number")return D=D&255,v.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?le?Uint8Array.prototype.indexOf.call(K,D,M):Uint8Array.prototype.lastIndexOf.call(K,D,M):X(K,[D],M,Q,le);throw new TypeError("val must be string, number or Buffer")}function X(K,D,M,Q,le){var Me=1,Pe=K.length,ct=D.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(K.length<2||D.length<2)return-1;Me=2,Pe/=2,ct/=2,M/=2}function at(Vt,Jt){return Me===1?Vt[Jt]:Vt.readUInt16BE(Jt*Me)}var et;if(le){var Ot=-1;for(et=M;et<Pe;et++)if(at(K,et)===at(D,Ot===-1?0:et-Ot)){if(Ot===-1&&(Ot=et),et-Ot+1===ct)return Ot*Me}else Ot!==-1&&(et-=et-Ot),Ot=-1}else for(M+ct>Pe&&(M=Pe-ct),et=M;et>=0;et--){for(var _t=!0,Gt=0;Gt<ct;Gt++)if(at(K,et+Gt)!==at(D,Gt)){_t=!1;break}if(_t)return et}return-1}v.prototype.includes=function(D,M,Q){return this.indexOf(D,M,Q)!==-1},v.prototype.indexOf=function(D,M,Q){return ee(this,D,M,Q,!0)},v.prototype.lastIndexOf=function(D,M,Q){return ee(this,D,M,Q,!1)};function ce(K,D,M,Q){M=Number(M)||0;var le=K.length-M;Q?(Q=Number(Q),Q>le&&(Q=le)):Q=le;var Me=D.length;if(Me%2!==0)throw new TypeError("Invalid hex string");Q>Me/2&&(Q=Me/2);for(var Pe=0;Pe<Q;++Pe){var ct=parseInt(D.substr(Pe*2,2),16);if(isNaN(ct))return Pe;K[M+Pe]=ct}return Pe}function he(K,D,M,Q){return qt(Ct(D,K.length-M),K,M,Q)}function de(K,D,M,Q){return qt(xt(D),K,M,Q)}function se(K,D,M,Q){return de(K,D,M,Q)}function ue(K,D,M,Q){return qt(Ut(D),K,M,Q)}function fe(K,D,M,Q){return qt(He(D,K.length-M),K,M,Q)}v.prototype.write=function(D,M,Q,le){if(M===void 0)le="utf8",Q=this.length,M=0;else if(Q===void 0&&typeof M=="string")le=M,Q=this.length,M=0;else if(isFinite(M))M=M|0,isFinite(Q)?(Q=Q|0,le===void 0&&(le="utf8")):(le=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Me=this.length-M;if((Q===void 0||Q>Me)&&(Q=Me),D.length>0&&(Q<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var Pe=!1;;)switch(le){case"hex":return ce(this,D,M,Q);case"utf8":case"utf-8":return he(this,D,M,Q);case"ascii":return de(this,D,M,Q);case"latin1":case"binary":return se(this,D,M,Q);case"base64":return ue(this,D,M,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,D,M,Q);default:if(Pe)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),Pe=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Oe(K,D,M){return D===0&&M===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(D,M))}function me(K,D,M){M=Math.min(K.length,M);for(var Q=[],le=D;le<M;){var Me=K[le],Pe=null,ct=Me>239?4:Me>223?3:Me>191?2:1;if(le+ct<=M){var at,et,Ot,_t;switch(ct){case 1:Me<128&&(Pe=Me);break;case 2:at=K[le+1],(at&192)===128&&(_t=(Me&31)<<6|at&63,_t>127&&(Pe=_t));break;case 3:at=K[le+1],et=K[le+2],(at&192)===128&&(et&192)===128&&(_t=(Me&15)<<12|(at&63)<<6|et&63,_t>2047&&(_t<55296||_t>57343)&&(Pe=_t));break;case 4:at=K[le+1],et=K[le+2],Ot=K[le+3],(at&192)===128&&(et&192)===128&&(Ot&192)===128&&(_t=(Me&15)<<18|(at&63)<<12|(et&63)<<6|Ot&63,_t>65535&&_t<1114112&&(Pe=_t))}}Pe===null?(Pe=65533,ct=1):Pe>65535&&(Pe-=65536,Q.push(Pe>>>10&1023|55296),Pe=56320|Pe&1023),Q.push(Pe),le+=ct}return Fe(Q)}var we=4096;function Fe(K){var D=K.length;if(D<=we)return String.fromCharCode.apply(String,K);for(var M="",Q=0;Q<D;)M+=String.fromCharCode.apply(String,K.slice(Q,Q+=we));return M}function pe(K,D,M){var Q="";M=Math.min(K.length,M);for(var le=D;le<M;++le)Q+=String.fromCharCode(K[le]&127);return Q}function Se(K,D,M){var Q="";M=Math.min(K.length,M);for(var le=D;le<M;++le)Q+=String.fromCharCode(K[le]);return Q}function De(K,D,M){var Q=K.length;(!D||D<0)&&(D=0),(!M||M<0||M>Q)&&(M=Q);for(var le="",Me=D;Me<M;++Me)le+=wt(K[Me]);return le}function Ze(K,D,M){for(var Q=K.slice(D,M),le="",Me=0;Me<Q.length;Me+=2)le+=String.fromCharCode(Q[Me]+Q[Me+1]*256);return le}v.prototype.slice=function(D,M){var Q=this.length;D=~~D,M=M===void 0?Q:~~M,D<0?(D+=Q,D<0&&(D=0)):D>Q&&(D=Q),M<0?(M+=Q,M<0&&(M=0)):M>Q&&(M=Q),M<D&&(M=D);var le;if(v.TYPED_ARRAY_SUPPORT)le=this.subarray(D,M),le.__proto__=v.prototype;else{var Me=M-D;le=new v(Me,void 0);for(var Pe=0;Pe<Me;++Pe)le[Pe]=this[Pe+D]}return le};function Qe(K,D,M){if(K%1!==0||K<0)throw new RangeError("offset is not uint");if(K+D>M)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUIntLE=function(D,M,Q){D=D|0,M=M|0,Q||Qe(D,M,this.length);for(var le=this[D],Me=1,Pe=0;++Pe<M&&(Me*=256);)le+=this[D+Pe]*Me;return le},v.prototype.readUIntBE=function(D,M,Q){D=D|0,M=M|0,Q||Qe(D,M,this.length);for(var le=this[D+--M],Me=1;M>0&&(Me*=256);)le+=this[D+--M]*Me;return le},v.prototype.readUInt8=function(D,M){return M||Qe(D,1,this.length),this[D]},v.prototype.readUInt16LE=function(D,M){return M||Qe(D,2,this.length),this[D]|this[D+1]<<8},v.prototype.readUInt16BE=function(D,M){return M||Qe(D,2,this.length),this[D]<<8|this[D+1]},v.prototype.readUInt32LE=function(D,M){return M||Qe(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+this[D+3]*16777216},v.prototype.readUInt32BE=function(D,M){return M||Qe(D,4,this.length),this[D]*16777216+(this[D+1]<<16|this[D+2]<<8|this[D+3])},v.prototype.readIntLE=function(D,M,Q){D=D|0,M=M|0,Q||Qe(D,M,this.length);for(var le=this[D],Me=1,Pe=0;++Pe<M&&(Me*=256);)le+=this[D+Pe]*Me;return Me*=128,le>=Me&&(le-=Math.pow(2,8*M)),le},v.prototype.readIntBE=function(D,M,Q){D=D|0,M=M|0,Q||Qe(D,M,this.length);for(var le=M,Me=1,Pe=this[D+--le];le>0&&(Me*=256);)Pe+=this[D+--le]*Me;return Me*=128,Pe>=Me&&(Pe-=Math.pow(2,8*M)),Pe},v.prototype.readInt8=function(D,M){return M||Qe(D,1,this.length),this[D]&128?(255-this[D]+1)*-1:this[D]},v.prototype.readInt16LE=function(D,M){M||Qe(D,2,this.length);var Q=this[D]|this[D+1]<<8;return Q&32768?Q|4294901760:Q},v.prototype.readInt16BE=function(D,M){M||Qe(D,2,this.length);var Q=this[D+1]|this[D]<<8;return Q&32768?Q|4294901760:Q},v.prototype.readInt32LE=function(D,M){return M||Qe(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},v.prototype.readInt32BE=function(D,M){return M||Qe(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},v.prototype.readFloatLE=function(D,M){return M||Qe(D,4,this.length),f.read(this,D,!0,23,4)},v.prototype.readFloatBE=function(D,M){return M||Qe(D,4,this.length),f.read(this,D,!1,23,4)},v.prototype.readDoubleLE=function(D,M){return M||Qe(D,8,this.length),f.read(this,D,!0,52,8)},v.prototype.readDoubleBE=function(D,M){return M||Qe(D,8,this.length),f.read(this,D,!1,52,8)};function dt(K,D,M,Q,le,Me){if(!v.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>le||D<Me)throw new RangeError('"value" argument is out of bounds');if(M+Q>K.length)throw new RangeError("Index out of range")}v.prototype.writeUIntLE=function(D,M,Q,le){if(D=+D,M=M|0,Q=Q|0,!le){var Me=Math.pow(2,8*Q)-1;dt(this,D,M,Q,Me,0)}var Pe=1,ct=0;for(this[M]=D&255;++ct<Q&&(Pe*=256);)this[M+ct]=D/Pe&255;return M+Q},v.prototype.writeUIntBE=function(D,M,Q,le){if(D=+D,M=M|0,Q=Q|0,!le){var Me=Math.pow(2,8*Q)-1;dt(this,D,M,Q,Me,0)}var Pe=Q-1,ct=1;for(this[M+Pe]=D&255;--Pe>=0&&(ct*=256);)this[M+Pe]=D/ct&255;return M+Q},v.prototype.writeUInt8=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,1,255,0),v.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),this[M]=D&255,M+1};function Ce(K,D,M,Q){D<0&&(D=65535+D+1);for(var le=0,Me=Math.min(K.length-M,2);le<Me;++le)K[M+le]=(D&255<<8*(Q?le:1-le))>>>(Q?le:1-le)*8}v.prototype.writeUInt16LE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[M]=D&255,this[M+1]=D>>>8):Ce(this,D,M,!0),M+2},v.prototype.writeUInt16BE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[M]=D>>>8,this[M+1]=D&255):Ce(this,D,M,!1),M+2};function St(K,D,M,Q){D<0&&(D=4294967295+D+1);for(var le=0,Me=Math.min(K.length-M,4);le<Me;++le)K[M+le]=D>>>(Q?le:3-le)*8&255}v.prototype.writeUInt32LE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[M+3]=D>>>24,this[M+2]=D>>>16,this[M+1]=D>>>8,this[M]=D&255):St(this,D,M,!0),M+4},v.prototype.writeUInt32BE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[M]=D>>>24,this[M+1]=D>>>16,this[M+2]=D>>>8,this[M+3]=D&255):St(this,D,M,!1),M+4},v.prototype.writeIntLE=function(D,M,Q,le){if(D=+D,M=M|0,!le){var Me=Math.pow(2,8*Q-1);dt(this,D,M,Q,Me-1,-Me)}var Pe=0,ct=1,at=0;for(this[M]=D&255;++Pe<Q&&(ct*=256);)D<0&&at===0&&this[M+Pe-1]!==0&&(at=1),this[M+Pe]=(D/ct>>0)-at&255;return M+Q},v.prototype.writeIntBE=function(D,M,Q,le){if(D=+D,M=M|0,!le){var Me=Math.pow(2,8*Q-1);dt(this,D,M,Q,Me-1,-Me)}var Pe=Q-1,ct=1,at=0;for(this[M+Pe]=D&255;--Pe>=0&&(ct*=256);)D<0&&at===0&&this[M+Pe+1]!==0&&(at=1),this[M+Pe]=(D/ct>>0)-at&255;return M+Q},v.prototype.writeInt8=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,1,127,-128),v.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),D<0&&(D=255+D+1),this[M]=D&255,M+1},v.prototype.writeInt16LE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[M]=D&255,this[M+1]=D>>>8):Ce(this,D,M,!0),M+2},v.prototype.writeInt16BE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[M]=D>>>8,this[M+1]=D&255):Ce(this,D,M,!1),M+2},v.prototype.writeInt32LE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,4,2147483647,-2147483648),v.TYPED_ARRAY_SUPPORT?(this[M]=D&255,this[M+1]=D>>>8,this[M+2]=D>>>16,this[M+3]=D>>>24):St(this,D,M,!0),M+4},v.prototype.writeInt32BE=function(D,M,Q){return D=+D,M=M|0,Q||dt(this,D,M,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),v.TYPED_ARRAY_SUPPORT?(this[M]=D>>>24,this[M+1]=D>>>16,this[M+2]=D>>>8,this[M+3]=D&255):St(this,D,M,!1),M+4};function it(K,D,M,Q,le,Me){if(M+Q>K.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function Lt(K,D,M,Q,le){return le||it(K,D,M,4),f.write(K,D,M,Q,23,4),M+4}v.prototype.writeFloatLE=function(D,M,Q){return Lt(this,D,M,!0,Q)},v.prototype.writeFloatBE=function(D,M,Q){return Lt(this,D,M,!1,Q)};function Te(K,D,M,Q,le){return le||it(K,D,M,8),f.write(K,D,M,Q,52,8),M+8}v.prototype.writeDoubleLE=function(D,M,Q){return Te(this,D,M,!0,Q)},v.prototype.writeDoubleBE=function(D,M,Q){return Te(this,D,M,!1,Q)},v.prototype.copy=function(D,M,Q,le){if(Q||(Q=0),!le&&le!==0&&(le=this.length),M>=D.length&&(M=D.length),M||(M=0),le>0&&le<Q&&(le=Q),le===Q||D.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),D.length-M<le-Q&&(le=D.length-M+Q);var Me=le-Q,Pe;if(this===D&&Q<M&&M<le)for(Pe=Me-1;Pe>=0;--Pe)D[Pe+M]=this[Pe+Q];else if(Me<1e3||!v.TYPED_ARRAY_SUPPORT)for(Pe=0;Pe<Me;++Pe)D[Pe+M]=this[Pe+Q];else Uint8Array.prototype.set.call(D,this.subarray(Q,Q+Me),M);return Me},v.prototype.fill=function(D,M,Q,le){if(typeof D=="string"){if(typeof M=="string"?(le=M,M=0,Q=this.length):typeof Q=="string"&&(le=Q,Q=this.length),D.length===1){var Me=D.charCodeAt(0);Me<256&&(D=Me)}if(le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!v.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else typeof D=="number"&&(D=D&255);if(M<0||this.length<M||this.length<Q)throw new RangeError("Out of range index");if(Q<=M)return this;M=M>>>0,Q=Q===void 0?this.length:Q>>>0,D||(D=0);var Pe;if(typeof D=="number")for(Pe=M;Pe<Q;++Pe)this[Pe]=D;else{var ct=v.isBuffer(D)?D:Ct(new v(D,le).toString()),at=ct.length;for(Pe=0;Pe<Q-M;++Pe)this[Pe+M]=ct[Pe%at]}return this};var ot=/[^+\/0-9A-Za-z-_]/g;function ft(K){if(K=It(K).replace(ot,""),K.length<2)return"";for(;K.length%4!==0;)K=K+"=";return K}function It(K){return K.trim?K.trim():K.replace(/^\s+|\s+$/g,"")}function wt(K){return K<16?"0"+K.toString(16):K.toString(16)}function Ct(K,D){D=D||1/0;for(var M,Q=K.length,le=null,Me=[],Pe=0;Pe<Q;++Pe){if(M=K.charCodeAt(Pe),M>55295&&M<57344){if(!le){if(M>56319){(D-=3)>-1&&Me.push(239,191,189);continue}else if(Pe+1===Q){(D-=3)>-1&&Me.push(239,191,189);continue}le=M;continue}if(M<56320){(D-=3)>-1&&Me.push(239,191,189),le=M;continue}M=(le-55296<<10|M-56320)+65536}else le&&(D-=3)>-1&&Me.push(239,191,189);if(le=null,M<128){if((D-=1)<0)break;Me.push(M)}else if(M<2048){if((D-=2)<0)break;Me.push(M>>6|192,M&63|128)}else if(M<65536){if((D-=3)<0)break;Me.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((D-=4)<0)break;Me.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return Me}function xt(K){for(var D=[],M=0;M<K.length;++M)D.push(K.charCodeAt(M)&255);return D}function He(K,D){for(var M,Q,le,Me=[],Pe=0;Pe<K.length&&!((D-=2)<0);++Pe)M=K.charCodeAt(Pe),Q=M>>8,le=M%256,Me.push(le),Me.push(Q);return Me}function Ut(K){return c.toByteArray(ft(K))}function qt(K,D,M,Q){for(var le=0;le<Q&&!(le+M>=D.length||le>=K.length);++le)D[le+M]=K[le];return le}function Et(K){return K!==K}},333:(a,s)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */s.read=function(u,c,f,d,m){var h,p,v=m*8-d-1,w=(1<<v)-1,S=w>>1,y=-7,z=f?m-1:0,O=f?-1:1,N=u[c+z];for(z+=O,h=N&(1<<-y)-1,N>>=-y,y+=v;y>0;h=h*256+u[c+z],z+=O,y-=8);for(p=h&(1<<-y)-1,h>>=-y,y+=d;y>0;p=p*256+u[c+z],z+=O,y-=8);if(h===0)h=1-S;else{if(h===w)return p?NaN:(N?-1:1)*(1/0);p=p+Math.pow(2,d),h=h-S}return(N?-1:1)*p*Math.pow(2,h-d)},s.write=function(u,c,f,d,m,h){var p,v,w,S=h*8-m-1,y=(1<<S)-1,z=y>>1,O=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=d?0:h-1,U=d?1:-1,A=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(v=isNaN(c)?1:0,p=y):(p=Math.floor(Math.log(c)/Math.LN2),c*(w=Math.pow(2,-p))<1&&(p--,w*=2),p+z>=1?c+=O/w:c+=O*Math.pow(2,1-z),c*w>=2&&(p++,w/=2),p+z>=y?(v=0,p=y):p+z>=1?(v=(c*w-1)*Math.pow(2,m),p=p+z):(v=c*Math.pow(2,z-1)*Math.pow(2,m),p=0));m>=8;u[f+N]=v&255,N+=U,v/=256,m-=8);for(p=p<<m|v,S+=m;S>0;u[f+N]=p&255,N+=U,p/=256,S-=8);u[f+N-U]|=A*128}},906:a=>{var s={}.toString;a.exports=Array.isArray||function(u){return s.call(u)=="[object Array]"}},405:(a,s,u)=>{a.exports=self.fetch||(self.fetch=u(677).default||u(677))},34:(a,s,u)=>{var c,f;/*!
181
+ * JavaScript Cookie v2.2.1
182
+ * https://github.com/js-cookie/js-cookie
183
+ *
184
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
185
+ * Released under the MIT license
186
+ */(function(d){var m;if(c=d,f=typeof c=="function"?c.call(s,u,s,a):c,f!==void 0&&(a.exports=f),m=!0,a.exports=d(),m=!0,!m){var h=window.Cookies,p=window.Cookies=d();p.noConflict=function(){return window.Cookies=h,p}}})(function(){function d(){for(var p=0,v={};p<arguments.length;p++){var w=arguments[p];for(var S in w)v[S]=w[S]}return v}function m(p){return p.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function h(p){function v(){}function w(y,z,O){if(!(typeof document>"u")){O=d({path:"/"},v.defaults,O),typeof O.expires=="number"&&(O.expires=new Date(new Date*1+O.expires*864e5)),O.expires=O.expires?O.expires.toUTCString():"";try{var N=JSON.stringify(z);/^[\{\[]/.test(N)&&(z=N)}catch{}z=p.write?p.write(z,y):encodeURIComponent(String(z)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),y=encodeURIComponent(String(y)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var U="";for(var A in O)O[A]&&(U+="; "+A,O[A]!==!0&&(U+="="+O[A].split(";")[0]));return document.cookie=y+"="+z+U}}function S(y,z){if(!(typeof document>"u")){for(var O={},N=document.cookie?document.cookie.split("; "):[],U=0;U<N.length;U++){var A=N[U].split("="),P=A.slice(1).join("=");!z&&P.charAt(0)==='"'&&(P=P.slice(1,-1));try{var Y=m(A[0]);if(P=(p.read||p)(P,Y)||m(P),z)try{P=JSON.parse(P)}catch{}if(O[Y]=P,y===Y)break}catch{}}return y?O[y]:O}}return v.set=w,v.get=function(y){return S(y,!1)},v.getJSON=function(y){return S(y,!0)},v.remove=function(y,z){w(y,"",d(z,{expires:-1}))},v.defaults={},v.withConverter=h,v}return h(function(){})})},163:(a,s,u)=>{u.r(s),u.d(s,{__assign:()=>d,__asyncDelegator:()=>B,__asyncGenerator:()=>Y,__asyncValues:()=>J,__await:()=>P,__awaiter:()=>w,__classPrivateFieldGet:()=>he,__classPrivateFieldSet:()=>de,__createBinding:()=>y,__decorate:()=>h,__exportStar:()=>z,__extends:()=>f,__generator:()=>S,__importDefault:()=>ce,__importStar:()=>X,__makeTemplateObject:()=>ee,__metadata:()=>v,__param:()=>p,__read:()=>N,__rest:()=>m,__spread:()=>U,__spreadArrays:()=>A,__values:()=>O});/*! *****************************************************************************
187
+ Copyright (c) Microsoft Corporation.
188
+
189
+ Permission to use, copy, modify, and/or distribute this software for any
190
+ purpose with or without fee is hereby granted.
191
+
192
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
193
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
194
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
195
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
196
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
197
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
198
+ PERFORMANCE OF THIS SOFTWARE.
199
+ ***************************************************************************** */var c=function(se,ue){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Oe){fe.__proto__=Oe}||function(fe,Oe){for(var me in Oe)Oe.hasOwnProperty(me)&&(fe[me]=Oe[me])},c(se,ue)};function f(se,ue){c(se,ue);function fe(){this.constructor=se}se.prototype=ue===null?Object.create(ue):(fe.prototype=ue.prototype,new fe)}var d=function(){return d=Object.assign||function(ue){for(var fe,Oe=1,me=arguments.length;Oe<me;Oe++){fe=arguments[Oe];for(var we in fe)Object.prototype.hasOwnProperty.call(fe,we)&&(ue[we]=fe[we])}return ue},d.apply(this,arguments)};function m(se,ue){var fe={};for(var Oe in se)Object.prototype.hasOwnProperty.call(se,Oe)&&ue.indexOf(Oe)<0&&(fe[Oe]=se[Oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Oe=Object.getOwnPropertySymbols(se);me<Oe.length;me++)ue.indexOf(Oe[me])<0&&Object.prototype.propertyIsEnumerable.call(se,Oe[me])&&(fe[Oe[me]]=se[Oe[me]]);return fe}function h(se,ue,fe,Oe){var me=arguments.length,we=me<3?ue:Oe===null?Oe=Object.getOwnPropertyDescriptor(ue,fe):Oe,Fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(se,ue,fe,Oe);else for(var pe=se.length-1;pe>=0;pe--)(Fe=se[pe])&&(we=(me<3?Fe(we):me>3?Fe(ue,fe,we):Fe(ue,fe))||we);return me>3&&we&&Object.defineProperty(ue,fe,we),we}function p(se,ue){return function(fe,Oe){ue(fe,Oe,se)}}function v(se,ue){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(se,ue)}function w(se,ue,fe,Oe){function me(we){return we instanceof fe?we:new fe(function(Fe){Fe(we)})}return new(fe||(fe=Promise))(function(we,Fe){function pe(Ze){try{De(Oe.next(Ze))}catch(Qe){Fe(Qe)}}function Se(Ze){try{De(Oe.throw(Ze))}catch(Qe){Fe(Qe)}}function De(Ze){Ze.done?we(Ze.value):me(Ze.value).then(pe,Se)}De((Oe=Oe.apply(se,ue||[])).next())})}function S(se,ue){var fe={label:0,sent:function(){if(we[0]&1)throw we[1];return we[1]},trys:[],ops:[]},Oe,me,we,Fe;return Fe={next:pe(0),throw:pe(1),return:pe(2)},typeof Symbol=="function"&&(Fe[Symbol.iterator]=function(){return this}),Fe;function pe(De){return function(Ze){return Se([De,Ze])}}function Se(De){if(Oe)throw new TypeError("Generator is already executing.");for(;fe;)try{if(Oe=1,me&&(we=De[0]&2?me.return:De[0]?me.throw||((we=me.return)&&we.call(me),0):me.next)&&!(we=we.call(me,De[1])).done)return we;switch(me=0,we&&(De=[De[0]&2,we.value]),De[0]){case 0:case 1:we=De;break;case 4:return fe.label++,{value:De[1],done:!1};case 5:fe.label++,me=De[1],De=[0];continue;case 7:De=fe.ops.pop(),fe.trys.pop();continue;default:if(we=fe.trys,!(we=we.length>0&&we[we.length-1])&&(De[0]===6||De[0]===2)){fe=0;continue}if(De[0]===3&&(!we||De[1]>we[0]&&De[1]<we[3])){fe.label=De[1];break}if(De[0]===6&&fe.label<we[1]){fe.label=we[1],we=De;break}if(we&&fe.label<we[2]){fe.label=we[2],fe.ops.push(De);break}we[2]&&fe.ops.pop(),fe.trys.pop();continue}De=ue.call(se,fe)}catch(Ze){De=[6,Ze],me=0}finally{Oe=we=0}if(De[0]&5)throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}}function y(se,ue,fe,Oe){Oe===void 0&&(Oe=fe),se[Oe]=ue[fe]}function z(se,ue){for(var fe in se)fe!=="default"&&!ue.hasOwnProperty(fe)&&(ue[fe]=se[fe])}function O(se){var ue=typeof Symbol=="function"&&Symbol.iterator,fe=ue&&se[ue],Oe=0;if(fe)return fe.call(se);if(se&&typeof se.length=="number")return{next:function(){return se&&Oe>=se.length&&(se=void 0),{value:se&&se[Oe++],done:!se}}};throw new TypeError(ue?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(se,ue){var fe=typeof Symbol=="function"&&se[Symbol.iterator];if(!fe)return se;var Oe=fe.call(se),me,we=[],Fe;try{for(;(ue===void 0||ue-- >0)&&!(me=Oe.next()).done;)we.push(me.value)}catch(pe){Fe={error:pe}}finally{try{me&&!me.done&&(fe=Oe.return)&&fe.call(Oe)}finally{if(Fe)throw Fe.error}}return we}function U(){for(var se=[],ue=0;ue<arguments.length;ue++)se=se.concat(N(arguments[ue]));return se}function A(){for(var se=0,ue=0,fe=arguments.length;ue<fe;ue++)se+=arguments[ue].length;for(var Oe=Array(se),me=0,ue=0;ue<fe;ue++)for(var we=arguments[ue],Fe=0,pe=we.length;Fe<pe;Fe++,me++)Oe[me]=we[Fe];return Oe}function P(se){return this instanceof P?(this.v=se,this):new P(se)}function Y(se,ue,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Oe=fe.apply(se,ue||[]),me,we=[];return me={},Fe("next"),Fe("throw"),Fe("return"),me[Symbol.asyncIterator]=function(){return this},me;function Fe(dt){Oe[dt]&&(me[dt]=function(Ce){return new Promise(function(St,it){we.push([dt,Ce,St,it])>1||pe(dt,Ce)})})}function pe(dt,Ce){try{Se(Oe[dt](Ce))}catch(St){Qe(we[0][3],St)}}function Se(dt){dt.value instanceof P?Promise.resolve(dt.value.v).then(De,Ze):Qe(we[0][2],dt)}function De(dt){pe("next",dt)}function Ze(dt){pe("throw",dt)}function Qe(dt,Ce){dt(Ce),we.shift(),we.length&&pe(we[0][0],we[0][1])}}function B(se){var ue,fe;return ue={},Oe("next"),Oe("throw",function(me){throw me}),Oe("return"),ue[Symbol.iterator]=function(){return this},ue;function Oe(me,we){ue[me]=se[me]?function(Fe){return(fe=!fe)?{value:P(se[me](Fe)),done:me==="return"}:we?we(Fe):Fe}:we}}function J(se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ue=se[Symbol.asyncIterator],fe;return ue?ue.call(se):(se=typeof O=="function"?O(se):se[Symbol.iterator](),fe={},Oe("next"),Oe("throw"),Oe("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function Oe(we){fe[we]=se[we]&&function(Fe){return new Promise(function(pe,Se){Fe=se[we](Fe),me(pe,Se,Fe.done,Fe.value)})}}function me(we,Fe,pe,Se){Promise.resolve(Se).then(function(De){we({value:De,done:pe})},Fe)}}function ee(se,ue){return Object.defineProperty?Object.defineProperty(se,"raw",{value:ue}):se.raw=ue,se}function X(se){if(se&&se.__esModule)return se;var ue={};if(se!=null)for(var fe in se)Object.hasOwnProperty.call(se,fe)&&(ue[fe]=se[fe]);return ue.default=se,ue}function ce(se){return se&&se.__esModule?se:{default:se}}function he(se,ue){if(!ue.has(se))throw new TypeError("attempted to get private field on non-instance");return ue.get(se)}function de(se,ue,fe){if(!ue.has(se))throw new TypeError("attempted to set private field on non-instance");return ue.set(se,fe),fe}},677:(a,s,u)=>{u.r(s),u.d(s,{default:()=>c});function c(f,d){return d=d||{},new Promise(function(m,h){var p=new XMLHttpRequest,v=[],w=[],S={},y=function(){return{ok:(p.status/100|0)==2,statusText:p.statusText,status:p.status,url:p.responseURL,text:function(){return Promise.resolve(p.responseText)},json:function(){return Promise.resolve(p.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([p.response]))},clone:y,headers:{keys:function(){return v},entries:function(){return w},get:function(O){return S[O.toLowerCase()]},has:function(O){return O.toLowerCase()in S}}}};for(var z in p.open(d.method||"get",f,!0),p.onload=function(){p.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(O,N,U){v.push(N=N.toLowerCase()),w.push([N,U]),S[N]=S[N]?S[N]+","+U:U}),m(y())},p.onerror=h,p.withCredentials=d.credentials=="include",d.headers)p.setRequestHeader(z,d.headers[z]);p.send(d.body||null)})}},100:a=>{if(typeof n>"u"){var s=new Error("Cannot find module 'crypto'");throw s.code="MODULE_NOT_FOUND",s}a.exports=n}},i={};function o(a){var s=i[a];if(s!==void 0)return s.exports;var u=i[a]={exports:{}};return r[a](u,u.exports,o),u.exports}o.d=(a,s)=>{for(var u in s)o.o(s,u)&&!o.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:s[u]})},o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),o.o=(a,s)=>Object.prototype.hasOwnProperty.call(a,s),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var l={};return(()=>{o.r(l),o.d(l,{AuthenticationDetails:()=>m,AuthenticationHelper:()=>Ge,CognitoAccessToken:()=>ur,CognitoIdToken:()=>er,CognitoRefreshToken:()=>Dt,CognitoUser:()=>nr,CognitoUserAttribute:()=>Wl,CognitoUserPool:()=>FF,CognitoUserSession:()=>Fo,CookieStorage:()=>JF,DateHelper:()=>xo,WordArray:()=>A,appendToCognitoUserAgent:()=>jl});function a(T){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},a(T)}function s(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function u(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,f(I.key),I)}}function c(T,_,k){return _&&u(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function f(T){var _=d(T,"string");return a(_)=="symbol"?_:String(_)}function d(T,_){if(a(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(a(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
200
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
201
+ * SPDX-License-Identifier: Apache-2.0
202
+ */var m=function(){function T(_){s(this,T);var k=_||{},I=k.ValidationData,q=k.Username,te=k.Password,ae=k.AuthParameters,be=k.ClientMetadata;this.validationData=I||{},this.authParameters=ae||{},this.clientMetadata=be||{},this.username=q,this.password=te}return c(T,[{key:"getUsername",value:function(){return this.username}},{key:"getPassword",value:function(){return this.password}},{key:"getValidationData",value:function(){return this.validationData}},{key:"getAuthParameters",value:function(){return this.authParameters}},{key:"getClientMetadata",value:function(){return this.clientMetadata}}]),T}(),h=o(834),p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof o.g<"u"&&o.g.crypto&&(p=o.g.crypto),!p)try{p=o(100)}catch{}function v(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function w(T){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},w(T)}function S(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function y(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,O(I.key),I)}}function z(T,_,k){return _&&y(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function O(T){var _=N(T,"string");return w(_)=="symbol"?_:String(_)}function N(T,_){if(w(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(w(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}function U(T){for(var _=T.words,k=T.sigBytes,I=[],q=0;q<k;q++){var te=_[q>>>2]>>>24-q%4*8&255;I.push((te>>>4).toString(16)),I.push((te&15).toString(16))}return I.join("")}var A=function(){function T(_,k){S(this,T),_=this.words=_||[],k!=null?this.sigBytes=k:this.sigBytes=_.length*4}return z(T,[{key:"random",value:function(k){for(var I=[],q=0;q<k;q+=4)I.push(v());return new T(I,k)}},{key:"toString",value:function(){return U(this)}}]),T}(),P=o(387);const Y=B;function B(T,_){T!=null&&this.fromString(T,_)}function J(){return new B(null)}var ee,X=0xdeadbeefcafe,ce=(X&16777215)==15715070;function he(T,_,k,I,q,te){for(;--te>=0;){var ae=_*this[T++]+k[I]+q;q=Math.floor(ae/67108864),k[I++]=ae&67108863}return q}function de(T,_,k,I,q,te){for(var ae=_&32767,be=_>>15;--te>=0;){var $e=this[T]&32767,Ye=this[T++]>>15,lt=be*$e+Ye*ae;$e=ae*$e+((lt&32767)<<15)+k[I]+(q&1073741823),q=($e>>>30)+(lt>>>15)+be*Ye+(q>>>30),k[I++]=$e&1073741823}return q}function se(T,_,k,I,q,te){for(var ae=_&16383,be=_>>14;--te>=0;){var $e=this[T]&16383,Ye=this[T++]>>14,lt=be*$e+Ye*ae;$e=ae*$e+((lt&16383)<<14)+k[I]+q,q=($e>>28)+(lt>>14)+be*Ye,k[I++]=$e&268435455}return q}var ue=typeof navigator<"u";ue&&ce&&navigator.appName=="Microsoft Internet Explorer"?(B.prototype.am=de,ee=30):ue&&ce&&navigator.appName!="Netscape"?(B.prototype.am=he,ee=26):(B.prototype.am=se,ee=28),B.prototype.DB=ee,B.prototype.DM=(1<<ee)-1,B.prototype.DV=1<<ee;var fe=52;B.prototype.FV=Math.pow(2,fe),B.prototype.F1=fe-ee,B.prototype.F2=2*ee-fe;var Oe="0123456789abcdefghijklmnopqrstuvwxyz",me=new Array,we,Fe;for(we=48,Fe=0;Fe<=9;++Fe)me[we++]=Fe;for(we=97,Fe=10;Fe<36;++Fe)me[we++]=Fe;for(we=65,Fe=10;Fe<36;++Fe)me[we++]=Fe;function pe(T){return Oe.charAt(T)}function Se(T,_){var k=me[T.charCodeAt(_)];return k??-1}function De(T){for(var _=this.t-1;_>=0;--_)T[_]=this[_];T.t=this.t,T.s=this.s}function Ze(T){this.t=1,this.s=T<0?-1:0,T>0?this[0]=T:T<-1?this[0]=T+this.DV:this.t=0}function Qe(T){var _=J();return _.fromInt(T),_}function dt(T,_){var k;if(_==16)k=4;else if(_==8)k=3;else if(_==2)k=1;else if(_==32)k=5;else if(_==4)k=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var I=T.length,q=!1,te=0;--I>=0;){var ae=Se(T,I);if(ae<0){T.charAt(I)=="-"&&(q=!0);continue}q=!1,te==0?this[this.t++]=ae:te+k>this.DB?(this[this.t-1]|=(ae&(1<<this.DB-te)-1)<<te,this[this.t++]=ae>>this.DB-te):this[this.t-1]|=ae<<te,te+=k,te>=this.DB&&(te-=this.DB)}this.clamp(),q&&B.ZERO.subTo(this,this)}function Ce(){for(var T=this.s&this.DM;this.t>0&&this[this.t-1]==T;)--this.t}function St(T){if(this.s<0)return"-"+this.negate().toString(T);var _;if(T==16)_=4;else if(T==8)_=3;else if(T==2)_=1;else if(T==32)_=5;else if(T==4)_=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var k=(1<<_)-1,I,q=!1,te="",ae=this.t,be=this.DB-ae*this.DB%_;if(ae-- >0)for(be<this.DB&&(I=this[ae]>>be)>0&&(q=!0,te=pe(I));ae>=0;)be<_?(I=(this[ae]&(1<<be)-1)<<_-be,I|=this[--ae]>>(be+=this.DB-_)):(I=this[ae]>>(be-=_)&k,be<=0&&(be+=this.DB,--ae)),I>0&&(q=!0),q&&(te+=pe(I));return q?te:"0"}function it(){var T=J();return B.ZERO.subTo(this,T),T}function Lt(){return this.s<0?this.negate():this}function Te(T){var _=this.s-T.s;if(_!=0)return _;var k=this.t;if(_=k-T.t,_!=0)return this.s<0?-_:_;for(;--k>=0;)if((_=this[k]-T[k])!=0)return _;return 0}function ot(T){var _=1,k;return(k=T>>>16)!=0&&(T=k,_+=16),(k=T>>8)!=0&&(T=k,_+=8),(k=T>>4)!=0&&(T=k,_+=4),(k=T>>2)!=0&&(T=k,_+=2),(k=T>>1)!=0&&(T=k,_+=1),_}function ft(){return this.t<=0?0:this.DB*(this.t-1)+ot(this[this.t-1]^this.s&this.DM)}function It(T,_){var k;for(k=this.t-1;k>=0;--k)_[k+T]=this[k];for(k=T-1;k>=0;--k)_[k]=0;_.t=this.t+T,_.s=this.s}function wt(T,_){for(var k=T;k<this.t;++k)_[k-T]=this[k];_.t=Math.max(this.t-T,0),_.s=this.s}function Ct(T,_){var k=T%this.DB,I=this.DB-k,q=(1<<I)-1,te=Math.floor(T/this.DB),ae=this.s<<k&this.DM,be;for(be=this.t-1;be>=0;--be)_[be+te+1]=this[be]>>I|ae,ae=(this[be]&q)<<k;for(be=te-1;be>=0;--be)_[be]=0;_[te]=ae,_.t=this.t+te+1,_.s=this.s,_.clamp()}function xt(T,_){_.s=this.s;var k=Math.floor(T/this.DB);if(k>=this.t){_.t=0;return}var I=T%this.DB,q=this.DB-I,te=(1<<I)-1;_[0]=this[k]>>I;for(var ae=k+1;ae<this.t;++ae)_[ae-k-1]|=(this[ae]&te)<<q,_[ae-k]=this[ae]>>I;I>0&&(_[this.t-k-1]|=(this.s&te)<<q),_.t=this.t-k,_.clamp()}function He(T,_){for(var k=0,I=0,q=Math.min(T.t,this.t);k<q;)I+=this[k]-T[k],_[k++]=I&this.DM,I>>=this.DB;if(T.t<this.t){for(I-=T.s;k<this.t;)I+=this[k],_[k++]=I&this.DM,I>>=this.DB;I+=this.s}else{for(I+=this.s;k<T.t;)I-=T[k],_[k++]=I&this.DM,I>>=this.DB;I-=T.s}_.s=I<0?-1:0,I<-1?_[k++]=this.DV+I:I>0&&(_[k++]=I),_.t=k,_.clamp()}function Ut(T,_){var k=this.abs(),I=T.abs(),q=k.t;for(_.t=q+I.t;--q>=0;)_[q]=0;for(q=0;q<I.t;++q)_[q+k.t]=k.am(0,I[q],_,q,0,k.t);_.s=0,_.clamp(),this.s!=T.s&&B.ZERO.subTo(_,_)}function qt(T){for(var _=this.abs(),k=T.t=2*_.t;--k>=0;)T[k]=0;for(k=0;k<_.t-1;++k){var I=_.am(k,_[k],T,2*k,0,1);(T[k+_.t]+=_.am(k+1,2*_[k],T,2*k+1,I,_.t-k-1))>=_.DV&&(T[k+_.t]-=_.DV,T[k+_.t+1]=1)}T.t>0&&(T[T.t-1]+=_.am(k,_[k],T,2*k,0,1)),T.s=0,T.clamp()}function Et(T,_,k){var I=T.abs();if(!(I.t<=0)){var q=this.abs();if(q.t<I.t){_!=null&&_.fromInt(0),k!=null&&this.copyTo(k);return}k==null&&(k=J());var te=J(),ae=this.s,be=T.s,$e=this.DB-ot(I[I.t-1]);$e>0?(I.lShiftTo($e,te),q.lShiftTo($e,k)):(I.copyTo(te),q.copyTo(k));var Ye=te.t,lt=te[Ye-1];if(lt!=0){var Tt=lt*(1<<this.F1)+(Ye>1?te[Ye-2]>>this.F2:0),Ft=this.FV/Tt,Yt=(1<<this.F1)/Tt,kn=1<<this.F2,on=k.t,gn=on-Ye,wn=_??J();for(te.dlShiftTo(gn,wn),k.compareTo(wn)>=0&&(k[k.t++]=1,k.subTo(wn,k)),B.ONE.dlShiftTo(Ye,wn),wn.subTo(te,te);te.t<Ye;)te[te.t++]=0;for(;--gn>=0;){var ei=k[--on]==lt?this.DM:Math.floor(k[on]*Ft+(k[on-1]+kn)*Yt);if((k[on]+=te.am(0,ei,k,gn,0,Ye))<ei)for(te.dlShiftTo(gn,wn),k.subTo(wn,k);k[on]<--ei;)k.subTo(wn,k)}_!=null&&(k.drShiftTo(Ye,_),ae!=be&&B.ZERO.subTo(_,_)),k.t=Ye,k.clamp(),$e>0&&k.rShiftTo($e,k),ae<0&&B.ZERO.subTo(k,k)}}}function K(T){var _=J();return this.abs().divRemTo(T,null,_),this.s<0&&_.compareTo(B.ZERO)>0&&T.subTo(_,_),_}function D(){if(this.t<1)return 0;var T=this[0];if(!(T&1))return 0;var _=T&3;return _=_*(2-(T&15)*_)&15,_=_*(2-(T&255)*_)&255,_=_*(2-((T&65535)*_&65535))&65535,_=_*(2-T*_%this.DV)%this.DV,_>0?this.DV-_:-_}function M(T){return this.compareTo(T)==0}function Q(T,_){for(var k=0,I=0,q=Math.min(T.t,this.t);k<q;)I+=this[k]+T[k],_[k++]=I&this.DM,I>>=this.DB;if(T.t<this.t){for(I+=T.s;k<this.t;)I+=this[k],_[k++]=I&this.DM,I>>=this.DB;I+=this.s}else{for(I+=this.s;k<T.t;)I+=T[k],_[k++]=I&this.DM,I>>=this.DB;I+=T.s}_.s=I<0?-1:0,I>0?_[k++]=I:I<-1&&(_[k++]=this.DV+I),_.t=k,_.clamp()}function le(T){var _=J();return this.addTo(T,_),_}function Me(T){var _=J();return this.subTo(T,_),_}function Pe(T){var _=J();return this.multiplyTo(T,_),_}function ct(T){var _=J();return this.divRemTo(T,_,null),_}function at(T){this.m=T,this.mp=T.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<T.DB-15)-1,this.mt2=2*T.t}function et(T){var _=J();return T.abs().dlShiftTo(this.m.t,_),_.divRemTo(this.m,null,_),T.s<0&&_.compareTo(B.ZERO)>0&&this.m.subTo(_,_),_}function Ot(T){var _=J();return T.copyTo(_),this.reduce(_),_}function _t(T){for(;T.t<=this.mt2;)T[T.t++]=0;for(var _=0;_<this.m.t;++_){var k=T[_]&32767,I=k*this.mpl+((k*this.mph+(T[_]>>15)*this.mpl&this.um)<<15)&T.DM;for(k=_+this.m.t,T[k]+=this.m.am(0,I,T,_,0,this.m.t);T[k]>=T.DV;)T[k]-=T.DV,T[++k]++}T.clamp(),T.drShiftTo(this.m.t,T),T.compareTo(this.m)>=0&&T.subTo(this.m,T)}function Gt(T,_){T.squareTo(_),this.reduce(_)}function Vt(T,_,k){T.multiplyTo(_,k),this.reduce(k)}at.prototype.convert=et,at.prototype.revert=Ot,at.prototype.reduce=_t,at.prototype.mulTo=Vt,at.prototype.sqrTo=Gt;function Jt(T,_,k){var I=T.bitLength(),q,te=Qe(1),ae=new at(_);if(I<=0)return te;I<18?q=1:I<48?q=3:I<144?q=4:I<768?q=5:q=6;var be=new Array,$e=3,Ye=q-1,lt=(1<<q)-1;if(be[1]=ae.convert(this),q>1){var Tt=J();for(ae.sqrTo(be[1],Tt);$e<=lt;)be[$e]=J(),ae.mulTo(Tt,be[$e-2],be[$e]),$e+=2}var Ft=T.t-1,Yt,kn=!0,on=J(),gn;for(I=ot(T[Ft])-1;Ft>=0;){for(I>=Ye?Yt=T[Ft]>>I-Ye&lt:(Yt=(T[Ft]&(1<<I+1)-1)<<Ye-I,Ft>0&&(Yt|=T[Ft-1]>>this.DB+I-Ye)),$e=q;!(Yt&1);)Yt>>=1,--$e;if((I-=$e)<0&&(I+=this.DB,--Ft),kn)be[Yt].copyTo(te),kn=!1;else{for(;$e>1;)ae.sqrTo(te,on),ae.sqrTo(on,te),$e-=2;$e>0?ae.sqrTo(te,on):(gn=te,te=on,on=gn),ae.mulTo(on,be[Yt],te)}for(;Ft>=0&&!(T[Ft]&1<<I);)ae.sqrTo(te,on),gn=te,te=on,on=gn,--I<0&&(I=this.DB-1,--Ft)}var wn=ae.revert(te);return k(null,wn),wn}B.prototype.copyTo=De,B.prototype.fromInt=Ze,B.prototype.fromString=dt,B.prototype.clamp=Ce,B.prototype.dlShiftTo=It,B.prototype.drShiftTo=wt,B.prototype.lShiftTo=Ct,B.prototype.rShiftTo=xt,B.prototype.subTo=He,B.prototype.multiplyTo=Ut,B.prototype.squareTo=qt,B.prototype.divRemTo=Et,B.prototype.invDigit=D,B.prototype.addTo=Q,B.prototype.toString=St,B.prototype.negate=it,B.prototype.abs=Lt,B.prototype.compareTo=Te,B.prototype.bitLength=ft,B.prototype.mod=K,B.prototype.equals=M,B.prototype.add=le,B.prototype.subtract=Me,B.prototype.multiply=Pe,B.prototype.divide=ct,B.prototype.modPow=Jt,B.ZERO=Qe(0),B.ONE=Qe(1);function $t(T){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},$t(T)}function un(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function rn(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,G(I.key),I)}}function H(T,_,k){return _&&rn(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function G(T){var _=ie(T,"string");return $t(_)=="symbol"?_:String(_)}function ie(T,_){if($t(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if($t(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
203
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
204
+ * SPDX-License-Identifier: Apache-2.0
205
+ */function ge(T){return h.lW.from(new A().random(T).toString(),"hex")}var Re=/^[89a-f]/i,Be="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",bt="userAttributes.",Ge=function(){function T(_){un(this,T),this.N=new Y(Be,16),this.g=new Y("2",16),this.k=new Y(this.hexHash("".concat(this.padHex(this.N)).concat(this.padHex(this.g))),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=h.lW.from("Caldera Derived Key","utf8"),this.poolName=_}return H(T,[{key:"getSmallAValue",value:function(){return this.smallAValue}},{key:"getLargeAValue",value:function(k){var I=this;this.largeAValue?k(null,this.largeAValue):this.calculateA(this.smallAValue,function(q,te){q&&k(q,null),I.largeAValue=te,k(null,I.largeAValue)})}},{key:"generateRandomSmallA",value:function(){var k=ge(128).toString("hex"),I=new Y(k,16);return I}},{key:"generateRandomString",value:function(){return ge(40).toString("base64")}},{key:"getRandomPassword",value:function(){return this.randomPassword}},{key:"getSaltDevices",value:function(){return this.SaltToHashDevices}},{key:"getVerifierDevices",value:function(){return this.verifierDevices}},{key:"generateHashDevice",value:function(k,I,q){var te=this;this.randomPassword=this.generateRandomString();var ae="".concat(k).concat(I,":").concat(this.randomPassword),be=this.hash(ae),$e=ge(16).toString("hex");this.SaltToHashDevices=this.padHex(new Y($e,16)),this.g.modPow(new Y(this.hexHash(this.SaltToHashDevices+be),16),this.N,function(Ye,lt){Ye&&q(Ye,null),te.verifierDevices=te.padHex(lt),q(null,null)})}},{key:"calculateA",value:function(k,I){var q=this;this.g.modPow(k,this.N,function(te,ae){te&&I(te,null),ae.mod(q.N).equals(Y.ZERO)&&I(new Error("Illegal paramater. A mod N cannot be 0."),null),I(null,ae)})}},{key:"calculateU",value:function(k,I){this.UHexHash=this.hexHash(this.padHex(k)+this.padHex(I));var q=new Y(this.UHexHash,16);return q}},{key:"hash",value:function(k){var I=new P.Sha256;I.update(k);var q=I.digestSync(),te=h.lW.from(q).toString("hex");return new Array(64-te.length).join("0")+te}},{key:"hexHash",value:function(k){return this.hash(h.lW.from(k,"hex"))}},{key:"computehkdf",value:function(k,I){var q=h.lW.concat([this.infoBits,h.lW.from("","utf8")]),te=new P.Sha256(I);te.update(k);var ae=te.digestSync(),be=new P.Sha256(ae);be.update(q);var $e=be.digestSync(),Ye=$e,lt=Ye.slice(0,16);return lt}},{key:"getPasswordAuthenticationKey",value:function(k,I,q,te,ae){var be=this;if(q.mod(this.N).equals(Y.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,q),this.UValue.equals(Y.ZERO))throw new Error("U cannot be zero.");var $e="".concat(this.poolName).concat(k,":").concat(I),Ye=this.hash($e),lt=new Y(this.hexHash(this.padHex(te)+Ye),16);this.calculateS(lt,q,function(Tt,Ft){Tt&&ae(Tt,null);var Yt=be.computehkdf(h.lW.from(be.padHex(Ft),"hex"),h.lW.from(be.padHex(be.UValue),"hex"));ae(null,Yt)})}},{key:"calculateS",value:function(k,I,q){var te=this;this.g.modPow(k,this.N,function(ae,be){ae&&q(ae,null);var $e=I.subtract(te.k.multiply(be));$e.modPow(te.smallAValue.add(te.UValue.multiply(k)),te.N,function(Ye,lt){Ye&&q(Ye,null),q(null,lt.mod(te.N))})})}},{key:"getNewPasswordRequiredChallengeUserAttributePrefix",value:function(){return bt}},{key:"padHex",value:function(k){if(!(k instanceof Y))throw new Error("Not a BigInteger");var I=k.compareTo(Y.ZERO)<0,q=k.abs().toString(16);if(q=q.length%2!==0?"0".concat(q):q,q=Re.test(q)?"00".concat(q):q,I){var te=q.split("").map(function(be){var $e=~parseInt(be,16)&15;return"0123456789ABCDEF".charAt($e)}).join(""),ae=new Y(te,16).add(Y.ONE);q=ae.toString(16),q.toUpperCase().startsWith("FF8")&&(q=q.substring(2))}return q}}]),T}();function vt(T){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},vt(T)}function We(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function st(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,Ht(I.key),I)}}function Nt(T,_,k){return _&&st(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function Ht(T){var _=nn(T,"string");return vt(_)=="symbol"?_:String(_)}function nn(T,_){if(vt(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(vt(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
206
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
207
+ * SPDX-License-Identifier: Apache-2.0
208
+ */var _e=function(){function T(_){We(this,T),this.jwtToken=_||"",this.payload=this.decodePayload()}return Nt(T,[{key:"getJwtToken",value:function(){return this.jwtToken}},{key:"getExpiration",value:function(){return this.payload.exp}},{key:"getIssuedAt",value:function(){return this.payload.iat}},{key:"decodePayload",value:function(){var k=this.jwtToken.split(".")[1];try{return JSON.parse(h.lW.from(k,"base64").toString("utf8"))}catch{return{}}}}]),T}();function Ue(T){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Ue(T)}function Yn(T,_,k){return Object.defineProperty(T,"prototype",{writable:!1}),T}function An(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function Tn(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),_&&Xt(T,_)}function Xt(T,_){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,q){return I.__proto__=q,I},Xt(T,_)}function yn(T){var _=hn();return function(){var I=Rn(T),q;if(_){var te=Rn(this).constructor;q=Reflect.construct(I,arguments,te)}else q=I.apply(this,arguments);return dn(this,q)}}function dn(T,_){if(_&&(Ue(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $n(T)}function $n(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function hn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rn(T){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},Rn(T)}/*!
209
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
210
+ * SPDX-License-Identifier: Apache-2.0
211
+ */var ur=function(T){Tn(k,T);var _=yn(k);function k(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=I.AccessToken;return An(this,k),_.call(this,q||"")}return Yn(k)}(_e);function Nn(T){"@babel/helpers - typeof";return Nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Nn(T)}function cr(T,_,k){return Object.defineProperty(T,"prototype",{writable:!1}),T}function Xr(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function Zr(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),_&&Lr(T,_)}function Lr(T,_){return Lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,q){return I.__proto__=q,I},Lr(T,_)}function vi(T){var _=No();return function(){var I=_r(T),q;if(_){var te=_r(this).constructor;q=Reflect.construct(I,arguments,te)}else q=I.apply(this,arguments);return Eo(this,q)}}function Eo(T,_){if(_&&(Nn(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lo(T)}function Lo(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function No(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _r(T){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},_r(T)}/*!
212
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
213
+ * SPDX-License-Identifier: Apache-2.0
214
+ */var er=function(T){Zr(k,T);var _=vi(k);function k(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=I.IdToken;return Xr(this,k),_.call(this,q||"")}return cr(k)}(_e);function Br(T){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Br(T)}function Po(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function $o(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,ye(I.key),I)}}function Ro(T,_,k){return _&&$o(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function ye(T){var _=Rt(T,"string");return Br(_)=="symbol"?_:String(_)}function Rt(T,_){if(Br(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(Br(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
215
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
216
+ * SPDX-License-Identifier: Apache-2.0
217
+ */var Dt=function(){function T(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=_.RefreshToken;Po(this,T),this.token=k||""}return Ro(T,[{key:"getToken",value:function(){return this.token}}]),T}(),mn="5.0.4";/*!
218
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
219
+ * SPDX-License-Identifier: Apache-2.0
220
+ */var Zt="aws-amplify/".concat(mn),On={userAgent:Zt,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},tr=function(){return On.userAgent};function fr(T){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},fr(T)}function qn(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function _i(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,Vs(I.key),I)}}function qs(T,_,k){return _&&_i(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function Vs(T){var _=Js(T,"string");return fr(_)=="symbol"?_:String(_)}function Js(T,_){if(fr(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(fr(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
221
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
222
+ * SPDX-License-Identifier: Apache-2.0
223
+ */var Fo=function(){function T(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=_.IdToken,I=_.RefreshToken,q=_.AccessToken,te=_.ClockDrift;if(qn(this,T),q==null||k==null)throw new Error("Id token and Access Token must be present.");this.idToken=k,this.refreshToken=I,this.accessToken=q,this.clockDrift=te===void 0?this.calculateClockDrift():te}return qs(T,[{key:"getIdToken",value:function(){return this.idToken}},{key:"getRefreshToken",value:function(){return this.refreshToken}},{key:"getAccessToken",value:function(){return this.accessToken}},{key:"getClockDrift",value:function(){return this.clockDrift}},{key:"calculateClockDrift",value:function(){var k=Math.floor(new Date/1e3),I=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return k-I}},{key:"isValid",value:function(){var k=Math.floor(new Date/1e3),I=k-this.clockDrift;return I<this.accessToken.getExpiration()&&I<this.idToken.getExpiration()}}]),T}();function yi(T){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},yi(T)}function Hs(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function Ws(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,Gs(I.key),I)}}function Ys(T,_,k){return _&&Ws(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function Gs(T){var _=Ks(T,"string");return yi(_)=="symbol"?_:String(_)}function Ks(T,_){if(yi(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(yi(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
224
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
225
+ * SPDX-License-Identifier: Apache-2.0
226
+ */var Qs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],js=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],xo=function(){function T(){Hs(this,T)}return Ys(T,[{key:"getNowString",value:function(){var k=new Date,I=js[k.getUTCDay()],q=Qs[k.getUTCMonth()],te=k.getUTCDate(),ae=k.getUTCHours();ae<10&&(ae="0".concat(ae));var be=k.getUTCMinutes();be<10&&(be="0".concat(be));var $e=k.getUTCSeconds();$e<10&&($e="0".concat($e));var Ye=k.getUTCFullYear(),lt="".concat(I," ").concat(q," ").concat(te," ").concat(ae,":").concat(be,":").concat($e," UTC ").concat(Ye);return lt}}]),T}();function ki(T){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},ki(T)}function Xs(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function Zs(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,tu(I.key),I)}}function eu(T,_,k){return _&&Zs(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function tu(T){var _=nu(T,"string");return ki(_)=="symbol"?_:String(_)}function nu(T,_){if(ki(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(ki(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
227
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
228
+ * SPDX-License-Identifier: Apache-2.0
229
+ */var Wl=function(){function T(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=_.Name,I=_.Value;Xs(this,T),this.Name=k||"",this.Value=I||""}return eu(T,[{key:"getValue",value:function(){return this.Value}},{key:"setValue",value:function(k){return this.Value=k,this}},{key:"getName",value:function(){return this.Name}},{key:"setName",value:function(k){return this.Name=k,this}},{key:"toString",value:function(){return JSON.stringify(this)}},{key:"toJSON",value:function(){return{Name:this.Name,Value:this.Value}}}]),T}();function wi(T){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},wi(T)}function Yl(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function Gl(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,ru(I.key),I)}}function Kl(T,_,k){return _&&Gl(T.prototype,_),k&&Gl(T,k),Object.defineProperty(T,"prototype",{writable:!1}),T}function ru(T){var _=iu(T,"string");return wi(_)=="symbol"?_:String(_)}function iu(T,_){if(wi(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(wi(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
230
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
231
+ * SPDX-License-Identifier: Apache-2.0
232
+ */var qr={},ou=function(){function T(){Yl(this,T)}return Kl(T,null,[{key:"setItem",value:function(k,I){return qr[k]=I,qr[k]}},{key:"getItem",value:function(k){return Object.prototype.hasOwnProperty.call(qr,k)?qr[k]:void 0}},{key:"removeItem",value:function(k){return delete qr[k]}},{key:"clear",value:function(){return qr={},qr}}]),T}(),Ql=function(){function T(){Yl(this,T);try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=ou}}return Kl(T,[{key:"getStorage",value:function(){return this.storageWindow}}]),T}();function Si(T){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Si(T)}function lu(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function oe(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,In(I.key),I)}}function Wt(T,_,k){return _&&oe(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function In(T){var _=wr(T,"string");return Si(_)=="symbol"?_:String(_)}function wr(T,_){if(Si(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(Si(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
233
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
234
+ * SPDX-License-Identifier: Apache-2.0
235
+ */var Sr=typeof navigator<"u",Nr=Sr?On.isReactNative?"react-native":navigator.userAgent:"nodejs",nr=function(){function T(_){if(lu(this,T),_==null||_.Username==null||_.Pool==null)throw new Error("Username and Pool information are required.");this.username=_.Username||"",this.pool=_.Pool,this.Session=null,this.client=_.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=_.Storage||new Ql().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider.".concat(this.pool.getClientId()),this.userDataKey="".concat(this.keyPrefix,".").concat(this.username,".userData")}return Wt(T,[{key:"setSignInUserSession",value:function(k){this.clearCachedUserData(),this.signInUserSession=k,this.cacheTokens()}},{key:"getSignInUserSession",value:function(){return this.signInUserSession}},{key:"getUsername",value:function(){return this.username}},{key:"getAuthenticationFlowType",value:function(){return this.authenticationFlowType}},{key:"setAuthenticationFlowType",value:function(k){this.authenticationFlowType=k}},{key:"initiateAuth",value:function(k,I){var q=this,te=k.getAuthParameters();te.USERNAME=this.username;var ae=Object.keys(k.getValidationData()).length!==0?k.getValidationData():k.getClientMetadata(),be={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:te,ClientMetadata:ae};this.getUserContextData()&&(be.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",be,function($e,Ye){if($e)return I.onFailure($e);var lt=Ye.ChallengeName,Tt=Ye.ChallengeParameters;return lt==="CUSTOM_CHALLENGE"?(q.Session=Ye.Session,I.customChallenge(Tt)):(q.signInUserSession=q.getCognitoUserSession(Ye.AuthenticationResult),q.cacheTokens(),I.onSuccess(q.signInUserSession))})}},{key:"authenticateUser",value:function(k,I){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(k,I):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(k,I):I.onFailure(new Error("Authentication flow type is invalid."))}},{key:"authenticateUserDefaultAuth",value:function(k,I){var q=this,te=new Ge(this.pool.getUserPoolName()),ae=new xo,be,$e,Ye={};this.deviceKey!=null&&(Ye.DEVICE_KEY=this.deviceKey),Ye.USERNAME=this.username,te.getLargeAValue(function(lt,Tt){lt&&I.onFailure(lt),Ye.SRP_A=Tt.toString(16),q.authenticationFlowType==="CUSTOM_AUTH"&&(Ye.CHALLENGE_NAME="SRP_A");var Ft=Object.keys(k.getValidationData()).length!==0?k.getValidationData():k.getClientMetadata(),Yt={AuthFlow:q.authenticationFlowType,ClientId:q.pool.getClientId(),AuthParameters:Ye,ClientMetadata:Ft};q.getUserContextData(q.username)&&(Yt.UserContextData=q.getUserContextData(q.username)),q.client.request("InitiateAuth",Yt,function(kn,on){if(kn)return I.onFailure(kn);var gn=on.ChallengeParameters;q.username=gn.USER_ID_FOR_SRP,q.userDataKey="".concat(q.keyPrefix,".").concat(q.username,".userData"),be=new Y(gn.SRP_B,16),$e=new Y(gn.SALT,16),q.getCachedDeviceKeyAndPassword(),te.getPasswordAuthenticationKey(q.username,k.getPassword(),be,$e,function(wn,ei){wn&&I.onFailure(wn);var ea=ae.getNowString(),ta=h.lW.concat([h.lW.from(q.pool.getUserPoolName(),"utf8"),h.lW.from(q.username,"utf8"),h.lW.from(gn.SECRET_BLOCK,"base64"),h.lW.from(ea,"utf8")]),na=new P.Sha256(ei);na.update(ta);var uu=na.digestSync(),ti=h.lW.from(uu).toString("base64"),Pr={};Pr.USERNAME=q.username,Pr.PASSWORD_CLAIM_SECRET_BLOCK=gn.SECRET_BLOCK,Pr.TIMESTAMP=ea,Pr.PASSWORD_CLAIM_SIGNATURE=ti,q.deviceKey!=null&&(Pr.DEVICE_KEY=q.deviceKey);var ra=function oa(la,o1){return q.client.request("RespondToAuthChallenge",la,function(aa,HF){return aa&&aa.code==="ResourceNotFoundException"&&aa.message.toLowerCase().indexOf("device")!==-1?(Pr.DEVICE_KEY=null,q.deviceKey=null,q.randomPassword=null,q.deviceGroupKey=null,q.clearCachedDeviceKeyAndPassword(),oa(la,o1)):o1(aa,HF)})},ia={ChallengeName:"PASSWORD_VERIFIER",ClientId:q.pool.getClientId(),ChallengeResponses:Pr,Session:on.Session,ClientMetadata:Ft};q.getUserContextData()&&(ia.UserContextData=q.getUserContextData()),ra(ia,function(oa,la){return oa?I.onFailure(oa):q.authenticateUserInternal(la,te,I)})})})})}},{key:"authenticateUserPlainUsernamePassword",value:function(k,I){var q=this,te={};if(te.USERNAME=this.username,te.PASSWORD=k.getPassword(),!te.PASSWORD){I.onFailure(new Error("PASSWORD parameter is required"));return}var ae=new Ge(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(te.DEVICE_KEY=this.deviceKey);var be=Object.keys(k.getValidationData()).length!==0?k.getValidationData():k.getClientMetadata(),$e={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:te,ClientMetadata:be};this.getUserContextData(this.username)&&($e.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",$e,function(Ye,lt){return Ye?I.onFailure(Ye):q.authenticateUserInternal(lt,ae,I)})}},{key:"authenticateUserInternal",value:function(k,I,q){var te=this,ae=k.ChallengeName,be=k.ChallengeParameters;if(ae==="SMS_MFA")return this.Session=k.Session,q.mfaRequired(ae,be);if(ae==="SELECT_MFA_TYPE")return this.Session=k.Session,q.selectMFAType(ae,be);if(ae==="MFA_SETUP")return this.Session=k.Session,q.mfaSetup(ae,be);if(ae==="SOFTWARE_TOKEN_MFA")return this.Session=k.Session,q.totpRequired(ae,be);if(ae==="CUSTOM_CHALLENGE")return this.Session=k.Session,q.customChallenge(be);if(ae==="NEW_PASSWORD_REQUIRED"){this.Session=k.Session;var $e=null,Ye=null,lt=[],Tt=I.getNewPasswordRequiredChallengeUserAttributePrefix();if(be&&($e=JSON.parse(k.ChallengeParameters.userAttributes),Ye=JSON.parse(k.ChallengeParameters.requiredAttributes)),Ye)for(var Ft=0;Ft<Ye.length;Ft++)lt[Ft]=Ye[Ft].substr(Tt.length);return q.newPasswordRequired($e,lt)}if(ae==="DEVICE_SRP_AUTH"){this.Session=k.Session,this.getDeviceResponse(q);return}this.signInUserSession=this.getCognitoUserSession(k.AuthenticationResult),this.challengeName=ae,this.cacheTokens();var Yt=k.AuthenticationResult.NewDeviceMetadata;if(Yt==null)return q.onSuccess(this.signInUserSession);I.generateHashDevice(k.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,k.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(kn){if(kn)return q.onFailure(kn);var on={Salt:h.lW.from(I.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:h.lW.from(I.getVerifierDevices(),"hex").toString("base64")};te.verifierDevices=on.PasswordVerifier,te.deviceGroupKey=Yt.DeviceGroupKey,te.randomPassword=I.getRandomPassword(),te.client.request("ConfirmDevice",{DeviceKey:Yt.DeviceKey,AccessToken:te.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:on,DeviceName:Nr},function(gn,wn){return gn?q.onFailure(gn):(te.deviceKey=k.AuthenticationResult.NewDeviceMetadata.DeviceKey,te.cacheDeviceKeyAndPassword(),wn.UserConfirmationNecessary===!0?q.onSuccess(te.signInUserSession,wn.UserConfirmationNecessary):q.onSuccess(te.signInUserSession))})})}},{key:"completeNewPasswordChallenge",value:function(k,I,q,te){var ae=this;if(!k)return q.onFailure(new Error("New password is required."));var be=new Ge(this.pool.getUserPoolName()),$e=be.getNewPasswordRequiredChallengeUserAttributePrefix(),Ye={};I&&Object.keys(I).forEach(function(Tt){Ye[$e+Tt]=I[Tt]}),Ye.NEW_PASSWORD=k,Ye.USERNAME=this.username;var lt={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:Ye,Session:this.Session,ClientMetadata:te};this.getUserContextData()&&(lt.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",lt,function(Tt,Ft){return Tt?q.onFailure(Tt):ae.authenticateUserInternal(Ft,be,q)})}},{key:"getDeviceResponse",value:function(k,I){var q=this,te=new Ge(this.deviceGroupKey),ae=new xo,be={};be.USERNAME=this.username,be.DEVICE_KEY=this.deviceKey,te.getLargeAValue(function($e,Ye){$e&&k.onFailure($e),be.SRP_A=Ye.toString(16);var lt={ChallengeName:"DEVICE_SRP_AUTH",ClientId:q.pool.getClientId(),ChallengeResponses:be,ClientMetadata:I,Session:q.Session};q.getUserContextData()&&(lt.UserContextData=q.getUserContextData()),q.client.request("RespondToAuthChallenge",lt,function(Tt,Ft){if(Tt)return k.onFailure(Tt);var Yt=Ft.ChallengeParameters,kn=new Y(Yt.SRP_B,16),on=new Y(Yt.SALT,16);te.getPasswordAuthenticationKey(q.deviceKey,q.randomPassword,kn,on,function(gn,wn){if(gn)return k.onFailure(gn);var ei=ae.getNowString(),ea=h.lW.concat([h.lW.from(q.deviceGroupKey,"utf8"),h.lW.from(q.deviceKey,"utf8"),h.lW.from(Yt.SECRET_BLOCK,"base64"),h.lW.from(ei,"utf8")]),ta=new P.Sha256(wn);ta.update(ea);var na=ta.digestSync(),uu=h.lW.from(na).toString("base64"),ti={};ti.USERNAME=q.username,ti.PASSWORD_CLAIM_SECRET_BLOCK=Yt.SECRET_BLOCK,ti.TIMESTAMP=ei,ti.PASSWORD_CLAIM_SIGNATURE=uu,ti.DEVICE_KEY=q.deviceKey;var Pr={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:q.pool.getClientId(),ChallengeResponses:ti,Session:Ft.Session};q.getUserContextData()&&(Pr.UserContextData=q.getUserContextData()),q.client.request("RespondToAuthChallenge",Pr,function(ra,ia){return ra?k.onFailure(ra):(q.signInUserSession=q.getCognitoUserSession(ia.AuthenticationResult),q.cacheTokens(),k.onSuccess(q.signInUserSession))})})})})}},{key:"confirmRegistration",value:function(k,I,q,te){var ae={ClientId:this.pool.getClientId(),ConfirmationCode:k,Username:this.username,ForceAliasCreation:I,ClientMetadata:te};this.getUserContextData()&&(ae.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",ae,function(be){return be?q(be,null):q(null,"SUCCESS")})}},{key:"sendCustomChallengeAnswer",value:function(k,I,q){var te=this,ae={};ae.USERNAME=this.username,ae.ANSWER=k;var be=new Ge(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(ae.DEVICE_KEY=this.deviceKey);var $e={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:ae,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:q};this.getUserContextData()&&($e.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",$e,function(Ye,lt){return Ye?I.onFailure(Ye):te.authenticateUserInternal(lt,be,I)})}},{key:"sendMFACode",value:function(k,I,q,te){var ae=this,be={};be.USERNAME=this.username,be.SMS_MFA_CODE=k;var $e=q||"SMS_MFA";$e==="SOFTWARE_TOKEN_MFA"&&(be.SOFTWARE_TOKEN_MFA_CODE=k),this.deviceKey!=null&&(be.DEVICE_KEY=this.deviceKey);var Ye={ChallengeName:$e,ChallengeResponses:be,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:te};this.getUserContextData()&&(Ye.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",Ye,function(lt,Tt){if(lt)return I.onFailure(lt);var Ft=Tt.ChallengeName;if(Ft==="DEVICE_SRP_AUTH"){ae.getDeviceResponse(I);return}if(ae.signInUserSession=ae.getCognitoUserSession(Tt.AuthenticationResult),ae.cacheTokens(),Tt.AuthenticationResult.NewDeviceMetadata==null)return I.onSuccess(ae.signInUserSession);var Yt=new Ge(ae.pool.getUserPoolName());Yt.generateHashDevice(Tt.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,Tt.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(kn){if(kn)return I.onFailure(kn);var on={Salt:h.lW.from(Yt.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:h.lW.from(Yt.getVerifierDevices(),"hex").toString("base64")};ae.verifierDevices=on.PasswordVerifier,ae.deviceGroupKey=Tt.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,ae.randomPassword=Yt.getRandomPassword(),ae.client.request("ConfirmDevice",{DeviceKey:Tt.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:ae.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:on,DeviceName:Nr},function(gn,wn){return gn?I.onFailure(gn):(ae.deviceKey=Tt.AuthenticationResult.NewDeviceMetadata.DeviceKey,ae.cacheDeviceKeyAndPassword(),wn.UserConfirmationNecessary===!0?I.onSuccess(ae.signInUserSession,wn.UserConfirmationNecessary):I.onSuccess(ae.signInUserSession))})})})}},{key:"changePassword",value:function(k,I,q,te){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return q(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:k,ProposedPassword:I,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:te},function(ae){return ae?q(ae,null):q(null,"SUCCESS")})}},{key:"enableMFA",value:function(k){if(this.signInUserSession==null||!this.signInUserSession.isValid())return k(new Error("User is not authenticated"),null);var I=[],q={DeliveryMedium:"SMS",AttributeName:"phone_number"};I.push(q),this.client.request("SetUserSettings",{MFAOptions:I,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(te){return te?k(te,null):k(null,"SUCCESS")})}},{key:"setUserMfaPreference",value:function(k,I,q){if(this.signInUserSession==null||!this.signInUserSession.isValid())return q(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:k,SoftwareTokenMfaSettings:I,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(te){return te?q(te,null):q(null,"SUCCESS")})}},{key:"disableMFA",value:function(k){if(this.signInUserSession==null||!this.signInUserSession.isValid())return k(new Error("User is not authenticated"),null);var I=[];this.client.request("SetUserSettings",{MFAOptions:I,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(q){return q?k(q,null):k(null,"SUCCESS")})}},{key:"deleteUser",value:function(k,I){var q=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return k(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:I},function(te){return te?k(te,null):(q.clearCachedUser(),k(null,"SUCCESS"))})}},{key:"updateAttributes",value:function(k,I,q){var te=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return I(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:k,ClientMetadata:q},function(ae,be){return ae?I(ae,null):te.getUserData(function(){return I(null,"SUCCESS",be)},{bypassCache:!0})})}},{key:"getUserAttributes",value:function(k){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return k(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(I,q){if(I)return k(I,null);for(var te=[],ae=0;ae<q.UserAttributes.length;ae++){var be={Name:q.UserAttributes[ae].Name,Value:q.UserAttributes[ae].Value},$e=new Wl(be);te.push($e)}return k(null,te)})}},{key:"getMFAOptions",value:function(k){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return k(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(I,q){return I?k(I,null):k(null,q.MFAOptions)})}},{key:"createGetUserRequest",value:function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})}},{key:"refreshSessionIfPossible",value:function(){var k=this,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Promise(function(q){var te=k.signInUserSession.getRefreshToken();te&&te.getToken()?k.refreshSession(te,q,I.clientMetadata):q()})}},{key:"getUserData",value:function(k,I){var q=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),k(new Error("User is not authenticated"),null);var te=this.getUserDataFromCache();if(!te){this.fetchUserData().then(function(ae){k(null,ae)}).catch(k);return}if(this.isFetchUserDataAndTokenRequired(I)){this.fetchUserData().then(function(ae){return q.refreshSessionIfPossible(I).then(function(){return ae})}).then(function(ae){return k(null,ae)}).catch(k);return}try{k(null,JSON.parse(te));return}catch(ae){this.clearCachedUserData(),k(ae,null);return}}},{key:"getUserDataFromCache",value:function(){var k=this.storage.getItem(this.userDataKey);return k}},{key:"isFetchUserDataAndTokenRequired",value:function(k){var I=k||{},q=I.bypassCache,te=q===void 0?!1:q;return te}},{key:"fetchUserData",value:function(){var k=this;return this.createGetUserRequest().then(function(I){return k.cacheUserData(I),I})}},{key:"deleteAttributes",value:function(k,I){var q=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return I(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:k,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(te){return te?I(te,null):q.getUserData(function(){return I(null,"SUCCESS")},{bypassCache:!0})})}},{key:"resendConfirmationCode",value:function(k,I){var q={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:I};this.client.request("ResendConfirmationCode",q,function(te,ae){return te?k(te,null):k(null,ae)})}},{key:"getSession",value:function(k){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.username==null)return k(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return k(null,this.signInUserSession);var q="CognitoIdentityServiceProvider.".concat(this.pool.getClientId(),".").concat(this.username),te="".concat(q,".idToken"),ae="".concat(q,".accessToken"),be="".concat(q,".refreshToken"),$e="".concat(q,".clockDrift");if(this.storage.getItem(te)){var Ye=new er({IdToken:this.storage.getItem(te)}),lt=new ur({AccessToken:this.storage.getItem(ae)}),Tt=new Dt({RefreshToken:this.storage.getItem(be)}),Ft=parseInt(this.storage.getItem($e),0)||0,Yt={IdToken:Ye,AccessToken:lt,RefreshToken:Tt,ClockDrift:Ft},kn=new Fo(Yt);if(kn.isValid())return this.signInUserSession=kn,k(null,this.signInUserSession);if(!Tt.getToken())return k(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(Tt,k,I.clientMetadata)}else k(new Error("Local storage is missing an ID Token, Please authenticate"),null)}},{key:"refreshSession",value:function(k,I,q){var te=this,ae=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(I):I,be={};be.REFRESH_TOKEN=k.getToken();var $e="CognitoIdentityServiceProvider.".concat(this.pool.getClientId()),Ye="".concat($e,".LastAuthUser");if(this.storage.getItem(Ye)){this.username=this.storage.getItem(Ye);var lt="".concat($e,".").concat(this.username,".deviceKey");this.deviceKey=this.storage.getItem(lt),be.DEVICE_KEY=this.deviceKey}var Tt={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:be,ClientMetadata:q};this.getUserContextData()&&(Tt.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",Tt,function(Ft,Yt){if(Ft)return Ft.code==="NotAuthorizedException"&&te.clearCachedUser(),ae(Ft,null);if(Yt){var kn=Yt.AuthenticationResult;return Object.prototype.hasOwnProperty.call(kn,"RefreshToken")||(kn.RefreshToken=k.getToken()),te.signInUserSession=te.getCognitoUserSession(kn),te.cacheTokens(),ae(null,te.signInUserSession)}})}},{key:"cacheTokens",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.pool.getClientId()),I="".concat(k,".").concat(this.username,".idToken"),q="".concat(k,".").concat(this.username,".accessToken"),te="".concat(k,".").concat(this.username,".refreshToken"),ae="".concat(k,".").concat(this.username,".clockDrift"),be="".concat(k,".LastAuthUser");this.storage.setItem(I,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(q,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(te,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(ae,"".concat(this.signInUserSession.getClockDrift())),this.storage.setItem(be,this.username)}},{key:"cacheUserData",value:function(k){this.storage.setItem(this.userDataKey,JSON.stringify(k))}},{key:"clearCachedUserData",value:function(){this.storage.removeItem(this.userDataKey)}},{key:"clearCachedUser",value:function(){this.clearCachedTokens(),this.clearCachedUserData()}},{key:"cacheDeviceKeyAndPassword",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.pool.getClientId(),".").concat(this.username),I="".concat(k,".deviceKey"),q="".concat(k,".randomPasswordKey"),te="".concat(k,".deviceGroupKey");this.storage.setItem(I,this.deviceKey),this.storage.setItem(q,this.randomPassword),this.storage.setItem(te,this.deviceGroupKey)}},{key:"getCachedDeviceKeyAndPassword",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.pool.getClientId(),".").concat(this.username),I="".concat(k,".deviceKey"),q="".concat(k,".randomPasswordKey"),te="".concat(k,".deviceGroupKey");this.storage.getItem(I)&&(this.deviceKey=this.storage.getItem(I),this.randomPassword=this.storage.getItem(q),this.deviceGroupKey=this.storage.getItem(te))}},{key:"clearCachedDeviceKeyAndPassword",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.pool.getClientId(),".").concat(this.username),I="".concat(k,".deviceKey"),q="".concat(k,".randomPasswordKey"),te="".concat(k,".deviceGroupKey");this.storage.removeItem(I),this.storage.removeItem(q),this.storage.removeItem(te)}},{key:"clearCachedTokens",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.pool.getClientId()),I="".concat(k,".").concat(this.username,".idToken"),q="".concat(k,".").concat(this.username,".accessToken"),te="".concat(k,".").concat(this.username,".refreshToken"),ae="".concat(k,".LastAuthUser"),be="".concat(k,".").concat(this.username,".clockDrift");this.storage.removeItem(I),this.storage.removeItem(q),this.storage.removeItem(te),this.storage.removeItem(ae),this.storage.removeItem(be)}},{key:"getCognitoUserSession",value:function(k){var I=new er(k),q=new ur(k),te=new Dt(k),ae={IdToken:I,AccessToken:q,RefreshToken:te};return new Fo(ae)}},{key:"forgotPassword",value:function(k,I){var q={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:I};this.getUserContextData()&&(q.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",q,function(te,ae){return te?k.onFailure(te):typeof k.inputVerificationCode=="function"?k.inputVerificationCode(ae):k.onSuccess(ae)})}},{key:"confirmPassword",value:function(k,I,q,te){var ae={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:k,Password:I,ClientMetadata:te};this.getUserContextData()&&(ae.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",ae,function(be){return be?q.onFailure(be):q.onSuccess("SUCCESS")})}},{key:"getAttributeVerificationCode",value:function(k,I,q){if(this.signInUserSession==null||!this.signInUserSession.isValid())return I.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:k,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:q},function(te,ae){return te?I.onFailure(te):typeof I.inputVerificationCode=="function"?I.inputVerificationCode(ae):I.onSuccess("SUCCESS")})}},{key:"verifyAttribute",value:function(k,I,q){if(this.signInUserSession==null||!this.signInUserSession.isValid())return q.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:k,Code:I,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(te){return te?q.onFailure(te):q.onSuccess("SUCCESS")})}},{key:"getDevice",value:function(k){if(this.signInUserSession==null||!this.signInUserSession.isValid())return k.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(I,q){return I?k.onFailure(I):k.onSuccess(q)})}},{key:"forgetSpecificDevice",value:function(k,I){if(this.signInUserSession==null||!this.signInUserSession.isValid())return I.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:k},function(q){return q?I.onFailure(q):I.onSuccess("SUCCESS")})}},{key:"forgetDevice",value:function(k){var I=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:k.onFailure,onSuccess:function(te){return I.deviceKey=null,I.deviceGroupKey=null,I.randomPassword=null,I.clearCachedDeviceKeyAndPassword(),k.onSuccess(te)}})}},{key:"setDeviceStatusRemembered",value:function(k){if(this.signInUserSession==null||!this.signInUserSession.isValid())return k.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(I){return I?k.onFailure(I):k.onSuccess("SUCCESS")})}},{key:"setDeviceStatusNotRemembered",value:function(k){if(this.signInUserSession==null||!this.signInUserSession.isValid())return k.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(I){return I?k.onFailure(I):k.onSuccess("SUCCESS")})}},{key:"listDevices",value:function(k,I,q){if(this.signInUserSession==null||!this.signInUserSession.isValid())return q.onFailure(new Error("User is not authenticated"));var te={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:k};I&&(te.PaginationToken=I),this.client.request("ListDevices",te,function(ae,be){return ae?q.onFailure(ae):q.onSuccess(be)})}},{key:"globalSignOut",value:function(k){var I=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return k.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(q){return q?k.onFailure(q):(I.clearCachedUser(),k.onSuccess("SUCCESS"))})}},{key:"signOut",value:function(k){var I=this;if(!k||typeof k!="function"){this.cleanClientData();return}this.getSession(function(q,te){if(q)return k(q);I.revokeTokens(function(ae){I.cleanClientData(),k(ae)})})}},{key:"revokeTokens",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};if(typeof k!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var I=new Error("User is not authenticated");return k(I)}if(!this.signInUserSession.getAccessToken()){var q=new Error("No Access token available");return k(q)}var te=this.signInUserSession.getRefreshToken().getToken(),ae=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(ae)&&te)return this.revokeToken({token:te,callback:k});k()}},{key:"isSessionRevocable",value:function(k){if(k&&typeof k.decodePayload=="function")try{var I=k.decodePayload(),q=I.origin_jti;return!!q}catch{}return!1}},{key:"cleanClientData",value:function(){this.signInUserSession=null,this.clearCachedUser()}},{key:"revokeToken",value:function(k){var I=k.token,q=k.callback;this.client.requestWithRetry("RevokeToken",{Token:I,ClientId:this.pool.getClientId()},function(te){if(te)return q(te);q()})}},{key:"sendMFASelectionAnswer",value:function(k,I){var q=this,te={};te.USERNAME=this.username,te.ANSWER=k;var ae={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:te,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(ae.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",ae,function(be,$e){if(be)return I.onFailure(be);if(q.Session=$e.Session,k==="SMS_MFA")return I.mfaRequired($e.ChallengeName,$e.ChallengeParameters);if(k==="SOFTWARE_TOKEN_MFA")return I.totpRequired($e.ChallengeName,$e.ChallengeParameters)})}},{key:"getUserContextData",value:function(){var k=this.pool;return k.getUserContextData(this.username)}},{key:"associateSoftwareToken",value:function(k){var I=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(q,te){return q?k.onFailure(q):k.associateSecretCode(te.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(q,te){return q?k.onFailure(q):(I.Session=te.Session,k.associateSecretCode(te.SecretCode))})}},{key:"verifySoftwareToken",value:function(k,I,q){var te=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:k,FriendlyDeviceName:I},function(ae,be){return ae?q.onFailure(ae):q.onSuccess(be)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:k,FriendlyDeviceName:I},function(ae,be){if(ae)return q.onFailure(ae);te.Session=be.Session;var $e={};$e.USERNAME=te.username;var Ye={ChallengeName:"MFA_SETUP",ClientId:te.pool.getClientId(),ChallengeResponses:$e,Session:te.Session};te.getUserContextData()&&(Ye.UserContextData=te.getUserContextData()),te.client.request("RespondToAuthChallenge",Ye,function(lt,Tt){return lt?q.onFailure(lt):(te.signInUserSession=te.getCognitoUserSession(Tt.AuthenticationResult),te.cacheTokens(),q.onSuccess(te.signInUserSession))})})}}]),T}();o(405);function Pt(){}Pt.prototype.userAgent=tr();var jl=function(_){_&&(Pt.prototype.userAgent&&!Pt.prototype.userAgent.includes(_)&&(Pt.prototype.userAgent=Pt.prototype.userAgent.concat(" ",_)),(!Pt.prototype.userAgent||Pt.prototype.userAgent==="")&&(Pt.prototype.userAgent=_))},dF=function(_){var k=Pt.category?" ".concat(Pt.category):"",I=Pt.framework?" framework/".concat(Pt.framework):"",q="".concat(Pt.prototype.userAgent).concat(k).concat(I);return q};function eo(T){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},eo(T)}function hF(T){return bF(T)||pF(T)||gF(T)||mF()}function mF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gF(T,_){if(T){if(typeof T=="string")return au(T,_);var k=Object.prototype.toString.call(T).slice(8,-1);if(k==="Object"&&T.constructor&&(k=T.constructor.name),k==="Map"||k==="Set")return Array.from(T);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return au(T,_)}}function pF(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function bF(T){if(Array.isArray(T))return au(T)}function au(T,_){(_==null||_>T.length)&&(_=T.length);for(var k=0,I=new Array(_);k<_;k++)I[k]=T[k];return I}function vF(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,_F(I.key),I)}}function t1(T,_,k){return _&&vF(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function _F(T){var _=yF(T,"string");return eo(_)=="symbol"?_:String(_)}function yF(T,_){if(eo(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(eo(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}function n1(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function kF(T,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(_&&_.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),_&&Uo(T,_)}function wF(T){var _=r1();return function(){var I=Bo(T),q;if(_){var te=Bo(this).constructor;q=Reflect.construct(I,arguments,te)}else q=I.apply(this,arguments);return SF(this,q)}}function SF(T,_){if(_&&(eo(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TF(T)}function TF(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function su(T){var _=typeof Map=="function"?new Map:void 0;return su=function(I){if(I===null||!zF(I))return I;if(typeof I!="function")throw new TypeError("Super expression must either be null or a function");if(typeof _<"u"){if(_.has(I))return _.get(I);_.set(I,q)}function q(){return Xl(I,arguments,Bo(this).constructor)}return q.prototype=Object.create(I.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),Uo(q,I)},su(T)}function Xl(T,_,k){return r1()?Xl=Reflect.construct.bind():Xl=function(q,te,ae){var be=[null];be.push.apply(be,te);var $e=Function.bind.apply(q,be),Ye=new $e;return ae&&Uo(Ye,ae.prototype),Ye},Xl.apply(null,arguments)}function r1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zF(T){try{return Function.toString.call(T).indexOf("[native code]")!==-1}catch{return typeof T=="function"}}function Uo(T,_){return Uo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(I,q){return I.__proto__=q,I},Uo(T,_)}function Bo(T){return Bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(k){return k.__proto__||Object.getPrototypeOf(k)},Bo(T)}var CF=function(T){kF(k,T);var _=wF(k);function k(I,q,te,ae){var be;return n1(this,k),be=_.call(this,I),be.code=q,be.name=te,be.statusCode=ae,be}return t1(k)}(su(Error)),OF=function(){function T(_,k,I){n1(this,T),this.endpoint=k||"https://cognito-idp.".concat(_,".amazonaws.com/");var q=I||{},te=q.credentials;this.fetchOptions=te?{credentials:te}:{}}return t1(T,[{key:"promisifyRequest",value:function(k,I){var q=this;return new Promise(function(te,ae){q.request(k,I,function(be,$e){be?ae(new CF(be.message,be.code,be.name,be.statusCode)):te($e)})})}},{key:"requestWithRetry",value:function(k,I,q){var te=this,ae=5*1e3;MF(function(be){return new Promise(function($e,Ye){te.request(k,be,function(lt,Tt){lt?Ye(lt):$e(Tt)})})},[I],ae).then(function(be){return q(null,be)}).catch(function(be){return q(be)})}},{key:"request",value:function(k,I,q){var te={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService.".concat(k),"X-Amz-User-Agent":dF(),"Cache-Control":"no-store"},ae=Object.assign({},this.fetchOptions,{headers:te,method:"POST",mode:"cors",body:JSON.stringify(I)}),be;fetch(this.endpoint,ae).then(function($e){return be=$e,$e},function($e){throw $e instanceof TypeError?new Error("Network error"):$e}).then(function($e){return $e.json().catch(function(){return{}})}).then(function($e){if(be.ok)return q(null,$e);var Ye=($e.__type||$e.code).split("#").pop(),lt=new Error($e.message||$e.Message||null);return lt.name=Ye,lt.code=Ye,q(lt)}).catch(function($e){if(be&&be.headers&&be.headers.get("x-amzn-errortype"))try{var Ye=be.headers.get("x-amzn-errortype").split(":")[0],lt=new Error(be.status?be.status.toString():null);return lt.code=Ye,lt.name=Ye,lt.statusCode=be.status,q(lt)}catch{return q($e)}else $e instanceof Error&&$e.message==="Network error"&&($e.code="NetworkError");return q($e)})}}]),T}(),Zl={debug:function(){}},IF=function(_){var k="nonRetryable";return _&&_[k]};function i1(T,_,k){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(typeof T!="function")throw Error("functionToRetry must be a function");return Zl.debug("".concat(T.name," attempt #").concat(I," with args: ").concat(JSON.stringify(_))),T.apply(void 0,hF(_)).catch(function(q){if(Zl.debug("error on ".concat(T.name),q),IF(q))throw Zl.debug("".concat(T.name," non retryable error"),q),q;var te=k(I,_,q);if(Zl.debug("".concat(T.name," retrying in ").concat(te," ms")),te!==!1)return new Promise(function(ae){return setTimeout(ae,te)}).then(function(){return i1(T,_,k,I+1)});throw q})}function AF(T){var _=100,k=100;return function(I){var q=Math.pow(2,I)*_+k*Math.random();return q>T?!1:q}}var DF=5*60*1e3;function MF(T,_){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DF;return i1(T,_,AF(k))}function qo(T){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},qo(T)}function EF(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function LF(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,PF(I.key),I)}}function NF(T,_,k){return _&&LF(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function PF(T){var _=$F(T,"string");return qo(_)=="symbol"?_:String(_)}function $F(T,_){if(qo(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(qo(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}/*!
237
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
238
+ * SPDX-License-Identifier: Apache-2.0
239
+ */var RF=55,FF=function(){function T(_,k){EF(this,T);var I=_||{},q=I.UserPoolId,te=I.ClientId,ae=I.endpoint,be=I.fetchOptions,$e=I.AdvancedSecurityDataCollectionFlag;if(!q||!te)throw new Error("Both UserPoolId and ClientId are required.");if(q.length>RF||!/^[\w-]+_[0-9a-zA-Z]+$/.test(q))throw new Error("Invalid UserPoolId format.");var Ye=q.split("_")[0];this.userPoolId=q,this.clientId=te,this.client=new OF(Ye,ae,be),this.advancedSecurityDataCollectionFlag=$e!==!1,this.storage=_.Storage||new Ql().getStorage(),k&&(this.wrapRefreshSessionCallback=k)}return NF(T,[{key:"getUserPoolId",value:function(){return this.userPoolId}},{key:"getUserPoolName",value:function(){return this.getUserPoolId().split("_")[1]}},{key:"getClientId",value:function(){return this.clientId}},{key:"signUp",value:function(k,I,q,te,ae,be){var $e=this,Ye={ClientId:this.clientId,Username:k,Password:I,UserAttributes:q,ValidationData:te,ClientMetadata:be};this.getUserContextData(k)&&(Ye.UserContextData=this.getUserContextData(k)),this.client.request("SignUp",Ye,function(lt,Tt){if(lt)return ae(lt,null);var Ft={Username:k,Pool:$e,Storage:$e.storage},Yt={user:new nr(Ft),userConfirmed:Tt.UserConfirmed,userSub:Tt.UserSub,codeDeliveryDetails:Tt.CodeDeliveryDetails};return ae(null,Yt)})}},{key:"getCurrentUser",value:function(){var k="CognitoIdentityServiceProvider.".concat(this.clientId,".LastAuthUser"),I=this.storage.getItem(k);if(I){var q={Username:I,Pool:this,Storage:this.storage};return new nr(q)}return null}},{key:"getUserContextData",value:function(k){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var I=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var q=I.getData(k,this.userPoolId,this.clientId);if(q){var te={EncodedData:q};return te}}return{}}}}]),T}(),Vo=o(34);function Jo(T){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},Jo(T)}function xF(T,_){if(!(T instanceof _))throw new TypeError("Cannot call a class as a function")}function UF(T,_){for(var k=0;k<_.length;k++){var I=_[k];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,qF(I.key),I)}}function BF(T,_,k){return _&&UF(T.prototype,_),Object.defineProperty(T,"prototype",{writable:!1}),T}function qF(T){var _=VF(T,"string");return Jo(_)=="symbol"?_:String(_)}function VF(T,_){if(Jo(T)!="object"||!T)return T;var k=T[Symbol.toPrimitive];if(k!==void 0){var I=k.call(T,_);if(Jo(I)!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}var JF=function(){function T(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(xF(this,T),_.domain&&(this.domain=_.domain),_.path?this.path=_.path:this.path="/",Object.prototype.hasOwnProperty.call(_,"expires")?this.expires=_.expires:this.expires=365,Object.prototype.hasOwnProperty.call(_,"secure")?this.secure=_.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(_,"sameSite")){if(!["strict","lax","none"].includes(_.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(_.sameSite==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=_.sameSite}else this.sameSite=null}return BF(T,[{key:"setItem",value:function(k,I){var q={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(q.sameSite=this.sameSite),Vo.set(k,I,q),Vo.get(k)}},{key:"getItem",value:function(k){return Vo.get(k)}},{key:"removeItem",value:function(k){var I={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(I.sameSite=this.sameSite),Vo.remove(k,I)}},{key:"clear",value:function(){for(var k=Vo.get(),I=Object.keys(k).length,q=0;q<I;++q)this.removeItem(Object.keys(k)[q]);return{}}}]),T}();/*!
240
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
241
+ * SPDX-License-Identifier: Apache-2.0
242
+ */})(),l})())})(Cm);var bi=Cm.exports;let Bl={};const ql={getItem(t){return Bl[t]},clear(){Bl={}},removeItem(t){delete Bl[t]},setItem(t,e){Bl[t]=e},async sync(){}};class QE{constructor(e){Kt(this,"_cfg");Kt(this,"_cachedUser");Kt(this,"_cachedUsername");Kt(this,"_cognitoCfg");if(!e)throw new Error("Tried to init a CognitoWrapper without cognito config. This is not allowed. Please provide a cognito config.");this._cognitoCfg=e}getCognitoUser(e){if(!this._cachedUser||this._cachedUsername!=e){const n={Username:e,Pool:Is(this._cognitoCfg),Storage:ql};this._cachedUser=new bi.CognitoUser(n),this._cachedUsername=e}return this._cachedUser}async getCognitoUserByAuthCfg(e){const n={Username:e.username,Pool:this.createCognitoUserPool(),Storage:ql},r=Om(n);return await new Promise((i,o)=>{r.refreshSession(XE(e.tokens.refreshToken),(l,a)=>{l?o(l):i(a)})}),r}async prepareLoginRedirect(e){const n=await Am(),r=await Am(),i=await ZE(await Im(r));return{state:n,codeVerifier:r,url:`${this._cognitoCfg.Endpoint}/authorize?response_type=code&client_id=${this._cognitoCfg.ClientId}&state=${n}&code_challenge_method=S256&code_challenge=${i}&redirect_uri=${e}`}}createCognitoUserPool(){return Is(this._cognitoCfg)}createAuthenticationDetails(e){return new bi.AuthenticationDetails(e)}createCognitoUserAttribute(e){return new bi.CognitoUserAttribute(e)}}const jE=bi.CognitoRefreshToken;function XE(t){return new bi.CognitoRefreshToken({RefreshToken:t})}function Om(t){return new bi.CognitoUser(t)}function Is(t){return new bi.CognitoUserPool({UserPoolId:t.UserPoolId,ClientId:t.ClientId,endpoint:t.Endpoint,Storage:ql})}async function Im(t){return crypto.subtle.digest("SHA-256",new TextEncoder().encode(t))}async function Am(){const t=await Im(crypto.getRandomValues(new Uint32Array(4)).toString());return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}async function ZE(t){return btoa(String.fromCharCode.apply(null,new Uint8Array(t))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function eL(t){yt(t,"svelte-ekthp1",".btns.svelte-ekthp1{display:flex;gap:var(--zl-spacing-md);flex-direction:column}.btns.svelte-ekthp1 .zl-btn{display:block;width:100%}a.svelte-ekthp1:focus,a.svelte-ekthp1:hover{text-decoration:none}h4.svelte-ekthp1{font-size:var(--zl-font-size-lg);font-weight:var(--zl-font-weight-medium)}.center.svelte-ekthp1{text-align:center}")}function tL(t){let e,n,r,i,o,l,a,s,u,c,f;function d(h){t[44](h)}let m={label:"Code",name:"mfa-code",type:"text",autofocus:!0,layout:t[5],enterMaySubmit:!0};return t[13]!==void 0&&(m.value=t[13]),i=new Mt({props:m}),xe.push(()=>Je(i,"value",d)),s=new nt({props:{text:"Senden",variant:"default"}}),s.$on("click",t[24]),c=new nt({props:{variant:"muted",text:"Abbrechen"}}),c.$on("click",t[45]),{c(){e=W("div"),e.innerHTML='<h4 class="svelte-ekthp1">Bitte Code aus der Authenticator-App eingeben.</h4>',n=j(),r=W("div"),F(i.$$.fragment),l=j(),a=W("div"),F(s.$$.fragment),u=j(),F(c.$$.fragment),x(e,"class","zlc-richtext"),x(a,"class","btns svelte-ekthp1")},m(h,p){L(h,e,p),L(h,n,p),L(h,r,p),$(i,r,null),L(h,l,p),L(h,a,p),$(s,a,null),V(a,u),$(c,a,null),f=!0},p(h,p){const v={};p[0]&32&&(v.layout=h[5]),!o&&p[0]&8192&&(o=!0,v.value=h[13],Ve(()=>o=!1)),i.$set(v)},i(h){f||(g(i.$$.fragment,h),g(s.$$.fragment,h),g(c.$$.fragment,h),f=!0)},o(h){b(i.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),f=!1},d(h){h&&(E(e),E(n),E(r),E(l),E(a)),R(i),R(s),R(c)}}}function nL(t){let e,n,r,i,o,l,a,s,u,c,f;function d(S){t[36](S)}let m={label:"E-Mail",type:"email",required:!0,autocomplete:"username",name:"username",layout:t[5]};t[2]!==void 0&&(m.value=t[2]),i=new Mt({props:m}),xe.push(()=>Je(i,"value",d));let h=t[4]&&Dm(t);const p=[aL,lL],v=[];function w(S,y){return S[4]?0:1}return u=w(t),c=v[u]=p[u](t),{c(){e=W("div"),e.innerHTML='<h4 class="svelte-ekthp1">Passwort vergessen</h4>',n=j(),r=W("div"),F(i.$$.fragment),l=j(),h&&h.c(),a=j(),s=W("div"),c.c(),x(e,"class","zlc-richtext"),x(r,"class","zlc-gap-y-form"),x(s,"class","btns svelte-ekthp1")},m(S,y){L(S,e,y),L(S,n,y),L(S,r,y),$(i,r,null),V(r,l),h&&h.m(r,null),L(S,a,y),L(S,s,y),v[u].m(s,null),f=!0},p(S,y){const z={};y[0]&32&&(z.layout=S[5]),!o&&y[0]&4&&(o=!0,z.value=S[2],Ve(()=>o=!1)),i.$set(z),S[4]?h?(h.p(S,y),y[0]&16&&g(h,1)):(h=Dm(S),h.c(),g(h,1),h.m(r,null)):h&&(ne(),b(h,1,1,()=>{h=null}),re());let O=u;u=w(S),u===O?v[u].p(S,y):(ne(),b(v[O],1,1,()=>{v[O]=null}),re(),c=v[u],c?c.p(S,y):(c=v[u]=p[u](S),c.c()),g(c,1),c.m(s,null))},i(S){f||(g(i.$$.fragment,S),g(h),g(c),f=!0)},o(S){b(i.$$.fragment,S),b(h),b(c),f=!1},d(S){S&&(E(e),E(n),E(r),E(a),E(s)),R(i),h&&h.d(),v[u].d()}}}function rL(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v;function w(O){t[33](O)}let S={label:"E-Mail",required:!0,autocomplete:"username",name:"username",type:"text",layout:t[5]};t[2]!==void 0&&(S.value=t[2]),i=new Mt({props:S}),xe.push(()=>Je(i,"value",w));function y(O){t[34](O)}let z={label:"Bestätigungscode",type:"text"};return t[11]!==void 0&&(z.value=t[11]),a=new Mt({props:z}),xe.push(()=>Je(a,"value",y)),f=new nt({props:{text:"Bestätigen",variant:"default"}}),f.$on("click",t[21]),m=new nt({props:{variant:"outlined",text:"Neu senden"}}),m.$on("click",t[22]),p=new nt({props:{variant:"muted",text:"zurück"}}),p.$on("click",t[35]),{c(){e=W("div"),e.innerHTML='<h4 class="svelte-ekthp1">Bitte geben Sie den Bestätigungscode für Ihre Mailadresse ein.</h4>',n=j(),r=W("div"),F(i.$$.fragment),l=j(),F(a.$$.fragment),u=j(),c=W("div"),F(f.$$.fragment),d=j(),F(m.$$.fragment),h=j(),F(p.$$.fragment),x(e,"class","zlc-richtext"),x(r,"class","zlc-gap-y-form"),x(c,"class","btns svelte-ekthp1")},m(O,N){L(O,e,N),L(O,n,N),L(O,r,N),$(i,r,null),V(r,l),$(a,r,null),L(O,u,N),L(O,c,N),$(f,c,null),V(c,d),$(m,c,null),V(c,h),$(p,c,null),v=!0},p(O,N){const U={};N[0]&32&&(U.layout=O[5]),!o&&N[0]&4&&(o=!0,U.value=O[2],Ve(()=>o=!1)),i.$set(U);const A={};!s&&N[0]&2048&&(s=!0,A.value=O[11],Ve(()=>s=!1)),a.$set(A)},i(O){v||(g(i.$$.fragment,O),g(a.$$.fragment,O),g(f.$$.fragment,O),g(m.$$.fragment,O),g(p.$$.fragment,O),v=!0)},o(O){b(i.$$.fragment,O),b(a.$$.fragment,O),b(f.$$.fragment,O),b(m.$$.fragment,O),b(p.$$.fragment,O),v=!1},d(O){O&&(E(e),E(n),E(r),E(u),E(c)),R(i),R(a),R(f),R(m),R(p)}}}function iL(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v,w;function S(A){t[29](A)}let y={label:"E-Mail",type:"email",required:!0,autocomplete:"username",name:"username",layout:t[5]};t[3]!==void 0&&(y.value=t[3]),i=new Mt({props:y}),xe.push(()=>Je(i,"value",S));function z(A){t[30](A)}let O={label:"Passwort",type:"password",required:!0,autocomplete:"new-password",id:"new-password",name:"new-password",layout:t[5]};t[6]!==void 0&&(O.value=t[6]),a=new Mt({props:O}),xe.push(()=>Je(a,"value",z));function N(A){t[31](A)}let U={label:"Passwort bestätigen",type:"password",required:!0,autocomplete:"new-password",id:"new-password2",name:"new-password2",hasError:t[15],errorText:t[15]?"Passwörter müssen übereinstimmen":"",layout:t[5]};return t[7]!==void 0&&(U.value=t[7]),c=new Mt({props:U}),xe.push(()=>Je(c,"value",N)),h=new nt({props:{text:"Registrieren",variant:"default"}}),h.$on("click",t[20]),v=new nt({props:{variant:"muted",text:"zurück"}}),v.$on("click",t[32]),{c(){e=W("div"),e.innerHTML='<h4 class="svelte-ekthp1">Neuen Account anlegen</h4>',n=j(),r=W("div"),F(i.$$.fragment),l=j(),F(a.$$.fragment),u=j(),F(c.$$.fragment),d=j(),m=W("div"),F(h.$$.fragment),p=j(),F(v.$$.fragment),x(e,"class","zlc-richtext"),x(r,"class","zlc-gap-y-form"),x(m,"class","btns svelte-ekthp1")},m(A,P){L(A,e,P),L(A,n,P),L(A,r,P),$(i,r,null),V(r,l),$(a,r,null),V(r,u),$(c,r,null),L(A,d,P),L(A,m,P),$(h,m,null),V(m,p),$(v,m,null),w=!0},p(A,P){const Y={};P[0]&32&&(Y.layout=A[5]),!o&&P[0]&8&&(o=!0,Y.value=A[3],Ve(()=>o=!1)),i.$set(Y);const B={};P[0]&32&&(B.layout=A[5]),!s&&P[0]&64&&(s=!0,B.value=A[6],Ve(()=>s=!1)),a.$set(B);const J={};P[0]&32768&&(J.hasError=A[15]),P[0]&32768&&(J.errorText=A[15]?"Passwörter müssen übereinstimmen":""),P[0]&32&&(J.layout=A[5]),!f&&P[0]&128&&(f=!0,J.value=A[7],Ve(()=>f=!1)),c.$set(J)},i(A){w||(g(i.$$.fragment,A),g(a.$$.fragment,A),g(c.$$.fragment,A),g(h.$$.fragment,A),g(v.$$.fragment,A),w=!0)},o(A){b(i.$$.fragment,A),b(a.$$.fragment,A),b(c.$$.fragment,A),b(h.$$.fragment,A),b(v.$$.fragment,A),w=!1},d(A){A&&(E(e),E(n),E(r),E(d),E(m)),R(i),R(a),R(c),R(h),R(v)}}}function oL(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S,y;function z(A){t[25](A)}let O={label:"E-Mail",type:"email",required:!0,autocomplete:"username",name:"username",layout:t[5],autofocus:!0};t[2]!==void 0&&(O.value=t[2]),n=new Mt({props:O}),xe.push(()=>Je(n,"value",z));function N(A){t[26](A)}let U={label:"Passwort",type:"password",required:!0,id:"current-password",name:"current-password",autocomplete:"current-password",layout:t[5],enterMaySubmit:!0};return t[10]!==void 0&&(U.value=t[10]),o=new Mt({props:U}),xe.push(()=>Je(o,"value",N)),u=new nt({props:{text:"Einloggen",variant:"default",id:"btn_login"}}),u.$on("click",t[17]),f=new nt({props:{text:"Account anlegen",variant:"outlined"}}),f.$on("click",t[27]),m=new nt({props:{text:"Als Gast nutzen",variant:"outlined",id:"btn_guest"}}),m.$on("click",t[18]),{c(){e=W("div"),F(n.$$.fragment),i=j(),F(o.$$.fragment),a=j(),s=W("div"),F(u.$$.fragment),c=j(),F(f.$$.fragment),d=j(),F(m.$$.fragment),h=j(),p=W("div"),v=W("a"),v.textContent="Passwort vergessen?",x(e,"class","zlc-gap-y-form"),x(s,"class","btns svelte-ekthp1"),x(v,"href","#top"),x(v,"class","svelte-ekthp1"),x(p,"class","center svelte-ekthp1")},m(A,P){L(A,e,P),$(n,e,null),V(e,i),$(o,e,null),L(A,a,P),L(A,s,P),$(u,s,null),V(s,c),$(f,s,null),V(s,d),$(m,s,null),L(A,h,P),L(A,p,P),V(p,v),w=!0,S||(y=tt(v,"click",t[28]),S=!0)},p(A,P){const Y={};P[0]&32&&(Y.layout=A[5]),!r&&P[0]&4&&(r=!0,Y.value=A[2],Ve(()=>r=!1)),n.$set(Y);const B={};P[0]&32&&(B.layout=A[5]),!l&&P[0]&1024&&(l=!0,B.value=A[10],Ve(()=>l=!1)),o.$set(B)},i(A){w||(g(n.$$.fragment,A),g(o.$$.fragment,A),g(u.$$.fragment,A),g(f.$$.fragment,A),g(m.$$.fragment,A),w=!0)},o(A){b(n.$$.fragment,A),b(o.$$.fragment,A),b(u.$$.fragment,A),b(f.$$.fragment,A),b(m.$$.fragment,A),w=!1},d(A){A&&(E(e),E(a),E(s),E(h),E(p)),R(n),R(o),R(u),R(f),R(m),S=!1,y()}}}function Dm(t){let e,n,r,i,o,l,a,s,u;function c(v){t[37](v)}let f={label:"VerificationCode",type:"text",required:!0,layout:t[5]};t[12]!==void 0&&(f.value=t[12]),e=new Mt({props:f}),xe.push(()=>Je(e,"value",c));function d(v){t[38](v)}let m={label:"Passwort",type:"password",required:!0,autocomplete:"new-password",id:"new-password",name:"new-password",layout:t[5]};t[8]!==void 0&&(m.value=t[8]),i=new Mt({props:m}),xe.push(()=>Je(i,"value",d));function h(v){t[39](v)}let p={label:"Passwort bestätigen",type:"password",required:!0,autocomplete:"new-password",id:"new-password2",name:"new-password2",hasError:t[14],errorText:t[14]?"Passwörter müssen übereinstimmen":"",layout:t[5]};return t[9]!==void 0&&(p.value=t[9]),a=new Mt({props:p}),xe.push(()=>Je(a,"value",h)),{c(){F(e.$$.fragment),r=j(),F(i.$$.fragment),l=j(),F(a.$$.fragment)},m(v,w){$(e,v,w),L(v,r,w),$(i,v,w),L(v,l,w),$(a,v,w),u=!0},p(v,w){const S={};w[0]&32&&(S.layout=v[5]),!n&&w[0]&4096&&(n=!0,S.value=v[12],Ve(()=>n=!1)),e.$set(S);const y={};w[0]&32&&(y.layout=v[5]),!o&&w[0]&256&&(o=!0,y.value=v[8],Ve(()=>o=!1)),i.$set(y);const z={};w[0]&16384&&(z.hasError=v[14]),w[0]&16384&&(z.errorText=v[14]?"Passwörter müssen übereinstimmen":""),w[0]&32&&(z.layout=v[5]),!s&&w[0]&512&&(s=!0,z.value=v[9],Ve(()=>s=!1)),a.$set(z)},i(v){u||(g(e.$$.fragment,v),g(i.$$.fragment,v),g(a.$$.fragment,v),u=!0)},o(v){b(e.$$.fragment,v),b(i.$$.fragment,v),b(a.$$.fragment,v),u=!1},d(v){v&&(E(r),E(l)),R(e,v),R(i,v),R(a,v)}}}function lL(t){let e,n,r,i;return e=new nt({props:{text:"Mail anfordern",variant:"default"}}),e.$on("click",t[42]),r=new nt({props:{variant:"muted",text:"zurück"}}),r.$on("click",t[43]),{c(){F(e.$$.fragment),n=j(),F(r.$$.fragment)},m(o,l){$(e,o,l),L(o,n,l),$(r,o,l),i=!0},p:ze,i(o){i||(g(e.$$.fragment,o),g(r.$$.fragment,o),i=!0)},o(o){b(e.$$.fragment,o),b(r.$$.fragment,o),i=!1},d(o){o&&E(n),R(e,o),R(r,o)}}}function aL(t){let e,n,r,i,o,l;return e=new nt({props:{text:"Bestätigen",variant:"default"}}),e.$on("click",t[19]),r=new nt({props:{variant:"outlined",text:"Neu senden"}}),r.$on("click",t[40]),o=new nt({props:{variant:"muted",text:"zurück"}}),o.$on("click",t[41]),{c(){F(e.$$.fragment),n=j(),F(r.$$.fragment),i=j(),F(o.$$.fragment)},m(a,s){$(e,a,s),L(a,n,s),$(r,a,s),L(a,i,s),$(o,a,s),l=!0},p:ze,i(a){l||(g(e.$$.fragment,a),g(r.$$.fragment,a),g(o.$$.fragment,a),l=!0)},o(a){b(e.$$.fragment,a),b(r.$$.fragment,a),b(o.$$.fragment,a),l=!1},d(a){a&&(E(n),E(i)),R(e,a),R(r,a),R(o,a)}}}function sL(t){let e,n,r,i,o,l;n=new zn({props:{error:t[1]}});const a=[oL,iL,rL,nL,tL],s=[];function u(c,f){return c[0]=="main"?0:c[0]=="register"?1:c[0]=="confirmUser"?2:c[0]=="resetPassword"?3:c[0]=="verifySoftwareToken"?4:-1}return~(i=u(t))&&(o=s[i]=a[i](t)),{c(){e=W("div"),F(n.$$.fragment),r=j(),o&&o.c(),x(e,"class","zlc-gap-y-2xl")},m(c,f){L(c,e,f),$(n,e,null),V(e,r),~i&&s[i].m(e,null),l=!0},p(c,f){const d={};f[0]&2&&(d.error=c[1]),n.$set(d);let m=i;i=u(c),i===m?~i&&s[i].p(c,f):(o&&(ne(),b(s[m],1,1,()=>{s[m]=null}),re()),~i?(o=s[i],o?o.p(c,f):(o=s[i]=a[i](c),o.c()),g(o,1),o.m(e,null)):o=null)},i(c){l||(g(n.$$.fragment,c),g(o),l=!0)},o(c){b(n.$$.fragment,c),b(o),l=!1},d(c){c&&E(e),R(n),~i&&s[i].d()}}}function uL(t){let e,n;return e=new Ji({props:{$$slots:{default:[sL]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&65535|i[1]&32768&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function cL(t,e,n){let r,i;const o=Bt();let{view:l="main"}=e,{layout:a="columns"}=e,{error:s=null}=e,{username:u=""}=e,{newUsername:c=""}=e,{hasSentForgotPassword:f=!1}=e,d="",m="",h="",p="",v="",w="",S="",y="";function z(){o("login",{username:u,password:d})}function O(){o("guestLogin")}function N(){if(i){n(1,s="Passwörter müssen übereinstimmen.");return}n(1,s=null),o("confirmResetPassword",{verificationCode:S,password:p})}function U(){if(n(1,s=null),m!=h){n(1,s="Passwörter müssen übereinstimmen");return}o("register",{username:c,password:m})}function A(){n(1,s=null),o("confirm",{confirmationCode:w})}function P(){n(1,s=null),o("resendConfirmationCode")}function Y(it=!1){if(!u){l=="main"?n(0,l="resetPassword"):n(1,s="Bitte geben Sie zuerst Ihre Mailadresse ein");return}n(4,f=it),n(1,s=null),o("forgotPassword")}function B(){o("verifyTotp",{mfaCode:y})}function J(it){u=it,n(2,u)}function ee(it){d=it,n(10,d)}const X=()=>n(0,l="register"),ce=()=>o("forgotPassword",{username:u});function he(it){c=it,n(3,c)}function de(it){m=it,n(6,m)}function se(it){h=it,n(7,h)}const ue=()=>n(0,l="main");function fe(it){u=it,n(2,u)}function Oe(it){w=it,n(11,w)}const me=()=>n(0,l="main");function we(it){u=it,n(2,u)}function Fe(it){S=it,n(12,S)}function pe(it){p=it,n(8,p)}function Se(it){v=it,n(9,v)}const De=()=>Y(!1),Ze=()=>n(0,l="main"),Qe=()=>Y(!0),dt=()=>n(0,l="main");function Ce(it){y=it,n(13,y)}const St=()=>n(0,l="main");return t.$$set=it=>{"view"in it&&n(0,l=it.view),"layout"in it&&n(5,a=it.layout),"error"in it&&n(1,s=it.error),"username"in it&&n(2,u=it.username),"newUsername"in it&&n(3,c=it.newUsername),"hasSentForgotPassword"in it&&n(4,f=it.hasSentForgotPassword)},t.$$.update=()=>{t.$$.dirty[0]&192&&n(15,r=h&&h!=m),t.$$.dirty[0]&768&&n(14,i=v&&v!=p)},[l,s,u,c,f,a,m,h,p,v,d,w,S,y,i,r,o,z,O,N,U,A,P,Y,B,J,ee,X,ce,he,de,se,ue,fe,Oe,me,we,Fe,pe,Se,De,Ze,Qe,dt,Ce,St]}class Mm extends Ne{constructor(e){super(),Ee(this,e,cL,uL,Ae,{view:0,layout:5,error:1,username:2,newUsername:3,hasSentForgotPassword:4},eL,[-1,-1])}get view(){return this.$$.ctx[0]}set view(e){this.$$set({view:e}),C()}get layout(){return this.$$.ctx[5]}set layout(e){this.$$set({layout:e}),C()}get error(){return this.$$.ctx[1]}set error(e){this.$$set({error:e}),C()}get username(){return this.$$.ctx[2]}set username(e){this.$$set({username:e}),C()}get newUsername(){return this.$$.ctx[3]}set newUsername(e){this.$$set({newUsername:e}),C()}get hasSentForgotPassword(){return this.$$.ctx[4]}set hasSentForgotPassword(e){this.$$set({hasSentForgotPassword:e}),C()}}Le(Mm,{view:{},layout:{},error:{},username:{},newUsername:{},hasSentForgotPassword:{type:"Boolean"}},[],[],!0);async function fL(t){let e="",n=null;return t.response&&t.response.status?(n=await t.response.json(),e=JSON.stringify(n)):typeof t=="string"?e=t:e=t+"<pre>"+JSON.stringify(t,null,4)+"</pre>",{message:e,style:"error"}}function Do(t,e){fL(t).then(n=>{e.showToast(n)},n=>e.showToast({message:"An error occurred",style:"error"}))}function dL(t){let e,n,r,i,o;function l(c){t[13](c)}function a(c){t[14](c)}function s(c){t[15](c)}let u={layout:"block"};return t[3]!==void 0&&(u.username=t[3]),t[2]!==void 0&&(u.error=t[2]),t[1]!==void 0&&(u.view=t[1]),e=new Mm({props:u}),xe.push(()=>Je(e,"username",l)),xe.push(()=>Je(e,"error",a)),xe.push(()=>Je(e,"view",s)),e.$on("confirm",t[8]),e.$on("confirmResetPassword",t[11]),e.$on("forgotPassword",t[7]),e.$on("guestLogin",t[4]),e.$on("login",t[5]),e.$on("register",t[10]),e.$on("resendConfirmationCode",t[9]),e.$on("verifyTotp",t[6]),{c(){F(e.$$.fragment)},m(c,f){$(e,c,f),o=!0},p(c,f){const d={};!n&&f&8&&(n=!0,d.username=c[3],Ve(()=>n=!1)),!r&&f&4&&(r=!0,d.error=c[2],Ve(()=>r=!1)),!i&&f&2&&(i=!0,d.view=c[1],Ve(()=>i=!1)),e.$set(d)},i(c){o||(g(e.$$.fragment,c),o=!0)},o(c){b(e.$$.fragment,c),o=!1},d(c){R(e,c)}}}function hL(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[dL]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2097166&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function mL(t){let e,n;return e=new Pn({props:{theme:t[0],$$slots:{default:[hL]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&2097166&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function gL(t,e,n){let{theme:r=null}=e,{client:i=null}=e,o=null,l="";const a=Bt();function s(){a("guest")}let u=null;function c(){return u==null?void 0:u.getCognitoUser(l)}function f(A){const P=A.getIdToken(),Y=A.getRefreshToken(),{exp:B}=P.payload,J={type:"registered",username:l,tokens:{expiresAt:Date.now()+B*1e3,idToken:P.getJwtToken(),refreshToken:Y.getToken()}};a("login",J)}function d(A){A.code=="UserNotConfirmedException"?n(1,z="confirmUser"):n(2,o=A)}function m(A){const{username:P,password:Y}=A.detail;if(!P||!Y){n(2,o="E-Mail und Passwort müssen eingegeben werden");return}const B=c(),J={Username:P,Password:Y},ee=u.createAuthenticationDetails(J),X={onSuccess(ce){f(ce)},onFailure(ce){d(ce)},mfaSetup(ce,he){B.associateSoftwareToken(this)},selectMFAType(ce,he){var de=prompt("Please select the MFA method.","");B.sendMFASelectionAnswer(de,this)},totpRequired(ce){n(1,z="verifySoftwareToken")},mfaRequired(ce){var he=prompt("Please input verification code","");B.sendMFACode(he,this)},newPasswordRequired(ce,he){jt.showToast({message:"newPasswordRequired callback is not implemented",style:"error"})}};B.authenticateUser(ee,X)}function h(A){const{mfaCode:P}=A.detail;c().sendMFACode(P,{onSuccess(Y){f(Y)},onFailure(Y){d(Y)}},"SOFTWARE_TOKEN_MFA")}function p(){if(!l){z=="main"?n(1,z="resetPassword"):n(2,o="Bitte geben Sie zuerst Ihre Mailadresse ein");return}n(2,o=null),c().forgotPassword({onSuccess(A){console.log("CodeDeliveryData from forgotPassword: "+A),n(1,z="resetPassword")},onFailure(A){n(2,o=A.message||JSON.stringify(A))},inputVerificationCode(A){n(1,z="resetPassword")}})}function v(A){const{confirmationCode:P}=A.detail;n(2,o=null),c().confirmRegistration(P,!0,function(Y,B){if(Y){n(2,o=Y);return}jt.showToast({message:"Account wurde bestätigt.",style:"success"}),n(1,z="main")})}function w(){n(2,o=null),c().resendConfirmationCode(function(A,P){if(A){n(2,o=A);return}})}function S(A){const{username:P,password:Y}=A.detail;n(2,o=null);const B=[],J={Name:"email",Value:P};var ee=u.createCognitoUserAttribute(J);B.push(ee),u.createCognitoUserPool().signUp(P,Y,B,null,function(X,ce){if(X){n(2,o=X);return}var he=ce.user;jt.showToast({message:"Ihr neuer Nutzer wurde angelegt. Sie können sich nun einloggen als "+he.getUsername(),style:"success"}),n(1,z="main")})}function y(A){n(2,o=null),c().confirmPassword(A.detail.verificationCode,A.detail.password,{onSuccess(){n(1,z="main"),jt.showToast({message:"Passwort wurde geändert.",style:"success"})},onFailure(P){n(2,o=P)}})}let z="main";function O(A){l=A,n(3,l)}function N(A){o=A,n(2,o),n(1,z)}function U(A){z=A,n(1,z)}return t.$$set=A=>{"theme"in A&&n(0,r=A.theme),"client"in A&&n(12,i=A.client)},t.$$.update=()=>{t.$$.dirty&4096&&i&&(console.log("cognitoWrapper",i),u=new QE(i.getCognitoConfig())),t.$$.dirty&2&&z&&n(2,o=null)},[r,z,o,l,s,m,h,p,v,w,S,y,i,O,N,U]}class Em extends Ne{constructor(e){super(),Ee(this,e,gL,mL,Ae,{theme:0,client:12})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get client(){return this.$$.ctx[12]}set client(e){this.$$set({client:e}),C()}}Le(Em,{theme:{},client:{}},[],[],!0);function pL(t){let e,n;const r=[{theme:t[0]},t[2]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Em({props:i}),e.$on("guest",t[4]),e.$on("login",t[5]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&5?ut(r,[l&1&&{theme:o[0]},l&4&&kt(o[2])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function bL(t){let e,n;const r=[t[2],{requiredProps:t[1]}];let i={$$slots:{default:[pL]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&6?ut(r,[l&4&&kt(o[2]),l&2&&{requiredProps:o[1]}]):{};l&69&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function vL(t,e,n){let{theme:r=bn}=e,{client:i=null}=e,o=["client"];function l(s){qe.call(this,t,s)}function a(s){qe.call(this,t,s)}return t.$$set=s=>{n(2,e=ve(ve({},e),je(s))),"theme"in s&&n(0,r=s.theme),"client"in s&&n(3,i=s.client)},e=je(e),[r,o,e,i,l,a]}class Lm extends Ne{constructor(e){super(),Ee(this,e,vL,bL,Ae,{theme:0,client:3})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get client(){return this.$$.ctx[3]}set client(e){this.$$set({client:e}),C()}}customElements.define("brokerize-login-form",Le(Lm,{theme:{},client:{}},[],[],!0));function _L(t){yt(t,"svelte-158katx","zl-tabs.svelte-158katx.svelte-158katx{border-color:var(--zl-tabs-container-border-color, var(--zl-color-gray-light));border-radius:var(--zl-tabs-container-border-radius, var(--zl-default-border-radius));border-style:var(--zl-tabs-container-border-style, solid);border-width:var(--zl-tabs-container-border-width, 1px);display:block;overflow:hidden}.tabs_list.svelte-158katx.svelte-158katx{align-items:center;display:flex;overflow-x:auto;overscroll-behavior-x:contain;position:relative;padding:var(--zl-tabs-link-padding-y, var(--zl-spacing-md))}.tabs_list.svelte-158katx.svelte-158katx:after{background-color:var(--zl-tabs-list-border-color, var(--zl-color-gray-light));bottom:0;content:'';height:var(--zl-tabs-list-border-width, 1px);left:0;position:absolute;right:0}button.svelte-158katx.svelte-158katx{display:none}.tabs_item.svelte-158katx.svelte-158katx{border-right-width:var(--zl-tabs-item-border-width, 0);border-right-style:solid;border-right-color:var(--zl-tabs-item-border-color, var(--zl-color-gray-light));position:relative;z-index:1}.tabs_link.svelte-158katx.svelte-158katx{color:var(--zl-input-placeholder-color);display:inline-block;padding:var(--zl-tabs-link-padding-y, var(--zl-spacing-md)) var(--zl-tabs-link-padding-x, var(--zl-spacing-lg));text-decoration:none;white-space:nowrap;border-bottom-style:solid;border-bottom-width:2px;border-color:transparent}.tabs_link.svelte-158katx.svelte-158katx:after{content:'';left:0;right:0;position:absolute;bottom:calc(var(--zl-tabs-link-padding-y, var(--zl-spacing-md)) * -1);height:2px}.tabs_link[aria-selected='true'].svelte-158katx.svelte-158katx{color:var(--zl-tabs-link-active-color, var(--zl-default-text-color))}.tabs_link[aria-selected='true'].svelte-158katx.svelte-158katx:after{background:var(--zl-tabs-link-active-border-color, var(--zl-color-primary-base))}.tabs_link[aria-selected='true'].svelte-158katx.svelte-158katx:hover,.tabs_link[aria-selected='true'].svelte-158katx.svelte-158katx:focus{color:var(--zl-tabs-link-active-color, var(--zl-default-text-color))}.tabs_link.svelte-158katx.svelte-158katx:hover,.tabs_link.svelte-158katx.svelte-158katx:focus{color:var(--zl-tabs-link-hover-color, var(--zl-default-text-color))}.tabs-section.svelte-158katx.svelte-158katx{padding:var(--zl-tabs-container-padding, 0)}.tabs--accordion.svelte-158katx .tabs_list.svelte-158katx{display:none}.tabs--accordion.svelte-158katx button.svelte-158katx{align-items:center;border:none;display:flex;font-weight:var(--zl-font-weight-bold, 700);gap:var(--zl-spacing-xl);justify-content:space-between;padding:var(--zl-tabs-link-padding-x, var(--zl-spacing-lg));text-align:left;width:100%}.tabs--accordion.svelte-158katx button.svelte-158katx:not(:last-of-type){border-bottom-color:var(--zl-color-gray-light);border-bottom-style:solid;border-bottom-width:1px}.tabs--accordion.svelte-158katx button[aria-pressed='true'].svelte-158katx{background-color:var(--zl-tabs-link-active-background-color, var(--zl-color-gray-lightest))}.tabs--accordion.svelte-158katx .tabs-section.svelte-158katx:not(:last-child){border-bottom:1px solid var(--zl-tabs-list-border-color, var(--zl-color-gray-light))}.tabs-filters.svelte-158katx.svelte-158katx{margin-left:auto}")}function Nm(t,e,n){const r=t.slice();return r[7]=e[n],r}const yL=t=>({}),Pm=t=>({}),kL=t=>({}),$m=t=>({});function Rm(t,e,n){const r=t.slice();return r[7]=e[n],r}function Fm(t){let e,n,r,i=t[7].label+"",o,l,a,s,u,c,f;return{c(){e=W("li"),n=W("a"),r=W("span"),o=Ie(i),x(r,"class","btn-text tabs-link-title"),x(r,"id",l=`tab-detail-${t[7].id}`),x(n,"class","btn tabs_link svelte-158katx"),x(n,"role","tab"),x(n,"href",a=`#panel-detail-${t[7].id}`),x(n,"aria-selected",s=t[0]===t[7].id),x(n,"id",u=t[7].id),x(e,"role","presentation"),x(e,"class","tabs_item svelte-158katx")},m(d,m){L(d,e,m),V(e,n),V(n,r),V(r,o),c||(f=tt(n,"click",Ii(function(){Vn(t[3](t[7].id))&&t[3](t[7].id).apply(this,arguments)})),c=!0)},p(d,m){t=d,m&2&&i!==(i=t[7].label+"")&&Ke(o,i),m&2&&l!==(l=`tab-detail-${t[7].id}`)&&x(r,"id",l),m&2&&a!==(a=`#panel-detail-${t[7].id}`)&&x(n,"href",a),m&3&&s!==(s=t[0]===t[7].id)&&x(n,"aria-selected",s),m&2&&u!==(u=t[7].id)&&x(n,"id",u)},d(d){d&&E(e),c=!1,f()}}}function xm(t){let e,n;const r=t[6].filters,i=ht(r,t,t[5],$m);return{c(){e=W("li"),i&&i.c(),x(e,"class","tabs-filters svelte-158katx")},m(o,l){L(o,e,l),i&&i.m(e,null),n=!0},p(o,l){i&&i.p&&(!n||l&32)&&gt(i,r,o,o[5],n?mt(r,o[5],l,kL):pt(o[5]),$m)},i(o){n||(g(i,o),n=!0)},o(o){b(i,o),n=!1},d(o){o&&E(e),i&&i.d(o)}}}function wL(t){let e,n;const r=t[6].filters,i=ht(r,t,t[5],Pm);return{c(){e=W("span"),i&&i.c(),x(e,"class","tabs-filters svelte-158katx")},m(o,l){L(o,e,l),i&&i.m(e,null),n=!0},p(o,l){i&&i.p&&(!n||l&32)&&gt(i,r,o,o[5],n?mt(r,o[5],l,yL):pt(o[5]),Pm)},i(o){n||(g(i,o),n=!0)},o(o){b(i,o),n=!1},d(o){o&&E(e),i&&i.d(o)}}}function SL(t){let e,n,r;var i=an.ChevronsUpDown;function o(l,a){return{props:{size:16,"stroke-width":2,class:"zlc-icon"}}}return i&&(e=fn(i,o())),{c(){e&&F(e.$$.fragment),n=Xe()},m(l,a){e&&$(e,l,a),L(l,n,a),r=!0},p(l,a){if(i!==(i=an.ChevronsUpDown)){if(e){ne();const s=e;b(s.$$.fragment,1,0,()=>{R(s,1)}),re()}i?(e=fn(i,o()),F(e.$$.fragment),g(e.$$.fragment,1),$(e,n.parentNode,n)):e=null}},i(l){r||(e&&g(e.$$.fragment,l),r=!0)},o(l){e&&b(e.$$.fragment,l),r=!1},d(l){l&&E(n),e&&R(e,l)}}}function Um(t){let e;const n=t[6].default,r=ht(n,t,t[5],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&32)&&gt(r,n,i,i[5],e?mt(n,i[5],o,null):pt(i[5]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function Bm(t){let e,n,r=t[7].label+"",i,o,l,a,s,u,c,f,d,m,h,p,v,w;const S=[SL,wL],y=[];function z(N,U){return N[0]!==N[7].id?0:N[4].filters?1:-1}~(l=z(t))&&(a=y[l]=S[l](t));let O=t[0]==t[7].id&&Um(t);return{c(){e=W("button"),n=W("span"),i=Ie(r),o=j(),a&&a.c(),u=j(),c=W("section"),O&&O.c(),f=j(),x(e,"aria-pressed",s=t[0]===t[7].id),x(e,"class","svelte-158katx"),x(c,"role","tabpanel"),x(c,"id",d=`#panel-detail-${t[7].id}`),x(c,"aria-labelledby",m=t[7].id),x(c,"tabindex","-1"),c.hidden=h=t[0]!==t[7].id,x(c,"class","tabs-section svelte-158katx")},m(N,U){L(N,e,U),V(e,n),V(n,i),V(e,o),~l&&y[l].m(e,null),L(N,u,U),L(N,c,U),O&&O.m(c,null),V(c,f),p=!0,v||(w=tt(e,"click",Ii(function(){Vn(t[3](t[7].id))&&t[3](t[7].id).apply(this,arguments)})),v=!0)},p(N,U){t=N,(!p||U&2)&&r!==(r=t[7].label+"")&&Ke(i,r);let A=l;l=z(t),l===A?~l&&y[l].p(t,U):(a&&(ne(),b(y[A],1,1,()=>{y[A]=null}),re()),~l?(a=y[l],a?a.p(t,U):(a=y[l]=S[l](t),a.c()),g(a,1),a.m(e,null)):a=null),(!p||U&3&&s!==(s=t[0]===t[7].id))&&x(e,"aria-pressed",s),t[0]==t[7].id?O?(O.p(t,U),U&3&&g(O,1)):(O=Um(t),O.c(),g(O,1),O.m(c,f)):O&&(ne(),b(O,1,1,()=>{O=null}),re()),(!p||U&2&&d!==(d=`#panel-detail-${t[7].id}`))&&x(c,"id",d),(!p||U&2&&m!==(m=t[7].id))&&x(c,"aria-labelledby",m),(!p||U&3&&h!==(h=t[0]!==t[7].id))&&(c.hidden=h)},i(N){p||(g(a),g(O),p=!0)},o(N){b(a),b(O),p=!1},d(N){N&&(E(e),E(u),E(c)),~l&&y[l].d(),O&&O.d(),v=!1,w()}}}function TL(t){let e,n,r,i,o,l,a=At(t[1]),s=[];for(let m=0;m<a.length;m+=1)s[m]=Fm(Rm(t,a,m));let u=t[4].filters&&xm(t),c=At(t[1]),f=[];for(let m=0;m<c.length;m+=1)f[m]=Bm(Nm(t,c,m));const d=m=>b(f[m],1,1,()=>{f[m]=null});return{c(){e=W("zl-tabs"),n=W("ul");for(let m=0;m<s.length;m+=1)s[m].c();r=j(),u&&u.c(),i=j(),o=W("div");for(let m=0;m<f.length;m+=1)f[m].c();x(n,"role","tablist"),x(n,"class","tabs_list svelte-158katx"),x(o,"class","tabs-content"),ii(e,"class","svelte-158katx"),ke(e,"tabs--accordion",t[2])},m(m,h){L(m,e,h),V(e,n);for(let p=0;p<s.length;p+=1)s[p]&&s[p].m(n,null);V(n,r),u&&u.m(n,null),V(e,i),V(e,o);for(let p=0;p<f.length;p+=1)f[p]&&f[p].m(o,null);l=!0},p(m,[h]){if(h&11){a=At(m[1]);let p;for(p=0;p<a.length;p+=1){const v=Rm(m,a,p);s[p]?s[p].p(v,h):(s[p]=Fm(v),s[p].c(),s[p].m(n,r))}for(;p<s.length;p+=1)s[p].d(1);s.length=a.length}if(m[4].filters?u?(u.p(m,h),h&16&&g(u,1)):(u=xm(m),u.c(),g(u,1),u.m(n,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),h&59){c=At(m[1]);let p;for(p=0;p<c.length;p+=1){const v=Nm(m,c,p);f[p]?(f[p].p(v,h),g(f[p],1)):(f[p]=Bm(v),f[p].c(),g(f[p],1),f[p].m(o,null))}for(ne(),p=c.length;p<f.length;p+=1)d(p);re()}(!l||h&4)&&ke(e,"tabs--accordion",m[2])},i(m){if(!l){g(u);for(let h=0;h<c.length;h+=1)g(f[h]);l=!0}},o(m){b(u),f=f.filter(Boolean);for(let h=0;h<f.length;h+=1)b(f[h]);l=!1},d(m){m&&E(e),Mn(s,m),u&&u.d(),Mn(f,m)}}}function zL(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=Xo(r);let{items:l=[]}=e,{activeTabId:a=l[0].id}=e,{tabsToAccordion:s=!1}=e;const u=c=>()=>n(0,a=c);return t.$$set=c=>{"items"in c&&n(1,l=c.items),"activeTabId"in c&&n(0,a=c.activeTabId),"tabsToAccordion"in c&&n(2,s=c.tabsToAccordion),"$$scope"in c&&n(5,i=c.$$scope)},[a,l,s,u,o,i,r]}class qm extends Ne{constructor(e){super(),Ee(this,e,zL,TL,Ae,{items:1,activeTabId:0,tabsToAccordion:2},_L)}get items(){return this.$$.ctx[1]}set items(e){this.$$set({items:e}),C()}get activeTabId(){return this.$$.ctx[0]}set activeTabId(e){this.$$set({activeTabId:e}),C()}get tabsToAccordion(){return this.$$.ctx[2]}set tabsToAccordion(e){this.$$set({tabsToAccordion:e}),C()}}Le(qm,{items:{},activeTabId:{},tabsToAccordion:{type:"Boolean"}},["filters","default"],[],!0);function CL(t){yt(t,"svelte-mlk1js",`zl-keyfigures.svelte-mlk1js{display:block;padding:var(--zl-keyfigures-padding-y, var(--zl-spacing-sm))
243
+ var(--zl-keyfigures-padding-x, var(--zl-spacing-md))}dl.svelte-mlk1js{max-width:100%;display:flex;flex-wrap:wrap;gap:var(--zl-keyfigures-gap-x, var(--zl-spacing-md))}dl.block.svelte-mlk1js{flex-direction:column}dl.block.svelte-mlk1js .keyfigures{display:flex;justify-content:space-between;gap:var(--zl-keyfigures-gap-y, var(--zl-spacing-sm))}dl.columns.svelte-mlk1js .keyfigures{align-items:baseline;display:flex;flex-direction:column;gap:var(--zl-keyfigures-gap-y, var(--zl-spacing-sm))}@media(min-width: 35rem){dl.columns.svelte-mlk1js{justify-content:space-between
244
+ }}`)}function OL(t){let e,n,r,i;const o=t[3].default,l=ht(o,t,t[2],null);return{c(){e=W("zl-keyfigures"),n=W("dl"),l&&l.c(),x(n,"class",r=vn(`${t[0]||t[1]}`)+" svelte-mlk1js"),ii(e,"class","svelte-mlk1js")},m(a,s){L(a,e,s),V(e,n),l&&l.m(n,null),i=!0},p(a,[s]){l&&l.p&&(!i||s&4)&&gt(l,o,a,a[2],i?mt(o,a[2],s,null):pt(a[2]),null),(!i||s&3&&r!==(r=vn(`${a[0]||a[1]}`)+" svelte-mlk1js"))&&x(n,"class",r)},i(a){i||(g(l,a),i=!0)},o(a){b(l,a),i=!1},d(a){a&&E(e),l&&l.d(a)}}}function IL(t,e,n){let{$$slots:r={},$$scope:i}=e,{layout:o=null}=e;const l=tn("themeConfig");let a;return l.subscribe(s=>n(1,a=s==null?void 0:s.layout)),t.$$set=s=>{"layout"in s&&n(0,o=s.layout),"$$scope"in s&&n(2,i=s.$$scope)},[o,a,i,r]}class Vm extends Ne{constructor(e){super(),Ee(this,e,IL,OL,Ae,{layout:0},CL)}get layout(){return this.$$.ctx[0]}set layout(e){this.$$set({layout:e}),C()}}Le(Vm,{layout:{}},["default"],[],!0);function AL(t){yt(t,"svelte-1jkdh6r","dt.svelte-1jkdh6r,dd.svelte-1jkdh6r{overflow-wrap:break-word;white-space:nowrap}dt.svelte-1jkdh6r{color:var(--zl-keyfigures-key-color, var(--zl-color-gray-darker));font-size:var(--zl-keyfigures-font-size, var(--zl-font-size-2xs));font-weight:var(--zl-keyfigures-key-font-weight, var(--zl-font-weight-normal))}dt.svelte-1jkdh6r:after{content:':'}dd.svelte-1jkdh6r{font-size:var(--zl-keyfigures-font-size, var(--zl-font-size-2xs));font-weight:var(--zl-keyfigures-value-font-weight, var(--zl-font-weight-bold))}")}function DL(t){return{c:ze,m:ze,p:ze,d:ze}}function ML(t){let e,n=t[0].label+"",r,i,o,l,a=t[1].formatProfitLossAbsHtml(t[0].profitLossAbsValue)+"",s,u,c=t[1].formatProfitLossRelHtml(t[0].profitLossRelValue)+"";return{c(){e=W("dt"),r=Ie(n),i=j(),o=W("dd"),l=new hr(!1),s=Ie(`
245
+ /
246
+ `),u=new hr(!1),x(e,"class","svelte-1jkdh6r"),l.a=s,u.a=null,x(o,"class","svelte-1jkdh6r")},m(f,d){L(f,e,d),V(e,r),L(f,i,d),L(f,o,d),l.m(a,o),V(o,s),u.m(c,o)},p(f,d){d&1&&n!==(n=f[0].label+"")&&Ke(r,n),d&1&&a!==(a=f[1].formatProfitLossAbsHtml(f[0].profitLossAbsValue)+"")&&l.p(a),d&1&&c!==(c=f[1].formatProfitLossRelHtml(f[0].profitLossRelValue)+"")&&u.p(c)},d(f){f&&(E(e),E(i),E(o))}}}function EL(t){let e,n=t[0].label+"",r,i,o,l=t[1].formatAmount(t[0].absValue)+"";return{c(){e=W("dt"),r=Ie(n),i=j(),o=W("dd"),x(e,"class","svelte-1jkdh6r"),x(o,"class","svelte-1jkdh6r")},m(a,s){L(a,e,s),V(e,r),L(a,i,s),L(a,o,s),o.innerHTML=l},p(a,s){s&1&&n!==(n=a[0].label+"")&&Ke(r,n),s&1&&l!==(l=a[1].formatAmount(a[0].absValue)+"")&&(o.innerHTML=l)},d(a){a&&(E(e),E(i),E(o))}}}function LL(t){let e;function n(o,l){return o[0].type=="absValue"?EL:o[0].type=="profitLossAbs"?ML:DL}let r=n(t),i=r(t);return{c(){e=W("div"),i.c(),x(e,"class","keyfigures")},m(o,l){L(o,e,l),i.m(e,null)},p(o,[l]){r===(r=n(o))&&i?i.p(o,l):(i.d(1),i=r(o),i&&(i.c(),i.m(e,null)))},i:ze,o:ze,d(o){o&&E(e),i.d()}}}function NL(t,e,n){let{item:r}=e;const i=pr(tn);return t.$$set=o=>{"item"in o&&n(0,r=o.item)},[r,i]}class Qr extends Ne{constructor(e){super(),Ee(this,e,NL,LL,Ae,{item:0},AL)}get item(){return this.$$.ctx[0]}set item(e){this.$$set({item:e}),C()}}Le(Qr,{item:{}},[],[],!0);function PL(t){yt(t,"svelte-1j4wjb6",".wrapper.svelte-1j4wjb6.svelte-1j4wjb6{display:flex;flex-wrap:wrap;gap:5px}.wrapper.zl-portfolio-sync-badge.svelte-1j4wjb6>.svelte-1j4wjb6{display:flex;align-items:center;border-radius:100px;font-size:9px;padding:2px 5px}.wrapper.zl-portfolio-sync-badge.svelte-1j4wjb6>.zl-portfolio-sync-info.svelte-1j4wjb6{background-color:var(--zl-portfolio-sync-info-color, var(--zl-color-gray-lighter))}.wrapper.zl-portfolio-sync-badge.svelte-1j4wjb6>.zl-portfolio-sync-success.svelte-1j4wjb6{background-color:var(--zl-portfolio-sync-success-color, var(--zl-color-success-decent))}.wrapper.zl-portfolio-sync-badge.svelte-1j4wjb6>.zl-portfolio-sync-warning.svelte-1j4wjb6{background-color:var(--zl-portfolio-sync-warning-color, var(--zl-color-warning-decent))}.wrapper.zl-portfolio-sync-badge.svelte-1j4wjb6>.zl-portfolio-sync-error.svelte-1j4wjb6{background-color:var(--zl-portfolio-sync-error-color, var(--zl-color-error-decent))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>[class*='zl-portfolio-sync'].svelte-1j4wjb6{align-items:center;display:flex;gap:5px;position:relative}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>[class*='zl-portfolio-sync'].svelte-1j4wjb6:after{content:'';display:block;width:10px;height:10px;border-radius:1000px}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-info.svelte-1j4wjb6{color:var(--zl-portfolio-sync-info-color, var(--zl-color-gray-dark))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-info.svelte-1j4wjb6:after{background-color:var(--zl-portfolio-sync-info-color, var(--zl-color-gray-dark))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-success.svelte-1j4wjb6{color:var(--zl-portfolio-sync-success-color, var(--zl-color-success-dark))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-success.svelte-1j4wjb6:after{background-color:var(--zl-portfolio-sync-success-color, var(--zl-color-success-base))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-warning.svelte-1j4wjb6{color:var(--zl-portfolio-sync-warning-color, var(--zl-color-warning-dark))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-warning.svelte-1j4wjb6:after{background-color:var(--zl-portfolio-sync-warning-color, var(--zl-color-warning-base))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-error.svelte-1j4wjb6{color:var(--zl-portfolio-sync-error-color, var(--zl-color-error-dark))}.wrapper.zl-portfolio-sync-circle.svelte-1j4wjb6>.zl-portfolio-sync-error.svelte-1j4wjb6:after{background-color:var(--zl-portfolio-sync-error-color, var(--zl-color-error-base))}")}function $L(t){let e;return{c(){e=W("span"),e.textContent="Depotsynchronisierung fehlgeschlagen",x(e,"class","zl-portfolio-sync-error svelte-1j4wjb6")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function RL(t){let e;return{c(){e=W("span"),e.textContent="Depotsynchronisierung wird vervollständigt",x(e,"class","zl-portfolio-sync-warning svelte-1j4wjb6")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function FL(t){let e;return{c(){e=W("span"),e.textContent="Depot wird synchronisiert",x(e,"class","zl-portfolio-sync-warning svelte-1j4wjb6")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function xL(t){var o;let e,n,r=t[3].formatDateTime((o=t[2])==null?void 0:o.lastSync)+"",i;return{c(){e=W("span"),n=Ie("Stand: "),i=Ie(r),x(e,"class","zl-portfolio-sync-success svelte-1j4wjb6")},m(l,a){L(l,e,a),V(e,n),V(e,i)},p(l,a){var s;a&4&&r!==(r=l[3].formatDateTime((s=l[2])==null?void 0:s.lastSync)+"")&&Ke(i,r)},d(l){l&&E(e)}}}function UL(t){let e,n,r;function i(a,s){var u,c,f,d;if(((u=a[2])==null?void 0:u.status)=="COMPLETE")return VL;if(((c=a[2])==null?void 0:c.status)=="PENDING"||((f=a[2])==null?void 0:f.status)=="INCOMPLETE")return qL;if(((d=a[2])==null?void 0:d.status)=="ERROR")return BL}let o=i(t),l=o&&o(t);return{c(){e=W("span"),e.textContent="Depot hat keine aktive Session",n=j(),l&&l.c(),r=Xe(),x(e,"class","zl-portfolio-sync-info svelte-1j4wjb6")},m(a,s){L(a,e,s),L(a,n,s),l&&l.m(a,s),L(a,r,s)},p(a,s){o===(o=i(a))&&l?l.p(a,s):(l&&l.d(1),l=o&&o(a),l&&(l.c(),l.m(r.parentNode,r)))},d(a){a&&(E(e),E(n),E(r)),l&&l.d(a)}}}function BL(t){let e;return{c(){e=W("span"),e.textContent="Die Depotsynchronisierung ist fehlgeschlagen",x(e,"class","zl-portfolio-sync-error svelte-1j4wjb6")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function qL(t){let e;return{c(){e=W("span"),e.textContent="Die Depotsynchronisierung wurde nicht abgeschlossen",x(e,"class","zl-portfolio-sync-warning svelte-1j4wjb6")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function VL(t){var o;let e,n,r=t[3].formatDateTime((o=t[2])==null?void 0:o.lastSync)+"",i;return{c(){e=W("span"),n=Ie("Synchronisiert: "),i=Ie(r),x(e,"class","zl-portfolio-sync-success svelte-1j4wjb6")},m(l,a){L(l,e,a),V(e,n),V(e,i)},p(l,a){var s;a&4&&r!==(r=l[3].formatDateTime((s=l[2])==null?void 0:s.lastSync)+"")&&Ke(i,r)},d(l){l&&E(e)}}}function JL(t){let e;function n(o,l){var a,s,u,c,f,d;if(!((s=(a=o[0])==null?void 0:a.sessionIds)!=null&&s.length))return UL;if(((u=o[2])==null?void 0:u.status)=="COMPLETE")return xL;if(((c=o[2])==null?void 0:c.status)=="PENDING")return FL;if(((f=o[2])==null?void 0:f.status)=="INCOMPLETE")return RL;if(((d=o[2])==null?void 0:d.status)=="ERROR")return $L}let r=n(t),i=r&&r(t);return{c(){e=W("span"),i&&i.c(),x(e,"class","wrapper svelte-1j4wjb6"),ke(e,"zl-portfolio-sync-badge",t[1]==="badge"),ke(e,"zl-portfolio-sync-circle",t[1]==="circle")},m(o,l){L(o,e,l),i&&i.m(e,null)},p(o,[l]){r===(r=n(o))&&i?i.p(o,l):(i&&i.d(1),i=r&&r(o),i&&(i.c(),i.m(e,null))),l&2&&ke(e,"zl-portfolio-sync-badge",o[1]==="badge"),l&2&&ke(e,"zl-portfolio-sync-circle",o[1]==="circle")},i:ze,o:ze,d(o){o&&E(e),i&&i.d()}}}function HL(t,e,n){let r;const i=pr(tn);let{portfolio:o}=e,{variant:l="circle"}=e;return t.$$set=a=>{"portfolio"in a&&n(0,o=a.portfolio),"variant"in a&&n(1,l=a.variant)},t.$$.update=()=>{t.$$.dirty&1&&n(2,r=o==null?void 0:o.syncInfo)},[o,l,r,i]}class Jm extends Ne{constructor(e){super(),Ee(this,e,HL,JL,Ae,{portfolio:0,variant:1},PL)}get portfolio(){return this.$$.ctx[0]}set portfolio(e){this.$$set({portfolio:e}),C()}get variant(){return this.$$.ctx[1]}set variant(e){this.$$set({variant:e}),C()}}Le(Jm,{portfolio:{},variant:{}},[],[],!0);let Vl,Jl;function Hm(t,e){return Vl||(Jl=new WeakMap,Vl=new ResizeObserver(n=>{for(const r of n){const i=Jl.get(r.target);i&&i(r.target)}})),Jl.set(t,e),Vl.observe(t),{destroy:()=>{Jl.delete(t),Vl.unobserve(t)}}}function WL(t){yt(t,"svelte-1i06odp","td.svelte-1i06odp{text-align:start}td.align-end.svelte-1i06odp{text-align:end}td.align-center.svelte-1i06odp{text-align:center}")}function YL(t){let e,n,r,i;n=new wl({props:{value:t[1]}}),n.$on("action",t[3]),n.$on("navigate",t[4]),n.$on("actionsToggle",t[5]);let o=[t[2],{class:r=t[0]!=="left"?`align-${t[0]}`:null}],l={};for(let a=0;a<o.length;a+=1)l=ve(l,o[a]);return{c(){e=W("td"),F(n.$$.fragment),En(e,l),ke(e,"svelte-1i06odp",!0)},m(a,s){L(a,e,s),$(n,e,null),i=!0},p(a,[s]){const u={};s&2&&(u.value=a[1]),n.$set(u),En(e,l=ut(o,[s&4&&a[2],(!i||s&1&&r!==(r=a[0]!=="left"?`align-${a[0]}`:null))&&{class:r}])),ke(e,"svelte-1i06odp",!0)},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n)}}}function GL(t,e,n){const r=["align","data"];let i=Dn(e,r),{align:o="left"}=e,{data:l}=e;function a(c){qe.call(this,t,c)}function s(c){qe.call(this,t,c)}function u(c){qe.call(this,t,c)}return t.$$set=c=>{e=ve(ve({},e),je(c)),n(2,i=Dn(e,r)),"align"in c&&n(0,o=c.align),"data"in c&&n(1,l=c.data)},[o,l,i,a,s,u]}let Wm=class extends Ne{constructor(e){super(),Ee(this,e,GL,YL,Ae,{align:0,data:1},WL)}get align(){return this.$$.ctx[0]}set align(e){this.$$set({align:e}),C()}get data(){return this.$$.ctx[1]}set data(e){this.$$set({data:e}),C()}};Le(Wm,{align:{},data:{}},[],[],!0);function KL(t){yt(t,"svelte-1bf2kxh",`.table-wrapper.svelte-1bf2kxh.svelte-1bf2kxh{border:var(--zl-table-border, none);box-shadow:var(--zl-table-box-shadow, none);color:var(--zl-table-color, var(--zl-default-text-color));inline-size:100%;max-inline-size:100%;overflow-x:auto;overflow-y:hidden;position:relative;background-image:linear-gradient(
247
+ to right,
248
+ hsla(
249
+ var(--zl-table-scroll-overflow-color-solid-hsl-h),
250
+ var(--zl-table-scroll-overflow-color-solid-hsl-s),
251
+ var(--zl-table-scroll-overflow-color-solid-hsl-l),
252
+ 1
253
+ )
254
+ 30%,
255
+ hsla(
256
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
257
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
258
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
259
+ 0
260
+ )
261
+ ),
262
+ linear-gradient(
263
+ to right,
264
+ hsla(
265
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
266
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
267
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
268
+ 0
269
+ ),
270
+ hsla(
271
+ var(--zl-table-scroll-overflow-color-solid-hsl-h),
272
+ var(--zl-table-scroll-overflow-color-solid-hsl-s),
273
+ var(--zl-table-scroll-overflow-color-solid-hsl-l),
274
+ 1
275
+ )
276
+ 70%
277
+ ),
278
+ radial-gradient(
279
+ farthest-side at 0% 50%,
280
+ hsla(
281
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
282
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
283
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
284
+ 0.2
285
+ ),
286
+ hsla(
287
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
288
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
289
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
290
+ 0
291
+ )
292
+ ),
293
+ radial-gradient(
294
+ farthest-side at 100% 50%,
295
+ hsla(
296
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
297
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
298
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
299
+ 0.2
300
+ ),
301
+ hsla(
302
+ var(--zl-table-scroll-overflow-color-fade-hsl-h),
303
+ var(--zl-table-scroll-overflow-color-fade-hsl-s),
304
+ var(--zl-table-scroll-overflow-color-fade-hsl-l),
305
+ 0
306
+ )
307
+ );background-attachment:local, local, scroll, scroll;background-color:var(--zl-table-background-color, var(--zl-app-background-color));background-repeat:no-repeat;background-position:0 0,
308
+ 100%,
309
+ 0 100%,
310
+ 100% 100%;background-size:40px 100%,
311
+ 40px 100%,
312
+ 14px 100%,
313
+ 14px 100%}thead.svelte-1bf2kxh th.svelte-1bf2kxh{background-color:var(--zl-table-th-background-color, var(--zl-color-gray-lighter));border-bottom:1px solid var(--zl-color-gray-light);color:var(--zl-table-th-color, var(--zl-default-text-color));padding-inline:var(--zl-table-padding-x, var(--zl-spacing-md));padding-block:var(--zl-table-padding-y, var(--zl-spacing-lg));text-align:start;line-height:2}thead.svelte-1bf2kxh th.svelte-1bf2kxh .zl-btn{text-align:left;padding-inline:var(--zl-spacing-sm) var(--zl-spacing-md);padding-block:var(--zl-spacing-sm)}thead.svelte-1bf2kxh th.align-end.svelte-1bf2kxh{text-align:end}thead.svelte-1bf2kxh th.align-right.svelte-1bf2kxh{text-align:right}thead.svelte-1bf2kxh th.align-center.svelte-1bf2kxh{text-align:center}thead.svelte-1bf2kxh th .sort-wrapper.svelte-1bf2kxh{display:flex}thead.svelte-1bf2kxh th.svelte-1bf2kxh>.zl-btn{padding:var(--zl-spacing-sm) var(--zl-spacing-md);transform:translateX(calc(var(--zl-spacing-md) * -1));text-align:left;margin-right:calc(var(--zl-spacing-md) * -1)}thead.svelte-1bf2kxh th.svelte-1bf2kxh .zlc-icon{opacity:0.6}tbody.svelte-1bf2kxh tr.svelte-1bf2kxh td{padding-inline:var(--zl-table-padding-x, var(--zl-spacing-md));padding-block:var(--zl-table-padding-y, var(--zl-spacing-lg))}tbody.svelte-1bf2kxh tr.svelte-1bf2kxh:first-child td{padding-top:calc(var(--zl-table-padding-y, var(--zl-spacing-md)) * 2)}tbody.svelte-1bf2kxh tr.svelte-1bf2kxh:last-child td{padding-bottom:calc(var(--zl-table-padding-y, var(--zl-spacing-md)) * 2)}tbody.svelte-1bf2kxh tr.svelte-1bf2kxh:not(:last-child) td{border-bottom:1px solid var(--zl-default-border-color)}.table-filters.svelte-1bf2kxh.svelte-1bf2kxh{background-color:var(--zl-table-th-background-color, var(--zl-color-gray-lighter));padding:var(--zl-spacing-md);display:flex;flex-wrap:wrap;gap:var(--zl-spacing-md);justify-content:flex-end}.empty-info.svelte-1bf2kxh.svelte-1bf2kxh{align-items:center;display:flex;flex-direction:column;gap:var(--zl-spacing-xl);justify-content:center;margin:calc(var(--zl-table-padding-x, var(--zl-spacing-md)) * -1);min-height:10rem;padding:var(--zl-spacing-4xl);text-align:center}`)}const QL=t=>({}),Ym=t=>({});function Gm(t,e,n){const r=t.slice();return r[16]=e[n],r}function Km(t,e,n){const r=t.slice();return r[19]=e[n],r}function Qm(t,e,n){const r=t.slice();return r[19]=e[n],r}const jL=t=>({}),jm=t=>({});function Xm(t){let e,n;const r=t[10].filters,i=ht(r,t,t[9],jm);return{c(){e=W("div"),i&&i.c(),x(e,"class","table-filters svelte-1bf2kxh")},m(o,l){L(o,e,l),i&&i.m(e,null),n=!0},p(o,l){i&&i.p&&(!n||l&512)&&gt(i,r,o,o[9],n?mt(r,o[9],l,jL):pt(o[9]),jm)},i(o){n||(g(i,o),n=!0)},o(o){b(i,o),n=!1},d(o){o&&E(e),i&&i.d(o)}}}function XL(t){let e,n;function r(l,a){return l[19].visuallyHidden?tN:eN}let i=r(t),o=i(t);return{c(){var l,a;e=W("th"),o.c(),_n(e,"width",(l=t[19])==null?void 0:l.width),x(e,"class",n=vn((a=t[19])!=null&&a.align?`align-${t[19].align}`:void 0)+" svelte-1bf2kxh")},m(l,a){L(l,e,a),o.m(e,null)},p(l,a){var s,u;i===(i=r(l))&&o?o.p(l,a):(o.d(1),o=i(l),o&&(o.c(),o.m(e,null))),a&2&&_n(e,"width",(s=l[19])==null?void 0:s.width),a&2&&n!==(n=vn((u=l[19])!=null&&u.align?`align-${l[19].align}`:void 0)+" svelte-1bf2kxh")&&x(e,"class",n)},i:ze,o:ze,d(l){l&&E(e),o.d()}}}function ZL(t){var u,c;let e,n,r,i,o,l,a;function s(){return t[11](t[19])}return r=new nt({props:{text:t[19].label,icon:((u=t[0])==null?void 0:u.field)===t[19].id?((c=t[0])==null?void 0:c.direction)==="asc"?"ChevronsUp":"ChevronsDown":"ChevronsUpDown",variant:"muted",size:"sm"}}),r.$on("click",s),{c(){var f,d,m,h;e=W("th"),n=W("div"),F(r.$$.fragment),i=j(),x(n,"class","sort-wrapper svelte-1bf2kxh"),x(e,"scope","col"),_n(e,"width",(f=t[19])==null?void 0:f.width),x(e,"class",o=vn((d=t[19])!=null&&d.align?`align-${t[19].align}`:void 0)+" svelte-1bf2kxh"),x(e,"aria-sort",l=((m=t[0])==null?void 0:m.field)===t[19].id?((h=t[0])==null?void 0:h.direction)==="asc"?"ascending":"descending":"none")},m(f,d){L(f,e,d),V(e,n),$(r,n,null),V(e,i),a=!0},p(f,d){var h,p,v,w,S,y;t=f;const m={};d&2&&(m.text=t[19].label),d&3&&(m.icon=((h=t[0])==null?void 0:h.field)===t[19].id?((p=t[0])==null?void 0:p.direction)==="asc"?"ChevronsUp":"ChevronsDown":"ChevronsUpDown"),r.$set(m),(!a||d&2)&&_n(e,"width",(v=t[19])==null?void 0:v.width),(!a||d&2&&o!==(o=vn((w=t[19])!=null&&w.align?`align-${t[19].align}`:void 0)+" svelte-1bf2kxh"))&&x(e,"class",o),(!a||d&3&&l!==(l=((S=t[0])==null?void 0:S.field)===t[19].id?((y=t[0])==null?void 0:y.direction)==="asc"?"ascending":"descending":"none"))&&x(e,"aria-sort",l)},i(f){a||(g(r.$$.fragment,f),a=!0)},o(f){b(r.$$.fragment,f),a=!1},d(f){f&&E(e),R(r)}}}function eN(t){let e=t[19].label+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&2&&e!==(e=r[19].label+"")&&Ke(n,e)},d(r){r&&E(n)}}}function tN(t){let e,n=t[19].label+"",r,i;return{c(){var o;e=W("span"),r=Ie(n),x(e,"class",i=vn((o=t[19])!=null&&o.visuallyHidden?"zlc-invisible":void 0)+" svelte-1bf2kxh")},m(o,l){L(o,e,l),V(e,r)},p(o,l){var a;l&2&&n!==(n=o[19].label+"")&&Ke(r,n),l&2&&i!==(i=vn((a=o[19])!=null&&a.visuallyHidden?"zlc-invisible":void 0)+" svelte-1bf2kxh")&&x(e,"class",i)},d(o){o&&E(e)}}}function Zm(t){let e,n,r,i;const o=[ZL,XL],l=[];function a(s,u){return s[3]&&s[19].sortable?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function nN(t){let e,n,r,i,o,l,a;var s=an.Table;function u(m,h){return{props:{size:72,stroke:"var(--zl-table-empty-icon-color, var(--zl-color-gray-light))",class:"zlc-icon"}}}s&&(i=fn(s,u()));const c=t[10]["empty-info"],f=ht(c,t,t[9],Ym),d=f||iN();return{c(){e=W("tr"),n=W("td"),r=W("div"),i&&F(i.$$.fragment),o=j(),d&&d.c(),x(r,"class","empty-info svelte-1bf2kxh"),x(n,"colspan",l=t[1].length),x(e,"class","svelte-1bf2kxh")},m(m,h){L(m,e,h),V(e,n),V(n,r),i&&$(i,r,null),V(r,o),d&&d.m(r,null),a=!0},p(m,h){if(s!==(s=an.Table)){if(i){ne();const p=i;b(p.$$.fragment,1,0,()=>{R(p,1)}),re()}s?(i=fn(s,u()),F(i.$$.fragment),g(i.$$.fragment,1),$(i,r,o)):i=null}f&&f.p&&(!a||h&512)&&gt(f,c,m,m[9],a?mt(c,m[9],h,QL):pt(m[9]),Ym),(!a||h&2&&l!==(l=m[1].length))&&x(n,"colspan",l)},i(m){a||(i&&g(i.$$.fragment,m),g(d,m),a=!0)},o(m){i&&b(i.$$.fragment,m),b(d,m),a=!1},d(m){m&&E(e),i&&R(i),d&&d.d(m)}}}function rN(t){let e,n,r=At(t[2]),i=[];for(let l=0;l<r.length;l+=1)i[l]=tg(Gm(t,r,l));const o=l=>b(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=Xe()},m(l,a){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(l,a);L(l,e,a),n=!0},p(l,a){if(a&102){r=At(l[2]);let s;for(s=0;s<r.length;s+=1){const u=Gm(l,r,s);i[s]?(i[s].p(u,a),g(i[s],1)):(i[s]=tg(u),i[s].c(),g(i[s],1),i[s].m(e.parentNode,e))}for(ne(),s=r.length;s<i.length;s+=1)o(s);re()}},i(l){if(!n){for(let a=0;a<r.length;a+=1)g(i[a]);n=!0}},o(l){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)b(i[a]);n=!1},d(l){l&&E(e),Mn(i,l)}}}function iN(t){let e;return{c(){e=W("p"),e.textContent="Es liegen noch keine Daten vor."},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function eg(t){var o;let e,n;function r(...l){return t[12](t[16],...l)}function i(...l){return t[13](t[16],...l)}return e=new Wm({props:{id:(o=t[16].map[t[19].id])==null?void 0:o.value,align:t[19].align=="right"?"end":t[19].align,data:t[16].map[t[19].id],style:"opacity: "+(t[16].showFaded?.5:1)}}),e.$on("action",r),e.$on("navigate",i),e.$on("actionsToggle",t[14]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),n=!0},p(l,a){var u;t=l;const s={};a&6&&(s.id=(u=t[16].map[t[19].id])==null?void 0:u.value),a&2&&(s.align=t[19].align=="right"?"end":t[19].align),a&6&&(s.data=t[16].map[t[19].id]),a&4&&(s.style="opacity: "+(t[16].showFaded?.5:1)),e.$set(s)},i(l){n||(g(e.$$.fragment,l),n=!0)},o(l){b(e.$$.fragment,l),n=!1},d(l){R(e,l)}}}function tg(t){let e,n,r,i=At(t[1]),o=[];for(let a=0;a<i.length;a+=1)o[a]=eg(Km(t,i,a));const l=a=>b(o[a],1,1,()=>{o[a]=null});return{c(){e=W("tr");for(let a=0;a<o.length;a+=1)o[a].c();n=j(),x(e,"class","svelte-1bf2kxh")},m(a,s){L(a,e,s);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(e,null);V(e,n),r=!0},p(a,s){if(s&102){i=At(a[1]);let u;for(u=0;u<i.length;u+=1){const c=Km(a,i,u);o[u]?(o[u].p(c,s),g(o[u],1)):(o[u]=eg(c),o[u].c(),g(o[u],1),o[u].m(e,n))}for(ne(),u=i.length;u<o.length;u+=1)l(u);re()}},i(a){if(!r){for(let s=0;s<i.length;s+=1)g(o[s]);r=!0}},o(a){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)b(o[s]);r=!1},d(a){a&&E(e),Mn(o,a)}}}function ng(t){let e,n;return e=new Sn({props:{overlay:!0,size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function oN(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v=t[8].filters&&Xm(t),w=At(t[1]),S=[];for(let A=0;A<w.length;A+=1)S[A]=Zm(Qm(t,w,A));const y=A=>b(S[A],1,1,()=>{S[A]=null}),z=[rN,nN],O=[];function N(A,P){return A[2]&&A[2].length>0?0:1}s=N(t),u=O[s]=z[s](t);let U=t[4]&&ng();return{c(){v&&v.c(),e=j(),n=W("div"),r=W("table"),i=W("thead"),o=W("tr");for(let A=0;A<S.length;A+=1)S[A].c();l=j(),a=W("tbody"),u.c(),c=j(),f=W("tfoot"),m=j(),U&&U.c(),x(i,"class","svelte-1bf2kxh"),x(a,"class","svelte-1bf2kxh"),x(r,"role",d=t[3]?"grid":null),x(n,"class","table-wrapper svelte-1bf2kxh"),x(n,"role","region"),x(n,"tabindex","0"),x(n,"style",h=t[4]?"overflow: hidden":null)},m(A,P){v&&v.m(A,P),L(A,e,P),L(A,n,P),V(n,r),V(r,i),V(i,o);for(let Y=0;Y<S.length;Y+=1)S[Y]&&S[Y].m(o,null);V(r,l),V(r,a),O[s].m(a,null),V(r,c),V(r,f),V(n,m),U&&U.m(n,null),p=!0},p(A,[P]){if(A[8].filters?v?(v.p(A,P),P&256&&g(v,1)):(v=Xm(A),v.c(),g(v,1),v.m(e.parentNode,e)):v&&(ne(),b(v,1,1,()=>{v=null}),re()),P&139){w=At(A[1]);let B;for(B=0;B<w.length;B+=1){const J=Qm(A,w,B);S[B]?(S[B].p(J,P),g(S[B],1)):(S[B]=Zm(J),S[B].c(),g(S[B],1),S[B].m(o,null))}for(ne(),B=w.length;B<S.length;B+=1)y(B);re()}let Y=s;s=N(A),s===Y?O[s].p(A,P):(ne(),b(O[Y],1,1,()=>{O[Y]=null}),re(),u=O[s],u?u.p(A,P):(u=O[s]=z[s](A),u.c()),g(u,1),u.m(a,null)),(!p||P&8&&d!==(d=A[3]?"grid":null))&&x(r,"role",d),A[4]?U?P&16&&g(U,1):(U=ng(),U.c(),g(U,1),U.m(n,null)):U&&(ne(),b(U,1,1,()=>{U=null}),re()),(!p||P&16&&h!==(h=A[4]?"overflow: hidden":null))&&x(n,"style",h)},i(A){if(!p){g(v);for(let P=0;P<w.length;P+=1)g(S[P]);g(u),g(U),p=!0}},o(A){b(v),S=S.filter(Boolean);for(let P=0;P<S.length;P+=1)b(S[P]);b(u),b(U),p=!1},d(A){A&&(E(e),E(n)),v&&v.d(A),Mn(S,A),O[s].d(),U&&U.d()}}}function lN(t){return t=="asc"?"desc":"asc"}function aN(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=Xo(r),l=Bt();let{header:a}=e,{rows:s}=e,{isSortable:u=!1}=e,{loading:c=!1}=e,{order:f=void 0}=e;function d(y,z){const O=z.detail.id;l("action",{rowId:y.id,actionId:O})}function m(y){l("navigate",{rowId:y.id})}function h(y){const z=y.defaultDirection||"desc",O=[z,lN(z),void 0],N=U=>{const A=O.indexOf(U);return O[(A+1)%3]};if((f==null?void 0:f.field)===y.id){const U=N(f.direction);U?n(0,f={field:y.id,direction:U}):n(0,f=void 0)}else n(0,f={field:y.id,direction:z});l("sort",f)}const p=y=>{h(y)},v=(y,z)=>d(y,z),w=(y,z)=>m(y);function S(y){qe.call(this,t,y)}return t.$$set=y=>{"header"in y&&n(1,a=y.header),"rows"in y&&n(2,s=y.rows),"isSortable"in y&&n(3,u=y.isSortable),"loading"in y&&n(4,c=y.loading),"order"in y&&n(0,f=y.order),"$$scope"in y&&n(9,i=y.$$scope)},[f,a,s,u,c,d,m,h,o,i,r,p,v,w,S]}class ji extends Ne{constructor(e){super(),Ee(this,e,aN,oN,Ae,{header:1,rows:2,isSortable:3,loading:4,order:0},KL)}get header(){return this.$$.ctx[1]}set header(e){this.$$set({header:e}),C()}get rows(){return this.$$.ctx[2]}set rows(e){this.$$set({rows:e}),C()}get isSortable(){return this.$$.ctx[3]}set isSortable(e){this.$$set({isSortable:e}),C()}get loading(){return this.$$.ctx[4]}set loading(e){this.$$set({loading:e}),C()}get order(){return this.$$.ctx[0]}set order(e){this.$$set({order:e}),C()}}Le(ji,{header:{},rows:{},isSortable:{type:"Boolean"},loading:{type:"Boolean"},order:{}},["filters","empty-info"],[],!0);function sN(t){let e,n;return e=new wl({props:{value:t[0]}}),e.$on("action",t[1]),e.$on("navigate",t[2]),e.$on("actionsToggle",t[3]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.value=r[0]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function uN(t,e,n){let{data:r}=e;function i(a){qe.call(this,t,a)}function o(a){qe.call(this,t,a)}function l(a){qe.call(this,t,a)}return t.$$set=a=>{"data"in a&&n(0,r=a.data)},[r,i,o,l]}class Ur extends Ne{constructor(e){super(),Ee(this,e,uN,sN,Ae,{data:0})}get data(){return this.$$.ctx[0]}set data(e){this.$$set({data:e}),C()}}Le(Ur,{data:{}},[],[],!0);function cN(t){yt(t,"svelte-18x2pd","a.svelte-18x2pd{column-gap:var(--zl-spacing-md);display:grid;grid-template-areas:'l1 r1' 'l2 r2' 'l3 r3' 'l4 r4';grid-template-columns:1fr auto;max-width:100%;overflow:hidden;padding:var(--zl-table-padding-y, var(--zl-spacing-sm)) var(--zl-table-padding-x, var(--zl-spacing-md));row-gap:var(--zl-spacing-xs);text-align:start;text-decoration:none}a.svelte-18x2pd:not(:last-child){border-bottom:1px solid var(--zl-color-gray-light)}a.svelte-18x2pd:hover,a.svelte-18x2pd:focus{background-color:var(--zl-color-gray-lightest)}.slot.svelte-18x2pd{font-feature-settings:slashed-zero tabular-nums;font-variant-numeric:slashed-zero tabular-nums}.slot-l1.svelte-18x2pd{font-weight:var(--zl-font-weight-medium);grid-area:l1}.slot-r1.svelte-18x2pd{font-weight:var(--zl-font-weight-medium);grid-area:r1;text-align:right}.slot-l2.svelte-18x2pd{grid-area:l2}.slot-r2.svelte-18x2pd{grid-area:r2;text-align:right}.slot-l3.svelte-18x2pd{grid-area:l3}.slot-r3.svelte-18x2pd{grid-area:r3;text-align:right}.slot-l4.svelte-18x2pd{grid-area:l4}.slot-r4.svelte-18x2pd{grid-area:r4;text-align:right}.empty-info.svelte-18x2pd{align-items:center;border-top:none;display:flex;flex-direction:column;gap:var(--zl-spacing-xl);justify-content:center;margin:-1px;min-height:10rem;padding:var(--zl-spacing-4xl);text-align:center}")}const fN=t=>({}),rg=t=>({});function ig(t,e,n){const r=t.slice();return r[7]=e[n],r}function dN(t){let e,n,r,i;var o=an.List;function l(c,f){return{props:{class:"zlc-icon",size:72,stroke:"var(--zl-table-empty-icon-color, var(--zl-color-gray-light))"}}}o&&(n=fn(o,l()));const a=t[5]["empty-info"],s=ht(a,t,t[4],rg),u=s||mN();return{c(){e=W("div"),n&&F(n.$$.fragment),r=j(),u&&u.c(),x(e,"class","empty-info svelte-18x2pd")},m(c,f){L(c,e,f),n&&$(n,e,null),V(e,r),u&&u.m(e,null),i=!0},p(c,f){if(o!==(o=an.List)){if(n){ne();const d=n;b(d.$$.fragment,1,0,()=>{R(d,1)}),re()}o?(n=fn(o,l()),F(n.$$.fragment),g(n.$$.fragment,1),$(n,e,r)):n=null}s&&s.p&&(!i||f&16)&&gt(s,a,c,c[4],i?mt(a,c[4],f,fN):pt(c[4]),rg)},i(c){i||(n&&g(n.$$.fragment,c),g(u,c),i=!0)},o(c){n&&b(n.$$.fragment,c),b(u,c),i=!1},d(c){c&&E(e),n&&R(n),u&&u.d(c)}}}function hN(t){let e,n,r=At(t[0]),i=[];for(let l=0;l<r.length;l+=1)i[l]=og(ig(t,r,l));const o=l=>b(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=Xe()},m(l,a){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(l,a);L(l,e,a),n=!0},p(l,a){if(a&13){r=At(l[0]);let s;for(s=0;s<r.length;s+=1){const u=ig(l,r,s);i[s]?(i[s].p(u,a),g(i[s],1)):(i[s]=og(u),i[s].c(),g(i[s],1),i[s].m(e.parentNode,e))}for(ne(),s=r.length;s<i.length;s+=1)o(s);re()}},i(l){if(!n){for(let a=0;a<r.length;a+=1)g(i[a]);n=!0}},o(l){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)b(i[a]);n=!1},d(l){l&&E(e),Mn(i,l)}}}function mN(t){let e;return{c(){e=W("p"),e.textContent="Es liegen noch keine Daten vor."},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function og(t){var X,ce,he;let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S,y,z,O,N,U,A,P,Y,B,J;r=new Ur({props:{data:t[7].map[(X=t[2])==null?void 0:X.l1]}}),l=new Ur({props:{data:t[7].map[(ce=t[2])==null?void 0:ce.r1]}}),u=new Ur({props:{data:t[7].map[(he=t[2])==null?void 0:he.l2]}}),d=new Ur({props:{data:t[7].map[t[2].r2]}}),p=new Ur({props:{data:t[7].map[t[2].l3]}}),S=new Ur({props:{data:t[7].map[t[2].r3]}}),O=new Ur({props:{data:t[7].map[t[2].l4]}}),A=new Ur({props:{data:t[7].map[t[2].r4]}});function ee(){return t[6](t[7])}return{c(){e=W("a"),n=W("span"),F(r.$$.fragment),i=j(),o=W("span"),F(l.$$.fragment),a=j(),s=W("span"),F(u.$$.fragment),c=j(),f=W("span"),F(d.$$.fragment),m=j(),h=W("span"),F(p.$$.fragment),v=j(),w=W("span"),F(S.$$.fragment),y=j(),z=W("span"),F(O.$$.fragment),N=j(),U=W("span"),F(A.$$.fragment),P=j(),x(n,"class","slot slot-l1 svelte-18x2pd"),x(o,"class","slot slot-r1 svelte-18x2pd"),x(s,"class","slot slot-l2 svelte-18x2pd"),x(f,"class","slot slot-r2 svelte-18x2pd"),x(h,"class","slot slot-l3 svelte-18x2pd"),x(w,"class","slot slot-r3 svelte-18x2pd"),x(z,"class","slot slot-l4 svelte-18x2pd"),x(U,"class","slot slot-r4 svelte-18x2pd"),x(e,"href","/#"),x(e,"class","svelte-18x2pd")},m(de,se){L(de,e,se),V(e,n),$(r,n,null),V(e,i),V(e,o),$(l,o,null),V(e,a),V(e,s),$(u,s,null),V(e,c),V(e,f),$(d,f,null),V(e,m),V(e,h),$(p,h,null),V(e,v),V(e,w),$(S,w,null),V(e,y),V(e,z),$(O,z,null),V(e,N),V(e,U),$(A,U,null),V(e,P),Y=!0,B||(J=tt(e,"click",Ii(ee)),B=!0)},p(de,se){var De,Ze,Qe;t=de;const ue={};se&5&&(ue.data=t[7].map[(De=t[2])==null?void 0:De.l1]),r.$set(ue);const fe={};se&5&&(fe.data=t[7].map[(Ze=t[2])==null?void 0:Ze.r1]),l.$set(fe);const Oe={};se&5&&(Oe.data=t[7].map[(Qe=t[2])==null?void 0:Qe.l2]),u.$set(Oe);const me={};se&5&&(me.data=t[7].map[t[2].r2]),d.$set(me);const we={};se&5&&(we.data=t[7].map[t[2].l3]),p.$set(we);const Fe={};se&5&&(Fe.data=t[7].map[t[2].r3]),S.$set(Fe);const pe={};se&5&&(pe.data=t[7].map[t[2].l4]),O.$set(pe);const Se={};se&5&&(Se.data=t[7].map[t[2].r4]),A.$set(Se)},i(de){Y||(g(r.$$.fragment,de),g(l.$$.fragment,de),g(u.$$.fragment,de),g(d.$$.fragment,de),g(p.$$.fragment,de),g(S.$$.fragment,de),g(O.$$.fragment,de),g(A.$$.fragment,de),Y=!0)},o(de){b(r.$$.fragment,de),b(l.$$.fragment,de),b(u.$$.fragment,de),b(d.$$.fragment,de),b(p.$$.fragment,de),b(S.$$.fragment,de),b(O.$$.fragment,de),b(A.$$.fragment,de),Y=!1},d(de){de&&E(e),R(r),R(l),R(u),R(d),R(p),R(S),R(O),R(A),B=!1,J()}}}function lg(t){let e,n;return e=new Sn({props:{overlay:!0,size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function gN(t){let e,n,r,i,o;const l=[hN,dN],a=[];function s(c,f){return c[0]&&c[0].length>0?0:1}n=s(t),r=a[n]=l[n](t);let u=t[1]&&lg();return{c(){e=W("zl-data-table-mobile"),r.c(),i=j(),u&&u.c()},m(c,f){L(c,e,f),a[n].m(e,null),V(e,i),u&&u.m(e,null),o=!0},p(c,[f]){let d=n;n=s(c),n===d?a[n].p(c,f):(ne(),b(a[d],1,1,()=>{a[d]=null}),re(),r=a[n],r?r.p(c,f):(r=a[n]=l[n](c),r.c()),g(r,1),r.m(e,i)),c[1]?u?f&2&&g(u,1):(u=lg(),u.c(),g(u,1),u.m(e,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re())},i(c){o||(g(r),g(u),o=!0)},o(c){b(r),b(u),o=!1},d(c){c&&E(e),a[n].d(),u&&u.d()}}}function pN(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=Bt();let{rows:l}=e,{loading:a=!1}=e,{slotMapping:s}=e;const u=c=>o("showdetail",{row:c});return t.$$set=c=>{"rows"in c&&n(0,l=c.rows),"loading"in c&&n(1,a=c.loading),"slotMapping"in c&&n(2,s=c.slotMapping),"$$scope"in c&&n(4,i=c.$$scope)},[l,a,s,o,i,r,u]}class As extends Ne{constructor(e){super(),Ee(this,e,pN,gN,Ae,{rows:0,loading:1,slotMapping:2},cN)}get rows(){return this.$$.ctx[0]}set rows(e){this.$$set({rows:e}),C()}get loading(){return this.$$.ctx[1]}set loading(e){this.$$set({loading:e}),C()}get slotMapping(){return this.$$.ctx[2]}set slotMapping(e){this.$$set({slotMapping:e}),C()}}Le(As,{rows:{},loading:{type:"Boolean"},slotMapping:{}},["empty-info"],[],!0);function bN(t){yt(t,"svelte-12bswvn","ul.svelte-12bswvn{display:flex;justify-content:center;align-items:center;list-style:none;padding:var(--zl-spacing-sm) 0;margin:0 var(--zl-spacing-sm);overflow-x:auto}li.svelte-12bswvn{margin-inline:var(--zl-spacing-xs)}")}function ag(t,e,n){const r=t.slice();return r[11]=e[n],r}function sg(t){let e,n,r;function i(){return t[8](t[11])}return n=new nt({props:{active:t[0]===t[11],size:"sm",condensed:!0,variant:"muted",text:(t[11]+1).toString()}}),n.$on("click",i),{c(){e=W("li"),F(n.$$.fragment),x(e,"class","svelte-12bswvn")},m(o,l){L(o,e,l),$(n,e,null),r=!0},p(o,l){t=o;const a={};l&5&&(a.active=t[0]===t[11]),l&4&&(a.text=(t[11]+1).toString()),n.$set(a)},i(o){r||(g(n.$$.fragment,o),r=!0)},o(o){b(n.$$.fragment,o),r=!1},d(o){o&&E(e),R(n)}}}function vN(t){let e,n,r,i,o,l,a,s,u;i=new nt({props:{variant:"muted",size:"sm",icon:"ChevronLeft",disabled:t[0]===0}}),i.$on("click",t[3]);let c=At(t[2]),f=[];for(let m=0;m<c.length;m+=1)f[m]=sg(ag(t,c,m));const d=m=>b(f[m],1,1,()=>{f[m]=null});return s=new nt({props:{variant:"muted",size:"sm",icon:"ChevronRight",disabled:t[0]===t[1]-1}}),s.$on("click",t[4]),{c(){e=W("nav"),n=W("ul"),r=W("li"),F(i.$$.fragment),o=j();for(let m=0;m<f.length;m+=1)f[m].c();l=j(),a=W("li"),F(s.$$.fragment),x(r,"class","svelte-12bswvn"),x(a,"class","svelte-12bswvn"),x(n,"class","svelte-12bswvn"),x(e,"aria-label","Pagination")},m(m,h){L(m,e,h),V(e,n),V(n,r),$(i,r,null),V(n,o);for(let p=0;p<f.length;p+=1)f[p]&&f[p].m(n,null);V(n,l),V(n,a),$(s,a,null),u=!0},p(m,[h]){const p={};if(h&1&&(p.disabled=m[0]===0),i.$set(p),h&37){c=At(m[2]);let w;for(w=0;w<c.length;w+=1){const S=ag(m,c,w);f[w]?(f[w].p(S,h),g(f[w],1)):(f[w]=sg(S),f[w].c(),g(f[w],1),f[w].m(n,l))}for(ne(),w=c.length;w<f.length;w+=1)d(w);re()}const v={};h&3&&(v.disabled=m[0]===m[1]-1),s.$set(v)},i(m){if(!u){g(i.$$.fragment,m);for(let h=0;h<c.length;h+=1)g(f[h]);g(s.$$.fragment,m),u=!0}},o(m){b(i.$$.fragment,m),f=f.filter(Boolean);for(let h=0;h<f.length;h+=1)b(f[h]);b(s.$$.fragment,m),u=!1},d(m){m&&E(e),R(i),Mn(f,m),R(s)}}}const ug=3;function _N(t,e,n){let r,i,{totalCount:o=0}=e,{page:l=0}=e,{pageSize:a=0}=e;function s(h,p){const v=Math.max(0,p-ug),w=Math.min(r-1,p+ug),S=[];for(let y=v;y<=w;y++)S.push(y);return S}const u=Bt(),c=()=>{n(0,l=Math.max(0,l-1)),u("prevPage",{page:l})},f=()=>{n(0,l=Math.min(r-1,l+1)),u("nextPage",{page:l})},d=h=>{n(0,l=h),u("setPage",{page:l})},m=h=>d(h);return t.$$set=h=>{"totalCount"in h&&n(6,o=h.totalCount),"page"in h&&n(0,l=h.page),"pageSize"in h&&n(7,a=h.pageSize)},t.$$.update=()=>{t.$$.dirty&192&&n(1,r=Math.ceil(o/a)),t.$$.dirty&3&&n(2,i=s(r,l))},[l,r,i,c,f,d,o,a,m]}class cg extends Ne{constructor(e){super(),Ee(this,e,_N,vN,Ae,{totalCount:6,page:0,pageSize:7},bN)}get totalCount(){return this.$$.ctx[6]}set totalCount(e){this.$$set({totalCount:e}),C()}get page(){return this.$$.ctx[0]}set page(e){this.$$set({page:e}),C()}get pageSize(){return this.$$.ctx[7]}set pageSize(e){this.$$set({pageSize:e}),C()}}Le(cg,{totalCount:{},page:{},pageSize:{}},[],[],!0);function yN(t){var d;let e,n,r,i,o,l;const a=[SN,wN],s=[];function u(m,h){return m[2]?0:1}e=u(t),n=s[e]=a[e](t);function c(m){t[26](m)}let f={totalCount:(d=t[6])==null?void 0:d.totalCount,pageSize:Hl};return t[5]!==void 0&&(f.page=t[5]),i=new cg({props:f}),xe.push(()=>Je(i,"page",c)),{c(){n.c(),r=j(),F(i.$$.fragment)},m(m,h){s[e].m(m,h),L(m,r,h),$(i,m,h),l=!0},p(m,h){var w;let p=e;e=u(m),e===p?s[e].p(m,h):(ne(),b(s[p],1,1,()=>{s[p]=null}),re(),n=s[e],n?n.p(m,h):(n=s[e]=a[e](m),n.c()),g(n,1),n.m(r.parentNode,r));const v={};h[0]&64&&(v.totalCount=(w=m[6])==null?void 0:w.totalCount),!o&&h[0]&32&&(o=!0,v.page=m[5],Ve(()=>o=!1)),i.$set(v)},i(m){l||(g(n),g(i.$$.fragment,m),l=!0)},o(m){b(n),b(i.$$.fragment,m),l=!1},d(m){m&&E(r),s[e].d(m),R(i,m)}}}function kN(t){let e,n,r,i;e=new As({props:{rows:t[11],slotMapping:t[9]}}),e.$on("showdetail",t[16]);let o=t[5]<t[12]&&fg(t);return{c(){F(e.$$.fragment),n=j(),o&&o.c(),r=Xe()},m(l,a){$(e,l,a),L(l,n,a),o&&o.m(l,a),L(l,r,a),i=!0},p(l,a){const s={};a[0]&2048&&(s.rows=l[11]),a[0]&512&&(s.slotMapping=l[9]),e.$set(s),l[5]<l[12]?o?(o.p(l,a),a[0]&4128&&g(o,1)):(o=fg(l),o.c(),g(o,1),o.m(r.parentNode,r)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){i||(g(e.$$.fragment,l),g(o),i=!0)},o(l){b(e.$$.fragment,l),b(o),i=!1},d(l){l&&(E(n),E(r)),R(e,l),o&&o.d(l)}}}function wN(t){let e,n,r;function i(l){t[25](l)}let o={header:t[10],isSortable:!0,rows:t[11],$$slots:{"empty-info":[IN]},$$scope:{ctx:t}};return t[7]!==void 0&&(o.order=t[7]),e=new ji({props:o}),xe.push(()=>Je(e,"order",i)),e.$on("action",t[14]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&1024&&(s.header=l[10]),a[0]&2048&&(s.rows=l[11]),a[0]&9|a[1]&262144&&(s.$$scope={dirty:a,ctx:l}),!n&&a[0]&128&&(n=!0,s.order=l[7],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function SN(t){let e,n,r;function i(l){t[24](l)}let o={header:t[10],isSortable:!0,rows:t[11],$$slots:{"empty-info":[NN],filters:[AN]},$$scope:{ctx:t}};return t[7]!==void 0&&(o.order=t[7]),e=new ji({props:o}),xe.push(()=>Je(e,"order",i)),e.$on("action",t[14]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&1024&&(s.header=l[10]),a[0]&2048&&(s.rows=l[11]),a[0]&11|a[1]&262144&&(s.$$scope={dirty:a,ctx:l}),!n&&a[0]&128&&(n=!0,s.order=l[7],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function TN(t){var r;let e=JSON.stringify((r=t[3])==null?void 0:r.syncInfo)+"",n;return{c(){n=Ie(e)},m(i,o){L(i,n,o)},p(i,o){var l;o[0]&8&&e!==(e=JSON.stringify((l=i[3])==null?void 0:l.syncInfo)+"")&&Ke(n,e)},d(i){i&&E(n)}}}function zN(t){let e;return{c(){e=Ie("Daten für dieses Depot werden noch synchronisert...")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function CN(t){let e;return{c(){e=Ie("Bei der Depotsynchronisierung ist ein Fehler aufgetreten.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function ON(t){let e;return{c(){e=Ie("Keine Orders vorhanden.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function IN(t){let e;function n(o,l){var a,s,u,c,f,d,m,h,p,v;return((s=(a=o[3])==null?void 0:a.syncInfo)==null?void 0:s.status)==="COMPLETE"||((c=(u=o[3])==null?void 0:u.syncInfo)==null?void 0:c.status)==="INCOMPLETE"&&o[0]==="open"?ON:((d=(f=o[3])==null?void 0:f.syncInfo)==null?void 0:d.status)==="ERROR"?CN:((h=(m=o[3])==null?void 0:m.syncInfo)==null?void 0:h.status)==="INCOMPLETE"||((v=(p=o[3])==null?void 0:p.syncInfo)==null?void 0:v.status)==="PENDING"?zN:TN}let r=n(t),i=r(t);return{c(){e=W("span"),i.c(),x(e,"slot","empty-info")},m(o,l){L(o,e,l),i.m(e,null)},p(o,l){r===(r=n(o))&&i?i.p(o,l):(i.d(1),i=r(o),i&&(i.c(),i.m(e,null)))},d(o){o&&E(e),i.d()}}}function AN(t){let e,n,r,i,o,l;function a(f){t[22](f)}let s={layout:"columns",placeholder:t[13]("OrderTable.FilterSearchPlaceholder")};t[1]!==void 0&&(s.value=t[1]),e=new Mt({props:s}),xe.push(()=>Je(e,"value",a));function u(f){t[23](f)}let c={layout:"columns",items:t[15],hideLabel:!0};return t[0]!==void 0&&(c.selected=t[0]),i=new Un({props:c}),xe.push(()=>Je(i,"selected",u)),{c(){F(e.$$.fragment),r=j(),F(i.$$.fragment)},m(f,d){$(e,f,d),L(f,r,d),$(i,f,d),l=!0},p(f,d){const m={};!n&&d[0]&2&&(n=!0,m.value=f[1],Ve(()=>n=!1)),e.$set(m);const h={};!o&&d[0]&1&&(o=!0,h.selected=f[0],Ve(()=>o=!1)),i.$set(h)},i(f){l||(g(e.$$.fragment,f),g(i.$$.fragment,f),l=!0)},o(f){b(e.$$.fragment,f),b(i.$$.fragment,f),l=!1},d(f){f&&E(r),R(e,f),R(i,f)}}}function DN(t){var r;let e=JSON.stringify((r=t[3])==null?void 0:r.syncInfo)+"",n;return{c(){n=Ie(e)},m(i,o){L(i,n,o)},p(i,o){var l;o[0]&8&&e!==(e=JSON.stringify((l=i[3])==null?void 0:l.syncInfo)+"")&&Ke(n,e)},d(i){i&&E(n)}}}function MN(t){let e;return{c(){e=Ie("Daten für dieses Depot werden synchronisert...")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function EN(t){let e;return{c(){e=Ie("Bei der Depotsynchronisierung ist ein Fehler aufgetreten.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function LN(t){let e;return{c(){e=Ie("Keine Orders vorhanden.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function NN(t){let e;function n(o,l){var a,s,u,c,f,d,m,h,p,v;return((s=(a=o[3])==null?void 0:a.syncInfo)==null?void 0:s.status)==="COMPLETE"||((c=(u=o[3])==null?void 0:u.syncInfo)==null?void 0:c.status)==="INCOMPLETE"&&o[0]==="open"?LN:((d=(f=o[3])==null?void 0:f.syncInfo)==null?void 0:d.status)==="ERROR"?EN:((h=(m=o[3])==null?void 0:m.syncInfo)==null?void 0:h.status)==="INCOMPLETE"||((v=(p=o[3])==null?void 0:p.syncInfo)==null?void 0:v.status)==="PENDING"?MN:DN}let r=n(t),i=r(t);return{c(){e=W("span"),i.c(),x(e,"slot","empty-info")},m(o,l){L(o,e,l),i.m(e,null)},p(o,l){r===(r=n(o))&&i?i.p(o,l):(i.d(1),i=r(o),i&&(i.c(),i.m(e,null)))},d(o){o&&E(e),i.d()}}}function fg(t){let e,n,r;return n=new nt({props:{busy:t[8],text:"Weitere Aufträge laden...",width:"full",variant:"default"}}),n.$on("click",t[21]),{c(){e=W("div"),F(n.$$.fragment),_n(e,"display","grid"),_n(e,"padding","1em")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p(i,o){const l={};o[0]&256&&(l.busy=i[8]),n.$set(l)},i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function PN(t){let e,n,r,i;const o=[kN,yN],l=[];function a(s,u){return s[4]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}const Hl=10;function $N(t){if(t.currentStop)return{type:"amount",value:t.currentStop};if(t.stop!=null)return dg(t.stop,t)}function RN(t,e){return e=="open"?t.openSize:e=="executed"?t.executedSize:e=="canceled"?t.cancelledSize:t.size}function dg(t,e){if(t!=null)return{type:"amount",value:{value:t,currency:e.limitCurrencyIso,minDecimals:2,maxDecimals:e.quoteDecimals||5}}}function FN(t,e,n){let r,i,o,l;const a=pr(tn),{__:s,labels:u}=a;let{portfolioId:c=null}=e,{apiCtx:f=null}=e,{orderTableFilter:d="all"}=e,{orderTableFilterSearch:m=""}=e,{showFilterBar:h=!0}=e,{portfolio:p=null}=e,{mobileView:v=!1}=e,{broker:w=null}=e,S=null,y={},z=0,O=null;function N(){if(v){const Te=[];for(let ot=0;ot<=z;ot++)for(const ft of y[ot])Te.push(ft);n(6,O={orders:Te,totalCount:S})}else n(6,O={orders:y[z],totalCount:S})}let U;const A=Bt(),P={open:"open,open_executed",canceled:"canceled,canceled_executed",executed:"executed,open_executed,canceled_executed"};let Y=!1;async function B(Te,ot){let ft="createdAt:desc";Te.orderTableOrder&&(ft=Te.orderTableOrder.field+":"+Te.orderTableOrder.direction);let It=ot&&v?Array(z+1).fill(0).map((wt,Ct)=>wt+Ct):[z];n(8,Y=!0);try{for(const wt of It){const Ct=await f.getPortfolioOrders({portfolioId:c,take:Hl,skip:Hl*wt,orderBy:ft,search:Te.orderTableFilterSearch||void 0,statuses:P[Te.orderTableFilter]||void 0});y[wt]=Ct.orders,n(20,S=Ct.totalCount)}}catch(wt){Do(wt,jt)}finally{n(8,Y=!1)}N()}let J=null;function ee(Te){J==null||J.unsubscribe(),f&&(J=f.createWebSocketClient().subscribeInvalidate({entity:"orders",portfolioId:c},(ot,ft)=>{ot?console.log("PORTFOLIO INV",{err:ot}):B(jo(X),!0)}))}mr(()=>{J==null||J.unsubscribe()});let X=Or(null),ce=Or(1);X.subscribe(Te=>{Te&&(z!=0?(y={},n(5,z=0)):ce.set(jo(ce)+1))}),ce.subscribe(Te=>{const ot=jo(X);Te&&z>-1&&(ot!=null&&ot.orderTableFilter)&&f&&B(ot,!1)});function he(Te){Te=="executed"?n(7,U={field:"executedAt",direction:"desc"}):n(7,U=null)}function de(Te,ot){var It;const ft=!!((It=ot==null?void 0:ot.features)!=null&&It.orderExchangeNames);if(Te=="all"||Te=="open")return[{id:"name",label:s("OrderTable.Name")},{id:"isin",label:s("PositionsTable.Isin"),width:"10em",align:"left"},{id:"size",label:s("OrderTable.Size"),width:"5em",align:"right"},{id:"orderModelAndDirection",label:s("OrderTable.OrderModelAndDirection"),width:"5em"},{id:"limit",label:s("OrderTable.Limit"),width:"9em",align:"right"},{id:"stop",label:s("OrderTable.Stop"),width:"9em",align:"right"},ft?{id:"exchangeName",label:s("OrderTable.ExchangeName"),width:"10em"}:null,{id:"validity",label:s("OrderTable.Validity"),width:"9em"},{id:"status",label:s("OrderTable.Status"),width:"9em"},{id:"actions",label:"",width:"3em"}].filter(Ct=>!!Ct);if(Te=="canceled")return[{id:"name",label:s("OrderTable.Name")},{id:"isin",label:s("PositionsTable.Isin"),width:"10em",align:"left"},{id:"size",label:s("OrderTable.Size"),width:"5em",align:"right"},{id:"orderModelAndDirection",label:s("OrderTable.OrderModelAndDirection"),width:"5em"},{id:"limit",label:s("OrderTable.Limit"),width:"9em",align:"right"},{id:"stop",label:s("OrderTable.Stop"),width:"9em",align:"right"},ft?{id:"exchangeName",label:s("OrderTable.ExchangeName"),width:"10em"}:null,{id:"status",label:s("OrderTable.Status"),width:"9em"},{id:"actions",label:"",width:"2em"}].filter(Ct=>!!Ct);if(Te=="executed")return[{id:"name",label:s("OrderTable.Name")},{id:"isin",label:s("PositionsTable.Isin"),width:"10em",align:"left"},{id:"size",label:s("OrderTable.Size"),width:"5em",align:"right"},{id:"orderModelAndDirection",label:s("OrderTable.OrderModelAndDirection"),width:"5em"},ft?{id:"exchangeName",label:s("OrderTable.ExchangeName"),width:"10em"}:null,{id:"executedAt",label:s("OrderTable.ExecutedAt"),width:"9em",align:"right",sortable:!0},{id:"executedQuote",label:s("OrderTable.ExecutedQuote"),width:"9em",align:"right"},{id:"status",label:s("OrderTable.Status"),width:"9em"},{id:"actions",label:"",width:"2em"}].filter(Ct=>!!Ct)}function se(Te,ot){return{type:"amount",value:{value:RN(Te,ot),currency:pd(Te)}}}function ue(Te){var wt,Ct;if(!((wt=Te.executions)!=null&&wt.length))return null;const ot=((Ct=Te.executions)==null?void 0:Ct.length)==1&&Te.executedSize==Te.size?Te.executions[0]:null;if(ot)return ot.quote;const ft=Te.executions.map(xt=>xt.quote);return Gh(ft.map(xt=>xt?xt.currency:null)).length==1&&Gh(ft.map(He=>He.value)).length==1?SA({},ft[0]):null}function fe(Te){if(!Te)return"";switch(Te.type){case"AUTO":return s("ValidityType.AUTO");case"GFD":return s("ValidityType.GFD");case"GTD":return a.formatDate(new Date(Te.date));case"GTDT":return a.formatDate(new Date(Te.date));case"GTU":return s("ValidityType.GTU");case"GTC":return s("ValidityType.GTC");case"IOC":return s("ValidityType.IOC");default:throw new Error("Wrong validity type "+Te.type)}}function Oe(Te){const{rowId:ot,actionId:ft}=Te.detail;ft=="editOrder"?A("editOrder",{orderId:ot}):ft=="cancelOrder"?A("cancelOrder",{orderId:ot}):ft=="showReceipt"&&A("showReceipt",{orderId:ot})}const me=[{id:"all",value:s("OrderTable.Filter.All")},{id:"open",value:s("OrderTable.Filter.Open")},{id:"canceled",value:s("OrderTable.Filter.Canceled")},{id:"executed",value:s("OrderTable.Filter.Executed")}];function we(Te,ot,ft){X.set({orderTableFilter:Te,orderTableFilterSearch:ot,orderTableOrder:ft})}function Fe(Te){var wt,Ct;const ot=(Ct=(wt=Te==null?void 0:Te.detail)==null?void 0:wt.row)==null?void 0:Ct.id,It={order:O.orders.find(xt=>xt.id==ot),portfolio:p};jt.showReceipt(It,!0,Oe)}const pe={l1:"name",r1:"orderModelAndDirection",l2:"sizeLabelled",r2:"limitOrStop1",r3:"limitOrStop2",r4:"validityLabelled"},Se={l1:"name",l2:"sizeLabelled",r1:"orderModelAndDirection",l3:"executedQuoteLabelled",r3:"executedAt"},De={l1:"name",l2:"sizeLabelled",r1:"orderModelAndDirection",r2:"limitOrStop1",r3:"limitOrStop2"};function Ze(Te){if(Te=="open")return pe;if(Te=="executed")return Se;if(Te=="canceled")return De}const Qe=()=>n(5,z++,z);function dt(Te){m=Te,n(1,m)}function Ce(Te){d=Te,n(0,d)}function St(Te){U=Te,n(7,U)}function it(Te){U=Te,n(7,U)}function Lt(Te){z=Te,n(5,z)}return t.$$set=Te=>{"portfolioId"in Te&&n(17,c=Te.portfolioId),"apiCtx"in Te&&n(18,f=Te.apiCtx),"orderTableFilter"in Te&&n(0,d=Te.orderTableFilter),"orderTableFilterSearch"in Te&&n(1,m=Te.orderTableFilterSearch),"showFilterBar"in Te&&n(2,h=Te.showFilterBar),"portfolio"in Te&&n(3,p=Te.portfolio),"mobileView"in Te&&n(4,v=Te.mobileView),"broker"in Te&&n(19,w=Te.broker)},t.$$.update=()=>{t.$$.dirty[0]&1048576&&n(12,r=Math.max(S?Math.ceil(S/Hl)-1:0,0)),t.$$.dirty[0]&32&&z!=null&&ce.set(jo(ce)+1),t.$$.dirty[0]&262144&&ee(),t.$$.dirty[0]&65&&n(11,i=((O==null?void 0:O.orders)||[]).map(Te=>{const ot=se(Te,d),ft=dg(Te.limit,Te),It=$N(Te),wt=fe(Te.validity);return{id:Te.id,map:{id:{type:"text",value:Te.id},status:{type:"text",value:Te.statusText||u.orderStatus[Te.status]||Te.status},name:{type:"text",value:Te.security.name},size:ot,limit:ft,stop:It,validity:{type:"orderValidity",value:Te.validity},executedQuote:{type:"amount",value:ue(Te)},executedQuoteLabelled:{type:"text",value:`Kurs: ${a.formatAmount(ue(Te))}`},createdAt:{type:"datetime",value:Te.createdAt},executedAt:{type:"datetime",value:Te.executedAt},exchangeName:{type:"text",value:Te.exchangeName},isin:{type:"text",value:Te.isin},orderModelAndDirection:{type:"orderModelBadge",value:{direction:Te.direction,intent:Te.intent,orderModelLabel:u.orderModelAndDirection(Te.orderModel,Te.direction,Te.intent)}},order:{type:"debug",value:Te},sizeLabelled:{type:"text",value:"Stück/Nominal: "+a.formatAmount(ot.value)},limitOrStop1:{type:"text",value:ft?"Limit: "+a.formatAmount(ft.value):It?"Stop: "+a.formatAmount(It.value):null},limitOrStop2:{type:"text",value:ft&&It?"Stop: "+a.formatAmount(It.value):null},validityLabelled:{type:"text",value:"Gültig bis: "+wt},actions:{type:"actions",value:[{id:"showReceipt",label:s("Commons.OrderActions.ShowReceipt")},Te.allowsCancel?{id:"cancelOrder",label:s("Commons.OrderActions.Cancel")}:null,Te.allowsChangeSize||Te.allowsChangeValidityTypes||Te.allowsChangeOrderModels||Te.allowsChangeLimit||Te.allowsChangeStop||Te.allowsChangeStopLimit||Te.allowsChangeTrailingDistance?{id:"editOrder",label:s("Commons.OrderActions.Change")}:null].filter(Ct=>!!Ct)}}}})),t.$$.dirty[0]&524289&&n(10,o=de(d,w)),t.$$.dirty[0]&1&&he(d),t.$$.dirty[0]&131&&we(d,m,U),t.$$.dirty[0]&1&&n(9,l=Ze(d))},[d,m,h,p,v,z,O,U,Y,l,o,i,r,s,Oe,me,Fe,c,f,w,S,Qe,dt,Ce,St,it,Lt]}class Mo extends Ne{constructor(e){super(),Ee(this,e,FN,PN,Ae,{portfolioId:17,apiCtx:18,orderTableFilter:0,orderTableFilterSearch:1,showFilterBar:2,portfolio:3,mobileView:4,broker:19},null,[-1,-1])}get portfolioId(){return this.$$.ctx[17]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[18]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get orderTableFilter(){return this.$$.ctx[0]}set orderTableFilter(e){this.$$set({orderTableFilter:e}),C()}get orderTableFilterSearch(){return this.$$.ctx[1]}set orderTableFilterSearch(e){this.$$set({orderTableFilterSearch:e}),C()}get showFilterBar(){return this.$$.ctx[2]}set showFilterBar(e){this.$$set({showFilterBar:e}),C()}get portfolio(){return this.$$.ctx[3]}set portfolio(e){this.$$set({portfolio:e}),C()}get mobileView(){return this.$$.ctx[4]}set mobileView(e){this.$$set({mobileView:e}),C()}get broker(){return this.$$.ctx[19]}set broker(e){this.$$set({broker:e}),C()}}Le(Mo,{portfolioId:{},apiCtx:{},orderTableFilter:{},orderTableFilterSearch:{},showFilterBar:{type:"Boolean"},portfolio:{},mobileView:{type:"Boolean"},broker:{}},[],[],!0);function xN(t){if(t){let e;try{e=new RegExp(t.replace(/\s+/g,".*"),"i")}catch{e=new RegExp((t+"").replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"),"i")}return e}else return null}function hg(t){return t&&t.toLowerCase().replace(/ä/g,"ae").replace(/ö/g,"oe").replace(/ü/g,"ue").replace(/ß/g,"ss")}function UN(t){let e,n,r;function i(l){t[15](l)}let o={header:t[4],rows:t[3],isSortable:!0,$$slots:{"empty-info":[WN]},$$scope:{ctx:t}};return t[2]!==void 0&&(o.order=t[2]),e=new ji({props:o}),xe.push(()=>Je(e,"order",i)),e.$on("action",t[5]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a&16&&(s.header=l[4]),a&8&&(s.rows=l[3]),a&16777218&&(s.$$scope={dirty:a,ctx:l}),!n&&a&4&&(n=!0,s.order=l[2],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function BN(t){let e,n;return e=new As({props:{rows:t[3],slotMapping:{l1:"name",l2:"sizeLabelled",l3:"purchaseValuationQuotationLabelled",r1:"currentValuationPositionValue",r2:"profitLossAbs",r3:"currentValuationQuotationLabelled"}}}),e.$on("showdetail",t[6]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.rows=r[3]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function qN(t){var r;let e=JSON.stringify((r=t[1])==null?void 0:r.syncInfo)+"",n;return{c(){n=Ie(e)},m(i,o){L(i,n,o)},p(i,o){var l;o&2&&e!==(e=JSON.stringify((l=i[1])==null?void 0:l.syncInfo)+"")&&Ke(n,e)},d(i){i&&E(n)}}}function VN(t){let e;return{c(){e=Ie("Daten für dieses Depot werden synchronisert...")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function JN(t){let e;return{c(){e=Ie("Bei der Depotsynchronisierung ist ein Fehler aufgetreten.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function HN(t){let e;return{c(){e=Ie("Keine Positionen vorhanden.")},m(n,r){L(n,e,r)},p:ze,d(n){n&&E(e)}}}function WN(t){let e;function n(o,l){var a,s,u,c,f,d,m,h;return((s=(a=o[1])==null?void 0:a.syncInfo)==null?void 0:s.status)=="COMPLETE"?HN:((c=(u=o[1])==null?void 0:u.syncInfo)==null?void 0:c.status)=="ERROR"?JN:((d=(f=o[1])==null?void 0:f.syncInfo)==null?void 0:d.status)=="INCOMPLETE"||((h=(m=o[1])==null?void 0:m.syncInfo)==null?void 0:h.status)=="PENDING"?VN:qN}let r=n(t),i=r(t);return{c(){e=W("span"),i.c(),x(e,"slot","empty-info")},m(o,l){L(o,e,l),i.m(e,null)},p(o,l){r===(r=n(o))&&i?i.p(o,l):(i.d(1),i=r(o),i&&(i.c(),i.m(e,null)))},d(o){o&&E(e),i.d()}}}function YN(t){let e,n,r,i;const o=[BN,UN],l=[];function a(s,u){return s[0]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,[u]){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function GN(t){return t.purchaseDateTime?{type:"date",value:t.purchaseDateTime}:t.purchaseDate?{type:"date",value:new Date(t.purchaseDate)}:null}function KN(t,e,n){let r,i,o,l;const a=pr(tn),{__:s}=a;let{portfolioId:u=null}=e,{apiCtx:c=null}=e,{fulltextQuery:f=""}=e,{mobileView:d=!1}=e,{portfolio:m=null}=e,{broker:h=null}=e;const p=Bt();let v=null;async function w(B){!c||!B||n(11,v=await c.getPortfolioPositions(B))}let S=null;function y(B){S==null||S.unsubscribe(),c&&(S=c.createWebSocketClient().subscribeInvalidate({entity:"positions",portfolioId:u},(J,ee)=>{J&&console.log("PORTFOLIO INV",{err:J}),w(u)}))}mr(()=>{S==null||S.unsubscribe()});let z=[];function O(B){const{rowId:J,actionId:ee}=B.detail;N(ee,J)}function N(B,J){const ee=v==null?void 0:v.positions.find(he=>he.id==J),X=ee==null?void 0:ee.security,ce=X==null?void 0:X.isin;B=="buy"?p("buy",{security:X,isin:ce,availableSize:ee.availableSize}):B=="sell"&&p("sell",{security:X,isin:ce,availableSize:ee.availableSize})}function U(B){var X;const J=o.find(ce=>{var he;return ce.id===((he=B.detail)==null?void 0:he.row.id)}),ee=(X=B.detail)==null?void 0:X.row;jt.showPositionDetail(J,ee,r,N)}function A(B,J){if(!B){n(3,z=J);return}let ee="";switch(B.field){case"name":ee="map.name.value";break;case"currentValuationPositionValue":ee="map.currentValuationPositionValue.value.value";break;case"profitLossAbs":ee="map.profitLossAbs.value.value";break;case"profitLossRel":ee="map.profitLossRel.value";break}n(3,z=V3(J,X=>dh(X,ee),[B.direction]))}let P;function Y(B){P=B,n(2,P)}return t.$$set=B=>{"portfolioId"in B&&n(7,u=B.portfolioId),"apiCtx"in B&&n(8,c=B.apiCtx),"fulltextQuery"in B&&n(9,f=B.fulltextQuery),"mobileView"in B&&n(0,d=B.mobileView),"portfolio"in B&&n(1,m=B.portfolio),"broker"in B&&n(10,h=B.broker)},t.$$.update=()=>{var B;t.$$.dirty&256&&y(),t.$$.dirty&128&&w(u),t.$$.dirty&1024&&n(4,r=[{id:"name",label:s("PositionsTable.Name"),align:"left",sortable:!0},{id:"isin",label:s("PositionsTable.Isin"),width:"10em",align:"left"},{id:"size",label:s("PositionsTable.Size"),width:"5em",align:"right"},{id:"purchaseValuationQuotation",label:s("PositionsTable.PurchaseValuationQuotation"),width:"9em",align:"right"},{id:"currentValuationQuotation",label:s("PositionsTable.CurrentValuationQuotation"),width:"9em",align:"right"},{id:"currentValuationPositionValue",label:s("PositionsTable.CurrentValuation.PositionValue"),width:"9em",align:"right",sortable:!0},{id:"profitLossAbs",label:s("PositionsTable.ProfitLossAbs"),width:"8em",align:"right",sortable:!0},(B=h==null?void 0:h.features)!=null&&B.positionProfitLossRel?{id:"profitLossRel",label:s("PositionsTable.ProfitLossRel"),width:"8em",align:"right",sortable:!0}:null,{id:"actions",label:s("PositionsTable.Actions"),width:"2em",visuallyHidden:!0}].filter(J=>J!=null)),t.$$.dirty&512&&n(14,i=xN(hg(f))),t.$$.dirty&18432&&n(13,o=((v==null?void 0:v.positions)||[]).filter(J=>{var X,ce,he,de;if(!i)return!0;const ee=[hg(((X=J.security)==null?void 0:X.name)||""),((ce=J.security)==null?void 0:ce.symbol)||"",((he=J.security)==null?void 0:he.isin)||"",((de=J.security)==null?void 0:de.wkn)||""].join(" ");return i.test(ee)})),t.$$.dirty&8192&&n(12,l=o.map(J=>{var X,ce,he,de,se,ue,fe,Oe,me,we,Fe,pe;const ee={value:J.size,currency:J.sizeUnit,minDecimals:J.sizeDecimals,maxDecimals:J.sizeDecimals};return{id:J.id,map:{id:{type:"text",value:J.id},isin:{type:"text",value:((X=J.security)==null?void 0:X.isin)||((ce=J.security)==null?void 0:ce.symbol)||((he=J.security)==null?void 0:he.usTicker)||((de=J.security)==null?void 0:de.sinoTicker),clipboard:!0},position:{type:"debug",value:J},name:{type:"text",value:(se=J.security)==null?void 0:se.name},size:{type:"amount",value:ee,tooltip:J.stakingSize?`Bound in staking: ${J.stakingSize}`:void 0},sizeLabelled:{type:"text",value:"Stück/Nominal: "+a.formatAmount(ee)},profitLossRel:{type:"profitLossRel",value:J.profitLossRel},profitLossAbs:{type:"profitLossAbs",value:J.profitLossAbs},profitLossRelPrevClose:{type:"profitLossRel",value:J.profitLossRelPrevClose},profitLossAbsPrevClose:{type:"profitLossAbs",value:J.profitLossAbsPrevClose},profitLossRelWithDividends:{type:"profitLossRel",value:J.profitLossRelWithDividends},profitLossAbsWithDividends:{type:"profitLossAbs",value:J.profitLossAbsWithDividends},currentValuationPositionValue:{type:"amount",value:(ue=J.currentValuation)==null?void 0:ue.positionValue},currentValuationQuotation:{type:"amount",value:(fe=J.currentValuation)==null?void 0:fe.quotation},purchaseValuationQuotation:{type:"amount",value:(Oe=J.purchaseValuation)==null?void 0:Oe.quotation},purchaseValuationQuotationLabelled:{type:"text",value:(me=J.purchaseValuation)!=null&&me.quotation?"Kaufkurs: "+a.formatAmount((we=J.purchaseValuation)==null?void 0:we.quotation):null},currentValuationQuotationLabelled:{type:"text",value:(Fe=J.currentValuation)!=null&&Fe.quotation?"Akt. Kurs: "+a.formatAmount((pe=J.currentValuation)==null?void 0:pe.quotation):null},purchaseDate:GN(J),actions:{type:"actions",value:[{id:"buy",label:s("PositionsTable.Actions.Buy")},{id:"sell",label:s("PositionsTable.Actions.Sell")}].filter(Se=>!!Se)}}}})),t.$$.dirty&4100&&A(P,l)},[d,m,P,z,r,O,U,u,c,f,h,v,l,o,i,Y]}class Ds extends Ne{constructor(e){super(),Ee(this,e,KN,YN,Ae,{portfolioId:7,apiCtx:8,fulltextQuery:9,mobileView:0,portfolio:1,broker:10})}get portfolioId(){return this.$$.ctx[7]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[8]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get fulltextQuery(){return this.$$.ctx[9]}set fulltextQuery(e){this.$$set({fulltextQuery:e}),C()}get mobileView(){return this.$$.ctx[0]}set mobileView(e){this.$$set({mobileView:e}),C()}get portfolio(){return this.$$.ctx[1]}set portfolio(e){this.$$set({portfolio:e}),C()}get broker(){return this.$$.ctx[10]}set broker(e){this.$$set({broker:e}),C()}}Le(Ds,{portfolioId:{},apiCtx:{},fulltextQuery:{},mobileView:{type:"Boolean"},portfolio:{},broker:{}},[],[],!0);function QN(t){yt(t,"svelte-ypmvuc",".header.svelte-ypmvuc.svelte-ypmvuc.svelte-ypmvuc{display:flex;justify-content:space-between}.header.svelte-ypmvuc .depot.svelte-ypmvuc.svelte-ypmvuc{align-items:flex-end;display:flex;flex-direction:column;gap:3px}.header.svelte-ypmvuc .depot.svelte-ypmvuc>span.svelte-ypmvuc:not(.wrapper){text-align:right}")}function mg(t,e,n){const r=t.slice();return r[36]=e[n],r}function jN(t){let e,n,r;function i(l){t[24](l)}let o={orderTableFilter:"canceled",showFilterBar:!1,broker:t[2],mobileView:t[11],portfolioId:t[0],apiCtx:t[1],portfolio:t[6]};return t[9]!==void 0&&(o.orderTableFilterSearch=t[9]),e=new Mo({props:o}),xe.push(()=>Je(e,"orderTableFilterSearch",i)),e.$on("editOrder",t[25]),e.$on("cancelOrder",t[26]),e.$on("showReceipt",t[27]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&4&&(s.broker=l[2]),a[0]&2048&&(s.mobileView=l[11]),a[0]&1&&(s.portfolioId=l[0]),a[0]&2&&(s.apiCtx=l[1]),a[0]&64&&(s.portfolio=l[6]),!n&&a[0]&512&&(n=!0,s.orderTableFilterSearch=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function XN(t){let e,n,r;function i(l){t[20](l)}let o={orderTableFilter:"executed",showFilterBar:!1,broker:t[2],mobileView:t[11],portfolioId:t[0],apiCtx:t[1],portfolio:t[6]};return t[9]!==void 0&&(o.orderTableFilterSearch=t[9]),e=new Mo({props:o}),xe.push(()=>Je(e,"orderTableFilterSearch",i)),e.$on("editOrder",t[21]),e.$on("cancelOrder",t[22]),e.$on("showReceipt",t[23]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&4&&(s.broker=l[2]),a[0]&2048&&(s.mobileView=l[11]),a[0]&1&&(s.portfolioId=l[0]),a[0]&2&&(s.apiCtx=l[1]),a[0]&64&&(s.portfolio=l[6]),!n&&a[0]&512&&(n=!0,s.orderTableFilterSearch=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function ZN(t){let e,n,r;function i(l){t[16](l)}let o={orderTableFilter:"open",showFilterBar:!1,broker:t[2],mobileView:t[11],portfolioId:t[0],apiCtx:t[1],portfolio:t[6]};return t[9]!==void 0&&(o.orderTableFilterSearch=t[9]),e=new Mo({props:o}),xe.push(()=>Je(e,"orderTableFilterSearch",i)),e.$on("editOrder",t[17]),e.$on("cancelOrder",t[18]),e.$on("showReceipt",t[19]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&4&&(s.broker=l[2]),a[0]&2048&&(s.mobileView=l[11]),a[0]&1&&(s.portfolioId=l[0]),a[0]&2&&(s.apiCtx=l[1]),a[0]&64&&(s.portfolio=l[6]),!n&&a[0]&512&&(n=!0,s.orderTableFilterSearch=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function eP(t){let e,n,r;function i(l){t[13](l)}let o={broker:t[2],mobileView:t[11],portfolioId:t[0],apiCtx:t[1],portfolio:t[6]};return t[9]!==void 0&&(o.fulltextQuery=t[9]),e=new Ds({props:o}),xe.push(()=>Je(e,"fulltextQuery",i)),e.$on("buy",t[14]),e.$on("sell",t[15]),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[0]&4&&(s.broker=l[2]),a[0]&2048&&(s.mobileView=l[11]),a[0]&1&&(s.portfolioId=l[0]),a[0]&2&&(s.apiCtx=l[1]),a[0]&64&&(s.portfolio=l[6]),!n&&a[0]&512&&(n=!0,s.fulltextQuery=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function tP(t){let e,n,r,i;const o=[eP,ZN,XN,jN],l=[];function a(s,u){return s[4]=="positions"?0:s[4]=="ordersOpen"?1:s[4]=="ordersExecuted"?2:s[4]=="ordersCanceled"?3:-1}return~(n=a(t))&&(r=l[n]=o[n](t)),{c(){e=W("div"),r&&r.c()},m(s,u){L(s,e,u),~n&&l[n].m(e,null),i=!0},p(s,u){let c=n;n=a(s),n===c?~n&&l[n].p(s,u):(r&&(ne(),b(l[c],1,1,()=>{l[c]=null}),re()),~n?(r=l[n],r?r.p(s,u):(r=l[n]=o[n](s),r.c()),g(r,1),r.m(e,null)):r=null)},i(s){i||(g(r),i=!0)},o(s){b(r),i=!1},d(s){s&&E(e),~n&&l[n].d()}}}function nP(t){let e,n,r;function i(l){t[12](l)}let o={layout:"columns",label:"Suchen",placeholder:"Suchen",hideLabel:!0,hasNoInheritStyles:!0};return t[9]!==void 0&&(o.value=t[9]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};!n&&a[0]&512&&(n=!0,s.value=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function gg(t){var v,w,S,y,z,O,N,U;let e,n,r,i,o,l,a,s,u=((v=t[7].quotes)==null?void 0:v.totalValue)&&pg(t),c=((w=t[7].quotes)==null?void 0:w.availableCash)&&bg(t),f=((S=t[7].quotes)==null?void 0:S.cashAccountBalance)&&vg(t),d=t[7].cashAccounts&&_g(t),m=((y=t[7].quotes)==null?void 0:y.positionValue)&&wg(t),h=(((z=t[7].quotes)==null?void 0:z.profitLossAbs)||((O=t[7].quotes)==null?void 0:O.profitLossRel)!=null)&&Sg(t),p=(((N=t[7].quotes)==null?void 0:N.profitLossAbsPrevClose)||((U=t[7].quotes)==null?void 0:U.profitLossRelPrevClose)!=null)&&Tg(t);return{c(){u&&u.c(),e=j(),c&&c.c(),n=j(),f&&f.c(),r=j(),d&&d.c(),i=j(),m&&m.c(),o=j(),h&&h.c(),l=j(),p&&p.c(),a=Xe()},m(A,P){u&&u.m(A,P),L(A,e,P),c&&c.m(A,P),L(A,n,P),f&&f.m(A,P),L(A,r,P),d&&d.m(A,P),L(A,i,P),m&&m.m(A,P),L(A,o,P),h&&h.m(A,P),L(A,l,P),p&&p.m(A,P),L(A,a,P),s=!0},p(A,P){var Y,B,J,ee,X,ce,he,de;(Y=A[7].quotes)!=null&&Y.totalValue?u?(u.p(A,P),P[0]&128&&g(u,1)):(u=pg(A),u.c(),g(u,1),u.m(e.parentNode,e)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),(B=A[7].quotes)!=null&&B.availableCash?c?(c.p(A,P),P[0]&128&&g(c,1)):(c=bg(A),c.c(),g(c,1),c.m(n.parentNode,n)):c&&(ne(),b(c,1,1,()=>{c=null}),re()),(J=A[7].quotes)!=null&&J.cashAccountBalance?f?(f.p(A,P),P[0]&128&&g(f,1)):(f=vg(A),f.c(),g(f,1),f.m(r.parentNode,r)):f&&(ne(),b(f,1,1,()=>{f=null}),re()),A[7].cashAccounts?d?(d.p(A,P),P[0]&128&&g(d,1)):(d=_g(A),d.c(),g(d,1),d.m(i.parentNode,i)):d&&(ne(),b(d,1,1,()=>{d=null}),re()),(ee=A[7].quotes)!=null&&ee.positionValue?m?(m.p(A,P),P[0]&128&&g(m,1)):(m=wg(A),m.c(),g(m,1),m.m(o.parentNode,o)):m&&(ne(),b(m,1,1,()=>{m=null}),re()),(X=A[7].quotes)!=null&&X.profitLossAbs||((ce=A[7].quotes)==null?void 0:ce.profitLossRel)!=null?h?(h.p(A,P),P[0]&128&&g(h,1)):(h=Sg(A),h.c(),g(h,1),h.m(l.parentNode,l)):h&&(ne(),b(h,1,1,()=>{h=null}),re()),(he=A[7].quotes)!=null&&he.profitLossAbsPrevClose||((de=A[7].quotes)==null?void 0:de.profitLossRelPrevClose)!=null?p?(p.p(A,P),P[0]&128&&g(p,1)):(p=Tg(A),p.c(),g(p,1),p.m(a.parentNode,a)):p&&(ne(),b(p,1,1,()=>{p=null}),re())},i(A){s||(g(u),g(c),g(f),g(d),g(m),g(h),g(p),s=!0)},o(A){b(u),b(c),b(f),b(d),b(m),b(h),b(p),s=!1},d(A){A&&(E(e),E(n),E(r),E(i),E(o),E(l),E(a)),u&&u.d(A),c&&c.d(A),f&&f.d(A),d&&d.d(A),m&&m.d(A),h&&h.d(A),p&&p.d(A)}}}function pg(t){var r;let e,n;return e=new Qr({props:{item:{type:"absValue",label:"Gesamtwert",absValue:(r=t[7].quotes)==null?void 0:r.totalValue}}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&128&&(l.item={type:"absValue",label:"Gesamtwert",absValue:(a=i[7].quotes)==null?void 0:a.totalValue}),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function bg(t){var r;let e,n;return e=new Qr({props:{item:{type:"absValue",label:"Verfügungsrahmen",absValue:(r=t[7].quotes)==null?void 0:r.availableCash}}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&128&&(l.item={type:"absValue",label:"Verfügungsrahmen",absValue:(a=i[7].quotes)==null?void 0:a.availableCash}),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function vg(t){var r;let e,n;return e=new Qr({props:{item:{type:"absValue",label:"Kontostand",absValue:(r=t[7].quotes)==null?void 0:r.cashAccountBalance}}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&128&&(l.item={type:"absValue",label:"Kontostand",absValue:(a=i[7].quotes)==null?void 0:a.cashAccountBalance}),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function _g(t){let e,n,r=At(Object.keys(t[7].cashAccounts)),i=[];for(let l=0;l<r.length;l+=1)i[l]=kg(mg(t,r,l));const o=l=>b(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=Xe()},m(l,a){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(l,a);L(l,e,a),n=!0},p(l,a){if(a[0]&384){r=At(Object.keys(l[7].cashAccounts));let s;for(s=0;s<r.length;s+=1){const u=mg(l,r,s);i[s]?(i[s].p(u,a),g(i[s],1)):(i[s]=kg(u),i[s].c(),g(i[s],1),i[s].m(e.parentNode,e))}for(ne(),s=r.length;s<i.length;s+=1)o(s);re()}},i(l){if(!n){for(let a=0;a<r.length;a+=1)g(i[a]);n=!0}},o(l){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)b(i[a]);n=!1},d(l){l&&E(e),Mn(i,l)}}}function yg(t){let e,n;return e=new Qr({props:{item:{type:"absValue",label:t[8][t[36]].displayName,absValue:t[7].cashAccounts[t[36]].balance}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&384&&(o.item={type:"absValue",label:r[8][r[36]].displayName,absValue:r[7].cashAccounts[r[36]].balance}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function kg(t){let e,n,r=t[8][t[36]]&&t[7].cashAccounts[t[36]]&&!t[7].cashAccounts[t[36]].hideInOverviews&&yg(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[8][i[36]]&&i[7].cashAccounts[i[36]]&&!i[7].cashAccounts[i[36]].hideInOverviews?r?(r.p(i,o),o[0]&384&&g(r,1)):(r=yg(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function wg(t){var r;let e,n;return e=new Qr({props:{item:{type:"absValue",label:"Wertpapierbestand",absValue:(r=t[7].quotes)==null?void 0:r.positionValue}}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[0]&128&&(l.item={type:"absValue",label:"Wertpapierbestand",absValue:(a=i[7].quotes)==null?void 0:a.positionValue}),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function Sg(t){var r,i;let e,n;return e=new Qr({props:{item:{type:"profitLossAbs",label:"G/V aktuelle Positionen",profitLossAbsValue:(r=t[7].quotes)==null?void 0:r.profitLossAbs,profitLossRelValue:(i=t[7].quotes)==null?void 0:i.profitLossRel}}}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){var s,u;const a={};l[0]&128&&(a.item={type:"profitLossAbs",label:"G/V aktuelle Positionen",profitLossAbsValue:(s=o[7].quotes)==null?void 0:s.profitLossAbs,profitLossRelValue:(u=o[7].quotes)==null?void 0:u.profitLossRel}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function Tg(t){var r,i;let e,n;return e=new Qr({props:{item:{type:"profitLossAbs",label:"G/V Vortag",profitLossAbsValue:(r=t[7].quotes)==null?void 0:r.profitLossAbsPrevClose,profitLossRelValue:(i=t[7].quotes)==null?void 0:i.profitLossRelPrevClose}}}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){var s,u;const a={};l[0]&128&&(a.item={type:"profitLossAbs",label:"G/V Vortag",profitLossAbsValue:(s=o[7].quotes)==null?void 0:s.profitLossAbsPrevClose,profitLossRelValue:(u=o[7].quotes)==null?void 0:u.profitLossRelPrevClose}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function rP(t){let e,n,r=t[7]&&gg(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[7]?r?(r.p(i,o),o[0]&128&&g(r,1)):(r=gg(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function iP(t){var A,P;let e,n,r,i,o,l,a=((A=t[6])==null?void 0:A.portfolioName)+"",s,u,c,f,d,m,h,p,v,w,S,y,z,O;r=new kl({props:{brokerName:(P=t[6])==null?void 0:P.brokerName,height:"30px"}}),f=new Jm({props:{portfolio:t[6]}});function N(Y){t[28](Y)}let U={tabsToAccordion:t[11],items:t[10],$$slots:{filters:[nP],default:[tP]},$$scope:{ctx:t}};return t[4]!==void 0&&(U.activeTabId=t[4]),h=new qm({props:U}),xe.push(()=>Je(h,"activeTabId",N)),w=new Vm({props:{layout:t[5]>800?"columns":"block",$$slots:{default:[rP]},$$scope:{ctx:t}}}),{c(){e=W("div"),n=W("div"),F(r.$$.fragment),i=j(),o=W("div"),l=W("span"),s=Ie(a),c=j(),F(f.$$.fragment),m=j(),F(h.$$.fragment),v=j(),F(w.$$.fragment),x(l,"title",u=`Depot-ID: ${t[0]}`),x(l,"class","svelte-ypmvuc"),x(o,"class","depot svelte-ypmvuc"),x(n,"class","header svelte-ypmvuc"),x(n,"style",d=t[3]?"margin: var(--zl-app-frame-padding) var(--zl-app-frame-padding) 0 var(--zl-app-frame-padding)":""),x(e,"class","zlc-gap-y")},m(Y,B){L(Y,e,B),V(e,n),$(r,n,null),V(n,i),V(n,o),V(o,l),V(l,s),V(o,c),$(f,o,null),V(e,m),$(h,e,null),V(e,v),$(w,e,null),y=!0,z||(O=zr(S=Hm.call(null,e,t[29])),z=!0)},p(Y,B){var he,de;const J={};B[0]&64&&(J.brokerName=(he=Y[6])==null?void 0:he.brokerName),r.$set(J),(!y||B[0]&64)&&a!==(a=((de=Y[6])==null?void 0:de.portfolioName)+"")&&Ke(s,a),(!y||B[0]&1&&u!==(u=`Depot-ID: ${Y[0]}`))&&x(l,"title",u);const ee={};B[0]&64&&(ee.portfolio=Y[6]),f.$set(ee),(!y||B[0]&8&&d!==(d=Y[3]?"margin: var(--zl-app-frame-padding) var(--zl-app-frame-padding) 0 var(--zl-app-frame-padding)":""))&&x(n,"style",d);const X={};B[0]&2048&&(X.tabsToAccordion=Y[11]),B[0]&1024&&(X.items=Y[10]),B[0]&2647|B[1]&256&&(X.$$scope={dirty:B,ctx:Y}),!p&&B[0]&16&&(p=!0,X.activeTabId=Y[4],Ve(()=>p=!1)),h.$set(X);const ce={};B[0]&32&&(ce.layout=Y[5]>800?"columns":"block"),B[0]&384|B[1]&256&&(ce.$$scope={dirty:B,ctx:Y}),w.$set(ce),S&&Vn(S.update)&&B[0]&32&&S.update.call(null,Y[29])},i(Y){y||(g(r.$$.fragment,Y),g(f.$$.fragment,Y),g(h.$$.fragment,Y),g(w.$$.fragment,Y),y=!0)},o(Y){b(r.$$.fragment,Y),b(f.$$.fragment,Y),b(h.$$.fragment,Y),b(w.$$.fragment,Y),y=!1},d(Y){Y&&E(e),R(r),R(f),R(h),R(w),z=!1,O()}}}function oP(t,e,n){let r,i,{portfolioId:o=null}=e,{apiCtx:l=null}=e,{broker:a=null}=e,s,u=null,c={};async function f(me){!l||!me||(await l.getPortfolioPositions(me),n(7,u=await l.getPortfolioQuotes(me)))}async function d(me){if(!l||!me)return;const we=await l.getPortfolios(),Fe={};for(const pe of(we==null?void 0:we.cashAccounts)||[])Fe[pe.id]=pe;n(8,c=Fe),n(6,s=we.portfolios.find(pe=>pe.id==me))}let m=null,h=null;function p(me){console.log("resetApiCtx",o),h==null||h.unsubscribe(),m==null||m.unsubscribe(),!(!l||!o)&&(h=l.createWebSocketClient().subscribeInvalidate({entity:"positions",portfolioId:o},(we,Fe)=>{we?console.log("PORTFOLIO PQ INV",{err:we}):f(o)}),m=l.createWebSocketClient().subscribeInvalidate({entity:"sessions"},(we,Fe)=>{we?console.log("SESSIONS INV",{err:we}):d(o)}))}mr(()=>{h==null||h.unsubscribe(),m==null||m.unsubscribe()});let v="",w,S,{addHeaderMargin:y=!1}=e;function z(me){v=me,n(9,v),n(4,w)}function O(me){v=me,n(9,v),n(4,w)}function N(me){qe.call(this,t,me)}function U(me){qe.call(this,t,me)}function A(me){v=me,n(9,v),n(4,w)}function P(me){qe.call(this,t,me)}function Y(me){qe.call(this,t,me)}function B(me){qe.call(this,t,me)}function J(me){v=me,n(9,v),n(4,w)}function ee(me){qe.call(this,t,me)}function X(me){qe.call(this,t,me)}function ce(me){qe.call(this,t,me)}function he(me){v=me,n(9,v),n(4,w)}function de(me){qe.call(this,t,me)}function se(me){qe.call(this,t,me)}function ue(me){qe.call(this,t,me)}function fe(me){w=me,n(4,w)}const Oe=me=>n(5,S=me.clientWidth);return t.$$set=me=>{"portfolioId"in me&&n(0,o=me.portfolioId),"apiCtx"in me&&n(1,l=me.apiCtx),"broker"in me&&n(2,a=me.broker),"addHeaderMargin"in me&&n(3,y=me.addHeaderMargin)},t.$$.update=()=>{t.$$.dirty[0]&2&&p(),t.$$.dirty[0]&1&&d(o),t.$$.dirty[0]&1&&f(o),t.$$.dirty[0]&32&&n(11,r=S<915),t.$$.dirty[0]&16&&w&&n(9,v=""),t.$$.dirty[0]&4&&n(10,i=[{id:"positions",label:"Positionen"},...a!=null&&a.features.supportedOrderStatuses.includes("open")?[{id:"ordersOpen",label:"Offene Aufträge"}]:[],...a!=null&&a.features.supportedOrderStatuses.includes("executed")?[{id:"ordersExecuted",label:"Ausgeführte Aufträge"}]:[],...a!=null&&a.features.supportedOrderStatuses.includes("canceled")?[{id:"ordersCanceled",label:"Gestrichene Aufträge"}]:[]])},[o,l,a,y,w,S,s,u,c,v,i,r,z,O,N,U,A,P,Y,B,J,ee,X,ce,he,de,se,ue,fe,Oe]}class zg extends Ne{constructor(e){super(),Ee(this,e,oP,iP,Ae,{portfolioId:0,apiCtx:1,broker:2,addHeaderMargin:3},QN,[-1,-1])}get portfolioId(){return this.$$.ctx[0]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[1]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get broker(){return this.$$.ctx[2]}set broker(e){this.$$set({broker:e}),C()}get addHeaderMargin(){return this.$$.ctx[3]}set addHeaderMargin(e){this.$$set({addHeaderMargin:e}),C()}}Le(zg,{portfolioId:{},apiCtx:{},broker:{},addHeaderMargin:{type:"Boolean"}},[],[],!0);function lP(t){let e,n;return e=new zg({props:{broker:t[7],apiCtx:t[1],portfolioId:t[0],addHeaderMargin:t[3]&&t[8]}}),e.$on("buy",t[9]),e.$on("cancelOrder",t[10]),e.$on("editOrder",t[11]),e.$on("showReceipt",t[12]),e.$on("sell",t[13]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&128&&(o.broker=r[7]),i&2&&(o.apiCtx=r[1]),i&1&&(o.portfolioId=r[0]),i&264&&(o.addHeaderMargin=r[3]&&r[8]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function aP(t){let e,n;return e=new Jn({props:{brokers:t[6],$$slots:{default:[lP]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&64&&(o.brokers=r[6]),i&131467&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function sP(t){let e,n,r,i,o,l;return n=new Pn({props:{theme:t[2],addFrame:t[3],supportLink:t[4],addShadow:t[3],noPadding:t[8],$$slots:{default:[aP]},$$scope:{ctx:t}}}),{c(){e=W("div"),F(n.$$.fragment)},m(a,s){L(a,e,s),$(n,e,null),i=!0,o||(l=zr(r=Hm.call(null,e,t[14])),o=!0)},p(a,[s]){const u={};s&4&&(u.theme=a[2]),s&8&&(u.addFrame=a[3]),s&16&&(u.supportLink=a[4]),s&8&&(u.addShadow=a[3]),s&256&&(u.noPadding=a[8]),s&131531&&(u.$$scope={dirty:s,ctx:a}),n.$set(u),r&&Vn(r.update)&&s&32&&r.update.call(null,a[14])},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n),o=!1,l()}}}function uP(t,e,n){let r,{portfolioId:i=void 0}=e,{apiCtx:o=null}=e,{theme:l=null}=e,{addFrame:a=!0}=e,{supportLink:s=null}=e,u,c,f=!1;async function d(){if(!f||!o)return;const[z]=await Promise.all([o.getBrokers()]),O=(await o.getPortfolios()).portfolios.find(N=>N.id==i);n(6,u=z),n(7,c=u.brokers.find(N=>N.brokerName==O.brokerName))}ir(()=>{f=!0,d()});let m;function h(z){qe.call(this,t,z)}function p(z){qe.call(this,t,z)}function v(z){qe.call(this,t,z)}function w(z){qe.call(this,t,z)}function S(z){qe.call(this,t,z)}const y=z=>n(5,m=z.clientWidth);return t.$$set=z=>{"portfolioId"in z&&n(0,i=z.portfolioId),"apiCtx"in z&&n(1,o=z.apiCtx),"theme"in z&&n(2,l=z.theme),"addFrame"in z&&n(3,a=z.addFrame),"supportLink"in z&&n(4,s=z.supportLink)},t.$$.update=()=>{t.$$.dirty&3&&o&&i&&d(),t.$$.dirty&32&&n(8,r=m<915)},[i,o,l,a,s,m,u,c,r,h,p,v,w,S,y]}class Ms extends Ne{constructor(e){super(),Ee(this,e,uP,sP,Ae,{portfolioId:0,apiCtx:1,theme:2,addFrame:3,supportLink:4})}get portfolioId(){return this.$$.ctx[0]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[1]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(Ms,{portfolioId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function cP(t){let e,n;return e=new Sl({props:{isOrderConfirmation:t[3],data:t[6]}}),e.$on("navigate",t[9]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.isOrderConfirmation=r[3]),i&64&&(o.data=r[6]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function fP(t){let e,n;return e=new zn({props:{error:t[4]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.error=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function dP(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function hP(t){let e,n,r,i;const o=[dP,fP,cP],l=[];function a(s,u){return s[5]?0:s[4]?1:2}return n=a(t),r=l[n]=o[n](t),{c(){e=W("div"),r.c(),x(e,"class","space-inside")},m(s,u){L(s,e,u),l[n].m(e,null),i=!0},p(s,u){let c=n;n=a(s),n===c?l[n].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),r=l[n],r?r.p(s,u):(r=l[n]=o[n](s),r.c()),g(r,1),r.m(e,null))},i(s){i||(g(r),i=!0)},o(s){b(r),i=!1},d(s){s&&E(e),l[n].d()}}}function mP(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[hP]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2168&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function gP(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[1],supportLink:t[2],$$slots:{default:[mP]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&2&&(o.addFrame=r[1]),i&4&&(o.supportLink=r[2]),i&2168&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function pP(t,e,n){let{orderId:r=null}=e,{apiCtx:i=null}=e,{theme:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,{isOrderConfirmation:s=!1}=e,u=null,c=!1,f=null;async function d(h,p){if(n(5,c=!0),n(4,u=null),n(6,f=null),!p||!h){n(5,c=!1);return}Promise.all([p.getOrder(h),p.getPortfolios()]).then(([v,w])=>{n(6,f={order:v.order,portfolio:w.portfolios.find(S=>S.id==v.order.portfolioId)}),n(5,c=!1)},v=>{n(5,c=!1),n(4,u=v)})}mr(()=>{});function m(h){qe.call(this,t,h)}return t.$$set=h=>{"orderId"in h&&n(7,r=h.orderId),"apiCtx"in h&&n(8,i=h.apiCtx),"theme"in h&&n(0,o=h.theme),"addFrame"in h&&n(1,l=h.addFrame),"supportLink"in h&&n(2,a=h.supportLink),"isOrderConfirmation"in h&&n(3,s=h.isOrderConfirmation)},t.$$.update=()=>{t.$$.dirty&384&&d(r,i)},[o,l,a,s,u,c,f,r,i,m]}class Es extends Ne{constructor(e){super(),Ee(this,e,pP,gP,Ae,{orderId:7,apiCtx:8,theme:0,addFrame:1,supportLink:2,isOrderConfirmation:3})}get orderId(){return this.$$.ctx[7]}set orderId(e){this.$$set({orderId:e}),C()}get apiCtx(){return this.$$.ctx[8]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get isOrderConfirmation(){return this.$$.ctx[3]}set isOrderConfirmation(e){this.$$set({isOrderConfirmation:e}),C()}}Le(Es,{orderId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},isOrderConfirmation:{type:"Boolean"}},[],[],!0);var Cg={exports:{}};(function(t){(function(){var e={de_DE:{identifier:"de-DE",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{identifier:"en-CA",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{identifier:"en-US",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{identifier:"es-MX",days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{identifier:"fr-FR",days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{identifier:"it-IT",days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{identifier:"nl-NL",days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{identifier:"pt-BR",days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{identifier:"ru-RU",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{identifier:"tr-TR",days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{identifier:"zh-CN",days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月份","二月份","三月份","四月份","五月份","六月份","七月份","八月份","九月份","十月份","十一月份","十二月份"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=e.en_US,r=new i(n,0,!1);t.exports=r,typeof Date.now!="function"&&(Date.now=function(){return+new Date});function i(p,v,w){var S=p||n,y=v||0,z=w||!1,O=0,N;function U(Y,B){var J;if(B){if(J=B.getTime(),z){var X=c(B);if(B=new Date(J+X+y),c(B)!==X){var ce=c(B);B=new Date(J+ce+y)}}}else{var ee=Date.now();ee>O?(O=ee,N=new Date(O),J=O,z&&(N=new Date(O+c(N)+y))):J=O,B=N}return A(Y,B,S,J)}function A(Y,B,J,ee){for(var X="",ce=null,he=!1,de=Y.length,se=!1,ue=0;ue<de;ue++){var fe=Y.charCodeAt(ue);if(he===!0){if(fe===45){ce="";continue}else if(fe===95){ce=" ";continue}else if(fe===48){ce="0";continue}else if(fe===58){se&&h("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"),se=!0;continue}switch(fe){case 37:X+="%";break;case 65:X+=J.days[B.getDay()];break;case 66:X+=J.months[B.getMonth()];break;case 67:X+=o(Math.floor(B.getFullYear()/100),ce);break;case 68:X+=A(J.formats.D,B,J,ee);break;case 70:X+=A(J.formats.F,B,J,ee);break;case 72:X+=o(B.getHours(),ce);break;case 73:X+=o(a(B.getHours()),ce);break;case 76:X+=l(Math.floor(ee%1e3));break;case 77:X+=o(B.getMinutes(),ce);break;case 80:X+=B.getHours()<12?J.am:J.pm;break;case 82:X+=A(J.formats.R,B,J,ee);break;case 83:X+=o(B.getSeconds(),ce);break;case 84:X+=A(J.formats.T,B,J,ee);break;case 85:X+=o(s(B,"sunday"),ce);break;case 87:X+=o(s(B,"monday"),ce);break;case 88:X+=A(J.formats.X,B,J,ee);break;case 89:X+=B.getFullYear();break;case 90:if(z&&y===0)X+="GMT";else{var Oe=f(B);X+=Oe||""}break;case 97:X+=J.shortDays[B.getDay()];break;case 98:X+=J.shortMonths[B.getMonth()];break;case 99:X+=A(J.formats.c,B,J,ee);break;case 100:X+=o(B.getDate(),ce);break;case 101:X+=o(B.getDate(),ce??" ");break;case 104:X+=J.shortMonths[B.getMonth()];break;case 106:var me=new Date(B.getFullYear(),0,1),we=Math.ceil((B.getTime()-me.getTime())/(1e3*60*60*24));X+=l(we);break;case 107:X+=o(B.getHours(),ce??" ");break;case 108:X+=o(a(B.getHours()),ce??" ");break;case 109:X+=o(B.getMonth()+1,ce);break;case 110:X+=`
314
+ `;break;case 111:var we=B.getDate();J.ordinalSuffixes?X+=String(we)+(J.ordinalSuffixes[we-1]||u(we)):X+=String(we)+u(we);break;case 112:X+=B.getHours()<12?J.AM:J.PM;break;case 114:X+=A(J.formats.r,B,J,ee);break;case 115:X+=Math.floor(ee/1e3);break;case 116:X+=" ";break;case 117:var we=B.getDay();X+=we===0?7:we;break;case 118:X+=A(J.formats.v,B,J,ee);break;case 119:X+=B.getDay();break;case 120:X+=A(J.formats.x,B,J,ee);break;case 121:let Qe=B.getFullYear()%100;X+=o(Qe,ce);break;case 122:if(z&&y===0)X+=se?"+00:00":"+0000";else{var Fe;y!==0?Fe=y/(60*1e3):Fe=-B.getTimezoneOffset();var pe=Fe<0?"-":"+",Se=se?":":"",De=Math.floor(Math.abs(Fe/60)),Ze=Math.abs(Fe%60);X+=pe+o(De)+Se+o(Ze)}break;default:he&&(X+="%"),X+=Y[ue];break}ce=null,he=!1;continue}if(fe===37){he=!0;continue}X+=Y[ue]}return X}var P=U;return P.localize=function(Y){return new i(Y||S,y,z)},P.localizeByIdentifier=function(Y){var B=e[Y];return B?P.localize(B):(h('[WARNING] No locale found with identifier "'+Y+'".'),P)},P.timezone=function(Y){var B=y,J=z,ee=typeof Y;if(ee==="number"||ee==="string")if(J=!0,ee==="string"){var X=Y[0]==="-"?-1:1,ce=parseInt(Y.slice(1,3),10),he=parseInt(Y.slice(3,5),10);B=X*(60*ce+he)*60*1e3}else ee==="number"&&(B=Y*60*1e3);return new i(S,B,J)},P.utc=function(){return new i(S,y,!0)},P}function o(p,v){return v===""||p>9?""+p:(v==null&&(v="0"),v+p)}function l(p){return p>99?p:p>9?"0"+p:"00"+p}function a(p){return p===0?12:p>12?p-12:p}function s(p,v){v=v||"sunday";var w=p.getDay();v==="monday"&&(w===0?w=6:w--);var S=Date.UTC(p.getFullYear(),0,1),y=Date.UTC(p.getFullYear(),p.getMonth(),p.getDate()),z=Math.floor((y-S)/864e5),O=(z+7-w)/7;return Math.floor(O)}function u(p){var v=p%10,w=p%100;if(w>=11&&w<=13||v===0||v>=4)return"th";switch(v){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(p){return(p.getTimezoneOffset()||0)*6e4}function f(p,v){return d()||m(p)}function d(p,v){return null}function m(p){var v=p.toString().match(/\(([\w\s]+)\)/);return v&&v[1]}function h(p){typeof console<"u"&&typeof console.warn=="function"&&console.warn(p)}})()})(Cg);var bP=Cg.exports;const vP=Ua(bP);function _P(t,e){return vP(e,t)}function yP(t,e){return t?e?t.toISOString():_P(t,"%Y-%m-%d"):null}function kP(t){yt(t,"svelte-z485cc",`.zl-buyselltoggle.svelte-z485cc.svelte-z485cc{display:flex;flex-shrink:0;overflow:hidden;padding-block:var(--zl-order-toggle-container-padding-y, 0);padding-inline:var(--zl-order-toggle-container-padding-x, 0);background-color:var(--zl-order-toggle-container-background-color, transparent);border-radius:var(--zl-order-toggle-container-border-radius, 0)}.zl-buyselltoggle.svelte-z485cc>label.svelte-z485cc{flex:1}input[disabled].svelte-z485cc+label.svelte-z485cc{background:repeating-linear-gradient(
315
+ -45deg,
316
+ var(--zl-color-gray-lightest),
317
+ var(--zl-color-gray-lightest) 5px,
318
+ var(--zl-color-gray-lighter) 5px,
319
+ var(--zl-color-gray-lighter) 10px
320
+ );cursor:not-allowed}label.svelte-z485cc.svelte-z485cc{background-color:var(--zl-order-toggle-background-color, var(--zl-color-gray-lightest));color:var(--zl-color-gray-darkest);cursor:pointer;text-align:var(--zl-order-toggle-text-align, center);font-weight:var(--zl-font-weight-bold);padding-block:var(--zl-order-toggle-padding-y, var(--zl-spacing-md));padding-inline:var(--zl-order-toggle-padding-x, var(--zl-spacing-xl))}label.buy.svelte-z485cc.svelte-z485cc{border-top-left-radius:var(--zl-order-toggle-buy-border-left-radius, var(--zl-default-border-radius));border-bottom-left-radius:var(--zl-order-toggle-buy-border-left-radius, var(--zl-default-border-radius));border-top-right-radius:var(--zl-order-toggle-buy-border-right-radius, 0);border-bottom-right-radius:var(--zl-order-toggle-buy-border-right-radius, 0);background-color:var(--zl-order-toggle-buy-background-color);color:var(--zl-order-toggle-buy-color)}label.buy.svelte-z485cc.svelte-z485cc:is(:nth-child(2)):is(:last-child){border-top-left-radius:var(--zl-order-toggle-buy-border-left-radius, var(--zl-default-border-radius));border-bottom-left-radius:var(
321
+ --zl-order-toggle-buy-border-left-radius,
322
+ var(--zl-default-border-radius)
323
+ );border-top-right-radius:var(
324
+ --zl-order-toggle-buy-border-right-radius,
325
+ var(--zl-default-border-radius)
326
+ );border-bottom-right-radius:var(
327
+ --zl-order-toggle-buy-border-right-radius,
328
+ var(--zl-default-border-radius)
329
+ )}label.buy.selected.svelte-z485cc.svelte-z485cc{background-color:var(--zl-order-toggle-buy-selected-background-color);color:var(--zl-order-toggle-buy-selected-color);cursor:default}label.sell.svelte-z485cc.svelte-z485cc{border-top-left-radius:var(--zl-order-toggle-sell-border-left-radius, 0);border-bottom-left-radius:var(--zl-order-toggle-sell-border-left-radius, 0);border-top-right-radius:var(--zl-order-toggle-sell-border-right-radius, var(--zl-default-border-radius));border-bottom-right-radius:var(
330
+ --zl-order-toggle-sell-border-right-radius,
331
+ var(--zl-default-border-radius)
332
+ );background-color:var(--zl-order-toggle-sell-background-color);color:var(--zl-order-toggle-sell-color)}label.sell.svelte-z485cc.svelte-z485cc:is(:nth-child(2)){border-top-left-radius:var(--zl-order-toggle-sell-border-left-radius, var(--zl-default-border-radius));border-bottom-left-radius:var(
333
+ --zl-order-toggle-sell-border-left-radius,
334
+ var(--zl-default-border-radius)
335
+ );border-top-right-radius:var(
336
+ --zl-order-toggle-sell-border-right-radius,
337
+ var(--zl-default-border-radius)
338
+ );border-bottom-right-radius:var(
339
+ --zl-order-toggle-sell-border-right-radius,
340
+ var(--zl-default-border-radius)
341
+ )}label.sell.selected.svelte-z485cc.svelte-z485cc{background-color:var(--zl-order-toggle-sell-selected-background-color);color:var(--zl-order-toggle-sell-selected-color);cursor:default}label.selected.svelte-z485cc.svelte-z485cc{box-shadow:var(--zl-order-toggle-selected-box-shadow, none)}`)}function Og(t){let e,n,r,i,o,l;return i=Qu(t[6][0]),{c(){e=W("input"),n=j(),r=W("label"),r.textContent=`${t[3].direction.buy}`,x(e,"id","buy"),x(e,"type","radio"),x(e,"class","zlc-invisible svelte-z485cc"),x(e,"name","buyselltoggle"),e.disabled=t[1],e.__value="buy",oi(e,e.__value),x(r,"for","buy"),x(r,"class","buy svelte-z485cc"),ke(r,"selected",t[0]==="buy"),i.p(e)},m(a,s){L(a,e,s),e.checked=e.__value===t[0],L(a,n,s),L(a,r,s),o||(l=[tt(e,"change",t[5]),tt(e,"change",t[4])],o=!0)},p(a,s){s&2&&(e.disabled=a[1]),s&1&&(e.checked=e.__value===a[0]),s&1&&ke(r,"selected",a[0]==="buy")},d(a){a&&(E(e),E(n),E(r)),i.r(),o=!1,pn(l)}}}function Ig(t){let e,n,r,i,o,l;return i=Qu(t[6][0]),{c(){e=W("input"),n=j(),r=W("label"),r.textContent=`${t[3].direction.sell}`,x(e,"id","sell"),x(e,"type","radio"),x(e,"class","zlc-invisible"),x(e,"name","buyselltoggle"),e.__value="sell",oi(e,e.__value),x(r,"for","sell"),x(r,"class","sell svelte-z485cc"),ke(r,"selected",t[0]==="sell"),i.p(e)},m(a,s){L(a,e,s),e.checked=e.__value===t[0],L(a,n,s),L(a,r,s),o||(l=[tt(e,"change",t[7]),tt(e,"change",t[4])],o=!0)},p(a,s){s&1&&(e.checked=e.__value===a[0]),s&1&&ke(r,"selected",a[0]==="sell")},d(a){a&&(E(e),E(n),E(r)),i.r(),o=!1,pn(l)}}}function wP(t){let e,n,r=(!t[2]||t[0]=="buy")&&Og(t),i=(!t[2]||t[0]=="sell")&&Ig(t);return{c(){e=W("div"),r&&r.c(),n=j(),i&&i.c(),x(e,"class","zl-buyselltoggle svelte-z485cc")},m(o,l){L(o,e,l),r&&r.m(e,null),V(e,n),i&&i.m(e,null)},p(o,[l]){!o[2]||o[0]=="buy"?r?r.p(o,l):(r=Og(o),r.c(),r.m(e,n)):r&&(r.d(1),r=null),!o[2]||o[0]=="sell"?i?i.p(o,l):(i=Ig(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},i:ze,o:ze,d(o){o&&E(e),r&&r.d(),i&&i.d()}}}function SP(t,e,n){let{onlySellAllowed:r=!1}=e,{lockOrderDirection:i=!1}=e,{selected:o=r?"sell":"buy"}=e;o==="buy"&&r&&(o="sell");const{labels:l}=pr(tn),a=Bt();function s(){a("change",o)}const u=[[]];function c(){o=this.__value,n(0,o)}function f(){o=this.__value,n(0,o)}return t.$$set=d=>{"onlySellAllowed"in d&&n(1,r=d.onlySellAllowed),"lockOrderDirection"in d&&n(2,i=d.lockOrderDirection),"selected"in d&&n(0,o=d.selected)},[o,r,i,l,s,c,u,f]}class Ag extends Ne{constructor(e){super(),Ee(this,e,SP,wP,Ae,{onlySellAllowed:1,lockOrderDirection:2,selected:0},kP)}get onlySellAllowed(){return this.$$.ctx[1]}set onlySellAllowed(e){this.$$set({onlySellAllowed:e}),C()}get lockOrderDirection(){return this.$$.ctx[2]}set lockOrderDirection(e){this.$$set({lockOrderDirection:e}),C()}get selected(){return this.$$.ctx[0]}set selected(e){this.$$set({selected:e}),C()}}Le(Ag,{onlySellAllowed:{type:"Boolean"},lockOrderDirection:{type:"Boolean"},selected:{}},[],[],!0);function TP(t){yt(t,"svelte-1ac3rj8",".zl-cost-item.svelte-1ac3rj8{align-items:center;background-color:var(--zl-cost-item-background-color, var(--zl-color-gray-lighter));border-radius:var(--zl-cost-item-border-radius, var(--zl-default-border-radius));box-shadow:var(--zl-cost-item-box-shadow, var(--zl-default-box-shadow));display:flex;flex-direction:column;flex-grow:1;flex-shrink:1;gap:var(--zl-spacing-xs);padding:var(--zl-spacing-lg) var(--zl-spacing-md);text-align:center}.label.svelte-1ac3rj8{color:var(--zl-cost-item-label-color, var(--zl-color-gray-darkest));font-size:var(--zl-cost-item-label-font-size, var(--zl-font-size-2xs));letter-spacing:0.025em;text-transform:uppercase}.value.svelte-1ac3rj8{font-size:var(--zl-cost-item-value-color, var(--zl-font-size-sm));font-size:var(--zl-cost-item-value-font-size, var(--zl-font-size-sm));font-weight:var(--zl-cost-item-value-font-weight, var(--zl-font-weight-medium));letter-spacing:0.025em}")}function Dg(t){let e,n;return e=new vo({props:{label:t[3],text:t[4]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.label=r[3]),i&16&&(o.text=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function zP(t){let e,n,r,i,o,l,a,s,u=t[2]&&Dg(t);return{c(){e=W("div"),n=W("div"),r=Ie(t[0]),i=j(),u&&u.c(),o=j(),l=W("div"),a=Ie(t[1]),x(n,"class","label svelte-1ac3rj8"),x(l,"class","value svelte-1ac3rj8"),x(e,"class","zl-cost-item svelte-1ac3rj8")},m(c,f){L(c,e,f),V(e,n),V(n,r),V(n,i),u&&u.m(n,null),V(e,o),V(e,l),V(l,a),s=!0},p(c,[f]){(!s||f&1)&&Ke(r,c[0]),c[2]?u?(u.p(c,f),f&4&&g(u,1)):(u=Dg(c),u.c(),g(u,1),u.m(n,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),(!s||f&2)&&Ke(a,c[1])},i(c){s||(g(u),s=!0)},o(c){b(u),s=!1},d(c){c&&E(e),u&&u.d()}}}function CP(t,e,n){let{label:r=""}=e,{amount:i=""}=e,{hasTooltip:o=!1}=e,{tooltipLabel:l=void 0}=e,{tooltipText:a=void 0}=e;return t.$$set=s=>{"label"in s&&n(0,r=s.label),"amount"in s&&n(1,i=s.amount),"hasTooltip"in s&&n(2,o=s.hasTooltip),"tooltipLabel"in s&&n(3,l=s.tooltipLabel),"tooltipText"in s&&n(4,a=s.tooltipText)},[r,i,o,l,a]}class Xi extends Ne{constructor(e){super(),Ee(this,e,CP,zP,Ae,{label:0,amount:1,hasTooltip:2,tooltipLabel:3,tooltipText:4},TP)}get label(){return this.$$.ctx[0]}set label(e){this.$$set({label:e}),C()}get amount(){return this.$$.ctx[1]}set amount(e){this.$$set({amount:e}),C()}get hasTooltip(){return this.$$.ctx[2]}set hasTooltip(e){this.$$set({hasTooltip:e}),C()}get tooltipLabel(){return this.$$.ctx[3]}set tooltipLabel(e){this.$$set({tooltipLabel:e}),C()}get tooltipText(){return this.$$.ctx[4]}set tooltipText(e){this.$$set({tooltipText:e}),C()}}Le(Xi,{label:{},amount:{},hasTooltip:{type:"Boolean"},tooltipLabel:{},tooltipText:{}},[],[],!0);function OP(t){yt(t,"svelte-awdy3t",".costs.svelte-awdy3t{display:flex;flex-wrap:wrap;gap:var(--zl-spacing-md)}.costs-info-link.svelte-awdy3t{color:var(--zl-color-gray-darkest);display:block;font-size:var(--zl-font-size-xs);text-align:center;text-underline-offset:var(--zl-link-underline-offset)}.costs-info-link.svelte-awdy3t:focus,.costs-info-link.svelte-awdy3t:hover{color:var(--zl-default-link-color)}")}function Mg(t){let e,n;return e=new Xi({props:{label:t[2]("CostEstimation.EntryCosts"),amount:t[1].formatAmount(t[0].entryCosts)}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.amount=r[1].formatAmount(r[0].entryCosts)),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Eg(t){let e,n;return e=new Xi({props:{label:t[2]("CostEstimation.TransactionTax"),amount:t[1].formatAmount(t[0].transactionTax)}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.amount=r[1].formatAmount(r[0].transactionTax)),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Lg(t){let e,n;return e=new Xi({props:{label:t[2]("CostEstimation.TotalCosts"),amount:t[1].formatAmount(t[0].totalCosts)}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.amount=r[1].formatAmount(r[0].totalCosts)),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ng(t){let e,n;return e=new Xi({props:{label:t[2]("CostEstimation.ExpectedCounterValue"),amount:t[1].formatAmount(t[0].expectedCounterValue)}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.amount=r[1].formatAmount(r[0].expectedCounterValue)),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Pg(t){let e,n;return e=new Xi({props:{label:t[2]("CostEstimation.OrderFees"),hasTooltip:!!t[0].orderFeesExplanation,amount:t[1].formatAmount(t[0].orderFees),tooltipLabel:"tooltipLabel",tooltipText:t[0].orderFeesExplanation}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.hasTooltip=!!r[0].orderFeesExplanation),i&1&&(o.amount=r[1].formatAmount(r[0].orderFees)),i&1&&(o.tooltipText=r[0].orderFeesExplanation),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $g(t){let e,n;return e=new or({props:{hideCloseButton:!0,$$slots:{default:[IP]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&33&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function IP(t){let e,n=t[0].costAcceptancePrompt+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&1&&n!==(n=i[0].costAcceptancePrompt+"")&&e.p(n)},d(i){i&&(E(r),e.d())}}}function Rg(t){let e,n,r;return{c(){e=W("a"),e.textContent=`${t[2]("CostEstimation.ShowDetailedCostEstimation")}`,x(e,"href","#top"),x(e,"class","costs-info-link svelte-awdy3t")},m(i,o){L(i,e,o),n||(r=tt(e,"click",Ii(t[3])),n=!0)},p:ze,d(i){i&&E(e),n=!1,r()}}}function AP(t){let e,n,r,i,o,l,a,s,u,c=t[0].entryCosts&&Mg(t),f=t[0].transactionTax&&Eg(t),d=t[0].totalCosts&&Lg(t),m=t[0].expectedCounterValue&&Ng(t),h=t[0].orderFees&&Pg(t),p=t[0].costAcceptancePrompt&&$g(t),v=(t[0].costDetailsLink||t[0].detailedTable)&&Rg(t);return{c(){e=W("div"),n=W("div"),c&&c.c(),r=j(),f&&f.c(),i=j(),d&&d.c(),o=j(),m&&m.c(),l=j(),h&&h.c(),a=j(),p&&p.c(),s=j(),v&&v.c(),x(n,"class","costs svelte-awdy3t"),x(e,"class","costs-info zlc-gap-y")},m(w,S){L(w,e,S),V(e,n),c&&c.m(n,null),V(n,r),f&&f.m(n,null),V(n,i),d&&d.m(n,null),V(n,o),m&&m.m(n,null),V(n,l),h&&h.m(n,null),V(e,a),p&&p.m(e,null),V(e,s),v&&v.m(e,null),u=!0},p(w,[S]){w[0].entryCosts?c?(c.p(w,S),S&1&&g(c,1)):(c=Mg(w),c.c(),g(c,1),c.m(n,r)):c&&(ne(),b(c,1,1,()=>{c=null}),re()),w[0].transactionTax?f?(f.p(w,S),S&1&&g(f,1)):(f=Eg(w),f.c(),g(f,1),f.m(n,i)):f&&(ne(),b(f,1,1,()=>{f=null}),re()),w[0].totalCosts?d?(d.p(w,S),S&1&&g(d,1)):(d=Lg(w),d.c(),g(d,1),d.m(n,o)):d&&(ne(),b(d,1,1,()=>{d=null}),re()),w[0].expectedCounterValue?m?(m.p(w,S),S&1&&g(m,1)):(m=Ng(w),m.c(),g(m,1),m.m(n,l)):m&&(ne(),b(m,1,1,()=>{m=null}),re()),w[0].orderFees?h?(h.p(w,S),S&1&&g(h,1)):(h=Pg(w),h.c(),g(h,1),h.m(n,null)):h&&(ne(),b(h,1,1,()=>{h=null}),re()),w[0].costAcceptancePrompt?p?(p.p(w,S),S&1&&g(p,1)):(p=$g(w),p.c(),g(p,1),p.m(e,s)):p&&(ne(),b(p,1,1,()=>{p=null}),re()),w[0].costDetailsLink||w[0].detailedTable?v?v.p(w,S):(v=Rg(w),v.c(),v.m(e,null)):v&&(v.d(1),v=null)},i(w){u||(g(c),g(f),g(d),g(m),g(h),g(p),u=!0)},o(w){b(c),b(f),b(d),b(m),b(h),b(p),u=!1},d(w){w&&E(e),c&&c.d(),f&&f.d(),d&&d.d(),m&&m.d(),h&&h.d(),p&&p.d(),v&&v.d()}}}function DP(t,e,n){const r=pr(tn),{__:i}=r;let{costs:o=null}=e;const l=Bt();let a=s=>{l("click",s)};return t.$$set=s=>{"costs"in s&&n(0,o=s.costs)},[o,r,i,a]}class Ls extends Ne{constructor(e){super(),Ee(this,e,DP,AP,Ae,{costs:0},OP)}get costs(){return this.$$.ctx[0]}set costs(e){this.$$set({costs:e}),C()}}Le(Ls,{costs:{}},[],[],!0);function MP(t){yt(t,"svelte-1vtxvr6",".zl-quote.svelte-1vtxvr6{display:flex;align-items:center}.zl-quote.svelte-1vtxvr6 .busy .zlc-icon{animation:svelte-1vtxvr6-rotate 1s linear infinite}.zl-quote.svelte-1vtxvr6 .zl-btn--refresh{align-self:flex-start}.amount.svelte-1vtxvr6{font-size:var(--zl-font-size-lg);font-weight:var(--zl-font-weight-medium);font-feature-settings:slashed-zero tabular-nums;font-variant-numeric:slashed-zero tabular-nums}.size.svelte-1vtxvr6{color:var(--zl-color-gray-darkest)}.slash.svelte-1vtxvr6{color:var(--zl-color-gray-base)}.text.svelte-1vtxvr6{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;overflow-wrap:anywhere}.source.svelte-1vtxvr6{margin-top:var(--zl-spacing-sm)}@keyframes svelte-1vtxvr6-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}")}function EP(t){let e,n,r,i,o=t[4].formatAmount(t[0].quotation)+"",l,a,s,u,c,f=t[0].totalAmount&&Fg(t),d=t[0].size&&xg(t),m=t[0].sourceName&&Ug(t);return{c(){e=W("span"),n=W("span"),n.textContent="Kurs:",r=j(),i=W("span"),l=Ie(o),a=j(),f&&f.c(),s=j(),d&&d.c(),u=j(),m&&m.c(),c=Xe(),x(n,"class","size svelte-1vtxvr6"),x(i,"class","amount svelte-1vtxvr6")},m(h,p){L(h,e,p),V(e,n),V(e,r),V(e,i),V(i,l),V(e,a),f&&f.m(e,null),V(e,s),d&&d.m(e,null),L(h,u,p),m&&m.m(h,p),L(h,c,p)},p(h,p){p&1&&o!==(o=h[4].formatAmount(h[0].quotation)+"")&&Ke(l,o),h[0].totalAmount?f?f.p(h,p):(f=Fg(h),f.c(),f.m(e,s)):f&&(f.d(1),f=null),h[0].size?d?d.p(h,p):(d=xg(h),d.c(),d.m(e,null)):d&&(d.d(1),d=null),h[0].sourceName?m?m.p(h,p):(m=Ug(h),m.c(),m.m(c.parentNode,c)):m&&(m.d(1),m=null)},i:ze,o:ze,d(h){h&&(E(e),E(u),E(c)),f&&f.d(),d&&d.d(),m&&m.d(h)}}}function LP(t){let e,n;return e=new Sn({}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Fg(t){let e,n,r,i,o=t[4].formatAmount(t[0].totalAmount,{full:!0})+"",l;return{c(){e=W("span"),n=W("span"),n.textContent="/",r=Ie(`
342
+ Gesamt:
343
+ `),i=W("span"),l=Ie(o),x(n,"class","slash svelte-1vtxvr6"),x(i,"class","amount svelte-1vtxvr6"),x(e,"class","size svelte-1vtxvr6")},m(a,s){L(a,e,s),V(e,n),V(e,r),V(e,i),V(i,l)},p(a,s){s&1&&o!==(o=a[4].formatAmount(a[0].totalAmount,{full:!0})+"")&&Ke(l,o)},d(a){a&&E(e)}}}function xg(t){let e,n,r,i=t[4].formatAmount({value:t[0].size,currency:t[1],maxDecimals:6},{full:!0})+"",o;return{c(){e=W("span"),n=W("span"),n.textContent="/",r=j(),o=Ie(i),x(n,"class","slash svelte-1vtxvr6"),x(e,"class","size svelte-1vtxvr6")},m(l,a){L(l,e,a),V(e,n),V(e,r),V(e,o)},p(l,a){a&3&&i!==(i=l[4].formatAmount({value:l[0].size,currency:l[1],maxDecimals:6},{full:!0})+"")&&Ke(o,i)},d(l){l&&E(e)}}}function Ug(t){let e,n=t[0].sourceName+"",r;return{c(){e=W("span"),r=Ie(n),x(e,"class","source svelte-1vtxvr6")},m(i,o){L(i,e,o),V(e,r)},p(i,o){o&1&&n!==(n=i[0].sourceName+"")&&Ke(r,n)},d(i){i&&E(e)}}}function NP(t){let e,n,r,i,o,l,a;const s=[LP,EP],u=[];function c(f,d){return f[2]?0:1}return r=c(t),i=u[r]=s[r](t),l=new nt({props:{class:"zl-btn zl-btn--refresh",size:"lg",variant:"default",icon:"RotateCw",busy:t[3]}}),l.$on("click",t[5]),{c(){e=W("div"),n=W("span"),i.c(),o=j(),F(l.$$.fragment),x(n,"class","text svelte-1vtxvr6"),x(e,"class","zl-quote svelte-1vtxvr6"),x(e,"aria-live","polite"),x(e,"aria-atomic","true"),x(e,"aria-busy",t[2])},m(f,d){L(f,e,d),V(e,n),u[r].m(n,null),V(e,o),$(l,e,null),a=!0},p(f,[d]){let m=r;r=c(f),r===m?u[r].p(f,d):(ne(),b(u[m],1,1,()=>{u[m]=null}),re(),i=u[r],i?i.p(f,d):(i=u[r]=s[r](f),i.c()),g(i,1),i.m(n,null));const h={};d&8&&(h.busy=f[3]),l.$set(h),(!a||d&4)&&x(e,"aria-busy",f[2])},i(f){a||(g(i),g(l.$$.fragment,f),a=!0)},o(f){b(i),b(l.$$.fragment,f),a=!1},d(f){f&&E(e),u[r].d(),R(l)}}}function PP(t,e,n){let{quote:r=null}=e,{sizeUnit:i=null}=e,{loading:o=!1}=e,{busy:l=!1}=e;const a=pr(tn),s=Bt();let u=c=>{s("refresh",c)};return t.$$set=c=>{"quote"in c&&n(0,r=c.quote),"sizeUnit"in c&&n(1,i=c.sizeUnit),"loading"in c&&n(2,o=c.loading),"busy"in c&&n(3,l=c.busy)},[r,i,o,l,a,u]}class Bg extends Ne{constructor(e){super(),Ee(this,e,PP,NP,Ae,{quote:0,sizeUnit:1,loading:2,busy:3},MP)}get quote(){return this.$$.ctx[0]}set quote(e){this.$$set({quote:e}),C()}get sizeUnit(){return this.$$.ctx[1]}set sizeUnit(e){this.$$set({sizeUnit:e}),C()}get loading(){return this.$$.ctx[2]}set loading(e){this.$$set({loading:e}),C()}get busy(){return this.$$.ctx[3]}set busy(e){this.$$set({busy:e}),C()}}Le(Bg,{quote:{},sizeUnit:{},loading:{type:"Boolean"},busy:{type:"Boolean"}},[],[],!0);function $P(t){yt(t,"svelte-fma00v",".broker.svelte-fma00v.svelte-fma00v{align-items:center;border-bottom:1px solid var(--zl-color-gray-base);color:var(--zl-color-gray-darkest);display:flex;font-size:var(--zl-font-size-2xs);gap:var(--zl-spacing-xl);justify-content:space-between;padding-bottom:var(--zl-spacing-md)}.broker.svelte-fma00v .logo.svelte-fma00v{height:20px;display:inline-block;width:auto}.broker.portfolio-link.svelte-fma00v.svelte-fma00v{cursor:pointer}.shortview.svelte-fma00v.svelte-fma00v{background-color:var(--zl-order-shortview-background-color, var(--zl-color-primary-dark));background-image:var(--zl-order-shortview-background-image, none);border-radius:var(--zl-order-shortview-border-radius, var(--zl-border-radius-lg));color:var(--zl-order-shortview-color, var(--zl-color-light));display:flex;flex-direction:column;gap:var(--zl-spacing-lg);padding:var(--zl-order-shortview-padding, var(--zl-spacing-xl))}.shortview.svelte-fma00v .tile.svelte-fma00v{background-color:var(--zl-order-shortview-tile-background-color, var(--zl-color-primary-light));border-radius:var(--zl-order-shortview-tile-border-radius, var(--zl-border-radius-lg));box-shadow:var(--zl-order-shortview-tile-box-shadow, var(--zl-box-shadow-lg));display:flex;flex-direction:column;flex:1;gap:var(--zl-spacing-xs);justify-content:center;padding-block:var(--zl-spacing-lg);text-align:center}.shortview.svelte-fma00v .tile .price.svelte-fma00v{color:var(--zl-order-shortview-color-prio-one, var(--zl-order-shortview-color));font-size:var(--zl-order-shortview-tile-price-font-size, var(--zl-font-size-lg));font-weight:var(--zl-font-weight-medium)}.shortview.svelte-fma00v .tile .description.svelte-fma00v{color:var(--zl-order-shortview-color-prio-two, var(--zl-order-shortview-color));font-size:var(--zl-order-shortview-tile-description-font-size, var(--zl-font-size-xs))}.shortview.svelte-fma00v .row-1.svelte-fma00v{display:flex;gap:var(--zl-spacing-md);justify-content:space-between;flex-wrap:wrap}.shortview.svelte-fma00v .row-1 .position.svelte-fma00v{display:flex;flex-direction:column;gap:var(--zl-spacing-xs)}.shortview.svelte-fma00v .row-1 .position .name.svelte-fma00v{color:var(--zl-order-shortview-color-prio-one, var(--zl-order-shortview-color));font-size:var(--zl-order-shortview-position-name-font-size, var(--zl-font-size-xl))}.shortview.svelte-fma00v .row-1 .position .isin.svelte-fma00v{color:var(--zl-order-shortview-color-prio-two, var(--zl-order-shortview-color));font-size:var(--zl-order-shortview-position-isin-font-size, var(--zl-font-size-xs))}.shortview.svelte-fma00v .row-1 .kid.svelte-fma00v{color:var(--zl-order-shortview-color-prio-two, var(--zl-order-shortview-color));cursor:pointer;font-size:var(--zl-font-size-sm)}.shortview.svelte-fma00v .row-1 .kid .inner.svelte-fma00v{align-items:center;display:flex;gap:4px}.shortview.svelte-fma00v .row-2.svelte-fma00v{display:flex;gap:var(--zl-spacing-md)}.shortview.svelte-fma00v .row-3.svelte-fma00v{display:flex;gap:var(--zl-spacing-md);justify-content:space-between;flex-wrap:wrap}.shortview.svelte-fma00v .row-3.hidden.svelte-fma00v{display:none !important}.shortview.svelte-fma00v .row-3 .depot.svelte-fma00v{color:var(--zl-order-shortview-color-prio-two, var(--zl-order-shortview-color));display:flex;flex-direction:column;gap:var(--zl-spacing-xs);max-width:60%;word-break:break-all}.shortview.svelte-fma00v .row-3 .buying-power.svelte-fma00v{color:var(--zl-order-shortview-color-prio-two, var(--zl-order-shortview-color));display:flex;flex-direction:column;gap:var(--zl-spacing-xs);text-align:right}.shortview.svelte-fma00v .row-3 .value.svelte-fma00v{color:var(--zl-order-shortview-color-prio-one, var(--zl-order-shortview-color));font-weight:bold}.buy-sell-container.columns.svelte-fma00v.svelte-fma00v{display:flex;align-items:center;justify-content:space-between;gap:var(--zl-spacing-sm)}.buy-sell-container.block.svelte-fma00v.svelte-fma00v{display:flex;flex-direction:column;gap:var(--zl-spacing-lg)}.risk-info-notification.svelte-fma00v.svelte-fma00v{display:flex;flex-direction:column;gap:var(--zl-spacing-lg)}.risk-info-notification.svelte-fma00v .risk-info-headline.svelte-fma00v{font-size:var(--zl-font-size-md);font-weight:var(--zl-font-weight-medium)}.risk-info-notification.svelte-fma00v .risk-info-text.svelte-fma00v{font-size:var(--zl-font-size-sm)}.risk-info-notification.svelte-fma00v .risk-info-button-bar.svelte-fma00v{display:flex;justify-content:flex-end;margin-top:var(--zl-spacing-xl)}.legal-hint-tooltip.svelte-fma00v.svelte-fma00v{cursor:pointer;text-align:center}")}function RP(t){let e,n;return e=new Ji({props:{$$slots:{default:[s5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&2147483639|i[1]&2147483647|i[2]&1023|i[5]&16&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function FP(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xP(t){var We,st,Nt,Ht,nn;let e,n,r,i,o,l,a,s,u,c,f=t[2].security.name+"",d,m,h,p,v,w,S,y,z,O,N,U,A,P,Y,B,J,ee,X,ce,he,de,se,ue=["stopMarket","stopLimit","ocoStopMarket","ocoStopLimit","trailingStopMarket","trailingStopLimit"].includes(t[30]),fe,Oe,me,we,Fe,pe,Se,De,Ze,Qe,dt,Ce,St,it,Lt,Te,ot,ft,It,wt,Ct,xt;e=new zn({props:{error:t[14]}});function He(_e,Ue){if(_e[2].security.isin)return qP;if(_e[2].security.usTicker)return BP}let Ut=He(t),qt=Ut&&Ut(t),Et=t[2].securityDetailedInfo&&qg(t),K=(t[20]||t[21])&&Vg(t),D=t[16]&&Wg(t),M=t[17]&&Yg(t),Q=!t[23]&&Gg(t),le=((We=t[47])==null?void 0:We.length)>1&&Kg(t);function Me(_e){t[102](_e)}let Pe={label:"Handelsplatz",placeholder:"Handelsplatz wählen",layout:t[67],items:t[61]};t[31]!==void 0&&(Pe.selected=t[31]),B=new Un({props:Pe}),xe.push(()=>Je(B,"selected",Me));let ct=((st=t[50])==null?void 0:st.length)>1&&Qg(t),at=t[31]&&jg(t),et=t[55]&&Xg(t),Ot=t[30]&&t[34]==="sell"&&((Nt=t[65])==null?void 0:Nt.length)&&Zg(t),_t=(t[30]==="limit"||t[30]==="ocoStopMarket"||t[30]==="ocoStopLimit")&&ep(t),Gt=ue&&tp(t),Vt=(t[30]==="trailingStopMarket"||t[30]==="trailingStopLimit")&&np(t),Jt=t[30]==="trailingStopLimit"&&rp(t),$t=(t[30]==="stopLimit"||t[30]==="ocoStopLimit")&&ip(t),un=t[44]&&op(t),rn=t[43]&&lp(t),H=((Ht=t[62])==null?void 0:Ht.length)&&ap(t),G=t[30]==="quote"&&cp(t),ie=((nn=t[2].riskClassInfo)==null?void 0:nn.legalHint)&&hp(t),ge=t[2].strikingHint&&mp(t),Re=t[12]&&gp(t),Be=t[15]&&pp();Lt=new zn({props:{error:t[13]}});const bt=[KP,GP],Ge=[];function vt(_e,Ue){return _e[64]&&!_e[5].sessionTanActive&&_e[5].sessionTanSupported?0:1}return ft=vt(t),It=Ge[ft]=bt[ft](t),{c(){F(e.$$.fragment),n=j(),r=W("div"),i=W("img"),l=j(),a=W("div"),s=W("div"),u=W("div"),c=W("div"),d=Ie(f),m=j(),h=W("div"),qt&&qt.c(),p=j(),Et&&Et.c(),v=j(),K&&K.c(),w=j(),S=W("div"),y=W("div"),D&&D.c(),z=j(),O=W("div"),M&&M.c(),U=j(),Q&&Q.c(),A=j(),P=W("div"),le&&le.c(),Y=j(),F(B.$$.fragment),ee=j(),ct&&ct.c(),X=j(),at&&at.c(),ce=j(),et&&et.c(),he=j(),Ot&&Ot.c(),de=j(),_t&&_t.c(),se=j(),Gt&&Gt.c(),fe=j(),Vt&&Vt.c(),Oe=j(),Jt&&Jt.c(),me=j(),$t&&$t.c(),we=j(),un&&un.c(),Fe=j(),rn&&rn.c(),pe=j(),H&&H.c(),Se=j(),G&&G.c(),De=j(),Ze=W("div"),Qe=W("div"),ie&&ie.c(),dt=j(),ge&&ge.c(),Ce=j(),Re&&Re.c(),St=j(),Be&&Be.c(),it=j(),F(Lt.$$.fragment),Te=j(),ot=W("div"),It.c(),x(i,"class","logo svelte-fma00v"),Qn(i.src,o=t[66])||x(i,"src",o),x(i,"alt","brokerlogo"),x(r,"class","broker svelte-fma00v"),ke(r,"portfolio-link",t[18]),x(c,"class","name svelte-fma00v"),x(h,"class","isin svelte-fma00v"),x(u,"class","position svelte-fma00v"),x(s,"class","row-1 svelte-fma00v"),x(y,"class","depot svelte-fma00v"),x(O,"class","buying-power svelte-fma00v"),x(S,"class",N=vn(`row-3 ${!t[16]&&!t[17]?"hidden":""}`)+" svelte-fma00v"),x(a,"class","shortview svelte-fma00v"),x(P,"class","zlc-gap-y-form"),x(Qe,"class","legal-hint-tooltip svelte-fma00v"),x(Ze,"class","zlc-gap-y"),x(ot,"class","zlc-gap-y")},m(_e,Ue){$(e,_e,Ue),L(_e,n,Ue),L(_e,r,Ue),V(r,i),L(_e,l,Ue),L(_e,a,Ue),V(a,s),V(s,u),V(u,c),V(c,d),V(u,m),V(u,h),qt&&qt.m(h,null),V(s,p),Et&&Et.m(s,null),V(a,v),K&&K.m(a,null),V(a,w),V(a,S),V(S,y),D&&D.m(y,null),V(S,z),V(S,O),M&&M.m(O,null),L(_e,U,Ue),Q&&Q.m(_e,Ue),L(_e,A,Ue),L(_e,P,Ue),le&&le.m(P,null),V(P,Y),$(B,P,null),V(P,ee),ct&&ct.m(P,null),V(P,X),at&&at.m(P,null),V(P,ce),et&&et.m(P,null),V(P,he),Ot&&Ot.m(P,null),V(P,de),_t&&_t.m(P,null),V(P,se),Gt&&Gt.m(P,null),V(P,fe),Vt&&Vt.m(P,null),V(P,Oe),Jt&&Jt.m(P,null),V(P,me),$t&&$t.m(P,null),V(P,we),un&&un.m(P,null),V(P,Fe),rn&&rn.m(P,null),V(P,pe),H&&H.m(P,null),L(_e,Se,Ue),G&&G.m(_e,Ue),L(_e,De,Ue),L(_e,Ze,Ue),V(Ze,Qe),ie&&ie.m(Qe,null),V(Ze,dt),ge&&ge.m(Ze,null),V(Ze,Ce),Re&&Re.m(Ze,null),V(Ze,St),Be&&Be.m(Ze,null),V(Ze,it),$(Lt,Ze,null),L(_e,Te,Ue),L(_e,ot,Ue),Ge[ft].m(ot,null),wt=!0,Ct||(xt=[tt(r,"click",t[73]),tt(Qe,"mouseenter",t[123]),tt(Qe,"mouseleave",t[124]),tt(Qe,"focusin",t[125]),tt(Qe,"focusout",t[126])],Ct=!0)},p(_e,Ue){var yn,dn,$n,hn,Rn;const Yn={};Ue[0]&16384&&(Yn.error=_e[14]),e.$set(Yn),(!wt||Ue[2]&16&&!Qn(i.src,o=_e[66]))&&x(i,"src",o),(!wt||Ue[0]&262144)&&ke(r,"portfolio-link",_e[18]),(!wt||Ue[0]&4)&&f!==(f=_e[2].security.name+"")&&Ke(d,f),Ut===(Ut=He(_e))&&qt?qt.p(_e,Ue):(qt&&qt.d(1),qt=Ut&&Ut(_e),qt&&(qt.c(),qt.m(h,null))),_e[2].securityDetailedInfo?Et?(Et.p(_e,Ue),Ue[0]&4&&g(Et,1)):(Et=qg(_e),Et.c(),g(Et,1),Et.m(s,null)):Et&&(ne(),b(Et,1,1,()=>{Et=null}),re()),_e[20]||_e[21]?K?K.p(_e,Ue):(K=Vg(_e),K.c(),K.m(a,w)):K&&(K.d(1),K=null),_e[16]?D?D.p(_e,Ue):(D=Wg(_e),D.c(),D.m(y,null)):D&&(D.d(1),D=null),_e[17]?M?M.p(_e,Ue):(M=Yg(_e),M.c(),M.m(O,null)):M&&(M.d(1),M=null),(!wt||Ue[0]&196608&&N!==(N=vn(`row-3 ${!_e[16]&&!_e[17]?"hidden":""}`)+" svelte-fma00v"))&&x(S,"class",N),_e[23]?Q&&(ne(),b(Q,1,1,()=>{Q=null}),re()):Q?(Q.p(_e,Ue),Ue[0]&8388608&&g(Q,1)):(Q=Gg(_e),Q.c(),g(Q,1),Q.m(A.parentNode,A)),((yn=_e[47])==null?void 0:yn.length)>1?le?(le.p(_e,Ue),Ue[1]&65536&&g(le,1)):(le=Kg(_e),le.c(),g(le,1),le.m(P,Y)):le&&(ne(),b(le,1,1,()=>{le=null}),re());const An={};Ue[2]&32&&(An.layout=_e[67]),Ue[1]&1073741824&&(An.items=_e[61]),!J&&Ue[1]&1&&(J=!0,An.selected=_e[31],Ve(()=>J=!1)),B.$set(An),((dn=_e[50])==null?void 0:dn.length)>1?ct?(ct.p(_e,Ue),Ue[1]&524288&&g(ct,1)):(ct=Qg(_e),ct.c(),g(ct,1),ct.m(P,X)):ct&&(ne(),b(ct,1,1,()=>{ct=null}),re()),_e[31]?at?(at.p(_e,Ue),Ue[1]&1&&g(at,1)):(at=jg(_e),at.c(),g(at,1),at.m(P,ce)):at&&(ne(),b(at,1,1,()=>{at=null}),re()),_e[55]?et?(et.p(_e,Ue),Ue[1]&16777216&&g(et,1)):(et=Xg(_e),et.c(),g(et,1),et.m(P,he)):et&&(ne(),b(et,1,1,()=>{et=null}),re()),_e[30]&&_e[34]==="sell"&&(($n=_e[65])!=null&&$n.length)?Ot?(Ot.p(_e,Ue),Ue[0]&1073741824|Ue[1]&8|Ue[2]&8&&g(Ot,1)):(Ot=Zg(_e),Ot.c(),g(Ot,1),Ot.m(P,de)):Ot&&(ne(),b(Ot,1,1,()=>{Ot=null}),re()),_e[30]==="limit"||_e[30]==="ocoStopMarket"||_e[30]==="ocoStopLimit"?_t?(_t.p(_e,Ue),Ue[0]&1073741824&&g(_t,1)):(_t=ep(_e),_t.c(),g(_t,1),_t.m(P,se)):_t&&(ne(),b(_t,1,1,()=>{_t=null}),re()),Ue[0]&1073741824&&(ue=["stopMarket","stopLimit","ocoStopMarket","ocoStopLimit","trailingStopMarket","trailingStopLimit"].includes(_e[30])),ue?Gt?(Gt.p(_e,Ue),Ue[0]&1073741824&&g(Gt,1)):(Gt=tp(_e),Gt.c(),g(Gt,1),Gt.m(P,fe)):Gt&&(ne(),b(Gt,1,1,()=>{Gt=null}),re()),_e[30]==="trailingStopMarket"||_e[30]==="trailingStopLimit"?Vt?(Vt.p(_e,Ue),Ue[0]&1073741824&&g(Vt,1)):(Vt=np(_e),Vt.c(),g(Vt,1),Vt.m(P,Oe)):Vt&&(ne(),b(Vt,1,1,()=>{Vt=null}),re()),_e[30]==="trailingStopLimit"?Jt?(Jt.p(_e,Ue),Ue[0]&1073741824&&g(Jt,1)):(Jt=rp(_e),Jt.c(),g(Jt,1),Jt.m(P,me)):Jt&&(ne(),b(Jt,1,1,()=>{Jt=null}),re()),_e[30]==="stopLimit"||_e[30]==="ocoStopLimit"?$t?($t.p(_e,Ue),Ue[0]&1073741824&&g($t,1)):($t=ip(_e),$t.c(),g($t,1),$t.m(P,we)):$t&&(ne(),b($t,1,1,()=>{$t=null}),re()),_e[44]?un?(un.p(_e,Ue),Ue[1]&8192&&g(un,1)):(un=op(_e),un.c(),g(un,1),un.m(P,Fe)):un&&(ne(),b(un,1,1,()=>{un=null}),re()),_e[43]?rn?(rn.p(_e,Ue),Ue[1]&4096&&g(rn,1)):(rn=lp(_e),rn.c(),g(rn,1),rn.m(P,pe)):rn&&(ne(),b(rn,1,1,()=>{rn=null}),re()),(hn=_e[62])!=null&&hn.length?H?(H.p(_e,Ue),Ue[2]&1&&g(H,1)):(H=ap(_e),H.c(),g(H,1),H.m(P,null)):H&&(ne(),b(H,1,1,()=>{H=null}),re()),_e[30]==="quote"?G?(G.p(_e,Ue),Ue[0]&1073741824&&g(G,1)):(G=cp(_e),G.c(),g(G,1),G.m(De.parentNode,De)):G&&(ne(),b(G,1,1,()=>{G=null}),re()),(Rn=_e[2].riskClassInfo)!=null&&Rn.legalHint?ie?(ie.p(_e,Ue),Ue[0]&4&&g(ie,1)):(ie=hp(_e),ie.c(),g(ie,1),ie.m(Qe,null)):ie&&(ne(),b(ie,1,1,()=>{ie=null}),re()),_e[2].strikingHint?ge?(ge.p(_e,Ue),Ue[0]&4&&g(ge,1)):(ge=mp(_e),ge.c(),g(ge,1),ge.m(Ze,Ce)):ge&&(ne(),b(ge,1,1,()=>{ge=null}),re()),_e[12]?Re?(Re.p(_e,Ue),Ue[0]&4096&&g(Re,1)):(Re=gp(_e),Re.c(),g(Re,1),Re.m(Ze,St)):Re&&(ne(),b(Re,1,1,()=>{Re=null}),re()),_e[15]?Be?Ue[0]&32768&&g(Be,1):(Be=pp(),Be.c(),g(Be,1),Be.m(Ze,it)):Be&&(ne(),b(Be,1,1,()=>{Be=null}),re());const Tn={};Ue[0]&8192&&(Tn.error=_e[13]),Lt.$set(Tn);let Xt=ft;ft=vt(_e),ft===Xt?Ge[ft].p(_e,Ue):(ne(),b(Ge[Xt],1,1,()=>{Ge[Xt]=null}),re(),It=Ge[ft],It?It.p(_e,Ue):(It=Ge[ft]=bt[ft](_e),It.c()),g(It,1),It.m(ot,null))},i(_e){wt||(g(e.$$.fragment,_e),g(Et),g(Q),g(le),g(B.$$.fragment,_e),g(ct),g(at),g(et),g(Ot),g(_t),g(Gt),g(Vt),g(Jt),g($t),g(un),g(rn),g(H),g(G),g(ie),g(ge),g(Re),g(Be),g(Lt.$$.fragment,_e),g(It),wt=!0)},o(_e){b(e.$$.fragment,_e),b(Et),b(Q),b(le),b(B.$$.fragment,_e),b(ct),b(at),b(et),b(Ot),b(_t),b(Gt),b(Vt),b(Jt),b($t),b(un),b(rn),b(H),b(G),b(ie),b(ge),b(Re),b(Be),b(Lt.$$.fragment,_e),b(It),wt=!1},d(_e){_e&&(E(n),E(r),E(l),E(a),E(U),E(A),E(P),E(Se),E(De),E(Ze),E(Te),E(ot)),R(e,_e),qt&&qt.d(),Et&&Et.d(),K&&K.d(),D&&D.d(),M&&M.d(),Q&&Q.d(_e),le&&le.d(),R(B),ct&&ct.d(),at&&at.d(),et&&et.d(),Ot&&Ot.d(),_t&&_t.d(),Gt&&Gt.d(),Vt&&Vt.d(),Jt&&Jt.d(),$t&&$t.d(),un&&un.d(),rn&&rn.d(),H&&H.d(),G&&G.d(_e),ie&&ie.d(),ge&&ge.d(),Re&&Re.d(),Be&&Be.d(),R(Lt),Ge[ft].d(),Ct=!1,pn(xt)}}}function UP(t){let e,n;return e=new or({props:{hideCloseButton:!0,$$slots:{default:[a5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4|i[5]&16&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function BP(t){let e,n=t[2].security.usTicker+"",r;return{c(){e=Ie("US-Ticker: "),r=Ie(n)},m(i,o){L(i,e,o),L(i,r,o)},p(i,o){o[0]&4&&n!==(n=i[2].security.usTicker+"")&&Ke(r,n)},d(i){i&&(E(e),E(r))}}}function qP(t){let e,n=t[2].security.isin+"",r;return{c(){e=Ie("ISIN: "),r=Ie(n)},m(i,o){L(i,e,o),L(i,r,o)},p(i,o){o[0]&4&&n!==(n=i[2].security.isin+"")&&Ke(r,n)},d(i){i&&(E(e),E(r))}}}function qg(t){let e,n,r,i,o,l=t[2].securityDetailedInfo.label+"",a,s,u,c;var f=an.Info;function d(m,h){return{props:{class:"zlc-icon",size:12,"stroke-width":1}}}return f&&(r=fn(f,d())),{c(){e=W("div"),n=W("div"),r&&F(r.$$.fragment),i=j(),o=W("div"),a=Ie(l),x(n,"class","inner svelte-fma00v"),x(e,"class","kid svelte-fma00v")},m(m,h){L(m,e,h),V(e,n),r&&$(r,n,null),V(n,i),V(n,o),V(o,a),s=!0,u||(c=tt(e,"click",t[99]),u=!0)},p(m,h){if(f!==(f=an.Info)){if(r){ne();const p=r;b(p.$$.fragment,1,0,()=>{R(p,1)}),re()}f?(r=fn(f,d()),F(r.$$.fragment),g(r.$$.fragment,1),$(r,n,i)):r=null}(!s||h[0]&4)&&l!==(l=m[2].securityDetailedInfo.label+"")&&Ke(a,l)},i(m){s||(r&&g(r.$$.fragment,m),s=!0)},o(m){r&&b(r.$$.fragment,m),s=!1},d(m){m&&E(e),r&&R(r),u=!1,c()}}}function Vg(t){let e,n,r=t[20]&&Jg(t),i=t[21]&&Hg(t);return{c(){e=W("div"),r&&r.c(),n=j(),i&&i.c(),x(e,"class","row-2 svelte-fma00v")},m(o,l){L(o,e,l),r&&r.m(e,null),V(e,n),i&&i.m(e,null)},p(o,l){o[20]?r?r.p(o,l):(r=Jg(o),r.c(),r.m(e,n)):r&&(r.d(1),r=null),o[21]?i?i.p(o,l):(i=Hg(o),i.c(),i.m(e,null)):i&&(i.d(1),i=null)},d(o){o&&E(e),r&&r.d(),i&&i.d()}}}function Jg(t){var d,m;let e,n,r=t[76].formatAmount(t[20])+"",i,o,l,a=(t[71]||"")+"",s,u,c=(d=t[19])!=null&&d.quoteSourceName?` (${(m=t[19])==null?void 0:m.quoteSourceName})`:"",f;return{c(){e=W("div"),n=W("div"),i=Ie(r),o=j(),l=W("div"),s=Ie(a),u=j(),f=Ie(c),x(n,"class","price svelte-fma00v"),x(l,"class","description svelte-fma00v"),x(e,"class","tile svelte-fma00v")},m(h,p){L(h,e,p),V(e,n),V(n,i),V(e,o),V(e,l),V(l,s),V(l,u),V(l,f)},p(h,p){var v,w;p[0]&1048576&&r!==(r=h[76].formatAmount(h[20])+"")&&Ke(i,r),p[2]&512&&a!==(a=(h[71]||"")+"")&&Ke(s,a),p[0]&524288&&c!==(c=(v=h[19])!=null&&v.quoteSourceName?` (${(w=h[19])==null?void 0:w.quoteSourceName})`:"")&&Ke(f,c)},d(h){h&&E(e)}}}function Hg(t){var u,c;let e,n,r=t[76].formatAmount((u=t[21])==null?void 0:u.amount)+"",i,o,l,a=((c=t[21])==null?void 0:c.label)+"",s;return{c(){e=W("div"),n=W("div"),i=Ie(r),o=j(),l=W("div"),s=Ie(a),x(n,"class","price svelte-fma00v"),x(l,"class","description svelte-fma00v"),x(e,"class","tile svelte-fma00v")},m(f,d){L(f,e,d),V(e,n),V(n,i),V(e,o),V(e,l),V(l,s)},p(f,d){var m,h;d[0]&2097152&&r!==(r=f[76].formatAmount((m=f[21])==null?void 0:m.amount)+"")&&Ke(i,r),d[0]&2097152&&a!==(a=((h=f[21])==null?void 0:h.label)+"")&&Ke(s,a)},d(f){f&&E(e)}}}function Wg(t){let e,n,r,i;return{c(){e=W("div"),e.textContent="Depot",n=j(),r=W("div"),i=Ie(t[16]),x(e,"class","label"),x(r,"class","value svelte-fma00v")},m(o,l){L(o,e,l),L(o,n,l),L(o,r,l),V(r,i)},p(o,l){l[0]&65536&&Ke(i,o[16])},d(o){o&&(E(e),E(n),E(r))}}}function Yg(t){let e,n,r,i=t[76].formatAmount(t[17])+"",o;return{c(){e=W("div"),e.textContent="Verfügungsrahmen",n=j(),r=W("div"),o=Ie(i),x(e,"class","label"),x(r,"class","value svelte-fma00v")},m(l,a){L(l,e,a),L(l,n,a),L(l,r,a),V(r,o)},p(l,a){a[0]&131072&&i!==(i=l[76].formatAmount(l[17])+"")&&Ke(o,i)},d(l){l&&(E(e),E(n),E(r))}}}function Gg(t){var a;let e,n,r,i;function o(s){t[100](s)}let l={onlySellAllowed:(a=t[2].riskClassInfo)==null?void 0:a.onlySellAllowed,lockOrderDirection:t[22]};return t[34]!==void 0&&(l.selected=t[34]),n=new Ag({props:l}),xe.push(()=>Je(n,"selected",o)),{c(){e=W("div"),F(n.$$.fragment),x(e,"class","buy-sell-container")},m(s,u){L(s,e,u),$(n,e,null),i=!0},p(s,u){var f;const c={};u[0]&4&&(c.onlySellAllowed=(f=s[2].riskClassInfo)==null?void 0:f.onlySellAllowed),u[0]&4194304&&(c.lockOrderDirection=s[22]),!r&&u[1]&8&&(r=!0,c.selected=s[34],Ve(()=>r=!1)),n.$set(c)},i(s){i||(g(n.$$.fragment,s),i=!0)},o(s){b(n.$$.fragment,s),i=!1},d(s){s&&E(e),R(n)}}}function Kg(t){let e,n,r;function i(l){t[101](l)}let o={label:"Cashkonto",layout:t[67],items:t[47]};return t[33]!==void 0&&(o.selected=t[33]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),a[1]&65536&&(s.items=l[47]),!n&&a[1]&4&&(n=!0,s.selected=l[33],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function Qg(t){let e,n,r;function i(l){t[103](l)}let o={label:"INTENT",placeholder:"INTENT",layout:t[67],items:t[50]};return t[32]!==void 0&&(o.selected=t[32]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),a[1]&524288&&(s.items=l[50]),!n&&a[1]&2&&(n=!0,s.selected=l[32],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function jg(t){let e,n,r,i;const o=[JP,VP],l=[];function a(s,u){var c;return((c=s[46])==null?void 0:c.length)>1?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function VP(t){var l;let e,n,r;function i(a){t[106](a)}let o={id:"inp_Size",maxDecimals:t[70],label:t[51],labelTooltip:typeof t[70]=="number"?t[79](t[70]):void 0,errorText:(l=t[68])==null?void 0:l.size,type:"number",layout:t[67]};return t[24]!==void 0&&(o.value=t[24]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&256&&(u.maxDecimals=a[70]),s[1]&1048576&&(u.label=a[51]),s[2]&256&&(u.labelTooltip=typeof a[70]=="number"?a[79](a[70]):void 0),s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.size),s[2]&32&&(u.layout=a[67]),!n&&s[0]&16777216&&(n=!0,u.value=a[24],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function JP(t){let e,n,r,i;function o(s){t[104](s)}function l(s){t[105](s)}let a={label:t[51],maxDecimals:t[70],labelTooltip:typeof t[70]=="number"?t[79](t[70]):void 0,type:"number",dropdownCombo:!0,selectItems:t[52]};return t[42]!==void 0&&(a.selected=t[42]),t[24]!==void 0&&(a.value=t[24]),e=new Mt({props:a}),xe.push(()=>Je(e,"selected",o)),xe.push(()=>Je(e,"value",l)),{c(){F(e.$$.fragment)},m(s,u){$(e,s,u),i=!0},p(s,u){const c={};u[1]&1048576&&(c.label=s[51]),u[2]&256&&(c.maxDecimals=s[70]),u[2]&256&&(c.labelTooltip=typeof s[70]=="number"?s[79](s[70]):void 0),u[1]&2097152&&(c.selectItems=s[52]),!n&&u[1]&2048&&(n=!0,c.selected=s[42],Ve(()=>n=!1)),!r&&u[0]&16777216&&(r=!0,c.value=s[24],Ve(()=>r=!1)),e.$set(c)},i(s){i||(g(e.$$.fragment,s),i=!0)},o(s){b(e.$$.fragment,s),i=!1},d(s){R(e,s)}}}function Xg(t){let e,n,r;function i(l){t[107](l)}let o={id:"sel_OrderMode",label:"Ausführungsart",layout:t[67],items:t[63]};return t[30]!==void 0&&(o.selected=t[30]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),a[2]&2&&(s.items=l[63]),!n&&a[0]&1073741824&&(n=!0,s.selected=l[30],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function Zg(t){let e,n,r;function i(l){t[108](l)}let o={id:"sel_SellPosition",placeholder:"Bitte Position wählen",label:"Position",layout:t[67],items:t[65]};return t[39]!==void 0&&(o.selected=t[39]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),a[2]&8&&(s.items=l[65]),!n&&a[1]&256&&(n=!0,s.selected=l[39],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function ep(t){var l;let e,n,r;function i(a){t[109](a)}let o={id:"inp_Limit",label:"Limit",type:"number",errorText:(l=t[68])==null?void 0:l.limit,layout:t[67]};return t[25]!==void 0&&(o.value=t[25]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.limit),s[2]&32&&(u.layout=a[67]),!n&&s[0]&33554432&&(n=!0,u.value=a[25],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function tp(t){var l;let e,n,r;function i(a){t[110](a)}let o={id:"inp_Stop",label:t[34]==="sell"&&t[32]==="open"?"Stop Sell":"Stop",type:"number",errorText:(l=t[68])==null?void 0:l.stop,layout:t[67]};return t[26]!==void 0&&(o.value=t[26]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[1]&10&&(u.label=a[34]==="sell"&&a[32]==="open"?"Stop Sell":"Stop"),s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.stop),s[2]&32&&(u.layout=a[67]),!n&&s[0]&67108864&&(n=!0,u.value=a[26],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function np(t){var l;let e,n,r;function i(a){t[111](a)}let o={absCurrency:(l=t[45])==null?void 0:l.currencyIso,label:"Trailing-Abstand",placeholder:"Trailing Abstand"};return t[36]!==void 0&&(o.value=t[36]),e=new Cs({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[1]&16384&&(u.absCurrency=(c=a[45])==null?void 0:c.currencyIso),!n&&s[1]&32&&(n=!0,u.value=a[36],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function rp(t){var l;let e,n,r;function i(a){t[112](a)}let o={id:"inp_TrailingLimitTolerance",label:"Limit-Abstand",type:"number",errorText:(l=t[68])==null?void 0:l.trailingStopLimit,layout:t[67]};return t[35]!==void 0&&(o.value=t[35]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.trailingStopLimit),s[2]&32&&(u.layout=a[67]),!n&&s[1]&16&&(n=!0,u.value=a[35],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function ip(t){var l;let e,n,r;function i(a){t[113](a)}let o={id:"inp_StopLimit",label:t[77]("Commons.Order.StopLimit"),type:"number",errorText:(l=t[68])==null?void 0:l.stopLimit,layout:t[67]};return t[27]!==void 0&&(o.value=t[27]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.stopLimit),s[2]&32&&(u.layout=a[67]),!n&&s[0]&134217728&&(n=!0,u.value=a[27],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function op(t){var l;let e,n,r;function i(a){t[114](a)}let o={id:"inp_TakeProfit",label:t[77]("Commons.Order.TakeProfit"),type:"number",errorText:(l=t[68])==null?void 0:l.takeProfit,layout:t[67]};return t[28]!==void 0&&(o.value=t[28]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.takeProfit),s[2]&32&&(u.layout=a[67]),!n&&s[0]&268435456&&(n=!0,u.value=a[28],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function lp(t){var l;let e,n,r;function i(a){t[115](a)}let o={id:"inp_StopLoss",label:t[77]("Commons.Order.StopLoss"),type:"number",errorText:(l=t[68])==null?void 0:l.stopLoss,layout:t[67]};return t[29]!==void 0&&(o.value=t[29]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){var c;const u={};s[2]&64&&(u.errorText=(c=a[68])==null?void 0:c.stopLoss),s[2]&32&&(u.layout=a[67]),!n&&s[0]&536870912&&(n=!0,u.value=a[29],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function ap(t){var f;let e,n,r,i,o,l;function a(d){t[116](d)}let s={disabled:t[62].length<=1,id:"sel_Validity",label:"Gültigkeit",layout:t[67],items:t[62],errorText:(f=t[68])==null?void 0:f.validity};t[37]!==void 0&&(s.selected=t[37]),e=new Un({props:s}),xe.push(()=>Je(e,"selected",a));let u=t[37]==="GTD"&&sp(t),c=t[37]==="GTDT"&&up(t);return{c(){F(e.$$.fragment),r=j(),u&&u.c(),i=j(),c&&c.c(),o=Xe()},m(d,m){$(e,d,m),L(d,r,m),u&&u.m(d,m),L(d,i,m),c&&c.m(d,m),L(d,o,m),l=!0},p(d,m){var p;const h={};m[2]&1&&(h.disabled=d[62].length<=1),m[2]&32&&(h.layout=d[67]),m[2]&1&&(h.items=d[62]),m[2]&64&&(h.errorText=(p=d[68])==null?void 0:p.validity),!n&&m[1]&64&&(n=!0,h.selected=d[37],Ve(()=>n=!1)),e.$set(h),d[37]==="GTD"?u?(u.p(d,m),m[1]&64&&g(u,1)):(u=sp(d),u.c(),g(u,1),u.m(i.parentNode,i)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),d[37]==="GTDT"?c?(c.p(d,m),m[1]&64&&g(c,1)):(c=up(d),c.c(),g(c,1),c.m(o.parentNode,o)):c&&(ne(),b(c,1,1,()=>{c=null}),re())},i(d){l||(g(e.$$.fragment,d),g(u),g(c),l=!0)},o(d){b(e.$$.fragment,d),b(u),b(c),l=!1},d(d){d&&(E(r),E(i),E(o)),R(e,d),u&&u.d(d),c&&c.d(d)}}}function sp(t){let e,n,r;function i(l){t[117](l)}let o={id:"dtp_ValidityDate",label:"Gültigkeit",layout:t[67],placeholder:"TT.MM.JJJJ"};return t[38]!==void 0&&(o.value=t[38]),e=new Ul({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),!n&&a[1]&128&&(n=!0,s.value=l[38],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function up(t){let e,n,r;function i(l){t[118](l)}let o={id:"dtp_ValidityDate",label:"Gültigkeit",layout:t[67],enableTime:!0,placeholder:"TT.MM.JJJJ HH:mm"};return t[38]!==void 0&&(o.value=t[38]),e=new Ul({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),!n&&a[1]&128&&(n=!0,s.value=l[38],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function cp(t){let e,n,r,i;const o=[WP,HP],l=[];function a(s,u){return s[9]||s[11]?0:1}return n=a(t),r=l[n]=o[n](t),{c(){e=W("div"),r.c(),x(e,"class","zlc-gap-y")},m(s,u){L(s,e,u),l[n].m(e,null),i=!0},p(s,u){let c=n;n=a(s),n===c?l[n].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),r=l[n],r?r.p(s,u):(r=l[n]=o[n](s),r.c()),g(r,1),r.m(e,null))},i(s){i||(g(r),i=!0)},o(s){b(r),i=!1},d(s){s&&E(e),l[n].d()}}}function HP(t){let e,n,r,i;return e=new zn({props:{error:t[10]}}),r=new nt({props:{idf:"btn_RequestQuote",text:"Kursanfrage",variant:"default",width:"full"}}),r.$on("click",t[122]),{c(){F(e.$$.fragment),n=j(),F(r.$$.fragment)},m(o,l){$(e,o,l),L(o,n,l),$(r,o,l),i=!0},p(o,l){const a={};l[0]&1024&&(a.error=o[10]),e.$set(a)},i(o){i||(g(e.$$.fragment,o),g(r.$$.fragment,o),i=!0)},o(o){b(e.$$.fragment,o),b(r.$$.fragment,o),i=!1},d(o){o&&E(n),R(e,o),R(r,o)}}}function WP(t){var l;let e,n,r,i;e=new Bg({props:{quote:t[9],sizeUnit:t[2].sizeUnit,loading:t[11]}}),e.$on("refresh",t[119]);let o=t[30]==="quote"&&((l=t[45])==null?void 0:l.allowsQuoteModeLimit)&&t[9]&&fp(t);return{c(){F(e.$$.fragment),n=j(),r=W("div"),o&&o.c(),x(r,"class","zlc-gap-y-form")},m(a,s){$(e,a,s),L(a,n,s),L(a,r,s),o&&o.m(r,null),i=!0},p(a,s){var c;const u={};s[0]&512&&(u.quote=a[9]),s[0]&4&&(u.sizeUnit=a[2].sizeUnit),s[0]&2048&&(u.loading=a[11]),e.$set(u),a[30]==="quote"&&((c=a[45])!=null&&c.allowsQuoteModeLimit)&&a[9]?o?(o.p(a,s),s[0]&1073742336|s[1]&16384&&g(o,1)):(o=fp(a),o.c(),g(o,1),o.m(r,null)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(a){i||(g(e.$$.fragment,a),g(o),i=!0)},o(a){b(e.$$.fragment,a),b(o),i=!1},d(a){a&&(E(n),E(r)),R(e,a),o&&o.d()}}}function fp(t){let e,n,r,i,o;function l(u){t[120](u)}let a={id:"sel_QuoteMode",label:"Kursanfrage",layout:t[67],items:[{id:"",value:"Ihr Preis"},{id:"quoteLimit",value:"Sofortlimit"}]};t[40]!==void 0&&(a.selected=t[40]),e=new Un({props:a}),xe.push(()=>Je(e,"selected",l));let s=t[40]==="quoteLimit"&&dp(t);return{c(){F(e.$$.fragment),r=j(),s&&s.c(),i=Xe()},m(u,c){$(e,u,c),L(u,r,c),s&&s.m(u,c),L(u,i,c),o=!0},p(u,c){const f={};c[2]&32&&(f.layout=u[67]),!n&&c[1]&512&&(n=!0,f.selected=u[40],Ve(()=>n=!1)),e.$set(f),u[40]==="quoteLimit"?s?(s.p(u,c),c[1]&512&&g(s,1)):(s=dp(u),s.c(),g(s,1),s.m(i.parentNode,i)):s&&(ne(),b(s,1,1,()=>{s=null}),re())},i(u){o||(g(e.$$.fragment,u),g(s),o=!0)},o(u){b(e.$$.fragment,u),b(s),o=!1},d(u){u&&(E(r),E(i)),R(e,u),s&&s.d(u)}}}function dp(t){let e,n,r;function i(l){t[121](l)}let o={id:"inp_QuoteLimit",label:"Sofortlimit",type:"number",layout:t[67]};return t[41]!==void 0&&(o.value=t[41]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a[2]&32&&(s.layout=l[67]),!n&&a[1]&1024&&(n=!0,s.value=l[41],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function hp(t){var i;let e,n,r;return n=new vo({props:{showTooltip:t[49],html:(i=t[2].riskClassInfo)==null?void 0:i.legalHint}}),{c(){e=Ie(`Risikohinweis
344
+ `),F(n.$$.fragment)},m(o,l){L(o,e,l),$(n,o,l),r=!0},p(o,l){var s;const a={};l[1]&262144&&(a.showTooltip=o[49]),l[0]&4&&(a.html=(s=o[2].riskClassInfo)==null?void 0:s.legalHint),n.$set(a)},i(o){r||(g(n.$$.fragment,o),r=!0)},o(o){b(n.$$.fragment,o),r=!1},d(o){o&&E(e),R(n,o)}}}function mp(t){let e,n;return e=new or({props:{variant:"info",hideCloseButton:!0,$$slots:{default:[YP]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4|i[5]&16&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function YP(t){let e=t[2].strikingHint+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i[0]&4&&e!==(e=r[2].strikingHint+"")&&Ke(n,e)},d(r){r&&E(n)}}}function gp(t){let e,n;return e=new Ls({props:{costs:t[12]}}),e.$on("click",t[127]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4096&&(o.costs=r[12]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function pp(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function GP(t){let e,n,r,i,o,l,a=t[30]!="quote"&&t[2].costEstimationIsOnlyDetailedTable&&t[56]&&bp(t);const s=[XP,jP,QP],u=[];function c(d,m){return!d[48]&&d[30]!="quote"&&!d[2].costEstimationIsOnlyDetailedTable&&!d[2].costEstimationIsNotAvailable?0:!d[58]&&!d[57]&&d[5].sessionTanActive?1:!d[58]&&!d[57]&&!d[5].sessionTanActive?2:-1}~(n=c(t))&&(r=u[n]=s[n](t));let f=t[4]&&yp(t);return{c(){a&&a.c(),e=j(),r&&r.c(),i=j(),f&&f.c(),o=Xe()},m(d,m){a&&a.m(d,m),L(d,e,m),~n&&u[n].m(d,m),L(d,i,m),f&&f.m(d,m),L(d,o,m),l=!0},p(d,m){d[30]!="quote"&&d[2].costEstimationIsOnlyDetailedTable&&d[56]?a?(a.p(d,m),m[0]&1073741828|m[1]&33554432&&g(a,1)):(a=bp(d),a.c(),g(a,1),a.m(e.parentNode,e)):a&&(ne(),b(a,1,1,()=>{a=null}),re());let h=n;n=c(d),n===h?~n&&u[n].p(d,m):(r&&(ne(),b(u[h],1,1,()=>{u[h]=null}),re()),~n?(r=u[n],r?r.p(d,m):(r=u[n]=s[n](d),r.c()),g(r,1),r.m(i.parentNode,i)):r=null),d[4]?f?(f.p(d,m),m[0]&16&&g(f,1)):(f=yp(d),f.c(),g(f,1),f.m(o.parentNode,o)):f&&(ne(),b(f,1,1,()=>{f=null}),re())},i(d){l||(g(a),g(r),g(f),l=!0)},o(d){b(a),b(r),b(f),l=!1},d(d){d&&(E(e),E(i),E(o)),a&&a.d(d),~n&&u[n].d(d),f&&f.d(d)}}}function KP(t){let e,n;return e=new or({props:{variant:"info",hideCloseButton:!0,title:t[77]("Commons.OrderForm.SessionTanRequiredForThisOperation"),$$slots:{actions:[l5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[5]&16&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function bp(t){let e,n;return e=new Ls({props:{costs:t[56]}}),e.$on("click",t[75]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[1]&33554432&&(o.costs=r[56]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function QP(t){let e,n,r,i,o,l,a,s;function u(h){t[131](h)}let c={id:"sel_AuthMethod",label:"Authentifizierungsmethode",layout:t[67],placeholder:"Wählen Sie eine Authentifizierungsmethode",items:t[60]};t[0]!==void 0&&(c.selected=t[0]),n=new Un({props:c}),xe.push(()=>Je(n,"selected",u)),n.$on("change",t[132]);const f=[t5,e5,ZP],d=[];function m(h,p){var v,w,S;return((v=h[59])==null?void 0:v.flow)=="TAN"?0:((w=h[59])==null?void 0:w.flow)=="CHALLENGE_RESPONSE"?1:((S=h[59])==null?void 0:S.flow)=="DECOUPLED"?2:-1}return~(o=m(t))&&(l=d[o]=f[o](t)),{c(){e=W("div"),F(n.$$.fragment),i=j(),l&&l.c(),a=Xe()},m(h,p){L(h,e,p),$(n,e,null),L(h,i,p),~o&&d[o].m(h,p),L(h,a,p),s=!0},p(h,p){const v={};p[2]&32&&(v.layout=h[67]),p[1]&536870912&&(v.items=h[60]),!r&&p[0]&1&&(r=!0,v.selected=h[0],Ve(()=>r=!1)),n.$set(v);let w=o;o=m(h),o===w?~o&&d[o].p(h,p):(l&&(ne(),b(d[w],1,1,()=>{d[w]=null}),re()),~o?(l=d[o],l?l.p(h,p):(l=d[o]=f[o](h),l.c()),g(l,1),l.m(a.parentNode,a)):l=null)},i(h){s||(g(n.$$.fragment,h),g(l),s=!0)},o(h){b(n.$$.fragment,h),b(l),s=!1},d(h){h&&(E(e),E(i),E(a)),R(n),~o&&d[o].d(h)}}}function jP(t){let e,n;return e=new nt({props:{id:"btn_CreateOrder",text:t[53],variant:"default",expiration:t[69],width:"full"}}),e.$on("click",t[130]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[1]&4194304&&(o.text=r[53]),i[2]&128&&(o.expiration=r[69]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function XP(t){let e,n;return e=new nt({props:{id:"btn_RequestCosts",text:"Weiter",variant:"default",width:"full"}}),e.$on("click",t[129]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function ZP(t){let e,n,r;return n=new nt({props:{id:"btn_CreateOrder",text:t[53],variant:"default",width:"full"}}),n.$on("click",t[137]),{c(){e=W("div"),F(n.$$.fragment)},m(i,o){L(i,e,o),$(n,e,null),r=!0},p(i,o){const l={};o[1]&4194304&&(l.text=i[53]),n.$set(l)},i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function e5(t){let e,n,r,i;const o=[r5,n5],l=[];function a(s,u){return s[6]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function t5(t){let e,n,r,i,o,l,a;function s(c){t[133](c)}let u={id:"inp_Tan",type:"text",name:"challengeResponse",autofocus:!0,enterMaySubmit:!0,label:t[59].tanFieldLabel,layout:t[67]};return t[1]!==void 0&&(u.value=t[1]),n=new Mt({props:u}),xe.push(()=>Je(n,"value",s)),l=new nt({props:{id:"btn_CreateOrder",text:t[53],variant:"default",width:"full"}}),l.$on("click",t[134]),{c(){e=W("div"),F(n.$$.fragment),i=j(),o=W("div"),F(l.$$.fragment)},m(c,f){L(c,e,f),$(n,e,null),L(c,i,f),L(c,o,f),$(l,o,null),a=!0},p(c,f){const d={};f[1]&268435456&&(d.label=c[59].tanFieldLabel),f[2]&32&&(d.layout=c[67]),!r&&f[0]&2&&(r=!0,d.value=c[1],Ve(()=>r=!1)),n.$set(d);const m={};f[1]&4194304&&(m.text=c[53]),l.$set(m)},i(c){a||(g(n.$$.fragment,c),g(l.$$.fragment,c),a=!0)},o(c){b(n.$$.fragment,c),b(l.$$.fragment,c),a=!1},d(c){c&&(E(e),E(i),E(o)),R(n),R(l)}}}function n5(t){var s;let e,n,r,i,o,l,a=t[8]&&vp();return n=new zn({props:{error:t[7]}}),o=new nt({props:{id:"btn_CreateOrder",text:(s=t[59])==null?void 0:s.getChallengeLabel,variant:"default",width:"full"}}),o.$on("click",t[74]),{c(){a&&a.c(),e=j(),F(n.$$.fragment),r=j(),i=W("div"),F(o.$$.fragment)},m(u,c){a&&a.m(u,c),L(u,e,c),$(n,u,c),L(u,r,c),L(u,i,c),$(o,i,null),l=!0},p(u,c){var m;u[8]?a?c[0]&256&&g(a,1):(a=vp(),a.c(),g(a,1),a.m(e.parentNode,e)):a&&(ne(),b(a,1,1,()=>{a=null}),re());const f={};c[0]&128&&(f.error=u[7]),n.$set(f);const d={};c[1]&268435456&&(d.text=(m=u[59])==null?void 0:m.getChallengeLabel),o.$set(d)},i(u){l||(g(a),g(n.$$.fragment,u),g(o.$$.fragment,u),l=!0)},o(u){b(a),b(n.$$.fragment,u),b(o.$$.fragment,u),l=!1},d(u){u&&(E(e),E(r),E(i)),a&&a.d(u),R(n,u),R(o)}}}function r5(t){let e,n,r,i,o,l,a,s;e=new Fi({props:{challenge:t[6]}});function u(f){t[135](f)}let c={type:"text",name:"challengeResponse",autofocus:!0,enterMaySubmit:!0,label:t[59].tanFieldLabel,layout:t[67]};return t[1]!==void 0&&(c.value=t[1]),i=new Mt({props:c}),xe.push(()=>Je(i,"value",u)),a=new go({props:{showAside:!!t[14],$$slots:{default:[i5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=j(),r=W("div"),F(i.$$.fragment),l=j(),F(a.$$.fragment)},m(f,d){$(e,f,d),L(f,n,d),L(f,r,d),$(i,r,null),L(f,l,d),$(a,f,d),s=!0},p(f,d){const m={};d[0]&64&&(m.challenge=f[6]),e.$set(m);const h={};d[1]&268435456&&(h.label=f[59].tanFieldLabel),d[2]&32&&(h.layout=f[67]),!o&&d[0]&2&&(o=!0,h.value=f[1],Ve(()=>o=!1)),i.$set(h);const p={};d[0]&16384&&(p.showAside=!!f[14]),d[0]&16640|d[1]&272629760|d[5]&16&&(p.$$scope={dirty:d,ctx:f}),a.$set(p)},i(f){s||(g(e.$$.fragment,f),g(i.$$.fragment,f),g(a.$$.fragment,f),s=!0)},o(f){b(e.$$.fragment,f),b(i.$$.fragment,f),b(a.$$.fragment,f),s=!1},d(f){f&&(E(n),E(r),E(l)),R(e,f),R(i),R(a,f)}}}function vp(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function _p(t){var r;let e,n;return e=new nt({props:{slot:"aside",id:"btn_RetryChallenge",height:"full",width:"full",variant:"outlined",icon:"RotateCw",text:(r=t[59])==null?void 0:r.getChallengeLabel,busy:t[8]}}),e.$on("click",t[74]),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o[1]&268435456&&(l.text=(a=i[59])==null?void 0:a.getChallengeLabel),o[0]&256&&(l.busy=i[8]),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function i5(t){let e,n,r,i=t[14]&&_p(t);return n=new nt({props:{id:"btn_CreateOrder",text:t[53],variant:"default",width:"full",height:"full"}}),n.$on("click",t[136]),{c(){i&&i.c(),e=j(),F(n.$$.fragment)},m(o,l){i&&i.m(o,l),L(o,e,l),$(n,o,l),r=!0},p(o,l){o[14]?i?(i.p(o,l),l[0]&16384&&g(i,1)):(i=_p(o),i.c(),g(i,1),i.m(e.parentNode,e)):i&&(ne(),b(i,1,1,()=>{i=null}),re());const a={};l[1]&4194304&&(a.text=o[53]),n.$set(a)},i(o){r||(g(i),g(n.$$.fragment,o),r=!0)},o(o){b(i),b(n.$$.fragment,o),r=!1},d(o){o&&E(e),i&&i.d(o),R(n,o)}}}function yp(t){let e,n;return e=new fl({props:{status:t[4]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&16&&(o.status=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function o5(t){let e;return{c(){e=Ie("Jetzt aktivieren")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function l5(t){let e,n;return e=new nt({props:{id:"btn_activate_session_tan",slot:"actions",variant:"default",$$slots:{default:[o5]},$$scope:{ctx:t}}}),e.$on("click",t[128]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[5]&16&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function a5(t){var c;let e,n,r,i,o=((c=t[2].riskClassInfo)==null?void 0:c.msg)+"",l,a,s,u;return s=new nt({props:{id:"btn_proceed",size:"sm",slot:"actions",text:"Weiter",variant:"default",autofocus:!0}}),s.$on("click",t[72]),{c(){e=W("div"),n=W("div"),n.textContent="Hinweis",r=j(),i=W("div"),l=j(),a=W("div"),F(s.$$.fragment),x(n,"class","risk-info-headline svelte-fma00v"),x(i,"class","risk-info-text svelte-fma00v"),x(a,"class","risk-info-button-bar svelte-fma00v"),x(e,"class","risk-info-notification svelte-fma00v")},m(f,d){L(f,e,d),V(e,n),V(e,r),V(e,i),i.innerHTML=o,V(e,l),V(e,a),$(s,a,null),u=!0},p(f,d){var m;(!u||d[0]&4)&&o!==(o=((m=f[2].riskClassInfo)==null?void 0:m.msg)+"")&&(i.innerHTML=o)},i(f){u||(g(s.$$.fragment,f),u=!0)},o(f){b(s.$$.fragment,f),u=!1},d(f){f&&E(e),R(s)}}}function s5(t){let e,n,r,i,o;const l=[UP,xP],a=[];function s(u,c){return u[54]?0:1}return n=s(t),r=a[n]=l[n](t),{c(){e=W("div"),r.c(),x(e,"class",i=vn(`zlc-gap-y order-form ${t[67]}`)+" svelte-fma00v")},m(u,c){L(u,e,c),a[n].m(e,null),o=!0},p(u,c){let f=n;n=s(u),n===f?a[n].p(u,c):(ne(),b(a[f],1,1,()=>{a[f]=null}),re(),r=a[n],r?r.p(u,c):(r=a[n]=l[n](u),r.c()),g(r,1),r.m(e,null)),(!o||c[2]&32&&i!==(i=vn(`zlc-gap-y order-form ${u[67]}`)+" svelte-fma00v"))&&x(e,"class",i)},i(u){o||(g(r),o=!0)},o(u){b(r),o=!1},d(u){u&&E(e),a[n].d()}}}function u5(t){let e,n,r,i;const o=[FP,RP],l=[];function a(s,u){return s[3]?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}const kp="_sessionTan_";function c5(t){t=t||[];for(const e of t)if((e==null?void 0:e.name)=="BrokerizeError"&&e.code=="VALIDATION_FAILED")return e.validationDetails;return null}function f5(t,e){var n;return(n=t.sizeMaxDecimalsBySizeUnit)==null?void 0:n[e]}function d5(t){const e=["body.order.","requestBody.order."],n={};for(const r in t||{}){const i=t[r];for(const o of e)r.startsWith(o)&&(n[r.substring(o.length)]=i.message)}return n}function h5(t,e){return t!=null&&t.images?(e==null?void 0:e.logoStyle)=="light"?t.images.light:t.images.dark:null}function m5(t){if(!(t!=null&&t.authMethods))return[];const e=t.authMethods.filter(n=>n.flow!="DECOUPLED").map(n=>({id:n.id,value:n.label}));return t.sessionTanSupported&&!t.sessionTanActive&&e.push({id:kp,value:"Session-TAN"}),e}function g5(t,e,n){return n=="open"&&e=="sell"?"Short-Position eröffnen":n=="close"&&e=="buy"?"Short-Position schließen":e=="buy"&&t?"Zustimmen und kostenpflichtig kaufen":e=="sell"&&t?"Zustimmen und kostenpflichtig verkaufen":e=="buy"&&!t?"Kostenpflichtig kaufen":e=="sell"&&!t?"Kostenpflichtig verkaufen":null}function p5(t){return t=="XXX"?"Stück":t=="GRAMS"?"Gramm":t}function b5(t){return!!(t!=null&&t.brokerExchangeId)}function wp(t,e,n,r,i){if(i=="close"||!(e!=null&&e.takeProfitStopLoss))return!1;const o=t=="tp"?e.takeProfitStopLoss.takeProfit:e.takeProfitStopLoss.stopLoss;return o.orderModels.includes(n)&&o.directions.includes(r)}function v5(t,e,n){let r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S,y,z,O,N,U,A,P,Y,B,J,ee,X,ce,he,de,se,ue,fe,Oe;const me=tn("themeConfig"),we=["quote","market","limit","stopMarket","stopLimit","trailingStopMarket","trailingStopLimit","ocoStopMarket","ocoStopLimit"];let{cashAccounts:Fe=[]}=e,{preparedTrade:pe}=e,{orderIntentAvailability:Se}=e,{order:De=null}=e,{portfolioId:Ze}=e,{portfoliosResponse:Qe}=e,{loading:dt=!1}=e,{authMethod:Ce=null}=e,{challengeResponse:St=null}=e,{decoupledOperationStatus:it=null}=e,{authInfo:Lt}=e,{challenge:Te=null}=e,{challengeError:ot=null}=e,{challengeLoading:ft=null}=e,{quote:It=null}=e,{quoteError:wt=null}=e,{quoteLoading:Ct=!1}=e,{quoteExpiration:xt=null}=e,{costs:He=null}=e,{costsError:Ut=null}=e,{orderError:qt=null}=e,{costsLoading:Et=!1}=e,{broker:K=null}=e,{portfolioName:D=null}=e,{buyingPower:M=null}=e,{availableSize:Q=null}=e,{hasConfirmedRiskInfo:le=!1}=e,{linkPortfolio:Me=!1}=e,{orderWip:Pe=Or(null)}=e,{quotesMeta:ct=null}=e,{quoteAmount:at=null}=e,{quoteEstimatedOrderValue:et=null}=e,{lockOrderDirection:Ot=!1}=e,{hideOrderDirection:_t=!1}=e;function Gt(){We("acceptRiskInfo")}function Vt(oe,Wt){return oe?typeof oe=="string"?oe:yP(oe,Wt):null}let Jt=null;function $t(oe){const Wt={portfolioId:Ze,size:oe.size,limit:oe.orderModel=="limit"||oe.orderModel=="ocoStopLimit"||oe.orderModel=="ocoStopMarket"?oe.limit:void 0,stop:oe.orderModel=="stopMarket"||oe.orderModel=="stopLimit"||oe.orderModel=="ocoStopMarket"||oe.orderModel=="ocoStopLimit"||oe.orderModel=="trailingStopMarket"||oe.orderModel=="trailingStopLimit"?oe.stop:void 0,stopLimit:oe.orderModel=="stopLimit"||oe.orderModel=="ocoStopLimit"?oe.stopLimit:void 0,isin:pe.security.isin||"",brokerSecurityId:pe.brokerSecurityId,orderModel:oe.orderModel,brokerExchangeId:oe.brokerExchangeId,direction:oe.direction,intent:oe.intent,cashAccountId:oe.cashAccountId||void 0,trailingDistance:oe.orderModel=="trailingStopLimit"||oe.orderModel=="trailingStopMarket"?oe.trailingDistance:void 0,trailingLimitTolerance:oe.orderModel=="trailingStopLimit"?oe.trailingLimitTolerance:void 0,validity:v!=null&&v.length?{type:oe.validityType,date:oe.validityDate||void 0}:void 0,sellPositionId:oe.direction=="sell"&&oe.sellPositionId||void 0,takeProfit:oe.takeProfit||void 0,stopLoss:oe.stopLoss||void 0,sizeUnit:oe.sizeUnit};R3(Wt,Jt)||(Pe.set(Wt),We("orderchange")),Jt=Wt}function un(oe,Wt,In){return oe?oe=="XXX"?In!=null?"Stückzahl (verfügbar: "+bt.formatAmount({value:In,currency:"XXX"})+")":"Stückzahl":oe=="GRAMS"?"Menge in Gramm":Wt=="crypto"?In?"Betrag in "+oe+" (verfügbar: "+bt.formatAmount({value:In,currency:"XXX"})+")":"Betrag in "+oe:"Nominalbetrag in "+oe:""}function rn(oe){return we.filter(Wt=>oe.includes(Wt))}function H(oe,Wt,In){return rn(oe||[]).map(Sr=>({id:Sr,value:Ge.orderModel(Sr,Wt,In)}))}function G(){n(31,yn="")}function ie(){We("navigate",{portfolioId:Ze,type:"portfolio"})}function ge(oe){return pe.exchanges.find(Wt=>Wt.id==oe)}function Re(){We("challenge",{authMethod:Ce})}function Be(){We("costdetails")}const bt=pr(tn),{labels:Ge,__:vt}=bt,We=Bt();let st;me.subscribe(oe=>{n(90,st=oe)});let Ht=(Ph(De)||{order:{}}).order,nn=Ht.size,_e=Ht.limit,Ue=Ht.stop,Yn=Ht.stopLimit,An=Ht.takeProfit,Tn=Ht.stopLoss,Xt=Ht.orderModel,yn=Ht.brokerExchangeId,dn=Ht.intent||"open",$n=null,hn=Ht.direction,Rn=Ht.trailingLimitTolerance,ur=Ht.trailingDistance||{mode:"abs",value:null},Nn=Ht.validity?Ht.validity.type:"AUTO",cr=Nn=="GTD"||Nn=="GTDT"?Ht.validity.date:null,Xr=Ht.sellPositionId||null,Zr="",Lr,vi=null;function Eo(oe,Wt,In){var Nr;if(!Qe)return[];const wr=[],Sr=Wt.portfolios.find(nr=>nr.id===oe);if((Nr=In==null?void 0:In.cashAccountIds)!=null&&Nr.length)In.cashAccountIds.filter(nr=>{if(Sr.cashAccountIds.includes(nr)){const Pt=Wt.cashAccounts.find(jl=>jl.id==nr&&jl.currency===In.currencyIso);wr.push({id:Pt.id,value:Pt.displayName})}});else for(const nr of Fe)wr.push({id:nr.id,value:nr.displayName});return wr}function Lo(oe){if(oe.length){const Wt=d&&d.defaultValidityByOrderModel?d.defaultValidityByOrderModel[Xt]:null;Wt?(n(37,Nn=Wt.type),n(38,cr=Wt.date)):n(37,Nn=oe[0])}}function No(oe){if(oe=="GTDT"&&!cr){const Wt=new Date;Wt.setHours(23),Wt.setMinutes(59),Wt.setSeconds(59),n(38,cr=Wt)}}let _r=!1,er=pe.sizeUnit;function Br(){n(29,Tn=null)}function Po(){n(28,An=null)}function $o(oe){oe!=null&&oe.length&&(oe.includes(er)||n(42,er=oe[0]))}function Ro(oe,Wt,In,wr){return oe?oe.sizeUnitConstraints?qu(oe,In,wr,Wt):oe.sizeUnitsByCashAccountId&&!Wt?[]:oe.sizeUnitsByCashAccountId?oe.sizeUnitsByCashAccountId[Wt].sort((Sr,Nr)=>Sr.localeCompare(Nr)):[oe.sizeUnit]:[]}function ye(oe,Wt){return Se||n(80,Se={buy:["open"],sell:["close"]}),Se[oe]}function Rt(oe){return`Für die ausgewählte Währung lassen sich bis zu ${oe} Dezimalstellen angeben`}const Dt=()=>We("showDetailedInfo");function mn(oe){hn=oe,n(34,hn)}function Zt(oe){$n=oe,n(33,$n),n(47,p),n(81,Fe),n(83,Ze),n(84,Qe),n(45,d),n(2,pe),n(31,yn)}function On(oe){yn=oe,n(31,yn),n(2,pe)}function tr(oe){dn=oe,n(32,dn),n(92,fe),n(34,hn),n(80,Se)}function fr(oe){er=oe,n(42,er)}function qn(oe){nn=oe,n(24,nn)}function _i(oe){nn=oe,n(24,nn)}function qs(oe){Xt=oe,n(30,Xt),n(96,m),n(45,d),n(34,hn),n(2,pe),n(31,yn)}function Vs(oe){Xr=oe,n(39,Xr)}function Js(oe){_e=oe,n(25,_e)}function Fo(oe){Ue=oe,n(26,Ue)}function yi(oe){ur=oe,n(36,ur)}function Hs(oe){Rn=oe,n(35,Rn)}function Ws(oe){Yn=oe,n(27,Yn)}function Ys(oe){An=oe,n(28,An)}function Gs(oe){Tn=oe,n(29,Tn)}function Ks(oe){Nn=oe,n(37,Nn)}function Qs(oe){cr=oe,n(38,cr)}function js(oe){cr=oe,n(38,cr)}const xo=()=>We("requestquote");function ki(oe){Zr=oe,n(40,Zr)}function Xs(oe){Lr=oe,n(41,Lr)}const Zs=()=>We("requestquote"),eu=()=>n(49,_r=!0),tu=()=>n(49,_r=!1),nu=()=>n(49,_r=!0),Wl=()=>n(49,_r=!1),wi=()=>We("costdetails",He),Yl=()=>We("sessiontan"),Gl=()=>We("requestcosts"),Kl=()=>We("create");function ru(oe){Ce=oe,n(0,Ce)}const iu=()=>{var oe;Ce==kp&&(We("sessiontan"),n(0,Ce=(oe=y==null?void 0:y[0])==null?void 0:oe.id))};function qr(oe){St=oe,n(1,St)}const ou=()=>We("create");function Ql(oe){St=oe,n(1,St)}const Si=()=>We("create"),lu=()=>We("create");return t.$$set=oe=>{"cashAccounts"in oe&&n(81,Fe=oe.cashAccounts),"preparedTrade"in oe&&n(2,pe=oe.preparedTrade),"orderIntentAvailability"in oe&&n(80,Se=oe.orderIntentAvailability),"order"in oe&&n(82,De=oe.order),"portfolioId"in oe&&n(83,Ze=oe.portfolioId),"portfoliosResponse"in oe&&n(84,Qe=oe.portfoliosResponse),"loading"in oe&&n(3,dt=oe.loading),"authMethod"in oe&&n(0,Ce=oe.authMethod),"challengeResponse"in oe&&n(1,St=oe.challengeResponse),"decoupledOperationStatus"in oe&&n(4,it=oe.decoupledOperationStatus),"authInfo"in oe&&n(5,Lt=oe.authInfo),"challenge"in oe&&n(6,Te=oe.challenge),"challengeError"in oe&&n(7,ot=oe.challengeError),"challengeLoading"in oe&&n(8,ft=oe.challengeLoading),"quote"in oe&&n(9,It=oe.quote),"quoteError"in oe&&n(10,wt=oe.quoteError),"quoteLoading"in oe&&n(11,Ct=oe.quoteLoading),"quoteExpiration"in oe&&n(85,xt=oe.quoteExpiration),"costs"in oe&&n(12,He=oe.costs),"costsError"in oe&&n(13,Ut=oe.costsError),"orderError"in oe&&n(14,qt=oe.orderError),"costsLoading"in oe&&n(15,Et=oe.costsLoading),"broker"in oe&&n(86,K=oe.broker),"portfolioName"in oe&&n(16,D=oe.portfolioName),"buyingPower"in oe&&n(17,M=oe.buyingPower),"availableSize"in oe&&n(87,Q=oe.availableSize),"hasConfirmedRiskInfo"in oe&&n(88,le=oe.hasConfirmedRiskInfo),"linkPortfolio"in oe&&n(18,Me=oe.linkPortfolio),"orderWip"in oe&&n(89,Pe=oe.orderWip),"quotesMeta"in oe&&n(19,ct=oe.quotesMeta),"quoteAmount"in oe&&n(20,at=oe.quoteAmount),"quoteEstimatedOrderValue"in oe&&n(21,et=oe.quoteEstimatedOrderValue),"lockOrderDirection"in oe&&n(22,Ot=oe.lockOrderDirection),"hideOrderDirection"in oe&&n(23,_t=oe.hideOrderDirection)},t.$$.update=()=>{var oe,Wt,In,wr,Sr,Nr,nr;if(t.$$.dirty[0]&1048576&&n(71,r=at!=null&&at.timestamp?bt.formatQuoteTime(new Date(at.timestamp)):null),t.$$.dirty[0]&4|t.$$.dirty[1]&2048&&n(70,i=f5(pe,er)),t.$$.dirty[2]&8388608&&n(69,o=xt?{startedTimestamp:(oe=xt==null?void 0:xt.started)==null?void 0:oe.getTime(),expiresTimestamp:(Wt=xt==null?void 0:xt.expires)==null?void 0:Wt.getTime()}:null),t.$$.dirty[0]&25600&&n(68,l=d5(c5([qt,wt,Ut]))),t.$$.dirty[2]&268435456&&n(67,a=st==null?void 0:st.layout),t.$$.dirty[2]&285212672&&n(66,s=st?h5(K,st):null),t.$$.dirty[0]&4&&n(65,u=((pe==null?void 0:pe.sellPositions)||[]).map(Pt=>({id:Pt.id,value:Pt.label}))),t.$$.dirty[0]&4|t.$$.dirty[1]&1&&((In=pe==null?void 0:pe.exchanges)!=null&&In.length&&!yn||!ge(yn))&&!(pe!=null&&pe.noExchangeDefault)&&n(31,yn=pe.exchanges[0].id),t.$$.dirty[0]&4|t.$$.dirty[1]&1&&n(45,d=pe?ge(yn):null),t.$$.dirty[1]&16392&&n(96,m=d?hn=="buy"?d.orderModelsBuy:d.orderModelsSell:[]),t.$$.dirty[0]&1073741824|t.$$.dirty[3]&8&&m.length&&!m.includes(Xt)&&n(30,Xt=m[0]),t.$$.dirty[0]&1073741856&&n(64,c=(Lt==null?void 0:Lt.allOperationsRequireSessionTan)||Xt=="quote"),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&17920&&n(98,f=d!=null&&d.allowsQuoteModeLimit&&Xt=="quote"?{mode:Zr||"quote",quoteLimit:Lr}:null),t.$$.dirty[2]&536870912|t.$$.dirty[3]&32){const Pt=JSON.stringify(f);Pt!=vi&&(n(91,vi=Pt),We("quotelimitchange",JSON.parse(Pt)))}t.$$.dirty[1]&8|t.$$.dirty[2]&262144&&n(92,fe=ye(hn)),t.$$.dirty[1]&2|t.$$.dirty[2]&1073741824&&(console.log("available order intents: ",{availableOrderIntents:fe,orderWip_intent:dn}),dn&&(fe==null?void 0:fe.length)>0&&!fe.includes(dn)&&n(32,dn=fe[0])),t.$$.dirty[1]&10|t.$$.dirty[3]&8&&n(63,h=H(m,hn,dn)),t.$$.dirty[1]&16384|t.$$.dirty[2]&6291456&&n(47,p=Eo(Ze,Qe,d)),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&16384&&n(93,v=(Xt&&d?(d.validityTypesByOrderModel||{})[Xt]:null)||[]),t.$$.dirty[3]&1&&n(62,w=v&&v.map?v.map(Pt=>({id:Pt,value:Ge.validityType[Pt]})):[]),t.$$.dirty[0]&4&&n(61,S=pe.exchanges.map(Pt=>({id:Pt.id,value:Pt.label}))),t.$$.dirty[0]&32&&n(60,y=m5(Lt)),t.$$.dirty[0]&33&&n(59,z=((Lt==null?void 0:Lt.authMethods)||[]).find(Pt=>Pt.id==Ce)),t.$$.dirty[0]&36864&&n(48,O=!!(He||Et)),t.$$.dirty[0]&1073745924|t.$$.dirty[1]&131072&&n(58,N=!(pe!=null&&pe.costEstimationIsNotAvailable)&&(!He&&(pe==null?void 0:pe.costEstimationMustBeShown)||Xt=="quote"&&!O)),t.$$.dirty[0]&1073742336&&n(57,U=Xt=="quote"&&!It),t.$$.dirty[0]&4|t.$$.dirty[2]&1048576&&n(97,A=!!(pe!=null&&pe.noExchangeDefault)&&!b5(De==null?void 0:De.order)),t.$$.dirty[3]&16&&A&&G(),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&16394&&n(44,P=wp("tp",d,Xt,hn,dn)),t.$$.dirty[0]&1073741824|t.$$.dirty[1]&16394&&n(43,Y=wp("sl",d,Xt,hn,dn)),t.$$.dirty[1]&65540|t.$$.dirty[2]&524288&&p!=null&&p.length&&!Fe.find(Pt=>Pt.id==$n)&&n(33,$n=p[0].id),t.$$.dirty[3]&1&&Lo(v),t.$$.dirty[1]&64&&No(Nn),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&1&&n(56,B=pe!=null&&pe.costEstimationIsOnlyDetailedTable&&Xt&&yn?{costDetailsLink:"--dummy--"}:null),t.$$.dirty[1]&16384|t.$$.dirty[3]&8&&n(55,J=(m==null?void 0:m.length)&&!(d!=null&&d.hideOrderModel)),t.$$.dirty[1]&10&&n(95,ee=dn==null&&hn=="buy"||dn=="open"),t.$$.dirty[0]&4&&n(94,X=!!((wr=pe==null?void 0:pe.riskClassInfo)!=null&&wr.msg)),t.$$.dirty[2]&67108864|t.$$.dirty[3]&6&&n(54,ce=ee&&X&&!le),t.$$.dirty[0]&4096|t.$$.dirty[1]&10&&n(53,he=g5(!!(He!=null&&He.costAcceptancePrompt),hn,dn)),t.$$.dirty[0]&1073741828|t.$$.dirty[1]&12&&n(46,de=Ro(pe,$n,Xt,hn)),t.$$.dirty[1]&32768&&n(52,se=(de||[]).map(Pt=>({id:Pt,value:p5(Pt)}))),t.$$.dirty[1]&32768&&$o(de),t.$$.dirty[0]&4|t.$$.dirty[1]&2048|t.$$.dirty[2]&33554432&&n(51,ue=un(er,(Sr=pe.security)==null?void 0:Sr.sizeKind,Q)),t.$$.dirty[0]&268435456|t.$$.dirty[1]&16384&&(Nr=d==null?void 0:d.takeProfitStopLoss)!=null&&Nr.exclusive&&An!=null&&Br(),t.$$.dirty[0]&536870912|t.$$.dirty[1]&16384&&(nr=d==null?void 0:d.takeProfitStopLoss)!=null&&nr.exclusive&&Tn!=null&&Po(),t.$$.dirty[0]&2130706432|t.$$.dirty[1]&14847|t.$$.dirty[2]&1073741824|t.$$.dirty[3]&1&&$t({sizeUnit:er,orderModel:Xt,brokerExchangeId:yn,cashAccountId:$n,size:nn,limit:_e,stop:Ue,stopLimit:Yn,direction:hn,intent:(fe==null?void 0:fe.length)>0?dn:void 0,trailingDistance:ur,trailingLimitTolerance:Rn,validityType:v!=null&&v.length?Nn:void 0,validityDate:Vt(cr,Nn==="GTDT"?!0:void 0),sellPositionId:Xr,takeProfit:P?An:void 0,stopLoss:Y?Tn:void 0}),t.$$.dirty[2]&1073741824&&n(50,Oe=(fe||[]).map(Pt=>({id:Pt,value:Pt})))},[Ce,St,pe,dt,it,Lt,Te,ot,ft,It,wt,Ct,He,Ut,qt,Et,D,M,Me,ct,at,et,Ot,_t,nn,_e,Ue,Yn,An,Tn,Xt,yn,dn,$n,hn,Rn,ur,Nn,cr,Xr,Zr,Lr,er,Y,P,d,de,p,O,_r,Oe,ue,se,he,ce,J,B,U,N,z,y,S,w,h,c,u,s,a,l,o,i,r,Gt,ie,Re,Be,bt,vt,We,Rt,Se,Fe,De,Ze,Qe,xt,K,Q,le,Pe,st,vi,fe,v,X,ee,m,A,f,Dt,mn,Zt,On,tr,fr,qn,_i,qs,Vs,Js,Fo,yi,Hs,Ws,Ys,Gs,Ks,Qs,js,xo,ki,Xs,Zs,eu,tu,nu,Wl,wi,Yl,Gl,Kl,ru,iu,qr,ou,Ql,Si,lu]}class Sp extends Ne{constructor(e){super(),Ee(this,e,v5,u5,Ae,{cashAccounts:81,preparedTrade:2,orderIntentAvailability:80,order:82,portfolioId:83,portfoliosResponse:84,loading:3,authMethod:0,challengeResponse:1,decoupledOperationStatus:4,authInfo:5,challenge:6,challengeError:7,challengeLoading:8,quote:9,quoteError:10,quoteLoading:11,quoteExpiration:85,costs:12,costsError:13,orderError:14,costsLoading:15,broker:86,portfolioName:16,buyingPower:17,availableSize:87,hasConfirmedRiskInfo:88,linkPortfolio:18,orderWip:89,quotesMeta:19,quoteAmount:20,quoteEstimatedOrderValue:21,lockOrderDirection:22,hideOrderDirection:23},$P,[-1,-1,-1,-1,-1,-1])}get cashAccounts(){return this.$$.ctx[81]}set cashAccounts(e){this.$$set({cashAccounts:e}),C()}get preparedTrade(){return this.$$.ctx[2]}set preparedTrade(e){this.$$set({preparedTrade:e}),C()}get orderIntentAvailability(){return this.$$.ctx[80]}set orderIntentAvailability(e){this.$$set({orderIntentAvailability:e}),C()}get order(){return this.$$.ctx[82]}set order(e){this.$$set({order:e}),C()}get portfolioId(){return this.$$.ctx[83]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get portfoliosResponse(){return this.$$.ctx[84]}set portfoliosResponse(e){this.$$set({portfoliosResponse:e}),C()}get loading(){return this.$$.ctx[3]}set loading(e){this.$$set({loading:e}),C()}get authMethod(){return this.$$.ctx[0]}set authMethod(e){this.$$set({authMethod:e}),C()}get challengeResponse(){return this.$$.ctx[1]}set challengeResponse(e){this.$$set({challengeResponse:e}),C()}get decoupledOperationStatus(){return this.$$.ctx[4]}set decoupledOperationStatus(e){this.$$set({decoupledOperationStatus:e}),C()}get authInfo(){return this.$$.ctx[5]}set authInfo(e){this.$$set({authInfo:e}),C()}get challenge(){return this.$$.ctx[6]}set challenge(e){this.$$set({challenge:e}),C()}get challengeError(){return this.$$.ctx[7]}set challengeError(e){this.$$set({challengeError:e}),C()}get challengeLoading(){return this.$$.ctx[8]}set challengeLoading(e){this.$$set({challengeLoading:e}),C()}get quote(){return this.$$.ctx[9]}set quote(e){this.$$set({quote:e}),C()}get quoteError(){return this.$$.ctx[10]}set quoteError(e){this.$$set({quoteError:e}),C()}get quoteLoading(){return this.$$.ctx[11]}set quoteLoading(e){this.$$set({quoteLoading:e}),C()}get quoteExpiration(){return this.$$.ctx[85]}set quoteExpiration(e){this.$$set({quoteExpiration:e}),C()}get costs(){return this.$$.ctx[12]}set costs(e){this.$$set({costs:e}),C()}get costsError(){return this.$$.ctx[13]}set costsError(e){this.$$set({costsError:e}),C()}get orderError(){return this.$$.ctx[14]}set orderError(e){this.$$set({orderError:e}),C()}get costsLoading(){return this.$$.ctx[15]}set costsLoading(e){this.$$set({costsLoading:e}),C()}get broker(){return this.$$.ctx[86]}set broker(e){this.$$set({broker:e}),C()}get portfolioName(){return this.$$.ctx[16]}set portfolioName(e){this.$$set({portfolioName:e}),C()}get buyingPower(){return this.$$.ctx[17]}set buyingPower(e){this.$$set({buyingPower:e}),C()}get availableSize(){return this.$$.ctx[87]}set availableSize(e){this.$$set({availableSize:e}),C()}get hasConfirmedRiskInfo(){return this.$$.ctx[88]}set hasConfirmedRiskInfo(e){this.$$set({hasConfirmedRiskInfo:e}),C()}get linkPortfolio(){return this.$$.ctx[18]}set linkPortfolio(e){this.$$set({linkPortfolio:e}),C()}get orderWip(){return this.$$.ctx[89]}set orderWip(e){this.$$set({orderWip:e}),C()}get quotesMeta(){return this.$$.ctx[19]}set quotesMeta(e){this.$$set({quotesMeta:e}),C()}get quoteAmount(){return this.$$.ctx[20]}set quoteAmount(e){this.$$set({quoteAmount:e}),C()}get quoteEstimatedOrderValue(){return this.$$.ctx[21]}set quoteEstimatedOrderValue(e){this.$$set({quoteEstimatedOrderValue:e}),C()}get lockOrderDirection(){return this.$$.ctx[22]}set lockOrderDirection(e){this.$$set({lockOrderDirection:e}),C()}get hideOrderDirection(){return this.$$.ctx[23]}set hideOrderDirection(e){this.$$set({hideOrderDirection:e}),C()}}Le(Sp,{cashAccounts:{},preparedTrade:{},orderIntentAvailability:{},order:{},portfolioId:{},portfoliosResponse:{},loading:{type:"Boolean"},authMethod:{},challengeResponse:{},decoupledOperationStatus:{},authInfo:{},challenge:{},challengeError:{},challengeLoading:{},quote:{},quoteError:{},quoteLoading:{type:"Boolean"},quoteExpiration:{},costs:{},costsError:{},orderError:{},costsLoading:{type:"Boolean"},broker:{},portfolioName:{},buyingPower:{},availableSize:{},hasConfirmedRiskInfo:{type:"Boolean"},linkPortfolio:{type:"Boolean"},orderWip:{},quotesMeta:{},quoteAmount:{},quoteEstimatedOrderValue:{},lockOrderDirection:{type:"Boolean"},hideOrderDirection:{type:"Boolean"}},[],[],!0);function _5(t,e){return new ni(n=>{const r=t.createChildContext();return(async()=>{const o=await r.getPortfolioQuotes(e);n.next(o)})().catch(o=>n.error(o)),{unsubscribe(){r.destroy()}}})}function y5(t,e){const n=e.security.selector;return t.cryptoPair===n.cryptoPair||t.cryptoCode===n.cryptoCode||t.isin===t.isin||t.usTicker===t.usTicker}function k5(t,e,n,r){return new ni(i=>{const o=t.createChildContext(),l=async()=>{const c=(await o.getPortfolioPositions(e)).positions.filter(d=>y5(n,d)&&d.availableSize!=0&&d.sizeUnit===r),f=J3(c.map(d=>d.availableSize));i.next(f)};l().catch(u=>i.error(u));const s=t.createWebSocketClient().subscribeInvalidate({portfolioId:e,entity:"positions"},u=>{u?i.error(u):l().catch(c=>i.error(c))});return{unsubscribe(){s.unsubscribe(),o.destroy()}}})}function w5(t,e){return new ni(n=>{const r=t.createChildContext();let i=null;async function o(){i==null||i.destroy(),i=r.createChildContext();const a=(await i.getSessions()).sessions.find(s=>s.id==e);n.next(a)}return r.createWebSocketClient().subscribeInvalidate({entity:"sessions"},l=>{l?n.error(l):o()}),o(),{unsubscribe(){r.destroy()}}})}function S5(t){return new ni(e=>{const n=t.createChildContext();console.log("createSessionsAndPortfoliosObservable");let r=null;async function i(){r==null||r.destroy(),r=n.createChildContext();const o=await r.getPortfolios(),l=await r.getSessions();e.next({sessions:l.sessions,portfolios:o.portfolios})}return n.createWebSocketClient().subscribeInvalidate({entity:"sessions"},o=>{o?e.error(o):i()}),i(),{unsubscribe(){n.destroy()}}})}const T5="-";function z5(t,e,n,r,i){var s,u,c;const o="vsl. Ordervolumen";if(!n)return null;if((e==null?void 0:e.orderModel)=="quote"&&(i!=null&&i.totalAmount))return{amount:i.totalAmount,label:o};let l=C5(e,i,r);if(l==null||!e.size)return null;if((s=t.security.selector)!=null&&s.cryptoPair){const f=(u=t.security.selector)==null?void 0:u.cryptoPair.split(T5);if(f.length<1||f.length>2)return null;if((e==null?void 0:e.orderModel)==="market"||e.orderModel==="limit"||e.orderModel=="stopMarket"||e.orderModel=="stopLimit"||e.orderModel=="trailingStopMarket"||e.orderModel=="trailingStopLimit"){if(e.sizeUnit===f[0])return{amount:{currency:f[1],value:Tp(e.size*l)},label:o};if(e.sizeUnit===f[1])return{amount:{currency:f[0],value:Tp(e.size/l)},label:o}}}const a=(c=t.exchanges.find(f=>f.id==(e==null?void 0:e.brokerExchangeId)))==null?void 0:c.currencyIso;return e.sizeUnit!="XXX"&&a=="PRC"?l/=100:e.sizeUnit!="XXX"&&a=="PRM"&&(l/=1e3),{amount:{value:e.size*l,minDecimals:2,maxDecimals:2,currency:n},label:o}}function C5(t,e,n){var r,i,o;return t?t.orderModel=="quote"&&e?(r=e.quotation)==null?void 0:r.value:t.orderModel=="limit"?t.limit:t.orderModel=="stopMarket"||t.orderModel=="stopLimit"||t.orderModel=="trailingStopMarket"||t.orderModel=="trailingStopLimit"?t.stop:t.orderModel=="ocoStopLimit"||t.orderModel=="ocoStopMarket"?null:n!=null&&n.ask&&t.direction=="buy"?(i=n.ask)==null?void 0:i.quote:n!=null&&n.bid&&t.direction=="sell"?(o=n.bid)==null?void 0:o.quote:null:null}function Tp(t){const e=t.toString(),n=e.indexOf(".");return n!==-1&&e.slice(n+1).length>4?parseFloat(t.toFixed(4)):t}class zp extends Error{constructor(){super("aborted"),this.name="AbortError"}}function O5(t,e){return e?e.aborted?Promise.reject(new zp):new Promise((n,r)=>{let i=!1;function o(){e.removeEventListener("abort",l)}function l(){i=!0,o(),r(new zp)}e.addEventListener("abort",l),t.then(a=>{i||(o(),n(a))},a=>{i||(o(),r(a))})}):t}function I5(t){return t?function({securityQuotesToken:e}){return{async loadMeta(){if(!e)return null;const n=await t.getSecurityQuotesMeta(e);return{decimals:n.decimals,currency:n.currency,quoteSourceName:n.quoteSourceName}},subscribe(n){const r=t.subscribeQuotes(e,(i,o)=>{function l(s){return(s==null?void 0:s.value)!=null?{date:s.timestamp?new Date(s.timestamp):void 0,quote:s.value}:null}const a=i?void 0:{ask:l(o.quotes.ask),bid:l(o.quotes.bid)};n(i,a)});return{unsubscribe(){r.unsubscribe()}}}}}:null}function A5(t){if(t)return function({security:e,isin:n,exchangeId:r,securityQuotesToken:i}){const o=t({security:e,isin:n||(e==null?void 0:e.isin),exchangeId:r,securityQuotesToken:i});return{loadMeta(l){return O5(o.loadMeta(l),l)},subscribe(l){return o.subscribe(l)}}}}function D5(t,e){return t==null&&e==null?null:function(n){let r=t?t(n):null,i=null,o=null,l=null;function a(u){return u.loadMeta().catch(c=>(console.log("quotesProvider has thrown error, which is ok, assuming there is no quote to retrieve - but implementations should actually just return null here.",c),null))}async function s(){return o||(r&&(l=await a(r),l&&(o=r)),i==null&&e&&(i=e(n)),o||(o=i),o)}return{async loadMeta(){if(!l){const u=await s();u&&(l=await a(u))}return l},subscribe(u){let c=!1,f=null;return s().then(d=>{if(c){f==null||f.unsubscribe();return}d&&(f=d.subscribe((m,h)=>{c||u(m,h)}))},d=>u(d,null)),{unsubscribe(){c=!0,f==null||f.unsubscribe()}}}}}}function M5(t){yt(t,"svelte-d4o4w3",".zl-state.svelte-d4o4w3.svelte-d4o4w3{align-items:flex-start;border-radius:var(--zl-default-border-radius);border:1px solid;box-shadow:var(--zl-default-box-shadow);display:flex;flex-direction:column;align-items:center;gap:var(--zl-spacing-lg);min-height:calc(var(--zl-default-padding-y) * 4);padding:var(--zl-spacing-xl) var(--zl-spacing-lg) var(--zl-spacing-2xl) var(--zl-spacing-lg);position:relative;text-align:center}[part='title'].svelte-d4o4w3.svelte-d4o4w3{font-size:var(--zl-state-font-size, var(--zl-font-size-md))}[part='text'].svelte-d4o4w3.svelte-d4o4w3{font-size:var(--zl-state-font-size, var(--zl-font-size-xs))}.info.svelte-d4o4w3.svelte-d4o4w3{background-color:var(--zl-notification-info-background-color, var(--zl-color-gray-lighter));border-color:var(--zl-notification-border-color, var(--zl-default-border-color));color:var(--zl-state-info-color, var(--zl-color-info-dark))}.info.svelte-d4o4w3 [part='title'].svelte-d4o4w3,.info.svelte-d4o4w3 [part='text'].svelte-d4o4w3,.info.svelte-d4o4w3 .icon{color:var(--zl-state-info-color, var(--zl-color-info-dark))}.error.svelte-d4o4w3.svelte-d4o4w3{background-color:var(--zl-state-error-background-color, var(--zl-color-error-decent));border-color:var(--zl-state-error-border-color, var(--zl-color-error-base));color:var(--zl-state-error-color, var(--zl-color-error-dark))}.error.svelte-d4o4w3 [part='title'].svelte-d4o4w3,.error.svelte-d4o4w3 [part='text'].svelte-d4o4w3,.error.svelte-d4o4w3 .icon{color:var(--zl-state-error-color, var(--zl-color-error-dark))}.warning.svelte-d4o4w3.svelte-d4o4w3{background-color:var(--zl-state-warning-background-color, var(--zl-color-warning-decent));border-color:var(--zl-state-warning-border-color, var(--zl-color-warning-base));color:var(--zl-state-warning-color, var(--zl-color-warning-dark))}.warning.svelte-d4o4w3 [part='title'].svelte-d4o4w3,.warning.svelte-d4o4w3 [part='text'].svelte-d4o4w3,.warning.svelte-d4o4w3 .icon{color:var(--zl-state-warning-color, var(--zl-color-warning-dark))}.success.svelte-d4o4w3.svelte-d4o4w3{background-color:var(--zl-state-success-background-color, var(--zl-color-success-decent));border-color:var(--zl-state-success-border-color, var(--zl-color-success-base));color:var(--zl-state-success-color, var(--zl-color-success-dark))}.success.svelte-d4o4w3 [part='title'].svelte-d4o4w3,.success.svelte-d4o4w3 [part='text'].svelte-d4o4w3,.success.svelte-d4o4w3 .icon{color:var(--zl-state-success-color, var(--zl-color-success-dark))}")}function Cp(t){let e,n;return{c(){e=W("div"),n=Ie(t[1]),x(e,"part","title"),x(e,"class","svelte-d4o4w3")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&2&&Ke(n,r[1])},d(r){r&&E(e)}}}function Op(t){let e,n;const r=t[5].default,i=ht(r,t,t[4],null),o=i||E5(t);return{c(){e=W("div"),o&&o.c(),x(e,"part","text"),x(e,"class","svelte-d4o4w3")},m(l,a){L(l,e,a),o&&o.m(e,null),n=!0},p(l,a){i?i.p&&(!n||a&16)&&gt(i,r,l,l[4],n?mt(r,l[4],a,null):pt(l[4]),null):o&&o.p&&(!n||a&4)&&o.p(l,n?a:-1)},i(l){n||(g(o,l),n=!0)},o(l){b(o,l),n=!1},d(l){l&&E(e),o&&o.d(l)}}}function E5(t){let e;return{c(){e=Ie(t[2])},m(n,r){L(n,e,r)},p(n,r){r&4&&Ke(e,n[2])},d(n){n&&E(e)}}}function L5(t){let e,n,r,i,o;var l=t[3];function a(c,f){return{props:{size:30,"stroke-width":1.5,class:"zlc-icon"}}}l&&(n=fn(l,a()));let s=t[1]&&Cp(t),u=t[2]&&Op(t);return{c(){e=W("div"),n&&F(n.$$.fragment),r=j(),s&&s.c(),i=j(),u&&u.c(),x(e,"class","zl-state zlc-gap-y svelte-d4o4w3"),ke(e,"error",t[0]==="error"),ke(e,"info",t[0]==="info"),ke(e,"success",t[0]==="success"),ke(e,"warning",t[0]==="warning")},m(c,f){L(c,e,f),n&&$(n,e,null),V(e,r),s&&s.m(e,null),V(e,i),u&&u.m(e,null),o=!0},p(c,[f]){if(f&8&&l!==(l=c[3])){if(n){ne();const d=n;b(d.$$.fragment,1,0,()=>{R(d,1)}),re()}l?(n=fn(l,a()),F(n.$$.fragment),g(n.$$.fragment,1),$(n,e,r)):n=null}c[1]?s?s.p(c,f):(s=Cp(c),s.c(),s.m(e,i)):s&&(s.d(1),s=null),c[2]?u?(u.p(c,f),f&4&&g(u,1)):(u=Op(c),u.c(),g(u,1),u.m(e,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re()),(!o||f&1)&&ke(e,"error",c[0]==="error"),(!o||f&1)&&ke(e,"info",c[0]==="info"),(!o||f&1)&&ke(e,"success",c[0]==="success"),(!o||f&1)&&ke(e,"warning",c[0]==="warning")},i(c){o||(n&&g(n.$$.fragment,c),g(u),o=!0)},o(c){n&&b(n.$$.fragment,c),b(u),o=!1},d(c){c&&E(e),n&&R(n),s&&s.d(),u&&u.d()}}}function N5(t,e,n){let r,{$$slots:i={},$$scope:o}=e,{variant:l="info"}=e,{title:a=""}=e,{text:s=""}=e;const u=c=>{switch(c){case"success":return an.CheckCircle;case"error":return an.XOctagon;case"info":return an.Info;case"warning":return an.AlertTriangle;default:return null}};return t.$$set=c=>{"variant"in c&&n(0,l=c.variant),"title"in c&&n(1,a=c.title),"text"in c&&n(2,s=c.text),"$$scope"in c&&n(4,o=c.$$scope)},t.$$.update=()=>{t.$$.dirty&1&&n(3,r=u(l))},[l,a,s,r,o,i]}class Ns extends Ne{constructor(e){super(),Ee(this,e,N5,L5,Ae,{variant:0,title:1,text:2},M5)}get variant(){return this.$$.ctx[0]}set variant(e){this.$$set({variant:e}),C()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),C()}get text(){return this.$$.ctx[2]}set text(e){this.$$set({text:e}),C()}}Le(Ns,{variant:{},title:{},text:{}},["default"],[],!0);function P5(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $5(t){let e,n;return e=new Ns({props:{variant:"error",title:"Fehler",text:t[36].text}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[1]&32&&(o.text=r[36].text),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function R5(t){let e,n;return e=new Ns({props:{variant:"warning",title:"Nicht handelbar",text:"-",$$slots:{default:[q5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1|i[1]&32|i[3]&33554432&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function F5(t){let e,n,r,i,o;function l(u){t[65](u)}function a(u){t[66](u)}let s={loading:t[18],portfolioId:t[1],preparedTrade:t[11],orderIntentAvailability:t[34],hasConfirmedRiskInfo:t[16],authInfo:t[19],quote:t[12],quoteLoading:t[21],quoteError:t[20],quoteExpiration:t[39],costs:t[22],costsLoading:t[24],costsError:t[23],challenge:t[26],challengeError:t[27],cashAccounts:t[25],challengeLoading:t[28],orderError:t[30],portfoliosResponse:t[15],order:t[17],buyingPower:t[9],availableSize:t[33],broker:t[31],linkPortfolio:t[7],orderWip:t[49],quoteAmount:t[38],quoteEstimatedOrderValue:t[37],quotesMeta:t[8],lockOrderDirection:t[5],hideOrderDirection:t[6],portfolioName:t[35].portfolioName};return t[13]!==void 0&&(s.authMethod=t[13]),t[29]!==void 0&&(s.challengeResponse=t[29]),n=new Sp({props:s}),xe.push(()=>Je(n,"authMethod",l)),xe.push(()=>Je(n,"challengeResponse",a)),n.$on("quotelimitchange",t[67]),n.$on("sessiontan",t[68]),n.$on("requestcosts",t[69]),n.$on("costdetails",t[70]),n.$on("requestquote",t[71]),n.$on("challenge",t[40]),n.$on("create",t[72]),n.$on("showDetailedInfo",t[73]),n.$on("acceptRiskInfo",t[74]),n.$on("navigate",t[75]),{c(){e=W("div"),F(n.$$.fragment)},m(u,c){L(u,e,c),$(n,e,null),o=!0},p(u,c){const f={};c[0]&262144&&(f.loading=u[18]),c[0]&2&&(f.portfolioId=u[1]),c[0]&2048&&(f.preparedTrade=u[11]),c[1]&8&&(f.orderIntentAvailability=u[34]),c[0]&65536&&(f.hasConfirmedRiskInfo=u[16]),c[0]&524288&&(f.authInfo=u[19]),c[0]&4096&&(f.quote=u[12]),c[0]&2097152&&(f.quoteLoading=u[21]),c[0]&1048576&&(f.quoteError=u[20]),c[1]&256&&(f.quoteExpiration=u[39]),c[0]&4194304&&(f.costs=u[22]),c[0]&16777216&&(f.costsLoading=u[24]),c[0]&8388608&&(f.costsError=u[23]),c[0]&67108864&&(f.challenge=u[26]),c[0]&134217728&&(f.challengeError=u[27]),c[0]&33554432&&(f.cashAccounts=u[25]),c[0]&268435456&&(f.challengeLoading=u[28]),c[0]&1073741824&&(f.orderError=u[30]),c[0]&32768&&(f.portfoliosResponse=u[15]),c[0]&131072&&(f.order=u[17]),c[0]&512&&(f.buyingPower=u[9]),c[1]&4&&(f.availableSize=u[33]),c[1]&1&&(f.broker=u[31]),c[0]&128&&(f.linkPortfolio=u[7]),c[1]&128&&(f.quoteAmount=u[38]),c[1]&64&&(f.quoteEstimatedOrderValue=u[37]),c[0]&256&&(f.quotesMeta=u[8]),c[0]&32&&(f.lockOrderDirection=u[5]),c[0]&64&&(f.hideOrderDirection=u[6]),c[1]&16&&(f.portfolioName=u[35].portfolioName),!r&&c[0]&8192&&(r=!0,f.authMethod=u[13],Ve(()=>r=!1)),!i&&c[0]&536870912&&(i=!0,f.challengeResponse=u[29],Ve(()=>i=!1)),n.$set(f)},i(u){o||(g(n.$$.fragment,u),o=!0)},o(u){b(n.$$.fragment,u),o=!1},d(u){u&&E(e),R(n)}}}function x5(t){let e,n;return e=new nt({props:{variant:"default",$$slots:{default:[B5]},$$scope:{ctx:t}}}),e.$on("click",t[77]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1|i[3]&33554432&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function U5(t){let e,n,r=t[0].isin+"",i,o,l;return{c(){e=W("span"),n=Ie("ISIN in Zwischenablage kopieren: "),i=Ie(r),x(e,"class","cursor-pointer underline")},m(a,s){L(a,e,s),V(e,n),V(e,i),o||(l=tt(e,"click",t[76]),o=!0)},p(a,s){s[0]&1&&r!==(r=a[0].isin+"")&&Ke(i,r)},i:ze,o:ze,d(a){a&&E(e),o=!1,l()}}}function B5(t){let e,n=t[0].usTicker+"",r;return{c(){e=Ie("Tickersymbol in Zwischenablage kopieren: "),r=Ie(n)},m(i,o){L(i,e,o),L(i,r,o)},p(i,o){o[0]&1&&n!==(n=i[0].usTicker+"")&&Ke(r,n)},d(i){i&&(E(e),E(r))}}}function q5(t){let e,n=t[36].text+"",r,i,o,l,a,s,u,c;const f=[U5,x5],d=[];function m(h,p){var v,w;return(v=h[0])!=null&&v.isin?0:(w=h[0])!=null&&w.usTicker?1:-1}return~(s=m(t))&&(u=d[s]=f[s](t)),{c(){e=W("p"),r=Ie(n),i=j(),o=W("div"),l=Ie(`Sie können das gewünschte Wertpapier möglicherweise bei einem anderen Broker handeln.
345
+ `),a=W("div"),u&&u.c(),x(a,"class","mt-5")},m(h,p){L(h,e,p),V(e,r),L(h,i,p),L(h,o,p),V(o,l),V(o,a),~s&&d[s].m(a,null),c=!0},p(h,p){(!c||p[1]&32)&&n!==(n=h[36].text+"")&&Ke(r,n);let v=s;s=m(h),s===v?~s&&d[s].p(h,p):(u&&(ne(),b(d[v],1,1,()=>{d[v]=null}),re()),~s?(u=d[s],u?u.p(h,p):(u=d[s]=f[s](h),u.c()),g(u,1),u.m(a,null)):u=null)},i(h){c||(g(u),c=!0)},o(h){b(u),c=!1},d(h){h&&(E(e),E(i),E(o)),~s&&d[s].d()}}}function V5(t){let e,n,r,i;const o=[F5,R5,$5,P5],l=[];function a(s,u){var c;return s[32]?0:((c=s[14])==null?void 0:c.code)=="SECURITY_NOT_FOUND"?1:s[36]?2:s[10]?3:-1}return~(e=a(t))&&(n=l[e]=o[e](t)),{c(){n&&n.c(),r=Xe()},m(s,u){~e&&l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?~e&&l[e].p(s,u):(n&&(ne(),b(l[c],1,1,()=>{l[c]=null}),re()),~e?(n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r)):n=null)},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),~e&&l[e].d(s)}}}function J5(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[V5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&2147483619|i[1]&511|i[3]&33554432&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function H5(t){let e,n;return e=new Pn({props:{theme:t[2],addFrame:t[3],supportLink:t[4],$$slots:{default:[J5]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4&&(o.theme=r[2]),i[0]&8&&(o.addFrame=r[3]),i[0]&16&&(o.supportLink=r[4]),i[0]&2147483619|i[1]&511|i[3]&33554432&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function W5(t,e,n){var o;const r=Object.entries(t.cashAccounts).find(l=>l[0]===e),i=(o=t.quotes)==null?void 0:o.availableCash;return r?r[1].buyingPower:(i==null?void 0:i.currency)===n||n==="XXX"?i:null}function Y5(t){const e=t==null?void 0:t.expiration;return e&&{milliseconds:e.milliseconds,started:new Date,expires:new Date(Date.now()+e.milliseconds)}}function G5(t,e){return t.forEach((n,r)=>{n.currency==="EUR"&&(t.splice(r,1),t.unshift(n))}),t}function Ip(t,e,n){if((t==null?void 0:t.orderModel)=="quote"){const r={...t};return r.quoteId=e,(n==null?void 0:n.mode)=="quoteLimit"&&(r.quoteLimit=n.quoteLimit),r}return t}function K5(t,e,n){var i;if(!t||!e||!n||t!="buy"&&t!="sell")return null;const r=t=="buy"?n==null?void 0:n.ask:n==null?void 0:n.bid;return r?{currency:e.currency,minDecimals:e.decimals,maxDecimals:e.decimals,value:r.quote,timestamp:(i=r.date)==null?void 0:i.getTime()}:null}async function Ap(t){try{await navigator.clipboard.writeText(t)}catch(e){console.error(e)}}function Q5(t,e,n){let r,i,o,l,a,s,u,{apiCtx:c=null}=e,{portfolioId:f=null}=e,{isin:d=null}=e,{security:m=null}=e,{theme:h=null}=e,{addFrame:p=!0}=e,{supportLink:v=null}=e;d&&!m&&(m={isin:d,selector:{isin:d}});let{preferredExchangeId:w=null}=e,{overrideBrokerExchangeId:S=null}=e,{lockOrderDirection:y=!1}=e,{hideOrderDirection:z=!1}=e,{initialOrderCreateValues:O=null}=e,{openExternalLink:N=null}=e,{quotesProvider:U=null}=e,A=null,P=null,Y=null,B=null;N||(N=ye=>{window.open(ye)});let J=null,ee=!1,ce={order:Ph(O||{})};ce.order.isin=d;const he=new Ci;let de=!1;mr(()=>{de=!0,bt(),he.unsubscribe()});let se;function ue(ye){se==null||se.destroy(),ye?(n(59,se=ye.createChildContext()),_t()):n(59,se=null)}let fe=null,Oe=null,me=null,we=null;function Fe(ye,Rt,Dt,mn){const Zt=[Rt,Dt,mn].join("-");Zt==me&&we==ye||(me=Zt,we=ye,Oe==null||Oe.unsubscribe(),n(9,fe=null),!(!ye||!Rt)&&(Oe=_5(ye,Rt).subscribe({next(On){n(9,fe=W5(On,Dt,mn))},error(On){console.warn(On,"could not load the buyingPower"),n(9,fe=null)}}),he.add(Oe)))}let pe=!1,Se=!1,De=null,Ze=null,Qe,dt=null,Ce=!1,St,it=null,Lt=!1,Te=[],ot,ft,It=null,wt=!1,Ct,xt,He=null;const Ut=Bt();let qt=!1,Et=null;async function K(){const ye=(m==null?void 0:m.selector)||{isin:(m==null?void 0:m.isin)||d},[Rt,Dt,mn,Zt]=await Promise.all([se.prepareTrade({usTicker:ye.usTicker||void 0,isin:ye.isin||"",cryptoCode:ye.cryptoCode||void 0,cryptoPair:ye.cryptoPair||void 0,portfolioId:f}),se.getPortfolios(),se.getAuthInfo(f),se.getBrokers()]);return{pt:Rt,p:Dt,au:mn,brokers:Zt}}async function D(){var Rt;const ye=await se.getAuthInfo(f);n(19,Ze=ye.authInfo),n(13,ot=(Rt=ye.authInfo.authMethods)!=null&&Rt.length?ye.authInfo.authMethods[0].id:null)}function M(){n(18,Se=!0),n(32,qt=!1),n(14,Et=null),K().then(({pt:ye,p:Rt,au:Dt,brokers:mn})=>{var On,tr,fr;n(11,De=ye.preparedTrade),n(16,ee=J==hn()),n(19,Ze=Dt.authInfo),n(13,ot=(On=Dt.authInfo.authMethods)!=null&&On.length?Dt.authInfo.authMethods[0].id:null),n(15,B=Rt),n(35,Tn=Rt.portfolios.find(qn=>qn.id==f));const Zt=Tn.cashAccountIds||[];if(n(25,Te=G5(Zt.map(qn=>Rt.cashAccounts.find(_i=>_i.id==qn)),Tn.brokerName)),n(31,He=mn.brokers.find(qn=>qn.brokerName==Tn.brokerName)),_t(),S&&De.exchanges.find(qn=>qn.id==S))n(17,ce.order.brokerExchangeId=S,ce);else if(w&&!De.noExchangeDefault){const qn=(fr=(tr=ye.preparedTrade)==null?void 0:tr.exchanges)==null?void 0:fr.find(_i=>_i.brokerizeExchangeId==w);qn&&n(17,ce.order.brokerExchangeId=qn.id,ce)}n(17,ce.order.brokerSecurityId=De.brokerSecurityId,ce),Be(),n(18,Se=!1),n(32,qt=!0)},ye=>{n(14,Et=ye)})}let Q;function le(){Q==null||Q.destroy(),n(26,ft=null),n(28,wt=!1),n(27,It=null)}function Me(){le(),n(30,xt=null),n(27,It=null),n(28,wt=!0),Q=c.createChildContext(),Q.createTradeChallenge({createOrderChallengeParams:{authMethod:ot,order:o}}).then(ye=>{n(26,ft=ye),n(28,wt=!1)},ye=>{ye.name!="AbortError"&&(n(27,It=ye),n(28,wt=!1))})}let Pe;function ct(){return Ip(u,Qe==null?void 0:Qe.quoteId,Pe)}let at=null;function et(ye){var Dt;const Rt=JSON.stringify(ye);if(Rt!=at){at=Rt;const mn=ye==null?void 0:ye.brokerExchangeId,Zt=(Dt=De==null?void 0:De.exchanges)==null?void 0:Dt.find(On=>On.id==mn);Ut("orderchange",{order:structuredClone(ye),security:structuredClone(De==null?void 0:De.security),brokerizeExchangeId:Zt==null?void 0:Zt.brokerizeExchangeId})}}const Ot=new Ta;function _t(){const ye=u||(ce==null?void 0:ce.order),Rt=(u==null?void 0:u.sizeUnit)||(ce==null?void 0:ce.order.sizeUnit);let Dt=ye==null?void 0:ye.intent;!Dt&&(ye==null?void 0:ye.direction)=="sell"&&(Dt="close");const mn=Dt=="close"?f+"_"+JSON.stringify(m)+"_"+Rt:"";Ot.next(mn)}let Gt=null;he.add(Ot.pipe(qw()).subscribe({next(ye){n(61,Gt=ye)}}));let Vt=null,Jt=null;function $t(ye){if(Vt==null||Vt.unsubscribe(),!ye||!se){n(33,Jt=null);return}Vt=k5(se,f,m,u==null?void 0:u.sizeUnit).subscribe({next(Rt){n(33,Jt=Rt)},error(Rt){console.warn(Rt,"availableSize subscription failed"),n(33,Jt=null)}})}function un(){st(),nn(),le(),n(30,xt=null),_t(),bt()}let rn=null,H=null,G=null;function ie(){var ye;(ye=H==null?void 0:H.subscription)==null||ye.unsubscribe(),G==null||G.abort(),n(8,P=null),n(58,Y=null),H=null}let ge=null,Re=null;function Be(){const ye=De;if(!ye||de||!c){Re==null||Re.unsubscribe();return}Re=new ni(Dt=>c.subscribeAvailableOrderIntents(ye,(mn,Zt)=>{mn?Dt.error(mn):Dt.next(Zt)})).subscribe({next(Dt){n(34,ge=Dt)},error(Dt){n(34,ge=null),console.error(Dt,"could not load order intent availability")}}),he.add(Re)}function bt(){var On;const ye=A;if(!ye||de){ie();return}const Rt=u==null?void 0:u.brokerExchangeId,Dt=(On=De==null?void 0:De.exchanges)==null?void 0:On.find(tr=>tr.id==Rt),mn=Dt==null?void 0:Dt.brokerizeExchangeId;if(H&&H.exchangeId==mn&&H.securityQuotesToken==(Dt==null?void 0:Dt.securityQuotesToken)&&rn==ye)return;rn=ye,ie(),G=new AbortController,H={exchangeId:mn,securityQuotesToken:Dt==null?void 0:Dt.securityQuotesToken,subscription:null},n(8,P=null);const Zt=ye({security:m,isin:m==null?void 0:m.isin,exchangeId:mn,securityQuotesToken:Dt==null?void 0:Dt.securityQuotesToken});Zt.loadMeta(G.signal).then(tr=>{de||(n(8,P=tr),n(58,Y=null),tr!=null&&(H.subscription=Zt.subscribe((fr,qn)=>{fr?(console.error(fr,"error occured on quote subscription"),n(58,Y=null)):n(58,Y=qn)})))},tr=>{tr.name!="AbortError"&&(H=null,console.error(tr,"error occured when initing quotes"))})}function Ge(ye){n(60,Pe=ye.detail)}let vt;function We(){st(),n(23,it=null),!De.costEstimationIsNotAvailable&&(n(24,Lt=!0),vt=c.createChildContext(),vt.getCostEstimation({order:ct()}).then(ye=>{n(22,St=ye),n(24,Lt=!1)},ye=>{ye.name!="AbortError"&&(n(23,it=ye),n(24,Lt=!1))}))}function st(){vt==null||vt.destroy(),n(22,St=null),n(24,Lt=!1),n(23,it=null)}let Nt;function Ht(){nn(),n(21,Ce=!0),n(20,dt=null),n(12,Qe=null),Nt=c.createChildContext(),Nt.getQuote({portfolioId:f,getQuoteParams:{brokerExchangeId:u.brokerExchangeId,brokerSecurityId:De.brokerSecurityId,direction:u.direction,isin:u.isin,size:u.size,cashAccountId:u.cashAccountId,sizeUnit:u.sizeUnit}}).then(ye=>{n(12,Qe=ye),ye.costEstimation?n(22,St=ye.costEstimation):We(),n(21,Ce=!1)},ye=>{ye.name!="AbortError"&&(n(20,dt=ye),n(21,Ce=!1))})}function nn(){Nt==null||Nt.destroy(),n(12,Qe=null),n(21,Ce=!1),n(20,dt=null)}async function _e(ye){return jt.showConfirm(ye)}async function Ue(ye){var mn;const Dt=((mn=De.exchanges.find(Zt=>Zt.id==o.brokerExchangeId).legalMessagesToConfirmByOrderModel)==null?void 0:mn[o.orderModel])||null;Dt&&!await _e(Dt)||(n(18,Se=!0),c.createTrade({createOrderParams:{order:o,acceptHintId:ye,authMethod:Ze.sessionTanActive?void 0:ot,challengeId:ft==null?void 0:ft.challengeId,challengeResponse:!Ze.sessionTanActive&&(Ct!=null&&Ct.length)?Ct:void 0}}).then(Zt=>{n(18,Se=!1),Ut("created",Zt)},Zt=>{n(18,Se=!1),Zt.code=="MUST_ACCEPT_HINT"?_e(Zt.hint.text).then(On=>{On?Ue(Zt.hint.id):Yn(Zt)},On=>{Yn(On)}):Yn(Zt)}))}function Yn(ye){ye&&Ut("ordererror",{error:ye}),n(30,xt=ye),Qe&&(st(),nn())}function An(){return{loading:Se,portfolioId:f,preparedTrade:De,authInfo:Ze,quote:Qe,quoteLoading:Ce,quoteError:dt,costs:St,costsLoading:Lt,costsError:it,challenge:ft,challengeError:It,challengeLoading:wt,orderError:xt,authMethod:ot,challengeResponse:Ct}}let Tn;async function Xt(){if(!Tn)throw new Error("Portfolio not ready");const ye=Tn.sessionIds[0];await jt.showSessionTanModal(ye)&&D()}async function yn(){if(St)St.detailedTable?dn(St.detailedTable,!0):St.costDetailsLink&&N(St.costDetailsLink.url);else if(De!=null&&De.costEstimationIsOnlyDetailedTable){n(18,Se=!0);try{const ye=await c.getCostEstimation({order:o});dn(ye.detailedTable,!0)}catch(ye){if(ye.name!="AbortError"){let Rt=ye;ye.name=="BrokerizeError"&&ye.code=="VALIDATION_FAILED"&&(Rt="Der erweiterte Kostenausweis konnte nicht abgerufen werden. Bitte prüfen Sie Ihre Angaben."),n(14,Et=Rt)}}finally{n(18,Se=!1)}}}function dn(ye,Rt=!1){jt.showDetailedTable(ye,Rt)}function $n(){n(18,Se=!0),c.getSecurityDetailedInfo(De.securityDetailedInfo.token).then(ye=>{jt.showDetailedTable(ye)},ye=>{ye.name!="AbortError"&&n(14,Et=ye)}).finally(()=>{n(18,Se=!1)})}function hn(){var ye;return f+"#"+d+"#"+((ye=De==null?void 0:De.riskClassInfo)==null?void 0:ye.msg)}function Rn(){J=hn(),n(16,ee=!0)}let{linkPortfolio:ur=!1}=e;const Nn=Or(null);Ia(t,Nn,ye=>n(64,u=ye)),Nn.subscribe(ye=>{un()});function cr(ye){let Rt=wf("",ye);return Rt?{text:Rt}:null}function Xr(ye){ot=ye,n(13,ot)}function Zr(ye){Ct=ye,n(29,Ct)}const Lr=ye=>Ge(ye),vi=()=>Xt(),Eo=()=>We(),Lo=ye=>yn(),No=()=>Ht(),_r=()=>Ue(),er=()=>$n(),Br=()=>Rn();function Po(ye){qe.call(this,t,ye)}const $o=()=>Ap(m.isin),Ro=()=>Ap(m.usTicker);return t.$$set=ye=>{"apiCtx"in ye&&n(51,c=ye.apiCtx),"portfolioId"in ye&&n(1,f=ye.portfolioId),"isin"in ye&&n(52,d=ye.isin),"security"in ye&&n(0,m=ye.security),"theme"in ye&&n(2,h=ye.theme),"addFrame"in ye&&n(3,p=ye.addFrame),"supportLink"in ye&&n(4,v=ye.supportLink),"preferredExchangeId"in ye&&n(53,w=ye.preferredExchangeId),"overrideBrokerExchangeId"in ye&&n(54,S=ye.overrideBrokerExchangeId),"lockOrderDirection"in ye&&n(5,y=ye.lockOrderDirection),"hideOrderDirection"in ye&&n(6,z=ye.hideOrderDirection),"initialOrderCreateValues"in ye&&n(55,O=ye.initialOrderCreateValues),"openExternalLink"in ye&&n(50,N=ye.openExternalLink),"quotesProvider"in ye&&n(56,U=ye.quotesProvider),"linkPortfolio"in ye&&n(7,ur=ye.linkPortfolio)},t.$$.update=()=>{t.$$.dirty[1]&1048576&&n(63,r=I5(c)),t.$$.dirty[1]&33554432|t.$$.dirty[2]&2&&(A=A5(D5(U,r)),bt()),t.$$.dirty[1]&1048576&&ue(c),t.$$.dirty[0]&2|t.$$.dirty[1]&1048576|t.$$.dirty[2]&4&&Fe(c,f,u==null?void 0:u.cashAccountId,u==null?void 0:u.sizeUnit),t.$$.dirty[0]&4096&&n(39,i=Y5(Qe)),t.$$.dirty[0]&1027|t.$$.dirty[1]&268435456&&(n(10,pe=!!(se&&f&&m)),pe&&M()),t.$$.dirty[0]&4096|t.$$.dirty[1]&536870912|t.$$.dirty[2]&4&&n(62,o=Ip(u,Qe==null?void 0:Qe.quoteId,Pe)),t.$$.dirty[2]&1&&et(o),t.$$.dirty[1]&1342177280&&$t(!!(Gt&&se)),t.$$.dirty[0]&256|t.$$.dirty[1]&134217728|t.$$.dirty[2]&4&&n(38,l=K5(u==null?void 0:u.direction,P,Y)),t.$$.dirty[0]&8192&&ot&&le(),t.$$.dirty[0]&6656|t.$$.dirty[1]&134217728|t.$$.dirty[2]&4&&n(37,a=z5(De,u,fe==null?void 0:fe.currency,Y,Qe)),t.$$.dirty[0]&16384&&n(36,s=cr(Et))},[m,f,h,p,v,y,z,ur,P,fe,pe,De,Qe,ot,Et,B,ee,ce,Se,Ze,dt,Ce,St,it,Lt,Te,ft,It,wt,Ct,xt,He,qt,Jt,ge,Tn,s,a,l,i,Me,Ge,We,Ht,Ue,Xt,yn,$n,Rn,Nn,N,c,d,w,S,O,U,An,Y,se,Pe,Gt,o,r,u,Xr,Zr,Lr,vi,Eo,Lo,No,_r,er,Br,Po,$o,Ro]}class Ps extends Ne{constructor(e){super(),Ee(this,e,Q5,H5,Ae,{apiCtx:51,portfolioId:1,isin:52,security:0,theme:2,addFrame:3,supportLink:4,preferredExchangeId:53,overrideBrokerExchangeId:54,lockOrderDirection:5,hideOrderDirection:6,initialOrderCreateValues:55,openExternalLink:50,quotesProvider:56,getOrderFormProps:57,linkPortfolio:7},null,[-1,-1,-1,-1])}get apiCtx(){return this.$$.ctx[51]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get portfolioId(){return this.$$.ctx[1]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get isin(){return this.$$.ctx[52]}set isin(e){this.$$set({isin:e}),C()}get security(){return this.$$.ctx[0]}set security(e){this.$$set({security:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}get preferredExchangeId(){return this.$$.ctx[53]}set preferredExchangeId(e){this.$$set({preferredExchangeId:e}),C()}get overrideBrokerExchangeId(){return this.$$.ctx[54]}set overrideBrokerExchangeId(e){this.$$set({overrideBrokerExchangeId:e}),C()}get lockOrderDirection(){return this.$$.ctx[5]}set lockOrderDirection(e){this.$$set({lockOrderDirection:e}),C()}get hideOrderDirection(){return this.$$.ctx[6]}set hideOrderDirection(e){this.$$set({hideOrderDirection:e}),C()}get initialOrderCreateValues(){return this.$$.ctx[55]}set initialOrderCreateValues(e){this.$$set({initialOrderCreateValues:e}),C()}get openExternalLink(){return this.$$.ctx[50]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}get quotesProvider(){return this.$$.ctx[56]}set quotesProvider(e){this.$$set({quotesProvider:e}),C()}get getOrderFormProps(){return this.$$.ctx[57]}get linkPortfolio(){return this.$$.ctx[7]}set linkPortfolio(e){this.$$set({linkPortfolio:e}),C()}}Le(Ps,{apiCtx:{},portfolioId:{},isin:{},security:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},preferredExchangeId:{},overrideBrokerExchangeId:{},lockOrderDirection:{type:"Boolean"},hideOrderDirection:{type:"Boolean"},initialOrderCreateValues:{},openExternalLink:{},quotesProvider:{},linkPortfolio:{type:"Boolean"}},[],["getOrderFormProps"],!0);function j5(t){let e,n;return e=new ji({props:{header:t[7],rows:t[6],$$slots:{"empty-info":[e6]},$$scope:{ctx:t}}}),e.$on("action",t[8]),e.$on("navigate",t[9]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&64&&(o.rows=r[6]),i&65536&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function X5(t){let e,n;return e=new zn({props:{error:t[5]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&32&&(o.error=r[5]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Z5(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function e6(t){let e;return{c(){e=Ie("Bisher sind keine Depots in Ihren Account synchronisiert.")},m(n,r){L(n,e,r)},d(n){n&&E(e)}}}function t6(t){let e,n,r,i;const o=[Z5,X5,j5],l=[];function a(s,u){return s[4]?0:s[5]?1:2}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function n6(t){var r;let e,n;return e=new Jn({props:{brokers:(r=t[3])==null?void 0:r.brokers,$$slots:{default:[t6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o&8&&(l.brokers=(a=i[3])==null?void 0:a.brokers),o&65648&&(l.$$scope={dirty:o,ctx:i}),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function r6(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[1],supportLink:t[2],addShadow:!0,noPadding:!0,$$slots:{default:[n6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&2&&(o.addFrame=r[1]),i&4&&(o.supportLink=r[2]),i&65656&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function i6(t,e,n){let r;const i=Bt();let{apiCtx:o=null}=e,{theme:l=null}=e,{addFrame:a=!0}=e,{hideInactivePortfolios:s=!1}=e,{supportLink:u=null}=e,c=[{id:"brokerName",label:"Broker"},{id:"portfolioName",label:"Depot"},{id:"sessions",label:"Online"},{id:"actions",label:"actions",align:"center",visuallyHidden:!0}],f;function d(y){const{rowId:z,actionId:O}=y.detail;if(O=="remove"){const N=f.portfolios.find(U=>U.id==z);S(N)}}function m(y){const{rowId:z}=y.detail,O=f.portfolios.find(N=>N.id==z);i("navigate",O)}let h=!1,p=null;async function v(y=!1){n(5,p=null);const z=O=>{y||n(4,h=O)};z(!0),Promise.all([o.getBrokers(),o.getPortfolios()]).then(([O,N])=>{n(3,f={portfolios:N.portfolios,brokers:O}),n(5,p=null),z(!1)},O=>{z(!1),n(5,p=O)})}let w=null;ir(()=>{w==null||w.unsubscribe(),w=o.createWebSocketClient().subscribeInvalidate({entity:"sessions"},y=>{y?console.error("the invalidate subscription for sessions ended with an error",y):v(!0)})});async function S(y){await o.deletePortfolio(y.id),v(!0)}return mr(()=>{w==null||w.unsubscribe()}),v(),t.$$set=y=>{"apiCtx"in y&&n(10,o=y.apiCtx),"theme"in y&&n(0,l=y.theme),"addFrame"in y&&n(1,a=y.addFrame),"hideInactivePortfolios"in y&&n(11,s=y.hideInactivePortfolios),"supportLink"in y&&n(2,u=y.supportLink)},t.$$.update=()=>{t.$$.dirty&2056&&n(6,r=f==null?void 0:f.portfolios.filter(y=>{var z;return s?((z=y.sessionIds)==null?void 0:z.length)>0:!0}).map(y=>{var z;return{id:y.id,map:{brokerName:{type:"brokerName",value:y.brokerName},portfolioName:{type:"text",value:y.portfolioName,navigate:!0},sessions:{type:"html",value:y.sessionIds.length?"✅":'<span title="Depot hat keine aktive Session">⚠️</span>'},actions:{type:"actions",value:((z=y.sessionIds)==null?void 0:z.length)==0?[{id:"remove",label:"Entfernen"}]:[]}}}}))},[l,a,u,f,h,p,r,c,d,m,o,s]}class $s extends Ne{constructor(e){super(),Ee(this,e,i6,r6,Ae,{apiCtx:10,theme:0,addFrame:1,hideInactivePortfolios:11,supportLink:2})}get apiCtx(){return this.$$.ctx[10]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get hideInactivePortfolios(){return this.$$.ctx[11]}set hideInactivePortfolios(e){this.$$set({hideInactivePortfolios:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le($s,{apiCtx:{},theme:{},addFrame:{type:"Boolean"},hideInactivePortfolios:{type:"Boolean"},supportLink:{}},[],[],!0);function o6(t){yt(t,"svelte-1okz25x",".parent-has-no-padding.svelte-1okz25x{margin-left:var(--zl-app-frame-padding)}")}function l6(t){let e,n,r,i,o,l,a;return n=new ji({props:{header:t[7],rows:t[5]}}),n.$on("action",t[8]),o=new nt({props:{variant:"default",icon:"RotateCw",text:"Refresh session list"}}),o.$on("click",t[6]),{c(){e=W("div"),F(n.$$.fragment),r=j(),i=W("div"),F(o.$$.fragment),x(i,"class",l=vn(t[1]?"parent-has-no-padding":"")+" svelte-1okz25x"),x(e,"class","zlc-gap-y")},m(s,u){L(s,e,u),$(n,e,null),V(e,r),V(e,i),$(o,i,null),a=!0},p(s,u){const c={};u&32&&(c.rows=s[5]),n.$set(c),(!a||u&2&&l!==(l=vn(s[1]?"parent-has-no-padding":"")+" svelte-1okz25x"))&&x(i,"class",l)},i(s){a||(g(n.$$.fragment,s),g(o.$$.fragment,s),a=!0)},o(s){b(n.$$.fragment,s),b(o.$$.fragment,s),a=!1},d(s){s&&E(e),R(n),R(o)}}}function a6(t){let e,n;return e=new Jn({props:{locale:"de",brokers:t[4],$$slots:{default:[l6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.brokers=r[4]),i&131106&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function s6(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[2],supportLink:t[3],noPadding:!0,$$slots:{default:[a6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&4&&(o.addFrame=r[2]),i&8&&(o.supportLink=r[3]),i&131122&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function u6(t){return t.authInfo&&t.authInfo.sessionTanActive?"aktiv 🏝":""}function c6(t){var n,r,i,o;const e=[];return(n=t.authInfo)!=null&&n.sessionTanSupported&&((r=t.authInfo)!=null&&r.sessionTanActive&&((i=t.authInfo)!=null&&i.sessionTanCanBeEnded)?e.push({id:"endSessionTan",label:"end session tan"}):(o=t.authInfo)!=null&&o.sessionTanActive||e.push({id:"enableSessionTan",label:"enable session tan"})),t.brokerName=="demo"&&e.push({id:"simulateSyncError",label:"simulate sync error"}),e.push({id:"logout",label:"logout"}),e.push({id:"sync",label:"sync"}),e}function f6(t,e,n){let r,{apiCtx:i=null}=e,{theme:o=null}=e,{parentHasNoPadding:l=!1}=e,{addFrame:a=!0}=e,{supportLink:s=null}=e,u=null;ir(()=>{async function y(){const z=await i.getBrokers();n(4,u=z),z.brokers}y()});let c=[];async function f(){const y=await i.getSessions();n(10,c=y.sessions)}f();let d;ir(()=>{d==null||d.unsubscribe(),d=i.createWebSocketClient().subscribeInvalidate({entity:"sessions"},y=>{y?console.error("the invalidate subscription for sessions ended with an error",y):f()})});let m=[{id:"brokerName",label:"Broker"},{id:"syncStatus",label:"Status"},{id:"sessionTan",label:"Session-TAN"},{id:"actions",label:"Actions",align:"center",visuallyHidden:!0}];function h(y){var z;if(!y.lastSuccessfulSync&&!y.syncError)return"⏳ wird synchronisiert ";if(y.syncError)return`💔 <span title="${Hh(y.syncError.date+"")}">${Hh((z=y.syncError)==null?void 0:z.message)}</span>`;if(y.lastSuccessfulSync)return"✅"}function p(y){const{actionId:z,rowId:O}=y.detail;if(z=="endSessionTan")v(O);else if(z=="enableSessionTan")w(O);else if(z=="simulateSyncError")S(O);else if(z=="logout"){const N=c.find(U=>U.id==O);i.logoutSession(N.id)}else if(z=="sync"){const N=c.find(U=>U.id==O);i.triggerSessionSync(N.id)}}mr(()=>{d==null||d.unsubscribe()});async function v(y){try{await i.endSessionTan(y),jt.showToast({message:"Session-TAN beendet",style:"success"})}catch(z){Do(z,jt)}}function w(y){jt.showSessionTanModal(y)}function S(y){i.triggerDemoSessionSyncError(y).then(()=>jt.showToast({message:"ok",style:"success"}),z=>Do(z,jt))}return t.$$set=y=>{"apiCtx"in y&&n(9,i=y.apiCtx),"theme"in y&&n(0,o=y.theme),"parentHasNoPadding"in y&&n(1,l=y.parentHasNoPadding),"addFrame"in y&&n(2,a=y.addFrame),"supportLink"in y&&n(3,s=y.supportLink)},t.$$.update=()=>{t.$$.dirty&1024&&n(5,r=(c||[]).map(y=>({id:y.id,map:{brokerName:{type:"brokerName",value:y.brokerName},sessionId:{type:"text",value:y.id},authInfo:{type:"debug",value:y.authInfo},syncStatus:{type:"html",value:h(y)},lastSuccessfulSync:{type:"datetime",value:y==null?void 0:y.lastSuccessfulSync},sessionTan:{type:"html",value:u6(y)},actions:{type:"actions",value:c6(y)}}})))},[o,l,a,s,u,r,f,m,p,i,c]}class Rs extends Ne{constructor(e){super(),Ee(this,e,f6,s6,Ae,{apiCtx:9,theme:0,parentHasNoPadding:1,addFrame:2,supportLink:3},o6)}get apiCtx(){return this.$$.ctx[9]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get parentHasNoPadding(){return this.$$.ctx[1]}set parentHasNoPadding(e){this.$$set({parentHasNoPadding:e}),C()}get addFrame(){return this.$$.ctx[2]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[3]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(Rs,{apiCtx:{},theme:{},parentHasNoPadding:{type:"Boolean"},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function d6(t){yt(t,"svelte-pwqyz2",".nav-menu.svelte-pwqyz2{display:flex;flex-direction:row;justify-content:center}")}function Dp(t){let e,n,r,i,o,l,a,s,u;return n=new nt({props:{id:`nav_${t[9].sessions}`,variant:"default",text:"Session"}}),n.$on("click",t[15]),i=new nt({props:{id:`nav_${t[9].depot}`,disabled:!t[5],variant:"default",text:"Depot"}}),i.$on("click",t[16]),l=new nt({props:{id:`nav_${t[9].portfolio}`,disabled:!t[8],variant:"default",text:"Portfolio"}}),l.$on("click",t[33]),s=new nt({props:{id:`nav_${t[9].broker}`,variant:"default",text:"Broker"}}),s.$on("click",t[14]),{c(){e=W("div"),F(n.$$.fragment),r=j(),F(i.$$.fragment),o=j(),F(l.$$.fragment),a=j(),F(s.$$.fragment),x(e,"class","nav-menu zlc-gap-y-sm svelte-pwqyz2")},m(c,f){L(c,e,f),$(n,e,null),V(e,r),$(i,e,null),V(e,o),$(l,e,null),V(e,a),$(s,e,null),u=!0},p(c,f){const d={};f[0]&512&&(d.id=`nav_${c[9].sessions}`),n.$set(d);const m={};f[0]&512&&(m.id=`nav_${c[9].depot}`),f[0]&32&&(m.disabled=!c[5]),i.$set(m);const h={};f[0]&512&&(h.id=`nav_${c[9].portfolio}`),f[0]&256&&(h.disabled=!c[8]),l.$set(h);const p={};f[0]&512&&(p.id=`nav_${c[9].broker}`),s.$set(p)},i(c){u||(g(n.$$.fragment,c),g(i.$$.fragment,c),g(l.$$.fragment,c),g(s.$$.fragment,c),u=!0)},o(c){b(n.$$.fragment,c),b(i.$$.fragment,c),b(l.$$.fragment,c),b(s.$$.fragment,c),u=!1},d(c){c&&E(e),R(n),R(i),R(l),R(s)}}}function Mp(t){let e,n;return e=new Sn({props:{size:5}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Ep(t){let e,n;return e=new Ha({props:{theme:t[0],apiCtx:t[1],addFrame:!1}}),e.$on("login",t[18]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Lp(t){let e,n;return e=new $s({props:{theme:t[0],apiCtx:t[1],addFrame:!1}}),e.$on("navigate",t[17]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Np(t){let e,n;return e=new Ms({props:{theme:t[0],apiCtx:t[1],portfolioId:t[7],addFrame:!1}}),e.$on("buy",t[20]),e.$on("cancelOrder",t[21]),e.$on("editOrder",t[22]),e.$on("sell",t[23]),e.$on("showReceipt",t[24]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),i[0]&128&&(o.portfolioId=r[7]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Pp(t){let e,n;return e=new Ps({props:{initialOrderCreateValues:t[12],theme:t[0],isin:t[10],apiCtx:t[1],portfolioId:t[7],addFrame:!1}}),e.$on("created",t[25]),e.$on("navigate",t[26]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4096&&(o.initialOrderCreateValues=r[12]),i[0]&1&&(o.theme=r[0]),i[0]&1024&&(o.isin=r[10]),i[0]&2&&(o.apiCtx=r[1]),i[0]&128&&(o.portfolioId=r[7]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $p(t){let e,n;return e=new Es({props:{apiCtx:t[1],theme:t[0],addFrame:!1,orderId:t[11]}}),e.$on("navigate",t[27]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&2&&(o.apiCtx=r[1]),i[0]&1&&(o.theme=r[0]),i[0]&2048&&(o.orderId=r[11]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Rp(t){let e,n;return e=new es({props:{theme:t[0],apiCtx:t[1],orderId:t[11],addFrame:!1}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),i[0]&2048&&(o.orderId=r[11]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Fp(t){let e,n;return e=new Os({props:{theme:t[0],apiCtx:t[1],orderId:t[11],addFrame:!1}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),i[0]&2048&&(o.orderId=r[11]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xp(t){let e,n;return e=new Rs({props:{theme:t[0],apiCtx:t[1],addFrame:!1}}),e.$on("enableSessionTan",t[19]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.apiCtx=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function h6(t){let e,n,r,i,o,l,a,s,u,c,f,d=t[2]&&t[6]!==t[9].loading&&Dp(t),m=t[6]===t[9].loading&&Mp(),h=t[6]===t[9].broker&&Ep(t),p=t[6]===t[9].depot&&Lp(t),v=t[6]===t[9].portfolio&&t[7]!==void 0&&Np(t),w=t[6]===t[9].order&&Pp(t),S=t[6]===t[9].receipt&&$p(t),y=t[6]===t[9].cancelOrder&&Rp(t),z=t[6]===t[9].changeOrder&&Fp(t),O=t[6]===t[9].sessions&&xp(t);return{c(){d&&d.c(),e=j(),m&&m.c(),n=j(),h&&h.c(),r=j(),p&&p.c(),i=j(),v&&v.c(),o=j(),w&&w.c(),l=j(),S&&S.c(),a=j(),y&&y.c(),s=j(),z&&z.c(),u=j(),O&&O.c(),c=Xe()},m(N,U){d&&d.m(N,U),L(N,e,U),m&&m.m(N,U),L(N,n,U),h&&h.m(N,U),L(N,r,U),p&&p.m(N,U),L(N,i,U),v&&v.m(N,U),L(N,o,U),w&&w.m(N,U),L(N,l,U),S&&S.m(N,U),L(N,a,U),y&&y.m(N,U),L(N,s,U),z&&z.m(N,U),L(N,u,U),O&&O.m(N,U),L(N,c,U),f=!0},p(N,U){N[2]&&N[6]!==N[9].loading?d?(d.p(N,U),U[0]&580&&g(d,1)):(d=Dp(N),d.c(),g(d,1),d.m(e.parentNode,e)):d&&(ne(),b(d,1,1,()=>{d=null}),re()),N[6]===N[9].loading?m?U[0]&576&&g(m,1):(m=Mp(),m.c(),g(m,1),m.m(n.parentNode,n)):m&&(ne(),b(m,1,1,()=>{m=null}),re()),N[6]===N[9].broker?h?(h.p(N,U),U[0]&576&&g(h,1)):(h=Ep(N),h.c(),g(h,1),h.m(r.parentNode,r)):h&&(ne(),b(h,1,1,()=>{h=null}),re()),N[6]===N[9].depot?p?(p.p(N,U),U[0]&576&&g(p,1)):(p=Lp(N),p.c(),g(p,1),p.m(i.parentNode,i)):p&&(ne(),b(p,1,1,()=>{p=null}),re()),N[6]===N[9].portfolio&&N[7]!==void 0?v?(v.p(N,U),U[0]&704&&g(v,1)):(v=Np(N),v.c(),g(v,1),v.m(o.parentNode,o)):v&&(ne(),b(v,1,1,()=>{v=null}),re()),N[6]===N[9].order?w?(w.p(N,U),U[0]&576&&g(w,1)):(w=Pp(N),w.c(),g(w,1),w.m(l.parentNode,l)):w&&(ne(),b(w,1,1,()=>{w=null}),re()),N[6]===N[9].receipt?S?(S.p(N,U),U[0]&576&&g(S,1)):(S=$p(N),S.c(),g(S,1),S.m(a.parentNode,a)):S&&(ne(),b(S,1,1,()=>{S=null}),re()),N[6]===N[9].cancelOrder?y?(y.p(N,U),U[0]&576&&g(y,1)):(y=Rp(N),y.c(),g(y,1),y.m(s.parentNode,s)):y&&(ne(),b(y,1,1,()=>{y=null}),re()),N[6]===N[9].changeOrder?z?(z.p(N,U),U[0]&576&&g(z,1)):(z=Fp(N),z.c(),g(z,1),z.m(u.parentNode,u)):z&&(ne(),b(z,1,1,()=>{z=null}),re()),N[6]===N[9].sessions?O?(O.p(N,U),U[0]&576&&g(O,1)):(O=xp(N),O.c(),g(O,1),O.m(c.parentNode,c)):O&&(ne(),b(O,1,1,()=>{O=null}),re())},i(N){f||(g(d),g(m),g(h),g(p),g(v),g(w),g(S),g(y),g(z),g(O),f=!0)},o(N){b(d),b(m),b(h),b(p),b(v),b(w),b(S),b(y),b(z),b(O),f=!1},d(N){N&&(E(e),E(n),E(r),E(i),E(o),E(l),E(a),E(s),E(u),E(c)),d&&d.d(N),m&&m.d(N),h&&h.d(N),p&&p.d(N),v&&v.d(N),w&&w.d(N),S&&S.d(N),y&&y.d(N),z&&z.d(N),O&&O.d(N)}}}function m6(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[3],supportLink:t[4],showSecurityLink:!0,$$slots:{default:[h6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&8&&(o.addFrame=r[3]),i[0]&16&&(o.supportLink=r[4]),i[0]&8167|i[1]&512&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function g6(t,e,n){let r,i,o,l;var a;(function(Se){Se.loading="loading",Se.order="order",Se.depot="depot",Se.broker="broker",Se.receipt="receipt",Se.portfolio="portfolio",Se.changeOrder="changeOrder",Se.cancelOrder="cancelOrder",Se.sessions="sessions"})(a||(a={}));let{theme:s=null}=e,{apiCtx:u=null}=e,{useNavigation:c=!0}=e,{addFrame:f=!0}=e,{supportLink:d=null}=e,{returnToUrl:m=null}=e;const h={NavigateToDepot:()=>{P()},NavigateToPortfolio:Se=>{O(Se)},NavigateToOrderForm:(Se,De)=>{N(Se,De)},NavigateToChangeBroker:()=>{U()},NavigateToSessions:()=>{A()}},p=Bt();let v,w=!1;function S(Se){p("navigationStateChange",Se)}let y=S5(u),z=!0;y.subscribe(Se=>{Se&&(n(5,w=Se.sessions.length>0),z&&(P(),z=!1))});function O(Se=void 0){if(!Se&&!r){console.warn("ignoring navigation request to portfolio. Reason: ","No portfolio selected"),P();return}Se&&n(7,B=Se),n(6,Y=a.portfolio)}function N(Se,De){i&&(n(12,ee=De),n(10,v=Se),n(6,Y=a.order))}function U(){o&&n(6,Y=a.broker)}function A(){l&&n(6,Y=a.sessions)}function P(){w?n(6,Y=a.depot):(console.warn("ignoring navigation request to depot. Reason: ","No session available"),U())}let Y=a.loading,B,J,ee={};function X(Se){n(7,B=Se.detail.id),n(6,Y=a.portfolio)}function ce(Se){jt.showLoginForm(Se.detail.brokerName,m,De=>{window.location.href=De})}function he(Se){Se.detail.sessionId,jt.showSessionTanModal(Se.detail.sessionId)}function de(Se){N(Se.detail.isin,{})}function se(Se){n(11,J=Se.detail.orderId),n(6,Y=a.cancelOrder)}function ue(Se){n(11,J=Se.detail.orderId),n(6,Y=a.changeOrder)}function fe(Se){N(Se.detail.isin,{direction:"sell",size:Se.detail.availableSize})}function Oe(Se){n(11,J=Se.detail.orderId),n(6,Y=a.receipt)}function me(Se){jt.showToast({message:`Order ${Se.detail.orderId} successfully created`,style:"success"}),n(11,J=Se.detail.orderId),n(6,Y=a.receipt)}function we(Se){O(Se.detail.portfolioId)}function Fe(Se){O(Se.detail.portfolioId)}const pe=()=>O();return t.$$set=Se=>{"theme"in Se&&n(0,s=Se.theme),"apiCtx"in Se&&n(1,u=Se.apiCtx),"useNavigation"in Se&&n(2,c=Se.useNavigation),"addFrame"in Se&&n(3,f=Se.addFrame),"supportLink"in Se&&n(4,d=Se.supportLink),"returnToUrl"in Se&&n(28,m=Se.returnToUrl)},t.$$.update=()=>{t.$$.dirty[0]&128&&n(8,r=B!==void 0),t.$$.dirty[0]&256&&n(32,i=r),t.$$.dirty[0]&1073742176|t.$$.dirty[1]&3&&S({viewState:Y,canNavigateToDepot:w,canNavigateToPortfolio:r,canNavigateToOrderForm:i,canNavigateToChangeBroker:o,canNavigateToSessions:l})},n(31,o=!0),n(30,l=!0),[s,u,c,f,d,w,Y,B,r,a,v,J,ee,O,U,A,P,X,ce,he,de,se,ue,fe,Oe,me,we,Fe,m,h,l,o,i,pe]}class Up extends Ne{constructor(e){super(),Ee(this,e,g6,m6,Ae,{theme:0,apiCtx:1,useNavigation:2,addFrame:3,supportLink:4,returnToUrl:28,navigation:29},d6,[-1,-1])}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get apiCtx(){return this.$$.ctx[1]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get useNavigation(){return this.$$.ctx[2]}set useNavigation(e){this.$$set({useNavigation:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}get returnToUrl(){return this.$$.ctx[28]}set returnToUrl(e){this.$$set({returnToUrl:e}),C()}get navigation(){return this.$$.ctx[29]}}Le(Up,{theme:{},apiCtx:{},useNavigation:{type:"Boolean"},addFrame:{type:"Boolean"},supportLink:{},returnToUrl:{}},[],["navigation"],!0);function p6(t){let e,n,r;const i=[{theme:t[1]},{addFrame:t[3]},{supportLink:t[4]},{useNavigation:t[2]},t[6]];function o(a){t[10](a)}let l={};for(let a=0;a<i.length;a+=1)l=ve(l,i[a]);return t[0]!==void 0&&(l.navigation=t[0]),e=new Up({props:l}),xe.push(()=>Je(e,"navigation",o)),e.$on("navigationStateChange",t[11]),{c(){F(e.$$.fragment)},m(a,s){$(e,a,s),r=!0},p(a,s){const u=s&94?ut(i,[s&2&&{theme:a[1]},s&8&&{addFrame:a[3]},s&16&&{supportLink:a[4]},s&4&&{useNavigation:a[2]},s&64&&kt(a[6])]):{};!n&&s&1&&(n=!0,u.navigation=a[0],Ve(()=>n=!1)),e.$set(u)},i(a){r||(g(e.$$.fragment,a),r=!0)},o(a){b(e.$$.fragment,a),r=!1},d(a){R(e,a)}}}function b6(t){let e,n;const r=[t[6],{requiredProps:t[5]}];let i={$$slots:{default:[p6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&96?ut(r,[l&64&&kt(o[6]),l&32&&{requiredProps:o[5]}]):{};l&4191&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function v6(t,e,n){let{theme:r=bn}=e,{apiCtx:i=null}=e,{useNavigation:o=!0}=e,{navigation:l=null}=e,{addFrame:a=!0}=e,{supportLink:s=null}=e,{returnToUrl:u=null}=e;const c=["apiCtx"];let{openExternalLink:f=null}=e;function d(h){l=h,n(0,l)}function m(h){qe.call(this,t,h)}return t.$$set=h=>{n(6,e=ve(ve({},e),je(h))),"theme"in h&&n(1,r=h.theme),"apiCtx"in h&&n(7,i=h.apiCtx),"useNavigation"in h&&n(2,o=h.useNavigation),"navigation"in h&&n(0,l=h.navigation),"addFrame"in h&&n(3,a=h.addFrame),"supportLink"in h&&n(4,s=h.supportLink),"returnToUrl"in h&&n(8,u=h.returnToUrl),"openExternalLink"in h&&n(9,f=h.openExternalLink)},e=je(e),[l,r,o,a,s,c,e,i,u,f,d,m]}class Bp extends Ne{constructor(e){super(),Ee(this,e,v6,b6,Ae,{theme:1,apiCtx:7,useNavigation:2,navigation:0,addFrame:3,supportLink:4,returnToUrl:8,openExternalLink:9})}get theme(){return this.$$.ctx[1]}set theme(e){this.$$set({theme:e}),C()}get apiCtx(){return this.$$.ctx[7]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get useNavigation(){return this.$$.ctx[2]}set useNavigation(e){this.$$set({useNavigation:e}),C()}get navigation(){return this.$$.ctx[0]}set navigation(e){this.$$set({navigation:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}get returnToUrl(){return this.$$.ctx[8]}set returnToUrl(e){this.$$set({returnToUrl:e}),C()}get openExternalLink(){return this.$$.ctx[9]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-main",Le(Bp,{theme:{},apiCtx:{},useNavigation:{type:"Boolean"},navigation:{},addFrame:{type:"Boolean"},supportLink:{},returnToUrl:{},openExternalLink:{}},[],[],!0));function _6(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},{overrideBrokerExchangeId:t[3]},{lockOrderDirection:t[4]},{hideOrderDirection:t[5]},t[7]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ps({props:i}),e.$on("created",t[16]),e.$on("ordererror",t[17]),e.$on("navigate",t[18]),e.$on("orderchange",t[19]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&191?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&8&&{overrideBrokerExchangeId:o[3]},l&16&&{lockOrderDirection:o[4]},l&32&&{hideOrderDirection:o[5]},l&128&&kt(o[7])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function y6(t){let e,n;const r=[t[7],{requiredProps:t[6]}];let i={$$slots:{default:[_6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&192?ut(r,[l&128&&kt(o[7]),l&64&&{requiredProps:o[6]}]):{};l&1048767&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function k6(t,e,n){let{apiCtx:r=null}=e,{portfolioId:i=null}=e,{isin:o=null}=e,{security:l=null}=e,{theme:a=bn}=e,{addFrame:s=!0}=e,{supportLink:u=null}=e,{openExternalLink:c=null}=e,{preferredExchangeId:f=null}=e,{overrideBrokerExchangeId:d=null}=e,{lockOrderDirection:m=!1}=e,{hideOrderDirection:h=!1}=e,{initialOrderCreateValues:p=null}=e,{quotesProvider:v=null}=e;const w=["apiCtx","portfolioId","security"];function S(N){qe.call(this,t,N)}function y(N){qe.call(this,t,N)}function z(N){qe.call(this,t,N)}function O(N){qe.call(this,t,N)}return t.$$set=N=>{n(7,e=ve(ve({},e),je(N))),"apiCtx"in N&&n(8,r=N.apiCtx),"portfolioId"in N&&n(9,i=N.portfolioId),"isin"in N&&n(10,o=N.isin),"security"in N&&n(11,l=N.security),"theme"in N&&n(0,a=N.theme),"addFrame"in N&&n(1,s=N.addFrame),"supportLink"in N&&n(2,u=N.supportLink),"openExternalLink"in N&&n(12,c=N.openExternalLink),"preferredExchangeId"in N&&n(13,f=N.preferredExchangeId),"overrideBrokerExchangeId"in N&&n(3,d=N.overrideBrokerExchangeId),"lockOrderDirection"in N&&n(4,m=N.lockOrderDirection),"hideOrderDirection"in N&&n(5,h=N.hideOrderDirection),"initialOrderCreateValues"in N&&n(14,p=N.initialOrderCreateValues),"quotesProvider"in N&&n(15,v=N.quotesProvider)},e=je(e),[a,s,u,d,m,h,w,e,r,i,o,l,c,f,p,v,S,y,z,O]}class qp extends Ne{constructor(e){super(),Ee(this,e,k6,y6,Ae,{apiCtx:8,portfolioId:9,isin:10,security:11,theme:0,addFrame:1,supportLink:2,openExternalLink:12,preferredExchangeId:13,overrideBrokerExchangeId:3,lockOrderDirection:4,hideOrderDirection:5,initialOrderCreateValues:14,quotesProvider:15})}get apiCtx(){return this.$$.ctx[8]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get portfolioId(){return this.$$.ctx[9]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get isin(){return this.$$.ctx[10]}set isin(e){this.$$set({isin:e}),C()}get security(){return this.$$.ctx[11]}set security(e){this.$$set({security:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get openExternalLink(){return this.$$.ctx[12]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}get preferredExchangeId(){return this.$$.ctx[13]}set preferredExchangeId(e){this.$$set({preferredExchangeId:e}),C()}get overrideBrokerExchangeId(){return this.$$.ctx[3]}set overrideBrokerExchangeId(e){this.$$set({overrideBrokerExchangeId:e}),C()}get lockOrderDirection(){return this.$$.ctx[4]}set lockOrderDirection(e){this.$$set({lockOrderDirection:e}),C()}get hideOrderDirection(){return this.$$.ctx[5]}set hideOrderDirection(e){this.$$set({hideOrderDirection:e}),C()}get initialOrderCreateValues(){return this.$$.ctx[14]}set initialOrderCreateValues(e){this.$$set({initialOrderCreateValues:e}),C()}get quotesProvider(){return this.$$.ctx[15]}set quotesProvider(e){this.$$set({quotesProvider:e}),C()}}customElements.define("brokerize-order-form",Le(qp,{apiCtx:{},portfolioId:{},isin:{},security:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},openExternalLink:{},preferredExchangeId:{},overrideBrokerExchangeId:{},lockOrderDirection:{type:"Boolean"},hideOrderDirection:{type:"Boolean"},initialOrderCreateValues:{},quotesProvider:{}},[],[],!0));function w6(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Es({props:i}),e.$on("navigate",t[8]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function S6(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[w6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&535&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function T6(t,e,n){let{orderId:r=null}=e,{apiCtx:i=null}=e,{theme:o=bn}=e,{isOrderConfirmation:l=!1}=e,{addFrame:a=!0}=e,{supportLink:s=null}=e,u=["apiCtx","orderId"];function c(f){qe.call(this,t,f)}return t.$$set=f=>{n(4,e=ve(ve({},e),je(f))),"orderId"in f&&n(5,r=f.orderId),"apiCtx"in f&&n(6,i=f.apiCtx),"theme"in f&&n(0,o=f.theme),"isOrderConfirmation"in f&&n(7,l=f.isOrderConfirmation),"addFrame"in f&&n(1,a=f.addFrame),"supportLink"in f&&n(2,s=f.supportLink)},e=je(e),[o,a,s,u,e,r,i,l,c]}class Vp extends Ne{constructor(e){super(),Ee(this,e,T6,S6,Ae,{orderId:5,apiCtx:6,theme:0,isOrderConfirmation:7,addFrame:1,supportLink:2})}get orderId(){return this.$$.ctx[5]}set orderId(e){this.$$set({orderId:e}),C()}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get isOrderConfirmation(){return this.$$.ctx[7]}set isOrderConfirmation(e){this.$$set({isOrderConfirmation:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}}customElements.define("brokerize-order-receipt",Le(Vp,{orderId:{},apiCtx:{},theme:{},isOrderConfirmation:{type:"Boolean"},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0));function z6(t){let e,n;return e=new Mo({props:{broker:t[5],portfolioId:t[0],apiCtx:t[1]}}),e.$on("editOrder",t[6]),e.$on("cancelOrder",t[7]),e.$on("showReceipt",t[8]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&32&&(o.broker=r[5]),i&1&&(o.portfolioId=r[0]),i&2&&(o.apiCtx=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function C6(t){let e,n;return e=new Jn({props:{$$slots:{default:[z6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&4131&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function O6(t){let e,n;return e=new Pn({props:{theme:t[2],addFrame:t[3],supportLink:t[4],addShadow:!0,$$slots:{default:[C6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&4&&(o.theme=r[2]),i&8&&(o.addFrame=r[3]),i&16&&(o.supportLink=r[4]),i&4131&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function I6(t,e,n){let{portfolioId:r=null}=e,{apiCtx:i=null}=e,{theme:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,s,u,c=!1;async function f(){if(!c||!i)return;const[p]=await Promise.all([i.getBrokers()]),v=(await i.getPortfolios()).portfolios.find(w=>w.id==r);s=p,n(5,u=s.brokers.find(w=>w.brokerName==v.brokerName))}ir(()=>{c=!0,f()});function d(p){qe.call(this,t,p)}function m(p){qe.call(this,t,p)}function h(p){qe.call(this,t,p)}return t.$$set=p=>{"portfolioId"in p&&n(0,r=p.portfolioId),"apiCtx"in p&&n(1,i=p.apiCtx),"theme"in p&&n(2,o=p.theme),"addFrame"in p&&n(3,l=p.addFrame),"supportLink"in p&&n(4,a=p.supportLink)},t.$$.update=()=>{t.$$.dirty&3&&i&&r&&f()},[r,i,o,l,a,u,d,m,h]}class Jp extends Ne{constructor(e){super(),Ee(this,e,I6,O6,Ae,{portfolioId:0,apiCtx:1,theme:2,addFrame:3,supportLink:4})}get portfolioId(){return this.$$.ctx[0]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[1]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(Jp,{portfolioId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function A6(t){let e,n;const r=[{theme:t[2]},{addFrame:t[0]},{supportLink:t[1]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Jp({props:i}),e.$on("cancelOrder",t[8]),e.$on("editOrder",t[9]),e.$on("showReceipt",t[10]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&4&&{theme:o[2]},l&1&&{addFrame:o[0]},l&2&&{supportLink:o[1]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function D6(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[A6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&2071&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function M6(t,e,n){let{portfolioId:r=null}=e,{apiCtx:i=null}=e,{addFrame:o=!0}=e,{supportLink:l=null}=e,{theme:a=bn}=e,{openExternalLink:s=null}=e,u=["apiCtx","portfolioId"];function c(m){qe.call(this,t,m)}function f(m){qe.call(this,t,m)}function d(m){qe.call(this,t,m)}return t.$$set=m=>{n(4,e=ve(ve({},e),je(m))),"portfolioId"in m&&n(5,r=m.portfolioId),"apiCtx"in m&&n(6,i=m.apiCtx),"addFrame"in m&&n(0,o=m.addFrame),"supportLink"in m&&n(1,l=m.supportLink),"theme"in m&&n(2,a=m.theme),"openExternalLink"in m&&n(7,s=m.openExternalLink)},e=je(e),[o,l,a,u,e,r,i,s,c,f,d]}class Hp extends Ne{constructor(e){super(),Ee(this,e,M6,D6,Ae,{portfolioId:5,apiCtx:6,addFrame:0,supportLink:1,theme:2,openExternalLink:7})}get portfolioId(){return this.$$.ctx[5]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get addFrame(){return this.$$.ctx[0]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[1]}set supportLink(e){this.$$set({supportLink:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-order-table",Le(Hp,{portfolioId:{},apiCtx:{},addFrame:{type:"Boolean"},supportLink:{},theme:{},openExternalLink:{}},[],[],!0));function E6(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{hideInactivePortfolios:t[3]},{supportLink:t[2]},t[5]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new $s({props:i}),e.$on("navigate",t[8]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&47?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&8&&{hideInactivePortfolios:o[3]},l&4&&{supportLink:o[2]},l&32&&kt(o[5])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function L6(t){let e,n;const r=[t[5],{requiredProps:t[4]}];let i={$$slots:{default:[E6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&48?ut(r,[l&32&&kt(o[5]),l&16&&{requiredProps:o[4]}]):{};l&559&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function N6(t,e,n){let{apiCtx:r=null}=e,{theme:i=bn}=e,{addFrame:o=!0}=e,{supportLink:l=null}=e,{hideInactivePortfolios:a=!1}=e,{openExternalLink:s=null}=e,u=["apiCtx"];function c(f){qe.call(this,t,f)}return t.$$set=f=>{n(5,e=ve(ve({},e),je(f))),"apiCtx"in f&&n(6,r=f.apiCtx),"theme"in f&&n(0,i=f.theme),"addFrame"in f&&n(1,o=f.addFrame),"supportLink"in f&&n(2,l=f.supportLink),"hideInactivePortfolios"in f&&n(3,a=f.hideInactivePortfolios),"openExternalLink"in f&&n(7,s=f.openExternalLink)},e=je(e),[i,o,l,a,u,e,r,s,c]}class Wp extends Ne{constructor(e){super(),Ee(this,e,N6,L6,Ae,{apiCtx:6,theme:0,addFrame:1,supportLink:2,hideInactivePortfolios:3,openExternalLink:7})}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get hideInactivePortfolios(){return this.$$.ctx[3]}set hideInactivePortfolios(e){this.$$set({hideInactivePortfolios:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-portfolio-table",Le(Wp,{apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},hideInactivePortfolios:{type:"Boolean"},openExternalLink:{}},[],[],!0));function P6(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Ms({props:i}),e.$on("buy",t[8]),e.$on("cancelOrder",t[9]),e.$on("editOrder",t[10]),e.$on("showReceipt",t[11]),e.$on("sell",t[12]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function $6(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[P6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&8215&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function R6(t,e,n){let{portfolioId:r=void 0}=e,{apiCtx:i=null}=e,{theme:o=bn}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,{openExternalLink:s=null}=e,u=["apiCtx","portfolioId"];function c(p){qe.call(this,t,p)}function f(p){qe.call(this,t,p)}function d(p){qe.call(this,t,p)}function m(p){qe.call(this,t,p)}function h(p){qe.call(this,t,p)}return t.$$set=p=>{n(4,e=ve(ve({},e),je(p))),"portfolioId"in p&&n(5,r=p.portfolioId),"apiCtx"in p&&n(6,i=p.apiCtx),"theme"in p&&n(0,o=p.theme),"addFrame"in p&&n(1,l=p.addFrame),"supportLink"in p&&n(2,a=p.supportLink),"openExternalLink"in p&&n(7,s=p.openExternalLink)},e=je(e),[o,l,a,u,e,r,i,s,c,f,d,m,h]}class Yp extends Ne{constructor(e){super(),Ee(this,e,R6,$6,Ae,{portfolioId:5,apiCtx:6,theme:0,addFrame:1,supportLink:2,openExternalLink:7})}get portfolioId(){return this.$$.ctx[5]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-portfolio-view",Le(Yp,{portfolioId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},openExternalLink:{}},[],[],!0));function F6(t){let e,n;return e=new Ds({props:{broker:t[5],portfolioId:t[0],apiCtx:t[1]}}),e.$on("buy",t[6]),e.$on("sell",t[7]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&32&&(o.broker=r[5]),i&1&&(o.portfolioId=r[0]),i&2&&(o.apiCtx=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function x6(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[F6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2083&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function U6(t){let e,n;return e=new Pn({props:{theme:t[2],addFrame:t[3],supportLink:t[4],addShadow:!0,$$slots:{default:[x6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&4&&(o.theme=r[2]),i&8&&(o.addFrame=r[3]),i&16&&(o.supportLink=r[4]),i&2083&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function B6(t,e,n){let{portfolioId:r=null}=e,{apiCtx:i=null}=e,{theme:o=null}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,s,u,c=!1;async function f(){if(!c||!i)return;const[h]=await Promise.all([i.getBrokers()]),p=(await i.getPortfolios()).portfolios.find(v=>v.id==r);s=h,n(5,u=s.brokers.find(v=>v.brokerName==p.brokerName))}ir(()=>{c=!0,f()});function d(h){qe.call(this,t,h)}function m(h){qe.call(this,t,h)}return t.$$set=h=>{"portfolioId"in h&&n(0,r=h.portfolioId),"apiCtx"in h&&n(1,i=h.apiCtx),"theme"in h&&n(2,o=h.theme),"addFrame"in h&&n(3,l=h.addFrame),"supportLink"in h&&n(4,a=h.supportLink)},t.$$.update=()=>{t.$$.dirty&3&&i&&r&&f()},[r,i,o,l,a,u,d,m]}class Gp extends Ne{constructor(e){super(),Ee(this,e,B6,U6,Ae,{portfolioId:0,apiCtx:1,theme:2,addFrame:3,supportLink:4})}get portfolioId(){return this.$$.ctx[0]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[1]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[2]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[3]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[4]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(Gp,{portfolioId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function q6(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Gp({props:i}),e.$on("buy",t[8]),e.$on("sell",t[9]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function V6(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[q6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&1047&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function J6(t,e,n){let{portfolioId:r=void 0}=e,{apiCtx:i=null}=e,{theme:o=bn}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,{openExternalLink:s=null}=e,u=["apiCtx","portfolioId"];function c(d){qe.call(this,t,d)}function f(d){qe.call(this,t,d)}return t.$$set=d=>{n(4,e=ve(ve({},e),je(d))),"portfolioId"in d&&n(5,r=d.portfolioId),"apiCtx"in d&&n(6,i=d.apiCtx),"theme"in d&&n(0,o=d.theme),"addFrame"in d&&n(1,l=d.addFrame),"supportLink"in d&&n(2,a=d.supportLink),"openExternalLink"in d&&n(7,s=d.openExternalLink)},e=je(e),[o,l,a,u,e,r,i,s,c,f]}class Kp extends Ne{constructor(e){super(),Ee(this,e,J6,V6,Ae,{portfolioId:5,apiCtx:6,theme:0,addFrame:1,supportLink:2,openExternalLink:7})}get portfolioId(){return this.$$.ctx[5]}set portfolioId(e){this.$$set({portfolioId:e}),C()}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}}customElements.define("brokerize-positions-table",Le(Kp,{portfolioId:{},apiCtx:{},theme:{},addFrame:{type:"Boolean"},supportLink:{},openExternalLink:{}},[],[],!0));function H6(t){let e,n;const r=[{theme:t[3]},{addFrame:t[0]},{supportLink:t[1]},{parentHasNoPadding:t[2]},t[5]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Rs({props:i}),e.$on("enableSessionTan",t[8]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&47?ut(r,[l&8&&{theme:o[3]},l&1&&{addFrame:o[0]},l&2&&{supportLink:o[1]},l&4&&{parentHasNoPadding:o[2]},l&32&&kt(o[5])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function W6(t){let e,n;const r=[t[5],{requiredProps:t[4]}];let i={$$slots:{default:[H6]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&48?ut(r,[l&32&&kt(o[5]),l&16&&{requiredProps:o[4]}]):{};l&559&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function Y6(t,e,n){let{apiCtx:r=null}=e,{addFrame:i=!0}=e,{supportLink:o=null}=e,{parentHasNoPadding:l=!0}=e,{openExternalLink:a=null}=e,{theme:s=bn}=e,u=["apiCtx"];function c(f){qe.call(this,t,f)}return t.$$set=f=>{n(5,e=ve(ve({},e),je(f))),"apiCtx"in f&&n(6,r=f.apiCtx),"addFrame"in f&&n(0,i=f.addFrame),"supportLink"in f&&n(1,o=f.supportLink),"parentHasNoPadding"in f&&n(2,l=f.parentHasNoPadding),"openExternalLink"in f&&n(7,a=f.openExternalLink),"theme"in f&&n(3,s=f.theme)},e=je(e),[i,o,l,s,u,e,r,a,c]}class Qp extends Ne{constructor(e){super(),Ee(this,e,Y6,W6,Ae,{apiCtx:6,addFrame:0,supportLink:1,parentHasNoPadding:2,openExternalLink:7,theme:3})}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get addFrame(){return this.$$.ctx[0]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[1]}set supportLink(e){this.$$set({supportLink:e}),C()}get parentHasNoPadding(){return this.$$.ctx[2]}set parentHasNoPadding(e){this.$$set({parentHasNoPadding:e}),C()}get openExternalLink(){return this.$$.ctx[7]}set openExternalLink(e){this.$$set({openExternalLink:e}),C()}get theme(){return this.$$.ctx[3]}set theme(e){this.$$set({theme:e}),C()}}customElements.define("brokerize-sessions-table",Le(Qp,{apiCtx:{},addFrame:{type:"Boolean"},supportLink:{},parentHasNoPadding:{type:"Boolean"},openExternalLink:{},theme:{}},[],[],!0));function jp(t){let e,n,r,i;function o(a){t[14](a)}let l={label:"Authentifizierungsmethode",layout:t[8],placeholder:"Wählen Sie eine Authentifizierungsmethode",items:t[10]};return t[0]!==void 0&&(l.selected=t[0]),n=new Un({props:l}),xe.push(()=>Je(n,"selected",o)),{c(){e=W("div"),F(n.$$.fragment)},m(a,s){L(a,e,s),$(n,e,null),i=!0},p(a,s){const u={};s&256&&(u.layout=a[8]),s&1024&&(u.items=a[10]),!r&&s&1&&(r=!0,u.selected=a[0],Ve(()=>r=!1)),n.$set(u)},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n)}}}function G6(t){let e,n,r,i,o,l,a;function s(c){t[19](c)}let u={id:"inp_tan",type:"text",name:"challengeResponse",label:t[9].tanFieldLabel,layout:t[8],autofocus:!0,enterMaySubmit:!0};return t[1]!==void 0&&(u.value=t[1]),n=new Mt({props:u}),xe.push(()=>Je(n,"value",s)),l=new nt({props:{id:"btn_activate_tan",text:"Session-TAN aktivieren",variant:"default",width:"full"}}),l.$on("click",t[20]),{c(){e=W("div"),F(n.$$.fragment),i=j(),o=W("div"),F(l.$$.fragment)},m(c,f){L(c,e,f),$(n,e,null),L(c,i,f),L(c,o,f),$(l,o,null),a=!0},p(c,f){const d={};f&512&&(d.label=c[9].tanFieldLabel),f&256&&(d.layout=c[8]),!r&&f&2&&(r=!0,d.value=c[1],Ve(()=>r=!1)),n.$set(d)},i(c){a||(g(n.$$.fragment,c),g(l.$$.fragment,c),a=!0)},o(c){b(n.$$.fragment,c),b(l.$$.fragment,c),a=!1},d(c){c&&(E(e),E(i),E(o)),R(n),R(l)}}}function K6(t){let e,n,r,i;n=new nt({props:{text:"Weiter",variant:"default",width:"full",autofocus:!0}}),n.$on("click",t[17]);let o=t[7]&&Xp(t);return{c(){e=W("div"),F(n.$$.fragment),r=j(),o&&o.c()},m(l,a){L(l,e,a),$(n,e,null),V(e,r),o&&o.m(e,null),i=!0},p(l,a){l[7]?o?(o.p(l,a),a&128&&g(o,1)):(o=Xp(l),o.c(),g(o,1),o.m(e,null)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){i||(g(n.$$.fragment,l),g(o),i=!0)},o(l){b(n.$$.fragment,l),b(o),i=!1},d(l){l&&E(e),R(n),o&&o.d()}}}function Q6(t){let e,n,r,i,o=t[6]&&Zp(),l=!t[3]&&eb(t),a=t[3]&&tb(t);return{c(){o&&o.c(),e=j(),l&&l.c(),n=j(),a&&a.c(),r=Xe()},m(s,u){o&&o.m(s,u),L(s,e,u),l&&l.m(s,u),L(s,n,u),a&&a.m(s,u),L(s,r,u),i=!0},p(s,u){s[6]?o?u&64&&g(o,1):(o=Zp(),o.c(),g(o,1),o.m(e.parentNode,e)):o&&(ne(),b(o,1,1,()=>{o=null}),re()),s[3]?l&&(ne(),b(l,1,1,()=>{l=null}),re()):l?(l.p(s,u),u&8&&g(l,1)):(l=eb(s),l.c(),g(l,1),l.m(n.parentNode,n)),s[3]?a?(a.p(s,u),u&8&&g(a,1)):(a=tb(s),a.c(),g(a,1),a.m(r.parentNode,r)):a&&(ne(),b(a,1,1,()=>{a=null}),re())},i(s){i||(g(o),g(l),g(a),i=!0)},o(s){b(o),b(l),b(a),i=!1},d(s){s&&(E(e),E(n),E(r)),o&&o.d(s),l&&l.d(s),a&&a.d(s)}}}function Xp(t){let e,n,r;return n=new fl({props:{status:t[7]}}),n.$on("cancel",t[18]),{c(){e=W("div"),F(n.$$.fragment)},m(i,o){L(i,e,o),$(n,e,null),r=!0},p(i,o){const l={};o&128&&(l.status=i[7]),n.$set(l)},i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function Zp(t){let e,n;return e=new Sn({}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function eb(t){var i;let e,n,r;return n=new nt({props:{text:(i=t[9])==null?void 0:i.getChallengeLabel,busy:t[6],variant:"default",width:"full",autofocus:!0}}),n.$on("click",t[12]),{c(){e=W("div"),F(n.$$.fragment)},m(o,l){L(o,e,l),$(n,e,null),r=!0},p(o,l){var s;const a={};l&512&&(a.text=(s=o[9])==null?void 0:s.getChallengeLabel),l&64&&(a.busy=o[6]),n.$set(a)},i(o){r||(g(n.$$.fragment,o),r=!0)},o(o){b(n.$$.fragment,o),r=!1},d(o){o&&E(e),R(n)}}}function tb(t){var a;let e,n,r,i,o;e=new Fi({props:{challenge:t[3]}});let l=!((a=t[9])!=null&&a.challengeResponseIsOnlyConfirmation)&&nb(t);return i=new go({props:{showAside:!!t[4],$$slots:{aside:[X6],default:[j6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment),n=j(),l&&l.c(),r=j(),F(i.$$.fragment)},m(s,u){$(e,s,u),L(s,n,u),l&&l.m(s,u),L(s,r,u),$(i,s,u),o=!0},p(s,u){var d;const c={};u&8&&(c.challenge=s[3]),e.$set(c),(d=s[9])!=null&&d.challengeResponseIsOnlyConfirmation?l&&(ne(),b(l,1,1,()=>{l=null}),re()):l?(l.p(s,u),u&512&&g(l,1)):(l=nb(s),l.c(),g(l,1),l.m(r.parentNode,r));const f={};u&16&&(f.showAside=!!s[4]),u&4194896&&(f.$$scope={dirty:u,ctx:s}),i.$set(f)},i(s){o||(g(e.$$.fragment,s),g(l),g(i.$$.fragment,s),o=!0)},o(s){b(e.$$.fragment,s),b(l),b(i.$$.fragment,s),o=!1},d(s){s&&(E(n),E(r)),R(e,s),l&&l.d(s),R(i,s)}}}function nb(t){let e,n,r,i;function o(a){t[15](a)}let l={id:"inp_challenge_response",type:"text",name:"challengeResponse",label:t[9].tanFieldLabel,layout:t[8],autofocus:!0,enterMaySubmit:!0};return t[1]!==void 0&&(l.value=t[1]),n=new Mt({props:l}),xe.push(()=>Je(n,"value",o)),{c(){e=W("div"),F(n.$$.fragment)},m(a,s){L(a,e,s),$(n,e,null),i=!0},p(a,s){const u={};s&512&&(u.label=a[9].tanFieldLabel),s&256&&(u.layout=a[8]),!r&&s&2&&(r=!0,u.value=a[1],Ve(()=>r=!1)),n.$set(u)},i(a){i||(g(n.$$.fragment,a),i=!0)},o(a){b(n.$$.fragment,a),i=!1},d(a){a&&E(e),R(n)}}}function j6(t){var r;let e,n;return e=new nt({props:{id:"btn_enable_session_tan",height:"full",variant:"default",width:"full",text:(r=t[9])!=null&&r.challengeResponseIsOnlyConfirmation?"Freigeben":"Session-TAN aktivieren"}}),e.$on("click",t[16]),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o&512&&(l.text=(a=i[9])!=null&&a.challengeResponseIsOnlyConfirmation?"Freigeben":"Session-TAN aktivieren"),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function rb(t){var r;let e,n;return e=new nt({props:{height:"full",variant:"outlined",icon:"RotateCw",text:(r=t[9])==null?void 0:r.getChallengeLabel,busy:t[6]}}),e.$on("click",t[12]),{c(){F(e.$$.fragment)},m(i,o){$(e,i,o),n=!0},p(i,o){var a;const l={};o&512&&(l.text=(a=i[9])==null?void 0:a.getChallengeLabel),o&64&&(l.busy=i[6]),e.$set(l)},i(i){n||(g(e.$$.fragment,i),n=!0)},o(i){b(e.$$.fragment,i),n=!1},d(i){R(e,i)}}}function X6(t){let e,n,r=t[4]&&rb(t);return{c(){e=W("div"),r&&r.c(),x(e,"slot","aside")},m(i,o){L(i,e,o),r&&r.m(e,null),n=!0},p(i,o){i[4]?r?(r.p(i,o),o&16&&g(r,1)):(r=rb(i),r.c(),g(r,1),r.m(e,null)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d()}}}function Z6(t){let e,n,r,i,o,l,a,s,u;n=new zn({props:{error:t[4]}}),i=new zn({props:{error:t[5]}});let c=t[2]&&jp(t);const f=[Q6,K6,G6],d=[];function m(h,p){var v,w,S;return((v=h[9])==null?void 0:v.flow)=="CHALLENGE_RESPONSE"?0:((w=h[9])==null?void 0:w.flow)=="DECOUPLED"?1:((S=h[9])==null?void 0:S.flow)=="TAN"?2:-1}return~(a=m(t))&&(s=d[a]=f[a](t)),{c(){e=W("div"),F(n.$$.fragment),r=j(),F(i.$$.fragment),o=j(),c&&c.c(),l=j(),s&&s.c(),x(e,"class","zlc-gap-y")},m(h,p){L(h,e,p),$(n,e,null),V(e,r),$(i,e,null),V(e,o),c&&c.m(e,null),V(e,l),~a&&d[a].m(e,null),u=!0},p(h,p){const v={};p&16&&(v.error=h[4]),n.$set(v);const w={};p&32&&(w.error=h[5]),i.$set(w),h[2]?c?(c.p(h,p),p&4&&g(c,1)):(c=jp(h),c.c(),g(c,1),c.m(e,l)):c&&(ne(),b(c,1,1,()=>{c=null}),re());let S=a;a=m(h),a===S?~a&&d[a].p(h,p):(s&&(ne(),b(d[S],1,1,()=>{d[S]=null}),re()),~a?(s=d[a],s?s.p(h,p):(s=d[a]=f[a](h),s.c()),g(s,1),s.m(e,null)):s=null)},i(h){u||(g(n.$$.fragment,h),g(i.$$.fragment,h),g(c),g(s),u=!0)},o(h){b(n.$$.fragment,h),b(i.$$.fragment,h),b(c),b(s),u=!1},d(h){h&&E(e),R(n),R(i),c&&c.d(),~a&&d[a].d()}}}function e$(t){let e,n;return e=new Ji({props:{$$slots:{default:[Z6]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&4196351&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function t$(t,e,n){let r,i,{authInfo:o=null}=e,{authMethod:l=null}=e,{challenge:a=null}=e,{enableError:s=null}=e,{enableLoading:u=!1}=e,{challengeError:c=null}=e,{challengeLoading:f=null}=e,{challengeResponse:d=""}=e,{decoupledOperationStatus:m=null}=e;const h=Bt(),p=tn("themeConfig");let v;p.subscribe(P=>n(8,v=P==null?void 0:P.layout));function w(){h("challenge",{authMethod:l})}function S(P){l=P,n(0,l)}function y(P){d=P,n(1,d)}const z=()=>h("enableSessionTan"),O=()=>h("enableSessionTan"),N=()=>h("cancelDecoupledOperation");function U(P){d=P,n(1,d)}const A=()=>h("enableSessionTan");return t.$$set=P=>{"authInfo"in P&&n(2,o=P.authInfo),"authMethod"in P&&n(0,l=P.authMethod),"challenge"in P&&n(3,a=P.challenge),"enableError"in P&&n(4,s=P.enableError),"enableLoading"in P&&n(13,u=P.enableLoading),"challengeError"in P&&n(5,c=P.challengeError),"challengeLoading"in P&&n(6,f=P.challengeLoading),"challengeResponse"in P&&n(1,d=P.challengeResponse),"decoupledOperationStatus"in P&&n(7,m=P.decoupledOperationStatus)},t.$$.update=()=>{var P;t.$$.dirty&4&&n(10,r=(P=o==null?void 0:o.authMethods)==null?void 0:P.map(Y=>({id:Y.id,value:Y.label}))),t.$$.dirty&5&&n(9,i=((o==null?void 0:o.authMethods)||[]).find(Y=>Y.id==l))},[l,d,o,a,s,c,f,m,v,i,r,h,w,u,S,y,z,O,N,U,A]}class ib extends Ne{constructor(e){super(),Ee(this,e,t$,e$,Ae,{authInfo:2,authMethod:0,challenge:3,enableError:4,enableLoading:13,challengeError:5,challengeLoading:6,challengeResponse:1,decoupledOperationStatus:7})}get authInfo(){return this.$$.ctx[2]}set authInfo(e){this.$$set({authInfo:e}),C()}get authMethod(){return this.$$.ctx[0]}set authMethod(e){this.$$set({authMethod:e}),C()}get challenge(){return this.$$.ctx[3]}set challenge(e){this.$$set({challenge:e}),C()}get enableError(){return this.$$.ctx[4]}set enableError(e){this.$$set({enableError:e}),C()}get enableLoading(){return this.$$.ctx[13]}set enableLoading(e){this.$$set({enableLoading:e}),C()}get challengeError(){return this.$$.ctx[5]}set challengeError(e){this.$$set({challengeError:e}),C()}get challengeLoading(){return this.$$.ctx[6]}set challengeLoading(e){this.$$set({challengeLoading:e}),C()}get challengeResponse(){return this.$$.ctx[1]}set challengeResponse(e){this.$$set({challengeResponse:e}),C()}get decoupledOperationStatus(){return this.$$.ctx[7]}set decoupledOperationStatus(e){this.$$set({decoupledOperationStatus:e}),C()}}Le(ib,{authInfo:{},authMethod:{},challenge:{},enableError:{},enableLoading:{type:"Boolean"},challengeError:{},challengeLoading:{},challengeResponse:{},decoupledOperationStatus:{}},[],[],!0);function n$(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function r$(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[1],supportLink:t[2],$$slots:{default:[o$]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&2&&(o.addFrame=r[1]),i[0]&4&&(o.supportLink=r[2]),i[0]&16344|i[1]&128&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function ob(t){let e,n,r,i;return e=new zn({props:{errorPrefix:"Verbindungsfehler, bitte erneut versuchen.",error:t[6]}}),{c(){F(e.$$.fragment),n=j(),r=W("div"),_n(r,"height","1em")},m(o,l){$(e,o,l),L(o,n,l),L(o,r,l),i=!0},p(o,l){const a={};l[0]&64&&(a.error=o[6]),e.$set(a)},i(o){i||(g(e.$$.fragment,o),i=!0)},o(o){b(e.$$.fragment,o),i=!1},d(o){o&&(E(n),E(r)),R(e,o)}}}function i$(t){let e,n,r,i,o,l=t[6]&&ob(t);function a(c){t[22](c)}function s(c){t[23](c)}let u={authInfo:t[3],challenge:t[7],challengeLoading:t[9],challengeError:t[8],enableError:t[10],enableLoading:t[11],decoupledOperationStatus:t[13]};return t[4]!==void 0&&(u.authMethod=t[4]),t[12]!==void 0&&(u.challengeResponse=t[12]),n=new ib({props:u}),xe.push(()=>Je(n,"authMethod",a)),xe.push(()=>Je(n,"challengeResponse",s)),n.$on("enableSessionTan",t[16]),n.$on("challenge",t[17]),n.$on("cancelDecoupledOperation",t[18]),{c(){l&&l.c(),e=j(),F(n.$$.fragment)},m(c,f){l&&l.m(c,f),L(c,e,f),$(n,c,f),o=!0},p(c,f){c[6]?l?(l.p(c,f),f[0]&64&&g(l,1)):(l=ob(c),l.c(),g(l,1),l.m(e.parentNode,e)):l&&(ne(),b(l,1,1,()=>{l=null}),re());const d={};f[0]&8&&(d.authInfo=c[3]),f[0]&128&&(d.challenge=c[7]),f[0]&512&&(d.challengeLoading=c[9]),f[0]&256&&(d.challengeError=c[8]),f[0]&1024&&(d.enableError=c[10]),f[0]&2048&&(d.enableLoading=c[11]),f[0]&8192&&(d.decoupledOperationStatus=c[13]),!r&&f[0]&16&&(r=!0,d.authMethod=c[4],Ve(()=>r=!1)),!i&&f[0]&4096&&(i=!0,d.challengeResponse=c[12],Ve(()=>i=!1)),n.$set(d)},i(c){o||(g(l),g(n.$$.fragment,c),o=!0)},o(c){b(l),b(n.$$.fragment,c),o=!1},d(c){c&&E(e),l&&l.d(c),R(n,c)}}}function o$(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[i$]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&16344|i[1]&128&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function l$(t){let e,n,r,i;const o=[r$,n$],l=[];function a(s,u){return s[14]&&!s[15]?0:s[5]||s[15]?1:-1}return~(e=a(t))&&(n=l[e]=o[e](t)),{c(){n&&n.c(),r=Xe()},m(s,u){~e&&l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?~e&&l[e].p(s,u):(n&&(ne(),b(l[c],1,1,()=>{l[c]=null}),re()),~e?(n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r)):n=null)},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),~e&&l[e].d(s)}}}function a$(t,e,n){let r,{apiCtx:i=null}=e,{sessionId:o=null}=e,{theme:l=null}=e,{addFrame:a=!0}=e,{supportLink:s=null}=e,u;const c=new Ci;mr(()=>{c.unsubscribe()});let f,d,m,h=null,p=!1,v=null,w=!1,S=null,y="",z=null,O=null;const N=Bt();function U(pe){f==null||f.destroy(),pe?n(21,f=pe.createChildContext()):n(21,f=null)}function A(){n(7,m=null),n(9,p=!1),n(8,h=null),ue==null||ue.destroy()}function P(pe){n(10,v=null),n(11,w=!1),A(),me(),de(null)}let Y=!1,B=!1;function J(){n(15,B=!0),n(14,Y=!1),c.add(w5(f,o).subscribe({error(pe){n(6,u=pe)},next:pe=>{n(3,d=pe==null?void 0:pe.authInfo);const Se=(d==null?void 0:d.authMethods)||[];if(Se.length&&!Se.find(De=>De.id==S)){const De=Se.find(Ze=>Ze.isDefaultMethod);n(4,S=(De==null?void 0:De.id)||Se[0].id)}!Y&&Se.length==1&&Se[0].isDefaultMethod&&Se[0].flow=="CHALLENGE_RESPONSE"&&Oe(),n(15,B=!1),n(14,Y=!0)}}))}let ee=!1;function X(pe){N("exit",{enabled:pe})}function ce(pe){if(n(13,O=pe),pe==null)return;const Se=pe.state;Se!="AUTHORIZATION_INITIAL"&&de(null),Se=="AUTHORIZATION_USER_ACCEPTED"?X(!0):Se!="AUTHORIZATION_INITIAL"&&(Do(pe.text,jt),X(!1))}let he=null;function de(pe){if(z=pe,n(13,O=null),he==null||he.unsubscribe(),!pe)return;he=f.createWebSocketClient().subscribeDecoupledOperation({decoupledOperationId:z,sessionId:o},(De,Ze)=>{De?de(null):ce(Ze.status)}),f.getDecoupledOperationStatus({decoupledOperationId:pe,sessionId:o}).then(De=>{ce(De)},De=>{n(13,O=null)})}async function se(){n(10,v=null);try{const pe=fe(),Se=await f.enableSessionTan({sessionId:o,enableSessionTanParams:pe});Se.decoupledOperationId?de(Se.decoupledOperationId):X(!0)}catch(pe){n(10,v=pe)}}let ue=null;function fe(){if((r==null?void 0:r.flow)=="CHALLENGE_RESPONSE")return{kind:"challengeResponse",authMethod:S,challengeId:m.challengeId,challengeResponse:y};if((r==null?void 0:r.flow)=="TAN")return{kind:"tan",authMethod:S,tan:y};if((r==null?void 0:r.flow)=="DECOUPLED")return{kind:"decoupled",authMethod:S};throw new Error("Unknown authMethod.flow: "+(r==null?void 0:r.flow))}async function Oe(){ue==null||ue.destroy(),ue=f.createChildContext(),n(10,v=null),n(9,p=!0),n(8,h=null);try{n(7,m=await f.createSessionTanChallenge({sessionId:o,createTanChallengeParams:{authMethod:S}})),n(9,p=!1)}catch(pe){n(8,h=pe),n(9,p=!1)}}function me(){if(!z)return;const pe=z;de(null),f.cancelDecoupledOperation({decoupledOperationId:pe,sessionId:o}).then(()=>{z=null,n(13,O=null)},Se=>{n(10,v=Se)})}function we(pe){S=pe,n(4,S)}function Fe(pe){y=pe,n(12,y)}return t.$$set=pe=>{"apiCtx"in pe&&n(19,i=pe.apiCtx),"sessionId"in pe&&n(20,o=pe.sessionId),"theme"in pe&&n(0,l=pe.theme),"addFrame"in pe&&n(1,a=pe.addFrame),"supportLink"in pe&&n(2,s=pe.supportLink)},t.$$.update=()=>{t.$$.dirty[0]&524288&&U(i),t.$$.dirty[0]&16&&P(),t.$$.dirty[0]&3145760&&(n(5,ee=!!(f&&o)),ee&&J()),t.$$.dirty[0]&24&&(r=((d==null?void 0:d.authMethods)||[]).find(pe=>pe.id==S))},[l,a,s,d,S,ee,u,m,h,p,v,w,y,O,Y,B,se,Oe,me,i,o,f,we,Fe]}class lb extends Ne{constructor(e){super(),Ee(this,e,a$,l$,Ae,{apiCtx:19,sessionId:20,theme:0,addFrame:1,supportLink:2},null,[-1,-1])}get apiCtx(){return this.$$.ctx[19]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get sessionId(){return this.$$.ctx[20]}set sessionId(e){this.$$set({sessionId:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}}Le(lb,{apiCtx:{},sessionId:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0);function s$(t){let e,n;const r=[{theme:t[0]},{addFrame:t[1]},{supportLink:t[2]},t[4]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new lb({props:i}),e.$on("exit",t[7]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&23?ut(r,[l&1&&{theme:o[0]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&16&&kt(o[4])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function u$(t){let e,n;const r=[t[4],{requiredProps:t[3]}];let i={$$slots:{default:[s$]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&24?ut(r,[l&16&&kt(o[4]),l&8&&{requiredProps:o[3]}]):{};l&279&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function c$(t,e,n){let{apiCtx:r=null}=e,{sessionId:i=null}=e,{theme:o=bn}=e,{addFrame:l=!0}=e,{supportLink:a=null}=e,s=["apiCtx","sessionId"];function u(c){qe.call(this,t,c)}return t.$$set=c=>{n(4,e=ve(ve({},e),je(c))),"apiCtx"in c&&n(5,r=c.apiCtx),"sessionId"in c&&n(6,i=c.sessionId),"theme"in c&&n(0,o=c.theme),"addFrame"in c&&n(1,l=c.addFrame),"supportLink"in c&&n(2,a=c.supportLink)},e=je(e),[o,l,a,s,e,r,i,u]}class Fs extends Ne{constructor(e){super(),Ee(this,e,c$,u$,Ae,{apiCtx:5,sessionId:6,theme:0,addFrame:1,supportLink:2})}get apiCtx(){return this.$$.ctx[5]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get sessionId(){return this.$$.ctx[6]}set sessionId(e){this.$$set({sessionId:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}}customElements.define("brokerize-session-tan",Le(Fs,{apiCtx:{},sessionId:{},theme:{},addFrame:{type:"Boolean"},supportLink:{}},[],[],!0));function f$(t){yt(t,"svelte-1uugfku",".login.svelte-1uugfku .logo.svelte-1uugfku{display:block;margin:var(--zl-logo-margin, var(--zl-spacing-xl) auto);max-width:var(--zl-logo-max-width, 200px)}.login.svelte-1uugfku .description.svelte-1uugfku{text-align:center}.login.svelte-1uugfku .btns.svelte-1uugfku{display:flex;flex-wrap:wrap;gap:var(--zl-spacing-md);justify-content:center;margin-top:var(--zl-spacing-md)}")}function ab(t){let e,n;return{c(){e=W("img"),x(e,"class","logo svelte-1uugfku"),Qn(e.src,n=t[11])||x(e,"src",n),x(e,"alt","brokerize logo")},m(r,i){L(r,e,i)},p(r,i){i&2048&&!Qn(e.src,n=r[11])&&x(e,"src",n)},d(r){r&&E(e)}}}function d$(t){let e,n,r=t[8]&&sb();return{c(){r&&r.c(),e=Ie(`
346
+
347
+ Der Login beim gewählten Broker erfolgt auf einer gesonderten Seite.`)},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[8]?r?o&256&&g(r,1):(r=sb(),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function h$(t){let e;return{c(){e=Ie("Bitte melden Sie sich mit Ihren Daten an, um Ihren Broker zu verknüpfen.")},m(n,r){L(n,e,r)},p:ze,i:ze,o:ze,d(n){n&&E(e)}}}function sb(t){let e,n,r,i;return e=new Sn({props:{size:5}}),{c(){F(e.$$.fragment),n=j(),r=W("div"),_n(r,"height","var(--zl-spacing-lg)")},m(o,l){$(e,o,l),L(o,n,l),L(o,r,l),i=!0},i(o){i||(g(e.$$.fragment,o),i=!0)},o(o){b(e.$$.fragment,o),i=!1},d(o){o&&(E(n),E(r)),R(e,o)}}}function ub(t){let e,n;return e=new Fi({props:{challenge:t[4]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.challenge=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function cb(t){var c;let e,n,r,i,o,l=((c=t[7])==null?void 0:c.length)>1&&fb(t);const a=[g$,m$],s=[];function u(f,d){return f[3].loginForm&&!f[4]?0:f[3].loginForm&&f[4]?1:-1}return~(r=u(t))&&(i=s[r]=a[r](t)),{c(){e=W("div"),l&&l.c(),n=j(),i&&i.c(),x(e,"class","zlc-gap-y-form")},m(f,d){L(f,e,d),l&&l.m(e,null),V(e,n),~r&&s[r].m(e,null),o=!0},p(f,d){var h;((h=f[7])==null?void 0:h.length)>1?l?(l.p(f,d),d&128&&g(l,1)):(l=fb(f),l.c(),g(l,1),l.m(e,n)):l&&(ne(),b(l,1,1,()=>{l=null}),re());let m=r;r=u(f),r===m?~r&&s[r].p(f,d):(i&&(ne(),b(s[m],1,1,()=>{s[m]=null}),re()),~r?(i=s[r],i?i.p(f,d):(i=s[r]=a[r](f),i.c()),g(i,1),i.m(e,null)):i=null)},i(f){o||(g(l),g(i),o=!0)},o(f){b(l),b(i),o=!1},d(f){f&&E(e),l&&l.d(),~r&&s[r].d()}}}function fb(t){let e,n,r;function i(l){t[17](l)}let o={items:t[7],label:t[3].envLabel};return t[0]!==void 0&&(o.selected=t[0]),e=new Un({props:o}),xe.push(()=>Je(e,"selected",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};a&128&&(s.items=l[7]),a&8&&(s.label=l[3].envLabel),!n&&a&1&&(n=!0,s.selected=l[0],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function m$(t){let e,n,r;function i(l){t[20](l)}let o={label:"Autorisierungscode"};return t[9]!==void 0&&(o.value=t[9]),e=new Mt({props:o}),xe.push(()=>Je(e,"value",i)),{c(){F(e.$$.fragment)},m(l,a){$(e,l,a),r=!0},p(l,a){const s={};!n&&a&512&&(n=!0,s.value=l[9],Ve(()=>n=!1)),e.$set(s)},i(l){r||(g(e.$$.fragment,l),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){R(e,l)}}}function g$(t){let e,n,r,i,o,l;function a(f){t[18](f)}let s={id:"inp_login_username",label:t[3].loginForm.usernameField.label,type:t[3].loginForm.usernameField.type};t[1]!==void 0&&(s.value=t[1]),e=new Mt({props:s}),xe.push(()=>Je(e,"value",a));function u(f){t[19](f)}let c={id:"inp_login_password",label:t[3].loginForm.passwordField.label,type:t[3].loginForm.passwordField.type};return t[2]!==void 0&&(c.value=t[2]),i=new Mt({props:c}),xe.push(()=>Je(i,"value",u)),{c(){F(e.$$.fragment),r=j(),F(i.$$.fragment)},m(f,d){$(e,f,d),L(f,r,d),$(i,f,d),l=!0},p(f,d){const m={};d&8&&(m.label=f[3].loginForm.usernameField.label),d&8&&(m.type=f[3].loginForm.usernameField.type),!n&&d&2&&(n=!0,m.value=f[1],Ve(()=>n=!1)),e.$set(m);const h={};d&8&&(h.label=f[3].loginForm.passwordField.label),d&8&&(h.type=f[3].loginForm.passwordField.type),!o&&d&4&&(o=!0,h.value=f[2],Ve(()=>o=!1)),i.$set(h)},i(f){l||(g(e.$$.fragment,f),g(i.$$.fragment,f),l=!0)},o(f){b(e.$$.fragment,f),b(i.$$.fragment,f),l=!1},d(f){f&&E(r),R(e,f),R(i,f)}}}function db(t){let e,n;return e=new nt({props:{variant:"default",text:`Weiter zum Login bei ${t[3].displayName}`}}),e.$on("click",t[14]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.text=`Weiter zum Login bei ${r[3].displayName}`),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function p$(t){let e,n;return e=new nt({props:{variant:"default",text:"Login abschließen"}}),e.$on("click",t[22]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function b$(t){let e,n;return e=new nt({props:{variant:"default",text:"Sicher beim Broker einloggen",type:"submit"}}),e.$on("click",t[21]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function v$(t){let e,n,r,i,o,l,a,s,u,c,f,d,m,h,p,v,w,S,y,z=!t[6]&&ab(t);const O=[h$,d$],N=[];function U(X,ce){return X[3].loginForm?0:1}l=U(t),a=N[l]=O[l](t),u=new zn({props:{error:t[5]}});let A=t[3].loginForm&&t[4]&&ub(t),P=t[10]&&cb(t),Y=t[3].supportsOAuthLogin&&!t[8]&&db(t);const B=[b$,p$],J=[];function ee(X,ce){return X[3].loginForm&&!X[4]?0:X[3].loginForm&&X[4]?1:-1}return~(p=ee(t))&&(v=J[p]=B[p](t)),{c(){e=W("form"),n=W("div"),r=W("div"),z&&z.c(),i=j(),o=W("div"),a.c(),s=j(),F(u.$$.fragment),c=j(),A&&A.c(),f=j(),P&&P.c(),d=j(),m=W("div"),Y&&Y.c(),h=j(),v&&v.c(),x(o,"class","description svelte-1uugfku"),x(r,"class","zlc-gap-y"),x(m,"class","btns svelte-1uugfku"),x(n,"class","login zlc-gap-y-2xl svelte-1uugfku")},m(X,ce){L(X,e,ce),V(e,n),V(n,r),z&&z.m(r,null),V(r,i),V(r,o),N[l].m(o,null),V(n,s),$(u,n,null),V(n,c),A&&A.m(n,null),V(n,f),P&&P.m(n,null),V(n,d),V(n,m),Y&&Y.m(m,null),V(m,h),~p&&J[p].m(m,null),w=!0,S||(y=tt(e,"submit",k$),S=!0)},p(X,[ce]){X[6]?z&&(z.d(1),z=null):z?z.p(X,ce):(z=ab(X),z.c(),z.m(r,i));let he=l;l=U(X),l===he?N[l].p(X,ce):(ne(),b(N[he],1,1,()=>{N[he]=null}),re(),a=N[l],a?a.p(X,ce):(a=N[l]=O[l](X),a.c()),g(a,1),a.m(o,null));const de={};ce&32&&(de.error=X[5]),u.$set(de),X[3].loginForm&&X[4]?A?(A.p(X,ce),ce&24&&g(A,1)):(A=ub(X),A.c(),g(A,1),A.m(n,f)):A&&(ne(),b(A,1,1,()=>{A=null}),re()),X[10]?P?(P.p(X,ce),ce&1024&&g(P,1)):(P=cb(X),P.c(),g(P,1),P.m(n,d)):P&&(ne(),b(P,1,1,()=>{P=null}),re()),X[3].supportsOAuthLogin&&!X[8]?Y?(Y.p(X,ce),ce&264&&g(Y,1)):(Y=db(X),Y.c(),g(Y,1),Y.m(m,h)):Y&&(ne(),b(Y,1,1,()=>{Y=null}),re());let se=p;p=ee(X),p===se?~p&&J[p].p(X,ce):(v&&(ne(),b(J[se],1,1,()=>{J[se]=null}),re()),~p?(v=J[p],v?v.p(X,ce):(v=J[p]=B[p](X),v.c()),g(v,1),v.m(m,null)):v=null)},i(X){w||(g(a),g(u.$$.fragment,X),g(A),g(P),g(Y),g(v),w=!0)},o(X){b(a),b(u.$$.fragment,X),b(A),b(P),b(Y),b(v),w=!1},d(X){X&&E(e),z&&z.d(),N[l].d(),R(u),A&&A.d(),P&&P.d(),Y&&Y.d(),~p&&J[p].d(),S=!1,y()}}}function _$(t,e){const n=((t==null?void 0:t.envs)||[]).map(i=>({id:i.id,value:i.label})),r=n.find(i=>i.id==e);return r?[r]:n}function y$(t,e){return t!=null&&t.images?(e==null?void 0:e.logoStyle)=="light"?t.images.light:t.images.dark:null}const k$=t=>t.preventDefault();function w$(t,e,n){let r,i,{brokerMeta:o}=e,{env:l}=e,{storedEnv:a}=e,{challenge:s}=e,{error:u}=e,{hideLogo:c=!1}=e,f,{username:d}=e,{password:m}=e,h;function p(J){n(0,l=J!=null&&J.length?J[0].id:null)}const v=Bt();function w(){v("completeLogin",{challengeResponse:f})}const S=tn("themeConfig");let y;S.subscribe(J=>{n(16,y=J)});let z=!1;function O(){z||(n(8,z=!0),setTimeout(()=>v("redirectOAuth",{env:l}),1e3))}function N(J){l=J,n(0,l)}function U(J){d=J,n(1,d)}function A(J){m=J,n(2,m)}function P(J){f=J,n(9,f)}const Y=()=>v("login",{env:l,username:d,password:m}),B=()=>w();return t.$$set=J=>{"brokerMeta"in J&&n(3,o=J.brokerMeta),"env"in J&&n(0,l=J.env),"storedEnv"in J&&n(15,a=J.storedEnv),"challenge"in J&&n(4,s=J.challenge),"error"in J&&n(5,u=J.error),"hideLogo"in J&&n(6,c=J.hideLogo),"username"in J&&n(1,d=J.username),"password"in J&&n(2,m=J.password)},t.$$.update=()=>{t.$$.dirty&32776&&n(7,h=_$(o,a)),t.$$.dirty&128&&p(h),t.$$.dirty&65544&&n(11,r=y?y$(o,y):null),t.$$.dirty&392&&n(10,i=(o==null?void 0:o.loginForm)||(h==null?void 0:h.length)>1&&!z),t.$$.dirty&136&&(h==null?void 0:h.length)==1&&!(o!=null&&o.loginForm)&&o!=null&&o.supportsOAuthLogin&&O()},[l,d,m,o,s,u,c,h,z,f,i,r,v,w,O,a,y,N,U,A,P,Y,B]}class hb extends Ne{constructor(e){super(),Ee(this,e,w$,v$,Ae,{brokerMeta:3,env:0,storedEnv:15,challenge:4,error:5,hideLogo:6,username:1,password:2},f$)}get brokerMeta(){return this.$$.ctx[3]}set brokerMeta(e){this.$$set({brokerMeta:e}),C()}get env(){return this.$$.ctx[0]}set env(e){this.$$set({env:e}),C()}get storedEnv(){return this.$$.ctx[15]}set storedEnv(e){this.$$set({storedEnv:e}),C()}get challenge(){return this.$$.ctx[4]}set challenge(e){this.$$set({challenge:e}),C()}get error(){return this.$$.ctx[5]}set error(e){this.$$set({error:e}),C()}get hideLogo(){return this.$$.ctx[6]}set hideLogo(e){this.$$set({hideLogo:e}),C()}get username(){return this.$$.ctx[1]}set username(e){this.$$set({username:e}),C()}get password(){return this.$$.ctx[2]}set password(e){this.$$set({password:e}),C()}}Le(hb,{brokerMeta:{},env:{},storedEnv:{},challenge:{},error:{},hideLogo:{type:"Boolean"},username:{},password:{}},[],[],!0);function S$(t){try{return JSON.parse(t)}catch{return null}}function T$(t){let e,n;return e=new zn({props:{error:t[5]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&32&&(o.error=r[5]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function z$(t){let e,n,r,i,o;function l(c){t[19](c)}function a(c){t[20](c)}function s(c){t[21](c)}let u={hideLogo:t[4],brokerMeta:t[7],storedEnv:t[1],challenge:t[11],error:t[5]};return t[8]!==void 0&&(u.env=t[8]),t[9]!==void 0&&(u.username=t[9]),t[10]!==void 0&&(u.password=t[10]),e=new hb({props:u}),xe.push(()=>Je(e,"env",l)),xe.push(()=>Je(e,"username",a)),xe.push(()=>Je(e,"password",s)),e.$on("redirectOAuth",t[13]),e.$on("login",t[12]),e.$on("completeLogin",t[14]),{c(){F(e.$$.fragment)},m(c,f){$(e,c,f),o=!0},p(c,f){const d={};f[0]&16&&(d.hideLogo=c[4]),f[0]&128&&(d.brokerMeta=c[7]),f[0]&2&&(d.storedEnv=c[1]),f[0]&2048&&(d.challenge=c[11]),f[0]&32&&(d.error=c[5]),!n&&f[0]&256&&(n=!0,d.env=c[8],Ve(()=>n=!1)),!r&&f[0]&512&&(r=!0,d.username=c[9],Ve(()=>r=!1)),!i&&f[0]&1024&&(i=!0,d.password=c[10],Ve(()=>i=!1)),e.$set(d)},i(c){o||(g(e.$$.fragment,c),o=!0)},o(c){b(e.$$.fragment,c),o=!1},d(c){R(e,c)}}}function C$(t){let e,n;return e=new Sn({props:{size:3}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p:ze,i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function O$(t){let e,n,r,i;const o=[C$,z$,T$],l=[];function a(s,u){return s[6]?0:s[7]?1:s[5]?2:-1}return~(e=a(t))&&(n=l[e]=o[e](t)),{c(){n&&n.c(),r=Xe()},m(s,u){~e&&l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?~e&&l[e].p(s,u):(n&&(ne(),b(l[c],1,1,()=>{l[c]=null}),re()),~e?(n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r)):n=null)},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),~e&&l[e].d(s)}}}function I$(t){let e,n;return e=new Jn({props:{$$slots:{default:[O$]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&4082|i[1]&4&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function A$(t){let e,n;return e=new Pn({props:{theme:t[0],addFrame:t[2],supportLink:t[3],$$slots:{default:[I$]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.theme=r[0]),i[0]&4&&(o.addFrame=r[2]),i[0]&8&&(o.supportLink=r[3]),i[0]&4082|i[1]&4&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function D$(t,e,n){let{apiCtx:r=null}=e,{theme:i=null}=e,{brokerName:o=null}=e,{env:l=null}=e,{returnToUrl:a=null}=e,{credentialsStore:s=null}=e,{addFrame:u=!1}=e,{supportLink:c=null}=e,{hideLogo:f=!1}=e;if(!a){if(!(window!=null&&window.location))throw new Error("BrokerLoginFormController: returnToUrl was not provided, but window.location is not present either. If this a non-browser environment, please provide returnToUrl explicitly.");a=window.location.href}const d=Bt();let m=null,h=!1,p,v;async function w(ue,fe){if(n(6,h=!0),n(5,m=null),n(7,p=null),!ue){n(6,h=!1);return}try{const Oe=await ue.getBrokers();if(n(7,p=Oe.brokers.find(me=>me.brokerName==fe)),n(6,h=!1),p!=null&&p.loginForm&&s){const me=await s.loadCredentials(fe);v=me,me&&X(me)}l&&n(8,z=l)}catch(Oe){n(6,h=!1),n(5,m=Oe)}}function S(ue){d("exit",{loggedIn:ue},{})}let y,z,O,N,U;async function A(ue){y=r.addSessionCompleteChallenge({addSessionCompleteChallengeParams:{challengeId:U.challengeId,challengeResponse:ue}}),n(11,U=null),y.then(()=>{ce(),S(!0)},fe=>n(5,m=fe))}async function P({env:ue,username:fe,password:Oe}){n(11,U=null),y=r.addSession({brokerName:p.brokerName,env:z,username:fe,password:Oe}),y.then(me=>{me.state=="challenge"?n(11,U=me.challenge):me.state=="ready"&&(ce(),S(!0))},me=>n(5,m=me))}async function Y(ue){r.prepareOAuthRedirect({brokerName:p.brokerName,env:ue,returnToUrl:a}).then(({redirectTo:fe})=>{d("redirect",{redirectTo:fe})},fe=>n(5,m=fe))}function B(ue){P(ue.detail)}function J(ue){const fe=ue.detail.env;Y(fe)}function ee(ue){A(ue.detail.challengeResponse)}function X(ue){const fe=S$(ue);fe&&(fe.env&&n(8,z=fe.env),fe.username&&n(9,O=fe.username),fe.password&&n(10,N=fe.password),P({env:z,username:fe.username,password:fe.password}))}async function ce(){if(!s)return;const ue=JSON.stringify({env:z,username:O,password:N});ue!=v&&await s.storeCredentials(`Login für ${p.displayName}`,o,ue)}function he(ue){z=ue,n(8,z)}function de(ue){O=ue,n(9,O)}function se(ue){N=ue,n(10,N)}return t.$$set=ue=>{"apiCtx"in ue&&n(16,r=ue.apiCtx),"theme"in ue&&n(0,i=ue.theme),"brokerName"in ue&&n(17,o=ue.brokerName),"env"in ue&&n(1,l=ue.env),"returnToUrl"in ue&&n(15,a=ue.returnToUrl),"credentialsStore"in ue&&n(18,s=ue.credentialsStore),"addFrame"in ue&&n(2,u=ue.addFrame),"supportLink"in ue&&n(3,c=ue.supportLink),"hideLogo"in ue&&n(4,f=ue.hideLogo)},t.$$.update=()=>{t.$$.dirty[0]&196608&&w(r,o)},[i,l,u,c,f,m,h,p,z,O,N,U,B,J,ee,a,r,o,s,he,de,se]}class xs extends Ne{constructor(e){super(),Ee(this,e,D$,A$,Ae,{apiCtx:16,theme:0,brokerName:17,env:1,returnToUrl:15,credentialsStore:18,addFrame:2,supportLink:3,hideLogo:4},null,[-1,-1])}get apiCtx(){return this.$$.ctx[16]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get brokerName(){return this.$$.ctx[17]}set brokerName(e){this.$$set({brokerName:e}),C()}get env(){return this.$$.ctx[1]}set env(e){this.$$set({env:e}),C()}get returnToUrl(){return this.$$.ctx[15]}set returnToUrl(e){this.$$set({returnToUrl:e}),C()}get credentialsStore(){return this.$$.ctx[18]}set credentialsStore(e){this.$$set({credentialsStore:e}),C()}get addFrame(){return this.$$.ctx[2]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[3]}set supportLink(e){this.$$set({supportLink:e}),C()}get hideLogo(){return this.$$.ctx[4]}set hideLogo(e){this.$$set({hideLogo:e}),C()}}Le(xs,{apiCtx:{},theme:{},brokerName:{},env:{},returnToUrl:{},credentialsStore:{},addFrame:{type:"Boolean"},supportLink:{},hideLogo:{type:"Boolean"}},[],[],!0);function M$(t){let e,n;const r=[{hideLogo:t[3]},{addFrame:t[1]},{supportLink:t[2]},{theme:t[0]},t[5]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xs({props:i}),e.$on("guest",t[10]),e.$on("login",t[11]),e.$on("redirect",t[12]),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&47?ut(r,[l&8&&{hideLogo:o[3]},l&2&&{addFrame:o[1]},l&4&&{supportLink:o[2]},l&1&&{theme:o[0]},l&32&&kt(o[5])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function E$(t){let e,n;const r=[t[5],{requiredProps:t[4]}];let i={$$slots:{default:[M$]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&48?ut(r,[l&32&&kt(o[5]),l&16&&{requiredProps:o[4]}]):{};l&8239&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function L$(t,e,n){let{apiCtx:r=null}=e,{theme:i=bn}=e,{brokerName:o=null}=e,{returnToUrl:l=null}=e,{credentialsStore:a=null}=e,{addFrame:s=!1}=e,{supportLink:u=null}=e,{hideLogo:c=!1}=e,f=["apiCtx","brokerName"];function d(p){qe.call(this,t,p)}function m(p){qe.call(this,t,p)}function h(p){qe.call(this,t,p)}return t.$$set=p=>{n(5,e=ve(ve({},e),je(p))),"apiCtx"in p&&n(6,r=p.apiCtx),"theme"in p&&n(0,i=p.theme),"brokerName"in p&&n(7,o=p.brokerName),"returnToUrl"in p&&n(8,l=p.returnToUrl),"credentialsStore"in p&&n(9,a=p.credentialsStore),"addFrame"in p&&n(1,s=p.addFrame),"supportLink"in p&&n(2,u=p.supportLink),"hideLogo"in p&&n(3,c=p.hideLogo)},e=je(e),[i,s,u,c,f,e,r,o,l,a,d,m,h]}class mb extends Ne{constructor(e){super(),Ee(this,e,L$,E$,Ae,{apiCtx:6,theme:0,brokerName:7,returnToUrl:8,credentialsStore:9,addFrame:1,supportLink:2,hideLogo:3})}get apiCtx(){return this.$$.ctx[6]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get brokerName(){return this.$$.ctx[7]}set brokerName(e){this.$$set({brokerName:e}),C()}get returnToUrl(){return this.$$.ctx[8]}set returnToUrl(e){this.$$set({returnToUrl:e}),C()}get credentialsStore(){return this.$$.ctx[9]}set credentialsStore(e){this.$$set({credentialsStore:e}),C()}get addFrame(){return this.$$.ctx[1]}set addFrame(e){this.$$set({addFrame:e}),C()}get supportLink(){return this.$$.ctx[2]}set supportLink(e){this.$$set({supportLink:e}),C()}get hideLogo(){return this.$$.ctx[3]}set hideLogo(e){this.$$set({hideLogo:e}),C()}}customElements.define("brokerize-broker-login-form",Le(mb,{apiCtx:{},theme:{},brokerName:{},returnToUrl:{},credentialsStore:{},addFrame:{type:"Boolean"},supportLink:{},hideLogo:{type:"Boolean"}},[],[],!0));class gb{constructor(){Kt(this,"promise");Kt(this,"resolver");Kt(this,"rejector");this.promise=new Promise((e,n)=>{this.resolver=e,this.rejector=n})}resolve(e){this.resolver&&this.resolver(e)}reject(e){this.rejector&&this.rejector(e)}}function pb(t,e,n){const r=t.slice();return r[10]=e[n],r}function bb(t){let e,n,r=At(t[4]),i=[];for(let l=0;l<r.length;l+=1)i[l]=vb(pb(t,r,l));const o=l=>b(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=Xe()},m(l,a){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(l,a);L(l,e,a),n=!0},p(l,a){if(a&16){r=At(l[4]);let s;for(s=0;s<r.length;s+=1){const u=pb(l,r,s);i[s]?(i[s].p(u,a),g(i[s],1)):(i[s]=vb(u),i[s].c(),g(i[s],1),i[s].m(e.parentNode,e))}for(ne(),s=r.length;s<i.length;s+=1)o(s);re()}},i(l){if(!n){for(let a=0;a<r.length;a+=1)g(i[a]);n=!0}},o(l){i=i.filter(Boolean);for(let a=0;a<i.length;a+=1)b(i[a]);n=!1},d(l){l&&E(e),Mn(i,l)}}}function N$(t){let e,n;return e=new qi({props:{title:t[10].title,items:t[10].items}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.title=r[10].title),i&16&&(o.items=r[10].items),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function P$(t){let e=t[10].text+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&16&&e!==(e=r[10].text+"")&&Ke(n,e)},i:ze,o:ze,d(r){r&&E(n)}}}function vb(t){let e,n,r,i;const o=[P$,N$],l=[];function a(s,u){return s[10].type=="text"?0:1}return e=a(t),n=l[e]=o[e](t),{c(){n.c(),r=Xe()},m(s,u){l[e].m(s,u),L(s,r,u),i=!0},p(s,u){let c=e;e=a(s),e===c?l[e].p(s,u):(ne(),b(l[c],1,1,()=>{l[c]=null}),re(),n=l[e],n?n.p(s,u):(n=l[e]=o[e](s),n.c()),g(n,1),n.m(r.parentNode,r))},i(s){i||(g(n),i=!0)},o(s){b(n),i=!1},d(s){s&&E(r),l[e].d(s)}}}function _b(t){let e,n,r,i;e=new Hr({props:{href:t[0].detailsLink.url,$$slots:{default:[$$]},$$scope:{ctx:t}}});let o=t[0].detailsLink.footerText&&yb(t);return{c(){F(e.$$.fragment),n=j(),o&&o.c(),r=Xe()},m(l,a){$(e,l,a),L(l,n,a),o&&o.m(l,a),L(l,r,a),i=!0},p(l,a){const s={};a&1&&(s.href=l[0].detailsLink.url),a&8193&&(s.$$scope={dirty:a,ctx:l}),e.$set(s),l[0].detailsLink.footerText?o?o.p(l,a):(o=yb(l),o.c(),o.m(r.parentNode,r)):o&&(o.d(1),o=null)},i(l){i||(g(e.$$.fragment,l),i=!0)},o(l){b(e.$$.fragment,l),i=!1},d(l){l&&(E(n),E(r)),R(e,l),o&&o.d(l)}}}function $$(t){let e=t[0].detailsLink.linkTitle+"",n;return{c(){n=Ie(e)},m(r,i){L(r,n,i)},p(r,i){i&1&&e!==(e=r[0].detailsLink.linkTitle+"")&&Ke(n,e)},d(r){r&&E(n)}}}function yb(t){let e,n=t[0].detailsLink.footerText+"",r;return{c(){e=W("p"),r=Ie(n)},m(i,o){L(i,e,o),V(e,r)},p(i,o){o&1&&n!==(n=i[0].detailsLink.footerText+"")&&Ke(r,n)},d(i){i&&E(e)}}}function kb(t){let e,n=t[0].footerHtml+"",r;return{c(){e=new hr(!1),r=Xe(),e.a=r},m(i,o){e.m(n,i,o),L(i,r,o)},p(i,o){o&1&&n!==(n=i[0].footerHtml+"")&&e.p(n)},d(i){i&&(E(r),e.d())}}}function wb(t){let e,n,r,i;return r=new nt({props:{text:t[3]?"PDF wird vorbereitet...":"Tabelle ausdrucken",busy:t[3],variant:"default"}}),r.$on("click",t[5]),{c(){e=W("div"),n=j(),F(r.$$.fragment),_n(e,"height","1em")},m(o,l){L(o,e,l),L(o,n,l),$(r,o,l),i=!0},p(o,l){const a={};l&8&&(a.text=o[3]?"PDF wird vorbereitet...":"Tabelle ausdrucken"),l&8&&(a.busy=o[3]),r.$set(a)},i(o){i||(g(r.$$.fragment,o),i=!0)},o(o){b(r.$$.fragment,o),i=!1},d(o){o&&(E(e),E(n)),R(r,o)}}}function R$(t){let e,n,r,i,o,l,a=t[4]&&bb(t),s=t[0].detailsLink&&_b(t),u=t[0].footerHtml&&kb(t),c=t[1]&&wb(t);return{c(){e=W("div"),a&&a.c(),n=j(),s&&s.c(),r=j(),u&&u.c(),i=j(),c&&c.c(),o=Xe()},m(f,d){L(f,e,d),a&&a.m(e,null),V(e,n),s&&s.m(e,null),V(e,r),u&&u.m(e,null),t[8](e),L(f,i,d),c&&c.m(f,d),L(f,o,d),l=!0},p(f,[d]){f[4]?a?(a.p(f,d),d&16&&g(a,1)):(a=bb(f),a.c(),g(a,1),a.m(e,n)):a&&(ne(),b(a,1,1,()=>{a=null}),re()),f[0].detailsLink?s?(s.p(f,d),d&1&&g(s,1)):(s=_b(f),s.c(),g(s,1),s.m(e,r)):s&&(ne(),b(s,1,1,()=>{s=null}),re()),f[0].footerHtml?u?u.p(f,d):(u=kb(f),u.c(),u.m(e,null)):u&&(u.d(1),u=null),f[1]?c?(c.p(f,d),d&2&&g(c,1)):(c=wb(f),c.c(),g(c,1),c.m(o.parentNode,o)):c&&(ne(),b(c,1,1,()=>{c=null}),re())},i(f){l||(g(a),g(s),g(c),l=!0)},o(f){b(a),b(s),b(c),l=!1},d(f){f&&(E(e),E(i),E(o)),a&&a.d(),s&&s.d(),u&&u.d(),t[8](null),c&&c.d(f)}}}function F$(t,e,n){let r,{apiCtx:i=null}=e,{table:o=null}=e,{showPrintButton:l=!1}=e,{saveDownloadedFile:a=null}=e;a||(a=async m=>{const h=URL.createObjectURL(m.blob),p=document.createElement("a");p.href=h,p.download=m.filename,document.body.appendChild(p),p.click()});let s;function u(m){if(!m)return null;const h=[];let p;function v(){var S,y;(p==null?void 0:p.type)=="section"&&((S=p.title)!=null&&S.length||(y=p.items)!=null&&y.length)&&h.push(p),p={type:"section",title:"",items:[]}}v();function w(S){return S.type=="amount"?{type:"amount",value:S.value}:S.type=="datetime"?{type:"datetime",value:new Date(S.value)}:S.type=="link"?{type:"link",value:S.value}:S.type=="text"?{type:"text",value:S.value}:{type:"debug",value:S}}for(const S of m.rows)S.type=="text"?(v(),h.push({type:"text",text:S.text})):S.type=="entry"?p.items.push({label:S.caption,value:w(S.value)}):S.type=="subheading"&&(v(),p.title=S.subheading);return v(),h}let c=!1;async function f(){n(3,c=!0);try{const m=await i.renderGenericTablePdf(o),h=new Blob([m],{type:"text/plain"});await a({blob:h,filename:"file.pdf"})}catch(m){Do(m,jt)}finally{n(3,c=!1)}}function d(m){xe[m?"unshift":"push"](()=>{s=m,n(2,s)})}return t.$$set=m=>{"apiCtx"in m&&n(7,i=m.apiCtx),"table"in m&&n(0,o=m.table),"showPrintButton"in m&&n(1,l=m.showPrintButton),"saveDownloadedFile"in m&&n(6,a=m.saveDownloadedFile)},t.$$.update=()=>{t.$$.dirty&1&&n(4,r=u(o))},[o,l,s,c,r,f,a,i,d]}class Sb extends Ne{constructor(e){super(),Ee(this,e,F$,R$,Ae,{apiCtx:7,table:0,showPrintButton:1,saveDownloadedFile:6})}get apiCtx(){return this.$$.ctx[7]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get table(){return this.$$.ctx[0]}set table(e){this.$$set({table:e}),C()}get showPrintButton(){return this.$$.ctx[1]}set showPrintButton(e){this.$$set({showPrintButton:e}),C()}get saveDownloadedFile(){return this.$$.ctx[6]}set saveDownloadedFile(e){this.$$set({saveDownloadedFile:e}),C()}}Le(Sb,{apiCtx:{},table:{},showPrintButton:{type:"Boolean"},saveDownloadedFile:{}},[],[],!0);function x$(){const{subscribe:t,set:e}=Or([]);let n=[];const r={},i={};return{subscribe:t,push:function(s){let u,c=!1;const f=new Promise(v=>{u=w=>{c=!0,v(w)}});let d=(crypto&&crypto.randomUUID&&crypto.randomUUID())??`modal-indexed-${n.length}`,m,h;typeof s=="function"?(h=s,m={}):(d=s.id??d,m=s.props??{},h=s.component);const p={id:d,props:m,component:h,resolve:()=>f,resolved:c};return n.push(p),r[p.id]=u,e([...n]),p},pop:function(s,u){var f,d;let c;if(s!=null&&s.id?(n=n.filter(m=>m.id===s.id?(c=m,!1):!0),e(n)):(c=n.pop(),e([...n])),c){const m={trigger:"pop",...u??{}};(f=r[c.id])==null||f.call(r,m),r[c.id]=void 0,(d=i[c.id])==null||d.forEach(h=>h(m)),i[c.id]=void 0}return c},onPop:function(s,u){var c,f;return i[s]?(c=i[s])!=null&&c.includes(u)||(f=i[s])==null||f.push(u):i[s]=[u],()=>{var d;i[s]&&(i[s]=(d=i[s])==null?void 0:d.filter(m=>m!==u))}}}}function Zi(){return Bt()}function U$(t,e={enabled:!0}){let{enabled:n,eventType:r,nodeForEvent:i,options:o,capture:l}=Tb(e);function a(s){s.target&&t&&!t.contains(s.target)&&!s.defaultPrevented&&t.dispatchEvent(new CustomEvent("clickoutside",{detail:s}))}return e.enabled!==!1&&i.addEventListener(r,a,o),{update(s){i.removeEventListener(r,a,l),{enabled:n,eventType:r,nodeForEvent:i,options:o,capture:l}=Tb(s),n&&i.addEventListener(r,a,o)},destroy(){i.removeEventListener(r,a,l)}}}function Tb(t={}){var e,n;return{enabled:t.enabled??!0,nodeForEvent:((e=t.limit)==null?void 0:e.parent)??document,eventType:t.event??"click",options:t.options,capture:typeof t.options=="object"?(n=t.options)==null?void 0:n.capture:t.options}}function B$(t,e={enabled:!0}){let{parent:n,normalizedDelta:r,handle:i,enabled:o,ignore:l,cursor:a}=zb(t,e);const s={x:0,y:0},u={top:0,left:0};let c=0,f=0;function d(){return l?Array.from(i.querySelectorAll(l)):[]}function m(z){s.x=z.clientX,s.y=z.clientY}function h({top:z,left:O}){u.top=z,u.left=O}function p(z){var J;const O=t.getBoundingClientRect();let N;if(r.x)switch((J=r.x)==null?void 0:J.unit){case"%":N=r.x.value*O.width/100;break;case"px":N=r.x.value;break}let U;if(r.y)switch(r.y.unit){case"%":U=r.y.value*O.height/100;break;case"px":U=r.y.value;break}const A=z.clientX-s.x,P=z.clientY-s.y;m(z);let Y=u.left;N!==0&&(Y+=A);let B=u.top;if(U!==0&&(B+=P),n){let ee;if(n==="screen"?ee={top:0,bottom:window.innerHeight,left:0,right:window.innerWidth}:ee=n.getBoundingClientRect(),N!==0){const X=N??0,ce=O.left+A+X;if(ce<ee.left)Y+=ee.left-ce;else{const he=O.right+A-X;he>ee.right&&(Y-=he-ee.right)}}if(U!==0){const X=U??0,ce=O.top+P+X;if(ce<ee.top)B+=ee.top-ce;else{const he=O.bottom+P-X;he>ee.bottom&&(B-=he-ee.bottom)}}}else{if(N){const ee=c+Y-u.left;ee>N?Y-=ee-N:ee<-N&&(Y-=ee+N)}if(U){const ee=f+B-u.top;ee>U?B-=ee-U:ee<-U&&(B-=ee+U)}}Y!==u.left&&(t.style.left=`${Y}px`),B!==u.top&&(t.style.top=`${B}px`),c+=Y-u.left,f+=B-u.top,h({top:B,left:Y})}function v(){document.body.style.userSelect="",a&&(document.body.style.cursor==="grabbing"&&document.body.style.removeProperty("cursor"),i.style.cursor="grab"),window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v);const z={node:t,position:u};t.dispatchEvent(new CustomEvent("movableend",{detail:z}))}function w(z){var J,ee;if(d().some(X=>X.isSameNode(z.target)))return;const N=getComputedStyle(t),U="^[-0-9]+",A=parseInt(((J=N.getPropertyValue("left").match(U))==null?void 0:J[0])??"0"),P=parseInt(((ee=N.getPropertyValue("top").match(U))==null?void 0:ee[0])??"0");h({left:A,top:P});const Y={node:t,position:u};t.dispatchEvent(new CustomEvent("movablestart",{detail:Y}));const B=N.getPropertyValue("position");B!=="relative"&&B!=="absolute"&&B!=="fixed"&&(t.style.position="relative"),m(z),document.body.style.userSelect="none",a&&(document.body.style.cursor="grabbing",i.style.cursor="grabbing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",v),window.addEventListener("pointercancel",v)}function S(){if(i.style.touchAction="none",a){i.style.cursor="grab";const z=d();for(const O of z)O.style.cursor||(O.style.cursor="auto")}}function y(){if(i.style.removeProperty("touch-action"),a){(i==null?void 0:i.style.cursor)==="grab"&&i.style.removeProperty("cursor");const z=d();for(const O of z)O.style.cursor==="auto"&&O.style.removeProperty("cursor")}}return o&&(i.addEventListener("pointerdown",w,!0),rl().then(()=>{S()})),{update(z){y(),i.removeEventListener("pointerdown",w,!0),{parent:n,normalizedDelta:r,handle:i,enabled:o,ignore:l,cursor:a}=zb(t,z),o&&(i.addEventListener("pointerdown",w,!0),rl().then(()=>{S()}))},destroy(){i.removeEventListener("pointerdown",w,!0),y()}}}function q$(t){let e,n;return t&&(typeof t=="number"?e=n={unit:"px",value:0}:typeof t=="string"?e=n={unit:Us(t),value:parseInt(t,10)}:(t.x===0?e={unit:"px",value:0}:t.x!==void 0&&(e={unit:Us(t.x,"x"),value:parseInt(t.x,10)}),t.y===0?n={unit:"px",value:0}:t.y!==void 0&&(n={unit:Us(t.y,"y"),value:parseInt(t.y,10)}))),{x:e,y:n}}function Us(t,e=void 0){let n="px";if(t==="0"&&(n="px"),t.slice(-1)==="%")n="%";else if(t.slice(-2)==="px")n="px";else throw new Error(`Invalid delta ${e??""} unit. Only 'px' and '%' are supported.`);return n}function zb(t,e={}){var n,r;return{enabled:e.enabled??!0,parent:(n=e.limit)==null?void 0:n.parent,normalizedDelta:q$((r=e.limit)==null?void 0:r.delta),handle:e.handle??e.trigger??t,ignore:(e.ignore?typeof e.ignore=="string"?[e.ignore]:e.ignore:[]).join(","),cursor:e.cursor??!0}}function V$(t,e){let{enabled:n=!0,trigger:r,type:i="keydown"}=e;function o(l){const a=Array.isArray(r)?r:[r],s={alt:l.altKey,ctrl:l.ctrlKey,shift:l.shiftKey,meta:l.metaKey};for(const u of a){const c={modifier:[],preventDefault:!1,enabled:!0,...u},{modifier:f,key:d,callback:m,preventDefault:h,enabled:p}=c;if(p){if(f.length&&!(Array.isArray(f)?f:[f]).map(S=>typeof S=="string"?[S]:S).some(S=>S.every(y=>s[y])))continue;if(l.key===d){h&&l.preventDefault();const v={node:t,trigger:c,originalEvent:l};t.dispatchEvent(new CustomEvent("shortcut",{detail:v})),m==null||m(v)}}}}return n&&t.addEventListener(i,o),{update:l=>{const{enabled:a=!0,type:s="keydown"}=l;n&&(!a||i!==s)?t.removeEventListener(i,o):!n&&a&&t.addEventListener(s,o),n=a,i=s,r=l.trigger},destroy:()=>{t.removeEventListener(i,o)}}}function J$(t){yt(t,"svelte-uotcfi",":where(.s-modal-backdrop){position:absolute;z-index:0;inset:0;background-color:rgb(17 24 39 / 25%)}:where(.s-modal-container){position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%, -50%)}button:where(.s-modal-x){position:absolute;top:0;right:0;padding:0.5rem;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-property:transform}:where(.s-modal-x) svg{stroke:currentcolor}:where(.s-modal-x):hover{transform:scale(1.05)}:where(.s-modal-x):active{transform:scale(0.95)}")}const H$=t=>({}),Cb=t=>({}),W$=t=>({class:t&128,xBtn:t&4}),Ob=t=>({class:t[7].x,onClick:t[8],xBtn:t[2]}),Y$=t=>({class:t&128}),Ib=t=>({class:t[7].container}),G$=t=>({class:t&128}),Ab=t=>({class:t[7].backdrop,onClick:t[9]});function Db(t){let e,n,r,i,o,l;return{c(){e=W("div"),x(e,"class",n=t[7].backdrop)},m(a,s){L(a,e,s),i=!0,o||(l=tt(e,"click",t[9]),o=!0)},p(a,s){(!i||s&128&&n!==(n=a[7].backdrop))&&x(e,"class",n)},i(a){i||(a&&gr(()=>{i&&(r||(r=ol(e,ai,{duration:75},!0)),r.run(1))}),i=!0)},o(a){a&&(r||(r=ol(e,ai,{duration:75},!1)),r.run(0)),i=!1},d(a){a&&E(e),a&&r&&r.end(),o=!1,l()}}}function K$(t){let e,n=t[1]&&Db(t);return{c(){n&&n.c(),e=Xe()},m(r,i){n&&n.m(r,i),L(r,e,i)},p(r,i){r[1]?n?(n.p(r,i),i&2&&g(n,1)):(n=Db(r),n.c(),g(n,1),n.m(e.parentNode,e)):n&&(ne(),b(n,1,1,()=>{n=null}),re())},d(r){r&&E(e),n&&n.d(r)}}}function Mb(t){let e,n,r,i,o;const l=t[17]["x-content"],a=ht(l,t,t[16],Cb),s=a||Q$();return{c(){e=W("button"),s&&s.c(),x(e,"class",n=t[7].x)},m(u,c){L(u,e,c),s&&s.m(e,null),r=!0,i||(o=tt(e,"click",t[8]),i=!0)},p(u,c){a&&a.p&&(!r||c&65536)&&gt(a,l,u,u[16],r?mt(l,u[16],c,H$):pt(u[16]),Cb),(!r||c&128&&n!==(n=u[7].x))&&x(e,"class",n)},i(u){r||(g(s,u),r=!0)},o(u){b(s,u),r=!1},d(u){u&&E(e),s&&s.d(u),i=!1,o()}}}function Q$(t){let e,n;return{c(){e=lo("svg"),n=lo("path"),x(n,"d","m12.45 37.65-2.1-2.1L21.9 24 10.35 12.45l2.1-2.1L24 21.9l11.55-11.55 2.1 2.1L26.1 24l11.55 11.55-2.1 2.1L24 26.1Z"),x(e,"xmlns","http://www.w3.org/2000/svg"),x(e,"height","24"),x(e,"width","24"),x(e,"viewBox","0 0 48 48")},m(r,i){L(r,e,i),V(e,n)},p:ze,d(r){r&&E(e)}}}function j$(t){let e,n,r=t[2]&&Mb(t);return{c(){r&&r.c(),e=Xe()},m(i,o){r&&r.m(i,o),L(i,e,o),n=!0},p(i,o){i[2]?r?(r.p(i,o),o&4&&g(r,1)):(r=Mb(i),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(i){n||(g(r),n=!0)},o(i){b(r),n=!1},d(i){i&&E(e),r&&r.d(i)}}}function X$(t){let e,n,r,i,o,l,a,s,u;const c=t[17].x,f=ht(c,t,t[16],Ob),d=f||j$(t),m=t[17].default,h=ht(m,t,t[16],null);let p=[{class:r=t[7].container},t[4]],v={};for(let w=0;w<p.length;w+=1)v=ve(v,p[w]);return{c(){e=W("div"),d&&d.c(),n=j(),h&&h.c(),En(e,v)},m(w,S){L(w,e,S),d&&d.m(e,null),V(e,n),h&&h.m(e,null),a=!0,s||(u=[zr(i=U$.call(null,e,t[6])),tt(e,"clickoutside",t[10]),zr(o=B$.call(null,e,t[5]))],s=!0)},p(w,S){f?f.p&&(!a||S&65668)&&gt(f,c,w,w[16],a?mt(c,w[16],S,W$):pt(w[16]),Ob):d&&d.p&&(!a||S&65668)&&d.p(w,a?S:-1),h&&h.p&&(!a||S&65536)&&gt(h,m,w,w[16],a?mt(m,w[16],S,null):pt(w[16]),null),En(e,v=ut(p,[(!a||S&128&&r!==(r=w[7].container))&&{class:r},S&16&&w[4]])),i&&Vn(i.update)&&S&64&&i.update.call(null,w[6]),o&&Vn(o.update)&&S&32&&o.update.call(null,w[5])},i(w){a||(g(d,w),g(h,w),w&&gr(()=>{a&&(l||(l=ol(e,ai,{duration:100},!0)),l.run(1))}),a=!0)},o(w){b(d,w),b(h,w),w&&(l||(l=ol(e,ai,{duration:100},!1)),l.run(0)),a=!1},d(w){w&&E(e),d&&d.d(w),h&&h.d(w),w&&l&&l.end(),s=!1,pn(u)}}}function Z$(t){let e,n,r,i,o;const l=t[17].backdrop,a=ht(l,t,t[16],Ab),s=a||K$(t),u=t[17].container,c=ht(u,t,t[16],Ib),f=c||X$(t);return{c(){s&&s.c(),n=j(),f&&f.c()},m(d,m){s&&s.m(d,m),L(d,n,m),f&&f.m(d,m),r=!0,i||(o=zr(e=V$.call(null,window,{trigger:[{key:"Escape",enabled:t[3]&&t[0],callback:t[11]}]})),i=!0)},p(d,[m]){e&&Vn(e.update)&&m&9&&e.update.call(null,{trigger:[{key:"Escape",enabled:d[3]&&d[0],callback:d[11]}]}),a?a.p&&(!r||m&65664)&&gt(a,l,d,d[16],r?mt(l,d[16],m,G$):pt(d[16]),Ab):s&&s.p&&(!r||m&130)&&s.p(d,r?m:-1),c?c.p&&(!r||m&65664)&&gt(c,u,d,d[16],r?mt(u,d[16],m,Y$):pt(d[16]),Ib):f&&f.p&&(!r||m&65780)&&f.p(d,r?m:-1)},i(d){r||(g(s,d),g(f,d),r=!0)},o(d){b(s,d),b(f,d),r=!1},d(d){d&&E(n),s&&s.d(d),f&&f.d(d),i=!1,o()}}}function eR(t,e,n){let r,i,o,{$$slots:l={},$$scope:a}=e,{topmost:s=!1}=e,{backdrop:u=!0}=e,{xBtn:c=!0}=e,{escape:f=!0}=e,{clickoutside:d=!1}=e,{movable:m=!1}=e,{classes:h={}}=e,{accessibility:p={role:"dialog"}}=e,{dispatch:v=Zi()}=e;const w={backdrop:"s-modal-backdrop",container:"s-modal-container",x:"s-modal-x"};function S(){const B={...w};for(const[J,ee]of Object.entries(h??{}))typeof ee=="string"?B[J]=`${B[J]} ${ee}`:B[J]=ee.override;return B}const y={enabled:!1};function z(){return typeof d=="boolean"?{...y,enabled:d}:d}const O={enabled:!1};function N(){return typeof m=="boolean"?{...O,enabled:m}:m}function U(){v("resolve",{trigger:"x"})}function A(){u&&u!=="static"&&v("resolve",{trigger:"backdrop"})}function P(){v("resolve",{trigger:"clickoutside"})}function Y(){v("resolve",{trigger:"escape"})}return t.$$set=B=>{"topmost"in B&&n(0,s=B.topmost),"backdrop"in B&&n(1,u=B.backdrop),"xBtn"in B&&n(2,c=B.xBtn),"escape"in B&&n(3,f=B.escape),"clickoutside"in B&&n(12,d=B.clickoutside),"movable"in B&&n(13,m=B.movable),"classes"in B&&n(14,h=B.classes),"accessibility"in B&&n(4,p=B.accessibility),"dispatch"in B&&n(15,v=B.dispatch),"$$scope"in B&&n(16,a=B.$$scope)},n(7,r=S()),n(6,i=z()),n(5,o=N()),[s,u,c,f,p,o,i,r,U,A,P,Y,d,m,h,v,a,l]}class Eb extends Ne{constructor(e){super(),Ee(this,e,eR,Z$,Ae,{topmost:0,backdrop:1,xBtn:2,escape:3,clickoutside:12,movable:13,classes:14,accessibility:4,dispatch:15},J$)}get topmost(){return this.$$.ctx[0]}set topmost(e){this.$$set({topmost:e}),C()}get backdrop(){return this.$$.ctx[1]}set backdrop(e){this.$$set({backdrop:e}),C()}get xBtn(){return this.$$.ctx[2]}set xBtn(e){this.$$set({xBtn:e}),C()}get escape(){return this.$$.ctx[3]}set escape(e){this.$$set({escape:e}),C()}get clickoutside(){return this.$$.ctx[12]}set clickoutside(e){this.$$set({clickoutside:e}),C()}get movable(){return this.$$.ctx[13]}set movable(e){this.$$set({movable:e}),C()}get classes(){return this.$$.ctx[14]}set classes(e){this.$$set({classes:e}),C()}get accessibility(){return this.$$.ctx[4]}set accessibility(e){this.$$set({accessibility:e}),C()}get dispatch(){return this.$$.ctx[15]}set dispatch(e){this.$$set({dispatch:e}),C()}}Le(Eb,{topmost:{type:"Boolean"},backdrop:{type:"Boolean"},xBtn:{type:"Boolean"},escape:{type:"Boolean"},clickoutside:{type:"Boolean"},movable:{type:"Boolean"},classes:{},accessibility:{},dispatch:{}},["backdrop","x-content","x","default","container"],[],!0);function tR(t){yt(t,"svelte-1r7fzyz",":where(.s-modal-portal){pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0}:where(.s-modal-portal *){pointer-events:auto}")}function Lb(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function Nb(t,e){let n,r,i,o;const l=[e[5].props,{topmost:e[7]===e[1].length-1}];function a(...c){return e[4](e[5],...c)}var s=e[5].component;function u(c,f){let d={};for(let m=0;m<l.length;m+=1)d=ve(d,l[m]);return f!==void 0&&f&2&&(d=ve(d,ut(l,[kt(c[5].props),{topmost:c[7]===c[1].length-1}]))),{props:d}}return s&&(r=fn(s,u(e)),r.$on("resolve",a)),{key:t,first:null,c(){n=Xe(),r&&F(r.$$.fragment),i=Xe(),this.first=n},m(c,f){L(c,n,f),r&&$(r,c,f),L(c,i,f),o=!0},p(c,f){if(e=c,f&2&&s!==(s=e[5].component)){if(r){ne();const d=r;b(d.$$.fragment,1,0,()=>{R(d,1)}),re()}s?(r=fn(s,u(e,f)),r.$on("resolve",a),F(r.$$.fragment),g(r.$$.fragment,1),$(r,i.parentNode,i)):r=null}else if(s){const d=f&2?ut(l,[kt(e[5].props),{topmost:e[7]===e[1].length-1}]):{};r.$set(d)}},i(c){o||(r&&g(r.$$.fragment,c),o=!0)},o(c){r&&b(r.$$.fragment,c),o=!1},d(c){c&&(E(n),E(i)),r&&R(r,c)}}}function nR(t){let e,n=[],r=new Map,i,o,l=At(t[1]);const a=s=>s[5].id;for(let s=0;s<l.length;s+=1){let u=Lb(t,l,s),c=a(u);r.set(c,n[s]=Nb(c,u))}return{c(){e=W("aside");for(let s=0;s<n.length;s+=1)n[s].c();x(e,"class",i="s-modal-portal "+(t[3].class??""))},m(s,u){L(s,e,u);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null);o=!0},p(s,[u]){u&6&&(l=At(s[1]),ne(),n=ll(n,u,a,1,s,l,r,e,oc,Nb,null,Lb),re()),(!o||u&8&&i!==(i="s-modal-portal "+(s[3].class??"")))&&x(e,"class",i)},i(s){if(!o){for(let u=0;u<l.length;u+=1)g(n[u]);o=!0}},o(s){for(let u=0;u<n.length;u+=1)b(n[u]);o=!1},d(s){s&&E(e);for(let u=0;u<n.length;u+=1)n[u].d()}}}function rR(t,e,n){let r,i=ze,o=()=>(i(),i=Oa(l,u=>n(1,r=u)),l);t.$$.on_destroy.push(()=>i());let{store:l}=e;o();function a(u,c){l.pop(u,c.detail)}const s=(u,c)=>a(u,c);return t.$$set=u=>{n(3,e=ve(ve({},e),je(u))),"store"in u&&o(n(0,l=u.store))},e=je(e),[l,r,a,e,s]}class Pb extends Ne{constructor(e){super(),Ee(this,e,rR,nR,Ae,{store:0},tR)}get store(){return this.$$.ctx[0]}set store(e){this.$$set({store:e}),C()}}Le(Pb,{store:{}},[],[],!0);function iR(t){yt(t,"svelte-he1mjk",".zl-popup-close{display:grid;place-items:center;width:24px;height:24px;aspect-ratio:1;background-color:var(--zl-modal-background-color, var(--zl-app-background-color));border-radius:1000px;transform:translate(25%, -25%);box-shadow:var(--zl-box-shadow-lg)}")}function oR(t){let e,n,r;return n=new nt({props:{icon:"X",variant:"unrecognizable",size:"xs",height:"auto"}}),n.$on("click",function(){Vn(t[0])&&t[0].apply(this,arguments)}),{c(){e=W("span"),F(n.$$.fragment),x(e,"class","zl-popup-close")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p(i,[o]){t=i},i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function lR(t,e,n){let{onClose:r}=e;return t.$$set=i=>{"onClose"in i&&n(0,r=i.onClose)},[r]}class $b extends Ne{constructor(e){super(),Ee(this,e,lR,oR,Ae,{onClose:0},iR)}get onClose(){return this.$$.ctx[0]}set onClose(e){this.$$set({onClose:e}),C()}}Le($b,{onClose:{}},[],[],!0);function aR(t){yt(t,"svelte-12pnqnv",`.s-modal-container{background-color:var(--zl-modal-background-color, var(--zl-app-background-color));background-image:var(--zl-modal-background-image, var(--zl-app-background-image));border-radius:var(--zl-default-border-radius);box-shadow:var(--zl-box-shadow-lg);display:flex;flex-direction:row-reverse;height:fit-content;margin:auto;max-height:var(--zl-modal-max-height, 90vh);max-width:var(--zl-modal-max-width, 35rem);width:calc(100% - var(--zl-modal-margin, 1rem))}.s-modal-container .zl-modal-content{color:var(--zl-popup-color);flex-grow:1;flex-shrink:1;font-family:var(--zl-font-family);font-size:var(--zl-default-font-size, --zl-font-size-sm);padding:var(--zl-modal-padding);overflow:auto}.s-modal-x-column{display:flex;justify-content:flex-end;align-items:flex-start;width:0}.s-modal-x-column .s-modal-x{position:relative;transform:translate(0, 0)}.s-modal-x-column .s-modal-x:hover{transform:translate(0, 0)}.s-modal-backdrop{background-color:hsl(
348
+ var(--zl-color-black-hsl-h) var(--zl-color-black-hsl-s) var(--zl-color-black-hsl-l) /
349
+ var(--zl-overlay-backdrop-opacity)
350
+ );display:flex;inset:0;position:fixed;z-index:-1}`)}function sR(t){let e;const n=t[5].default,r=ht(n,t,t[7],null);return{c(){r&&r.c()},m(i,o){r&&r.m(i,o),e=!0},p(i,o){r&&r.p&&(!e||o&128)&&gt(r,n,i,i[7],e?mt(n,i[7],o,null):pt(i[7]),null)},i(i){e||(g(r,i),e=!0)},o(i){b(r,i),e=!1},d(i){r&&r.d(i)}}}function uR(t){let e,n,r;return n=new Pn({props:{theme:t[0],noBackground:!0,addFrame:!1,$$slots:{default:[sR]},$$scope:{ctx:t}}}),{c(){e=W("div"),F(n.$$.fragment),x(e,"class","zl-modal-content")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p(i,o){const l={};o&1&&(l.theme=i[0]),o&128&&(l.$$scope={dirty:o,ctx:i}),n.$set(l)},i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function cR(t){let e,n,r;return n=new $b({props:{onClose:t[6]}}),{c(){e=W("div"),F(n.$$.fragment),x(e,"slot","x"),x(e,"class","s-modal-x-column")},m(i,o){L(i,e,o),$(n,e,null),r=!0},p:ze,i(i){r||(g(n.$$.fragment,i),r=!0)},o(i){b(n.$$.fragment,i),r=!1},d(i){i&&E(e),R(n)}}}function fR(t){let e,n;return e=new Eb({props:{classes:{container:"confirmation-modal"},clickoutside:t[1],backdrop:!0,$$slots:{x:[cR],default:[uR]},$$scope:{ctx:t}}}),e.$on("resolve",t[3]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&2&&(o.clickoutside=r[1]),i&129&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function dR(t,e,n){let{$$slots:r={},$$scope:i}=e,{theme:o=null}=e,{clickoutside:l=!0}=e,{disabled:a=!1}=e;const s=Zi();function u(d){s("resolve",{trigger:"custom",confirmed:d})}function c(d){if(l){u(!1);return}}const f=()=>u(!0);return t.$$set=d=>{"theme"in d&&n(0,o=d.theme),"clickoutside"in d&&n(1,l=d.clickoutside),"disabled"in d&&n(4,a=d.disabled),"$$scope"in d&&n(7,i=d.$$scope)},[o,l,u,c,a,r,f,i]}class jr extends Ne{constructor(e){super(),Ee(this,e,dR,fR,Ae,{theme:0,clickoutside:1,disabled:4},aR)}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get clickoutside(){return this.$$.ctx[1]}set clickoutside(e){this.$$set({clickoutside:e}),C()}get disabled(){return this.$$.ctx[4]}set disabled(e){this.$$set({disabled:e}),C()}}Le(jr,{theme:{},clickoutside:{type:"Boolean"},disabled:{type:"Boolean"}},["default"],[],!0);function hR(t){let e,n;return e=new Sb({props:{table:t[1],apiCtx:t[2],showPrintButton:t[3],saveDownloadedFile:t[4]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2&&(o.table=r[1]),i&4&&(o.apiCtx=r[2]),i&8&&(o.showPrintButton=r[3]),i&16&&(o.saveDownloadedFile=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function mR(t){let e,n;return e=new jr({props:{theme:t[0],$$slots:{default:[hR]},$$scope:{ctx:t}}}),e.$on("resolve",t[7]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&286&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function gR(t,e,n){let{theme:r=bn}=e,{table:i=null}=e,{apiCtx:o=null}=e,{disabled:l=!1}=e,{onAction:a=()=>{}}=e,{showPrintButton:s=!1}=e,{saveDownloadedFile:u=null}=e;function c(f){qe.call(this,t,f)}return t.$$set=f=>{"theme"in f&&n(0,r=f.theme),"table"in f&&n(1,i=f.table),"apiCtx"in f&&n(2,o=f.apiCtx),"disabled"in f&&n(5,l=f.disabled),"onAction"in f&&n(6,a=f.onAction),"showPrintButton"in f&&n(3,s=f.showPrintButton),"saveDownloadedFile"in f&&n(4,u=f.saveDownloadedFile)},[r,i,o,s,u,l,a,c]}class Rb extends Ne{constructor(e){super(),Ee(this,e,gR,mR,Ae,{theme:0,table:1,apiCtx:2,disabled:5,onAction:6,showPrintButton:3,saveDownloadedFile:4})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get table(){return this.$$.ctx[1]}set table(e){this.$$set({table:e}),C()}get apiCtx(){return this.$$.ctx[2]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),C()}get onAction(){return this.$$.ctx[6]}set onAction(e){this.$$set({onAction:e}),C()}get showPrintButton(){return this.$$.ctx[3]}set showPrintButton(e){this.$$set({showPrintButton:e}),C()}get saveDownloadedFile(){return this.$$.ctx[4]}set saveDownloadedFile(e){this.$$set({saveDownloadedFile:e}),C()}}Le(Rb,{theme:{},table:{},apiCtx:{},disabled:{type:"Boolean"},onAction:{},showPrintButton:{type:"Boolean"},saveDownloadedFile:{}},[],[],!0);function pR(t){yt(t,"svelte-1rre81e",".title.svelte-1rre81e{font-size:var(--zl-popup-title-font-size, var(--zl-font-size-2xl));font-weight:var(--zl-popup-font-weight, var(--zl-font-weight-bold));color:var(--zl-popup-title-color, var(--zl-popup-color))}.btns.svelte-1rre81e{display:flex;flex-wrap:wrap;gap:var(--zl-spacing-md)}")}const bR=t=>({}),Fb=t=>({});function xb(t){let e,n;return{c(){e=W("div"),n=Ie(t[0]),x(e,"class","title svelte-1rre81e")},m(r,i){L(r,e,i),V(e,n)},p(r,i){i&1&&Ke(n,r[0])},d(r){r&&E(e)}}}function Ub(t){let e;return{c(){e=W("div"),x(e,"class","zl-popup-text")},m(n,r){L(n,e,r),e.innerHTML=t[1]},p(n,r){r&2&&(e.innerHTML=n[1])},d(n){n&&E(e)}}}function Bb(t){let e,n;const r=t[8].content,i=ht(r,t,t[7],Fb);return{c(){e=W("div"),i&&i.c()},m(o,l){L(o,e,l),i&&i.m(e,null),n=!0},p(o,l){i&&i.p&&(!n||l&128)&&gt(i,r,o,o[7],n?mt(r,o[7],l,bR):pt(o[7]),Fb)},i(o){n||(g(i,o),n=!0)},o(o){b(i,o),n=!1},d(o){o&&E(e),i&&i.d(o)}}}function qb(t){let e,n,r,i=t[5]&&Vb(t),o=t[2]&&Jb(t);return{c(){e=W("div"),i&&i.c(),n=j(),o&&o.c(),x(e,"class","btns svelte-1rre81e")},m(l,a){L(l,e,a),i&&i.m(e,null),V(e,n),o&&o.m(e,null),r=!0},p(l,a){l[5]?i?(i.p(l,a),a&32&&g(i,1)):(i=Vb(l),i.c(),g(i,1),i.m(e,n)):i&&(ne(),b(i,1,1,()=>{i=null}),re()),l[2]?o?(o.p(l,a),a&4&&g(o,1)):(o=Jb(l),o.c(),g(o,1),o.m(e,null)):o&&(ne(),b(o,1,1,()=>{o=null}),re())},i(l){r||(g(i),g(o),r=!0)},o(l){b(i),b(o),r=!1},d(l){l&&E(e),i&&i.d(),o&&o.d()}}}function Vb(t){let e,n;return e=new nt({props:{variant:"default",text:t[5]}}),e.$on("click",t[9]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&32&&(o.text=r[5]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function Jb(t){let e,n;return e=new nt({props:{variant:"muted",text:t[2]}}),e.$on("click",t[10]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&4&&(o.text=r[2]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function vR(t){let e,n,r,i,o,l=t[0]&&xb(t),a=t[1]&&Ub(t),s=t[6].content&&Bb(t),u=(t[5]||t[2])&&qb(t);return{c(){e=W("div"),l&&l.c(),n=j(),a&&a.c(),r=j(),s&&s.c(),i=j(),u&&u.c(),x(e,"class","zl-popup zlc-gap-y")},m(c,f){L(c,e,f),l&&l.m(e,null),V(e,n),a&&a.m(e,null),V(e,r),s&&s.m(e,null),V(e,i),u&&u.m(e,null),o=!0},p(c,[f]){c[0]?l?l.p(c,f):(l=xb(c),l.c(),l.m(e,n)):l&&(l.d(1),l=null),c[1]?a?a.p(c,f):(a=Ub(c),a.c(),a.m(e,r)):a&&(a.d(1),a=null),c[6].content?s?(s.p(c,f),f&64&&g(s,1)):(s=Bb(c),s.c(),g(s,1),s.m(e,i)):s&&(ne(),b(s,1,1,()=>{s=null}),re()),c[5]||c[2]?u?(u.p(c,f),f&36&&g(u,1)):(u=qb(c),u.c(),g(u,1),u.m(e,null)):u&&(ne(),b(u,1,1,()=>{u=null}),re())},i(c){o||(g(s),g(u),o=!0)},o(c){b(s),b(u),o=!1},d(c){c&&E(e),l&&l.d(),a&&a.d(),s&&s.d(),u&&u.d()}}}function _R(t,e,n){let{$$slots:r={},$$scope:i}=e;const o=Xo(r);let{title:l=""}=e,{text:a=""}=e,{cancelBtnText:s=""}=e,{onCancel:u=()=>{}}=e,{onConfirm:c=()=>{}}=e,{confirmBtnText:f=""}=e;const d=()=>c&&c(),m=()=>u&&u();return t.$$set=h=>{"title"in h&&n(0,l=h.title),"text"in h&&n(1,a=h.text),"cancelBtnText"in h&&n(2,s=h.cancelBtnText),"onCancel"in h&&n(3,u=h.onCancel),"onConfirm"in h&&n(4,c=h.onConfirm),"confirmBtnText"in h&&n(5,f=h.confirmBtnText),"$$scope"in h&&n(7,i=h.$$scope)},[l,a,s,u,c,f,o,i,r,d,m]}class Bs extends Ne{constructor(e){super(),Ee(this,e,_R,vR,Ae,{title:0,text:1,cancelBtnText:2,onCancel:3,onConfirm:4,confirmBtnText:5},pR)}get title(){return this.$$.ctx[0]}set title(e){this.$$set({title:e}),C()}get text(){return this.$$.ctx[1]}set text(e){this.$$set({text:e}),C()}get cancelBtnText(){return this.$$.ctx[2]}set cancelBtnText(e){this.$$set({cancelBtnText:e}),C()}get onCancel(){return this.$$.ctx[3]}set onCancel(e){this.$$set({onCancel:e}),C()}get onConfirm(){return this.$$.ctx[4]}set onConfirm(e){this.$$set({onConfirm:e}),C()}get confirmBtnText(){return this.$$.ctx[5]}set confirmBtnText(e){this.$$set({confirmBtnText:e}),C()}}Le(Bs,{title:{},text:{},cancelBtnText:{},onCancel:{},onConfirm:{},confirmBtnText:{}},["content"],[],!0);function yR(t){let e,n;return e=new Bs({props:{title:t[2],text:t[1]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&4&&(o.title=r[2]),i&2&&(o.text=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function kR(t){let e,n;return e=new jr({props:{theme:t[0],$$slots:{default:[yR]},$$scope:{ctx:t}}}),e.$on("resolve",t[4]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&38&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function wR(t,e,n){let{theme:r=bn}=e,{content:i=""}=e,{title:o=""}=e,{disabled:l=!1}=e;function a(s){qe.call(this,t,s)}return t.$$set=s=>{"theme"in s&&n(0,r=s.theme),"content"in s&&n(1,i=s.content),"title"in s&&n(2,o=s.title),"disabled"in s&&n(3,l=s.disabled)},[r,i,o,l,a]}class Hb extends Ne{constructor(e){super(),Ee(this,e,wR,kR,Ae,{theme:0,content:1,title:2,disabled:3})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get content(){return this.$$.ctx[1]}set content(e){this.$$set({content:e}),C()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),C()}get disabled(){return this.$$.ctx[3]}set disabled(e){this.$$set({disabled:e}),C()}}Le(Hb,{theme:{},content:{},title:{},disabled:{type:"Boolean"}},[],[],!0);function Wb(t){let e,n;return e=new qi({props:{title:t[3],items:t[4]}}),e.$on("action",t[8]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&8&&(o.title=r[3]),i&16&&(o.items=r[4]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function SR(t){var i;let e,n,r=((i=t[4])==null?void 0:i.length)&&Wb(t);return{c(){r&&r.c(),e=Xe()},m(o,l){r&&r.m(o,l),L(o,e,l),n=!0},p(o,l){var a;(a=o[4])!=null&&a.length?r?(r.p(o,l),l&16&&g(r,1)):(r=Wb(o),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(ne(),b(r,1,1,()=>{r=null}),re())},i(o){n||(g(r),n=!0)},o(o){b(r),n=!1},d(o){o&&E(e),r&&r.d(o)}}}function TR(t){let e,n;return e=new jr({props:{theme:t[0],$$slots:{default:[SR]},$$scope:{ctx:t}}}),e.$on("resolve",t[9]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&4126&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function zR(t,e,n){let r,{theme:i=bn}=e,{header:o=null}=e,{row:l=null}=e,{disabled:a=!1}=e,{onAction:s=()=>{}}=e,{title:u=""}=e;const c=Zi();function f(p){c("resolve",{trigger:"custom",confirmed:p})}function d(p,v){if(!p||!v)return[];const w=[];for(const S of v){const y=p.map[S.id];y&&w.push({label:S.label,value:y})}return w}const m=p=>{s(p.detail.id,l.id),f(!0)};function h(p){qe.call(this,t,p)}return t.$$set=p=>{"theme"in p&&n(0,i=p.theme),"header"in p&&n(6,o=p.header),"row"in p&&n(1,l=p.row),"disabled"in p&&n(7,a=p.disabled),"onAction"in p&&n(2,s=p.onAction),"title"in p&&n(3,u=p.title)},t.$$.update=()=>{t.$$.dirty&66&&n(4,r=d(l,o))},[i,l,s,u,r,f,o,a,m,h]}class Yb extends Ne{constructor(e){super(),Ee(this,e,zR,TR,Ae,{theme:0,header:6,row:1,disabled:7,onAction:2,title:3})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get header(){return this.$$.ctx[6]}set header(e){this.$$set({header:e}),C()}get row(){return this.$$.ctx[1]}set row(e){this.$$set({row:e}),C()}get disabled(){return this.$$.ctx[7]}set disabled(e){this.$$set({disabled:e}),C()}get onAction(){return this.$$.ctx[2]}set onAction(e){this.$$set({onAction:e}),C()}get title(){return this.$$.ctx[3]}set title(e){this.$$set({title:e}),C()}}Le(Yb,{theme:{},header:{},row:{},disabled:{type:"Boolean"},onAction:{},title:{}},[],[],!0);function CR(t){let e,n;return e=new Bs({props:{title:t[4],text:t[1],cancelBtnText:t[3],confirmBtnText:t[2],onCancel:t[7],onConfirm:t[6]}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.title=r[4]),i&2&&(o.text=r[1]),i&8&&(o.cancelBtnText=r[3]),i&4&&(o.confirmBtnText=r[2]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function OR(t){let e,n;return e=new jr({props:{theme:t[0],dispatch:t[5],clickoutside:!1,$$slots:{default:[CR]},$$scope:{ctx:t}}}),e.$on("resolve",t[9]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&2078&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function IR(t,e,n){let{theme:r=bn}=e,{content:i=""}=e,{confirmBtnText:o=""}=e,{cancelBtnText:l=""}=e,{title:a=""}=e,{disabled:s=!1}=e;const u=Zi();function c(h){u("resolve",{trigger:"custom",confirmed:h})}function f(){c(!0)}function d(){c(!1)}function m(h){qe.call(this,t,h)}return t.$$set=h=>{"theme"in h&&n(0,r=h.theme),"content"in h&&n(1,i=h.content),"confirmBtnText"in h&&n(2,o=h.confirmBtnText),"cancelBtnText"in h&&n(3,l=h.cancelBtnText),"title"in h&&n(4,a=h.title),"disabled"in h&&n(8,s=h.disabled)},[r,i,o,l,a,u,f,d,s,m]}class Gb extends Ne{constructor(e){super(),Ee(this,e,IR,OR,Ae,{theme:0,content:1,confirmBtnText:2,cancelBtnText:3,title:4,disabled:8})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get content(){return this.$$.ctx[1]}set content(e){this.$$set({content:e}),C()}get confirmBtnText(){return this.$$.ctx[2]}set confirmBtnText(e){this.$$set({confirmBtnText:e}),C()}get cancelBtnText(){return this.$$.ctx[3]}set cancelBtnText(e){this.$$set({cancelBtnText:e}),C()}get title(){return this.$$.ctx[4]}set title(e){this.$$set({title:e}),C()}get disabled(){return this.$$.ctx[8]}set disabled(e){this.$$set({disabled:e}),C()}}Le(Gb,{theme:{},content:{},confirmBtnText:{},cancelBtnText:{},title:{},disabled:{type:"Boolean"}},[],[],!0);function AR(t){let e,n;return e=new Fs({props:{addFrame:!1,theme:t[0],apiCtx:t[2],sessionId:t[1]}}),e.$on("exit",t[3]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.theme=r[0]),i&4&&(o.apiCtx=r[2]),i&2&&(o.sessionId=r[1]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function DR(t){let e,n;return e=new jr({props:{theme:t[0],clickoutside:!1,$$slots:{default:[AR]},$$scope:{ctx:t}}}),e.$on("resolve",t[5]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&263&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function MR(t,e,n){let{theme:r=bn}=e,{sessionId:i=""}=e,{apiCtx:o=null}=e,{disabled:l=!1}=e;const a=Zi();function s(f){a("resolve",{trigger:"custom",confirmed:f})}function u(f){s(f.detail.enabled)}function c(f){qe.call(this,t,f)}return t.$$set=f=>{"theme"in f&&n(0,r=f.theme),"sessionId"in f&&n(1,i=f.sessionId),"apiCtx"in f&&n(2,o=f.apiCtx),"disabled"in f&&n(4,l=f.disabled)},[r,i,o,u,l,c]}class Kb extends Ne{constructor(e){super(),Ee(this,e,MR,DR,Ae,{theme:0,sessionId:1,apiCtx:2,disabled:4})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get sessionId(){return this.$$.ctx[1]}set sessionId(e){this.$$set({sessionId:e}),C()}get apiCtx(){return this.$$.ctx[2]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get disabled(){return this.$$.ctx[4]}set disabled(e){this.$$set({disabled:e}),C()}}Le(Kb,{theme:{},sessionId:{},apiCtx:{},disabled:{type:"Boolean"}},[],[],!0);function ER(t){let e,n;return e=new Sl({props:{data:t[1],showActions:t[2]}}),e.$on("action",t[6]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&2&&(o.data=r[1]),i&4&&(o.showActions=r[2]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function LR(t){let e,n;return e=new jr({props:{theme:t[0],$$slots:{default:[ER]},$$scope:{ctx:t}}}),e.$on("resolve",t[7]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&526&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function NR(t,e,n){let{theme:r=bn}=e,{data:i=null}=e,{showActions:o=!1}=e,{handleOrderTableAction:l=d=>{}}=e,{disabled:a=!1}=e;const s=Zi();function u(d){s("resolve",{trigger:"custom",confirmed:d})}const c=d=>{l(new CustomEvent("action",{detail:{actionId:d.detail.id,rowId:i.order.id}})),u(!0)};function f(d){qe.call(this,t,d)}return t.$$set=d=>{"theme"in d&&n(0,r=d.theme),"data"in d&&n(1,i=d.data),"showActions"in d&&n(2,o=d.showActions),"handleOrderTableAction"in d&&n(3,l=d.handleOrderTableAction),"disabled"in d&&n(5,a=d.disabled)},[r,i,o,l,u,a,c,f]}class Qb extends Ne{constructor(e){super(),Ee(this,e,NR,LR,Ae,{theme:0,data:1,showActions:2,handleOrderTableAction:3,disabled:5})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get data(){return this.$$.ctx[1]}set data(e){this.$$set({data:e}),C()}get showActions(){return this.$$.ctx[2]}set showActions(e){this.$$set({showActions:e}),C()}get handleOrderTableAction(){return this.$$.ctx[3]}set handleOrderTableAction(e){this.$$set({handleOrderTableAction:e}),C()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),C()}}Le(Qb,{theme:{},data:{},showActions:{type:"Boolean"},handleOrderTableAction:{},disabled:{type:"Boolean"}},[],[],!0);function PR(t){let e,n;return e=new xs({props:{apiCtx:t[4],theme:t[0],brokerName:t[1],returnToUrl:t[2]}}),e.$on("redirect",t[6]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&16&&(o.apiCtx=r[4]),i&1&&(o.theme=r[0]),i&2&&(o.brokerName=r[1]),i&4&&(o.returnToUrl=r[2]),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function $R(t){let e,n;return e=new jr({props:{theme:t[0],clickoutside:!1,$$slots:{default:[PR]},$$scope:{ctx:t}}}),e.$on("resolve",t[7]),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.theme=r[0]),i&287&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function RR(t,e,n){let{theme:r=bn}=e,{brokerName:i=""}=e,{returnToUrl:o=""}=e,{redirect:l=f=>{}}=e,{apiCtx:a=null}=e,{disabled:s=!1}=e;const u=f=>{l(f.detail.redirectTo)};function c(f){qe.call(this,t,f)}return t.$$set=f=>{"theme"in f&&n(0,r=f.theme),"brokerName"in f&&n(1,i=f.brokerName),"returnToUrl"in f&&n(2,o=f.returnToUrl),"redirect"in f&&n(3,l=f.redirect),"apiCtx"in f&&n(4,a=f.apiCtx),"disabled"in f&&n(5,s=f.disabled)},[r,i,o,l,a,s,u,c]}class jb extends Ne{constructor(e){super(),Ee(this,e,RR,$R,Ae,{theme:0,brokerName:1,returnToUrl:2,redirect:3,apiCtx:4,disabled:5})}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get brokerName(){return this.$$.ctx[1]}set brokerName(e){this.$$set({brokerName:e}),C()}get returnToUrl(){return this.$$.ctx[2]}set returnToUrl(e){this.$$set({returnToUrl:e}),C()}get redirect(){return this.$$.ctx[3]}set redirect(e){this.$$set({redirect:e}),C()}get apiCtx(){return this.$$.ctx[4]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),C()}}Le(jb,{theme:{},brokerName:{},returnToUrl:{},redirect:{},apiCtx:{},disabled:{type:"Boolean"}},[],[],!0);function FR(t){yt(t,"svelte-134ah0q",".s-modal-portal{transition:opacity ease-in-out 0.25s}.s-modal-portal:empty{opacity:0}.s-modal-portal:not(:empty){opacity:1}")}function Xb(t){let e,n;return e=new Qf({}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function xR(t){let e,n,r,i=t[1]==null&&Xb();return n=new Pb({props:{store:t[2]}}),{c(){i&&i.c(),e=j(),F(n.$$.fragment)},m(o,l){i&&i.m(o,l),L(o,e,l),$(n,o,l),r=!0},p(o,l){o[1]==null?i?l&2&&g(i,1):(i=Xb(),i.c(),g(i,1),i.m(e.parentNode,e)):i&&(ne(),b(i,1,1,()=>{i=null}),re())},i(o){r||(g(i),g(n.$$.fragment,o),r=!0)},o(o){b(i),b(n.$$.fragment,o),r=!1},d(o){o&&E(e),i&&i.d(o),R(n,o)}}}function UR(t){let e,n;return e=new Pn({props:{theme:t[0],$$slots:{default:[xR]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.theme=r[0]),i&131074&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function BR(t){let e,n;return e=new Jn({props:{locale:"de",$$slots:{default:[UR]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},m(r,i){$(e,r,i),n=!0},p(r,[i]){const o={};i&131075&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(g(e.$$.fragment,r),n=!0)},o(r){b(e.$$.fragment,r),n=!1},d(r){R(e,r)}}}function qR(t,e,n){const r=x$();let{theme:i=null}=e,{apiCtx:o=null}=e,{saveDownloadedFile:l=null}=e,{showToast:a=null}=e;function s(z){return new Promise(O=>{setTimeout(()=>{const N=r.push(z);O(N)},0)})}function u(z){s({component:Rb,props:{table:z.detail.table,theme:i,showPrintButton:z.detail.showPrintButton,apiCtx:o,saveDownloadedFile:l}})}function c(z){s({component:Hb,props:{title:z.detail.title,content:z.detail.content,theme:i}})}async function f(z){const O=await s({component:Kb,props:{sessionId:z.detail.sessionId,apiCtx:o,theme:i}}),{confirmed:N}=await O.resolve();z.detail.pcs.resolve(N)}function d(z){s({component:Qb,props:{data:z.detail.data,showActions:z.detail.showActions,theme:i,handleOrderTableAction:z.detail.handleOrderTableAction}})}function m(z){s({component:Yb,props:{row:z.detail.row,header:z.detail.header,theme:i,onAction:z.detail.handleTableAction}})}async function h(z){const O=await s({component:Gb,props:{title:"",content:z.detail.msg.replace(/\n/g,"<br/>"),theme:i,cancelBtnText:"Abbrechen",confirmBtnText:"Bestätigen"}}),{confirmed:N}=await O.resolve();z.detail.pcs.resolve(N)}function p(z){s({component:jb,props:{theme:i,brokerName:z.detail.brokerName,returnToUrl:z.detail.returnToUrl,apiCtx:o,redirect:z.detail.redirect}})}function v(z){const O=z.detail;a!=null?a(O):O.style=="info"?Gr.push(O.message):O.style=="error"?Gr.push(O.message,{theme:{"--toastBarBackground":"var(--zl-color-error-dark)"}}):O.style=="success"&&Gr.push(O.message,{theme:{"--toastBarBackground":"var(--zl-color-success-dark)"}})}const w=[{name:"showDetailedTable",handler:u},{name:"showSecurityInformation",handler:c},{name:"showSessionTanModal",handler:f},{name:"showReceipt",handler:d},{name:"showDetail",handler:m},{name:"showConfirm",handler:h},{name:"showLoginForm",handler:p},{name:"showToast",handler:v}];function S(){for(const{name:z,handler:O}of w)jt.addEventListener(z,O)}function y(){for(const{name:z,handler:O}of w)jt.removeEventListener(z,O)}return ir(()=>{S(),jt.activate()}),mr(()=>{y(),jt.deactivate()}),t.$$set=z=>{"theme"in z&&n(0,i=z.theme),"apiCtx"in z&&n(3,o=z.apiCtx),"saveDownloadedFile"in z&&n(4,l=z.saveDownloadedFile),"showToast"in z&&n(1,a=z.showToast)},[i,a,r,o,l]}class Zb extends Ne{constructor(e){super(),Ee(this,e,qR,BR,Ae,{theme:0,apiCtx:3,saveDownloadedFile:4,showToast:1},FR)}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get apiCtx(){return this.$$.ctx[3]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get saveDownloadedFile(){return this.$$.ctx[4]}set saveDownloadedFile(e){this.$$set({saveDownloadedFile:e}),C()}get showToast(){return this.$$.ctx[1]}set showToast(e){this.$$set({showToast:e}),C()}}Le(Zb,{theme:{},apiCtx:{},saveDownloadedFile:{},showToast:{}},[],[],!0);function VR(t){let e,n;const r=[{theme:t[0]},t[2]];let i={};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new Zb({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,l){const a=l&5?ut(r,[l&1&&{theme:o[0]},l&4&&kt(o[2])]):{};e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function JR(t){let e,n;const r=[t[2],{requiredProps:t[1]}];let i={$$slots:{default:[VR]},$$scope:{ctx:t}};for(let o=0;o<r.length;o+=1)i=ve(i,r[o]);return e=new xn({props:i}),{c(){F(e.$$.fragment)},m(o,l){$(e,o,l),n=!0},p(o,[l]){const a=l&6?ut(r,[l&4&&kt(o[2]),l&2&&{requiredProps:o[1]}]):{};l&69&&(a.$$scope={dirty:l,ctx:o}),e.$set(a)},i(o){n||(g(e.$$.fragment,o),n=!0)},o(o){b(e.$$.fragment,o),n=!1},d(o){R(e,o)}}}function HR(t,e,n){let{apiCtx:r=null}=e,{theme:i=bn}=e,{saveDownloadedFile:o=null}=e,{showToast:l=null}=e,a=[];return t.$$set=s=>{n(2,e=ve(ve({},e),je(s))),"apiCtx"in s&&n(3,r=s.apiCtx),"theme"in s&&n(0,i=s.theme),"saveDownloadedFile"in s&&n(4,o=s.saveDownloadedFile),"showToast"in s&&n(5,l=s.showToast)},e=je(e),[i,a,e,r,o,l]}class e1 extends Ne{constructor(e){super(),Ee(this,e,HR,JR,Ae,{apiCtx:3,theme:0,saveDownloadedFile:4,showToast:5})}get apiCtx(){return this.$$.ctx[3]}set apiCtx(e){this.$$set({apiCtx:e}),C()}get theme(){return this.$$.ctx[0]}set theme(e){this.$$set({theme:e}),C()}get saveDownloadedFile(){return this.$$.ctx[4]}set saveDownloadedFile(e){this.$$set({saveDownloadedFile:e}),C()}get showToast(){return this.$$.ctx[5]}set showToast(e){this.$$set({showToast:e}),C()}}customElements.define("brokerize-modal-host",Le(e1,{apiCtx:{},theme:{},saveDownloadedFile:{},showToast:{}},[],[],!0));function WR(t){var n;const e=new e1({target:Wn(t.renderTo),props:{apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),saveDownloadedFile:t.saveDownloadedFile,showToast:t.showToast}});return Zn(e)}function YR(t){var n;const e=new uf({target:Wn(t.renderTo),props:{apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),addFrame:t.addFrame,supportLink:t.supportLink,openExternalLink:t.openExternalLink,confirmationStorage:t.confirmationStorage}});return t.onLogin&&e.$on("login",r=>{t.onLogin(r.detail)}),Zn(e)}function GR(t){var n;const e=new mb({target:Wn(t.renderTo),props:{theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),brokerName:t.brokerName,env:t.env,apiCtx:t.authorizedApiContext,returnToUrl:t.returnToUrl,credentialsStore:t.credentialsStore,openExternalLink:t.openExternalLink}});return t.onExit&&e.$on("exit",r=>{t.onExit(r.detail)}),e.$on("redirect",r=>{const i=r.detail.redirectTo;if(t.onRedirect)t.onRedirect(i);else{if(!(window!=null&&window.location))throw new Error("BrokerLoginFormController: onRedirect was not provided, but window.location is not present either. If this a non-browser environment, please provide onRedirect explicitly.");window.location.href=i}}),Zn(e)}function KR(t){var n;const e=new Bp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),apiCtx:t.authorizedApiContext,useNavigation:t.useNavigation,openExternalLink:t.openExternalLink,returnToUrl:t.returnToUrl}});return t.onNavigationStateChange&&e.$on("navigationStateChange",r=>{t.onNavigationStateChange(r.detail)}),aF(e)}function QR(t){var n;const e=new Lm({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),client:t.client,openExternalLink:t.openExternalLink}});return t.onGuestLogin&&e.$on("guest",t.onGuestLogin),t.onLogin&&e.$on("login",r=>{t.onLogin(r.detail)}),Zn(e)}function jR(t){var n;const e=new qp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,portfolioId:t.portfolioId,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),openExternalLink:t.openExternalLink,isin:t.isin,security:t.security,preferredExchangeId:t.preferredExchangeId,lockOrderDirection:t.lockOrderDirection,hideOrderDirection:t.hideOrderDirection,overrideBrokerExchangeId:t.overrideBrokerExchangeId,initialOrderCreateValues:t.initialOrder,quotesProvider:t.quotesProvider}});return t.onOrderCreated&&e.$on("created",r=>{t.onOrderCreated(r.detail)}),t.onOrderError&&e.$on("ordererror",r=>{t.onOrderError(r.detail)}),Zn(e)}function XR(t){var n;const e=new Wp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),openExternalLink:t.openExternalLink,hideInactivePortfolios:t.hideInactivePortfolios}});return t.onNavigate&&e.$on("navigate",r=>{t.onNavigate(r.detail)}),Zn(e)}function ZR(t){const e=new Fs({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,sessionId:t.sessionId,theme:t.theme||t.renderConfig.theme,openExternalLink:t.openExternalLink}});return t.onExit&&e.$on("exit",n=>{t.onExit(n.detail)}),Zn(e)}function eF(t){var n;const e=new Hp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),portfolioId:t.portfolioId,openExternalLink:t.openExternalLink}});return t.onEditOrder&&e.$on("editOrder",r=>t.onEditOrder(r.detail)),t.onCancelOrder&&e.$on("cancelOrder",r=>t.onCancelOrder(r.detail)),t.onShowReceipt&&e.$on("showReceipt",r=>t.onShowReceipt(r.detail)),Zn(e)}function tF(t){var n;const e=new Vp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),orderId:t.orderId,openExternalLink:t.openExternalLink}});return t.onNavigate&&e.$on("navigate",r=>{t.onNavigate(r.detail)}),Zn(e)}function nF(t){var n;const e=new Kp({target:Wn(t.renderTo),props:{apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),portfolioId:t.portfolioId,openExternalLink:t.openExternalLink}});return t.onTradeInstrument&&(e.$on("buy",r=>t.onTradeInstrument({security:r.detail.security,isin:r.detail.isin,direction:"buy"})),e.$on("sell",r=>t.onTradeInstrument({security:r.detail.security,isin:r.detail.isin,direction:"sell"}))),Zn(e)}function rF(t){var n;const e=new zm({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),orderId:t.orderId,openExternalLink:t.openExternalLink}});return t.onExit&&e.$on("exit",r=>{t.onExit()}),Zn(e)}function iF(t){var n;const e=new Ud({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),orderId:t.orderId,openExternalLink:t.openExternalLink}});return t.onNavigate&&e.$on("navigate",r=>{t.onNavigate(r.detail)}),t.onExit&&e.$on("exit",r=>{t.onExit()}),Zn(e)}function oF(t){var n;const e=new Qp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),openExternalLink:t.openExternalLink}});return t.onEnableSessionTan&&e.$on("enableSessionTan",r=>t.onEnableSessionTan(r.detail)),Zn(e)}function lF(t){var n;const e=new Yp({target:Wn(t.renderTo),props:{addFrame:t.addFrame,supportLink:t.supportLink,apiCtx:t.authorizedApiContext,theme:t.theme||((n=t.renderConfig)==null?void 0:n.theme),portfolioId:t.portfolioId,openExternalLink:t.openExternalLink}});return t.onBuy&&e.$on("buy",r=>t.onBuy(r.detail)),t.onSell&&e.$on("sell",r=>t.onSell(r.detail)),t.onChangeOrder&&e.$on("editOrder",r=>t.onChangeOrder(r.detail)),t.onCancelOrder&&e.$on("cancelOrder",r=>t.onCancelOrder(r.detail)),t.onShowReceipt&&e.$on("showReceipt",r=>t.onShowReceipt(r.detail)),Zn(e)}function Zn(t){return{destroy(){t.$destroy()},set theme(e){t.$$set({theme:e})},get theme(){return t.$theme}}}function aF(t){return{destroy(){t.$destroy()},set theme(e){t.$$set({theme:e})},get theme(){return t.$theme},navigation:t.navigation}}function Wn(t){let e=t.shadowRoot;return e||(e=t.attachShadow({mode:"open"})),e.innerHTML="",e}class sF extends EventTarget{constructor(){super(...arguments);Kt(this,"isActivated",!1)}activate(){if(this.isActivated)throw new Error("ModalService is already activated. Be sure to only use a single instance of the BrokerizeModalWebComponent.");this.isActivated=!0}deactivate(){this.isActivated=!1}checkForActivation(){if(!this.isActivated)throw new Error("ModalService is not activated. Please use the BrokerizeModalWebComponent to activate it.")}override(n){for(const r in n)this[r]=n[r]}showLoginForm(n,r,i){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showLoginForm",{detail:{brokerName:n,returnToUrl:r,redirect:i}}))}showReceipt(n,r,i){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showReceipt",{detail:{data:n,showActions:r,handleOrderTableAction:i}}))}showDetailedTable(n,r){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showDetailedTable",{detail:{table:n,showPrintButton:r}}))}showPositionDetail(n,r,i,o){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showDetail",{detail:{row:r,header:i,handleTableAction:o}}))}showSecurityInformation(n,r){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showSecurityInformation",{detail:{title:n,content:r}}))}showConfirm(n){this.checkForActivation();const r=new gb;return this.dispatchEvent(new CustomEvent("showConfirm",{detail:{msg:n,pcs:r}})),r.promise}showSessionTanModal(n){this.checkForActivation();const r=new gb;return this.dispatchEvent(new CustomEvent("showSessionTanModal",{detail:{sessionId:n,pcs:r}})),r.promise}showToast(n){this.checkForActivation(),this.dispatchEvent(new CustomEvent("showToast",{detail:n}))}}const jt=new sF;function uF(t){t.assetsPath&&(yf.assetsPath=t.assetsPath)}const cF={createBrokerizeMain:KR,createBrokerList:YR,createBrokerLoginForm:GR,createLoginForm:QR,createOrderForm:jR,createPortfolioTable:XR,createSessionTanForm:ZR,createOrderTable:eF,createOrderReceipt:tF,createPositionsTable:nF,createChangeOrderForm:rF,createCancelOrderForm:iF,createSessionsTable:oF,createPortfolioView:lF,createModalHost:WR,modalService:jt,configure:uF},fF={createSession(t,e){if(!t)throw new Error("Trying to initialize createAuth for cognito, but no cognito config present in BrokerizeConfig.");const n=Is(t),r={Username:e.username,Pool:n,Storage:ql},i=Om(r);let o=null;async function l(){return new Promise((s,u)=>{i.refreshSession(new jE({RefreshToken:e.tokens.refreshToken}),(c,f)=>{c?u(c):s(f)})})}async function a(){if(o)(await o).isValid()||(o=l());else return o=l(),o;return o}return{async getToken(){return{idToken:(await a()).getIdToken().getJwtToken()}}}}};ln.Client=Kw,ln.Elements=cF,ln.cognitoFacade=fF,Object.defineProperty(ln,Symbol.toStringTag,{value:"Module"})});